Finite Elements. Colin Cotter. January 15, Colin Cotter FEM

Similar documents
Numerical methods for PDEs FEM convergence, error estimates, piecewise polynomials

Finite Elements. Colin Cotter. January 18, Colin Cotter FEM

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

Finite Elements. Colin Cotter. February 22, Colin Cotter FEM

Scientific Computing WS 2018/2019. Lecture 15. Jürgen Fuhrmann Lecture 15 Slide 1

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

Scientific Computing I

INTRODUCTION TO FINITE ELEMENT METHODS

SOLVING ELLIPTIC PDES

A very short introduction to the Finite Element Method

Scientific Computing WS 2017/2018. Lecture 18. Jürgen Fuhrmann Lecture 18 Slide 1

Lehrstuhl Informatik V. Lehrstuhl Informatik V. 1. solve weak form of PDE to reduce regularity properties. Lehrstuhl Informatik V

Numerical methods for PDEs FEM convergence, error estimates, piecewise polynomials

Numerical Solutions to Partial Differential Equations

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

Numerical Solutions to Partial Differential Equations

arxiv: v1 [math.na] 29 Feb 2016

Numerical Solutions to Partial Differential Equations

Introduction. J.M. Burgers Center Graduate Course CFD I January Least-Squares Spectral Element Methods

1. Let a(x) > 0, and assume that u and u h are the solutions of the Dirichlet problem:

S chauder Theory. x 2. = log( x 1 + x 2 ) + 1 ( x 1 + x 2 ) 2. ( 5) x 1 + x 2 x 1 + x 2. 2 = 2 x 1. x 1 x 2. 1 x 1.

Partial Differential Equations and the Finite Element Method

The continuity method

Wave Theory II (6) Finite Element Method

The Plane Stress Problem

ELLIPTIC PARTIAL DIFFERENTIAL EQUATIONS EXERCISES I (HARMONIC FUNCTIONS)

The Finite Element Method

The Mortar Boundary Element Method

Adaptive Finite Element Methods Lecture Notes Winter Term 2017/18. R. Verfürth. Fakultät für Mathematik, Ruhr-Universität Bochum

Graded Mesh Refinement and Error Estimates of Higher Order for DGFE-solutions of Elliptic Boundary Value Problems in Polygons

PARTITION OF UNITY FOR THE STOKES PROBLEM ON NONMATCHING GRIDS

LECTURE 1: SOURCES OF ERRORS MATHEMATICAL TOOLS A PRIORI ERROR ESTIMATES. Sergey Korotov,

Computational Methods for Engineering Applications II. Homework Problem Sheet 4

Chapter 3 Conforming Finite Element Methods 3.1 Foundations Ritz-Galerkin Method

Simple Examples on Rectangular Domains

Non-Conforming Finite Element Methods for Nonmatching Grids in Three Dimensions

DISCRETE MAXIMUM PRINCIPLES in THE FINITE ELEMENT SIMULATIONS

Math Tune-Up Louisiana State University August, Lectures on Partial Differential Equations and Hilbert Space

A Robust Preconditioner for the Hessian System in Elliptic Optimal Control Problems

Maximum norm estimates for energy-corrected finite element method

Lecture Note III: Least-Squares Method

1 Discretizing BVP with Finite Element Methods.

Basic Concepts of Adaptive Finite Element Methods for Elliptic Boundary Value Problems

FEniCS Course. Lecture 0: Introduction to FEM. Contributors Anders Logg, Kent-Andre Mardal

Projected Surface Finite Elements for Elliptic Equations

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Subdiffusion in a nonconvex polygon

Numerical Solutions to Partial Differential Equations

A brief introduction to finite element methods

Space-time Finite Element Methods for Parabolic Evolution Problems

[2] (a) Develop and describe the piecewise linear Galerkin finite element approximation of,

PDEs, part 1: Introduction and elliptic PDEs

Numerical Methods for Partial Differential Equations

LEAST-SQUARES FINITE ELEMENT MODELS

INTRODUCTION TO MULTIGRID METHODS

Lecture 8: Boundary Integral Equations

1. Introduction. We consider the model problem that seeks an unknown function u = u(x) satisfying

Introduction to the finite element method

MA 323 Geometric Modelling Course Notes: Day 07 Parabolic Arcs

Domain Decomposition Preconditioners for Spectral Nédélec Elements in Two and Three Dimensions

A Hybrid Method for the Wave Equation. beilina

Basic Principles of Weak Galerkin Finite Element Methods for PDEs

Block-Structured Adaptive Mesh Refinement

Chapter 1: The Finite Element Method

Building a finite element program in MATLAB Linear elements in 1d and 2d

Juan Vicente Gutiérrez Santacreu Rafael Rodríguez Galván. Departamento de Matemática Aplicada I Universidad de Sevilla

A simple FEM solver and its data parallelism

We denote the space of distributions on Ω by D ( Ω) 2.

Regularity for Poisson Equation

MULTIGRID PRECONDITIONING IN H(div) ON NON-CONVEX POLYGONS* Dedicated to Professor Jim Douglas, Jr. on the occasion of his seventieth birthday.

Mixed Hybrid Finite Element Method: an introduction

SINC PACK, and Separation of Variables

Numerical Analysis and Methods for PDE I

lecture 5: Finite Difference Methods for Differential Equations

Chapter 12. Partial di erential equations Di erential operators in R n. The gradient and Jacobian. Divergence and rotation

A non-standard Finite Element Method based on boundary integral operators

Algorithms for Scientific Computing

Math 660-Lecture 15: Finite element spaces (I)

TMA4220: Programming project - part 1

Final Ph.D. Progress Report. Integration of hp-adaptivity with a Two Grid Solver: Applications to Electromagnetics. David Pardo

A Balancing Algorithm for Mortar Methods

An Iterative Substructuring Method for Mortar Nonconforming Discretization of a Fourth-Order Elliptic Problem in two dimensions

Construction of `Wachspress type' rational basis functions over rectangles

Chapter 6 A posteriori error estimates for finite element approximations 6.1 Introduction

Numerical Solution I

MATHEMATICS Lecture. 4 Chapter.8 TECHNIQUES OF INTEGRATION By Dr. Mohammed Ramidh

The CG1-DG2 method for conservation laws

Lecture Notes: African Institute of Mathematics Senegal, January Topic Title: A short introduction to numerical methods for elliptic PDEs

Numerical Solutions of Partial Differential Equations

LECTURE 7, WEDNESDAY

Numerical Solutions to Partial Differential Equations

Local flux mimetic finite difference methods

A posteriori error estimation for elliptic problems

Overlapping Schwarz preconditioners for Fekete spectral elements

New Model Stability Criteria for Mixed Finite Elements

Chapter 6. Finite Element Method. Literature: (tiny selection from an enormous number of publications)

Elliptic Problems / Multigrid. PHY 604: Computational Methods for Physics and Astrophysics II

A finite difference Poisson solver for irregular geometries

Fast and accurate methods for the discretization of singular integral operators given on surfaces

Nodal O(h 4 )-superconvergence of piecewise trilinear FE approximations

Transcription:

Finite Elements January 15, 2018

Why Can solve PDEs on complicated domains. Have flexibility to increase order of accuracy and match the numerics to the physics. has an elegant mathematical formulation that lends itself to mathematical analysis and flexible code implementation.

This course In this course we blend theoretical analysis with computer implementation. 14 lectures + 3 tutorials (Dr Cotter) - assessed by examination (50%). 15 computer labs (Dr Ham) - assessed by coursework (50%) Dr Cotter Office Hour (Huxley 755): 5-6pm Tuesdays.

Introduction Definition (Poisson s equation in the unit square) Let Ω = [0, 1] [0, 1] be the unit square. For a given function f, we seek u such that ( ) 2 x 2 + 2 y 2 u := 2 u = f, u(0, y) = u(1, y) = 0, u y u (x, 0) = (x, 1) = 0. (1) y

Triangulation The finite element space that we shall use is defined on a triangulation. Definition Triangulation Let Ω be a polygonal subdomain of R 2. A triangulation T of Ω is a set of triangles {K i } N i=1, such that: 1. int K i K j =, i j, where int denotes the interior of a set. 2. K i = Ω, the closure of Ω. 3. No vertex of the interior of any triangle is located in the interior of any other triangle in T.

P1 Definition (P1 finite element space) Let T be a triangulation of Ω. Then the P1 finite element space is a space V h containing all functions v such that 1. v C 0 (Ω), 2. v Ki is a linear function for each K i T. We also define the following subspace, V h = {v V h : v(0, y) = v(1, y) = 0}. (2)

Definition (L 2 norm) For a real-valued function f on a domain Ω, with Lebesgue integral f (x) dx, (3) we define the L 2 norm of f, Ω ( 1/2 f L 2(Ω) = f (x) dx) 2. (4) Ω

Definition (L 2 ) We define L 2 (Ω) as the set of functions L 2 (Ω) = {f : f L 2(Ω) < }, (5) and identify two functions f and g if f g L 2 (Ω) = 0.

Example Consider the two functions f and g defined on Ω = [0, 1] [0, 1] with f (x, y) = { 1 x 0.5, 0 x < 0.5,, g(x, y) = { 1 x > 0.5, 0 x 0.5,. (6) Since f and g only differ on the line x = 0.5 which has zero area, then f g L 2 (Ω) = 0, and so f g in L 2.

Definition (Finite element derivative) The finite element partial derivative FE x i u of u is defined in L 2 (Ω) such that restricted to K i, we have FE u x i Ki = u x i. (7)

Exercise Let V h be a P1 finite element space for a triangulation T of Ω. For all u V h, show that the definition above uniquely defines FE u x i Exercise in L 2 (Ω). Let u C 1 (Ω). Show that the finite element partial derivative and the usual derivative are equal in L 2 (Ω).

Remark In view of this, in this section we will consider all derivatives to be finite element derivatives. In later sections we shall consider an even more general definition of the derivative which contains both of these definitions.

Towards the finite element discretisation Proceeding with the finite element discretisation, we assume that we have a solution u to Equation (1) that is smooth (i.e. u C 1 ). We take v V h, multiply by Equation (1), and integrate over the domain. Integration by parts in each triangle then gives ( ) v u dx vn u ds = vf dx, (8) K i K i i where n is the unit outward pointing normal to K i. Ω

Next, we consider each interior edge f in the triangulation, formed as the intersection between two neighbouring triangles K i K j. If i > j, then we label the K i side of f with a +, and the K j side with a. Then, denoting Γ as the union of all such interior edges, we can rewrite our equation as v u dx vn + u+vn u ds vn u ds = vf dx, Ω Γ (9) where n ± is the unit normal to f pointing from the ± side into the side. Since n = n +, the interior edge integrals vanish. Ω Ω

Further, on the boundary, either v vanishes (at x = 0 and x = 1) or n u vanishes (at y = 0 and y = 1), and we obtain v u dx = vf dx. (10) Ω The finite element approximation is then defined by requiring that this equation holds for all v V h and when we restrict u V h. Ω

Definition (Finite element approximation) The finite element approximation u h V h to the solution u of Poisson s equation is defined by v u h dx = vf dx, v V h. (11) Ω Ω

Some plots

Some plots

Some plots

Convergence of error

Several questions arise at this point. 1. Is u h unique? 2. What is the size of the error u u h? 3. Does this error go to zero as the mesh is refined? 4. For what types of functions f can these questions be answered? 5. What other kinds of finite element spaces are there? 6. How do we extend this approach to other PDEs? 7. How can we calculate u h using a computer? We shall aim to address these questions, at least partially, through the rest of this course. For now, we concentrate on the final question.

In this course we shall mostly concentrate on finite element methods for elliptic PDEs, of which Poisson s equation is an example, using continuous finite element spaces, of which P1 is an example. The design, analysis and implementation of finite methods for PDEs is a huge field of current research, and includes parabolic and elliptic PDEs and other PDEs from elasticity, fluid dynamics, electromagnetism, mathematical biology, mathematical finance, astrophysics and cosmology, etc. This course is intended as a starting point to introduce the general concepts that can be applied in all of these areas.

Definition (Nodal basis for P1) Let {z i } M i=1 indicate the vertices in the triangulation T. For each vertex z i, we define a basis function φ i V h by φ i (z j ) = δ ij := { 1 i = j, 0 i j. (12) We can define a similar basis for V h by removing the basis functions φ i corresponding to vertices z i on the Dirichlet boundaries x = 0 and x = 1.

If we expand u h and v in the basis for V h, u h (x) = i u i φ i (x), v(x) = i v i φ i (x), (13) into Equation (11), then we obtain v i φ i φ j dxv j φ i f dx = 0. (14) j Ω Ω i

Since this equation must hold for all v V h, then it must hold for all basis coefficients v i, and we obtain the matrix-vector system where K ij = Ω Ku = f, (15) φ i φ j dx, (16) u = (u 1, u 2,..., u M) T, (17) f = (f 1, f 2,..., f M )T, f i = φ i f dx. (18) The system is square, but we do not currently know that K is invertible. This is equivalent to the finite element approximation having a unique solution u h, which we shall establish in later sections. Ω

Putting solvability aside for the moment, the goal of the implementation sections of this course is to explain how to efficiently form K and f, and solve this system. For now we note a few following aspects that suggest that this might be possible. First, the matrix K and vector f can be written as sums over elements, K ij = φ i φ j dx, f i = φ i f dx. (19) K T K K T K For each entry in the sum for K ij, the integrand is composed entirely of polynomials (actually constants in this particular case, but we shall shortly consider finite element spaces using polynomials of higher degree).

This motivates our starting point in exposing the computer implementation, namely the integration of polynomials over triangles using quadrature rules. T This will also motivate an efficient way to construct derivatives of polynomials evaluated at quadrature points. Further, we shall shortly develop an interpolation operator I such that I f V h. If we replace f by I f in the approximations above, then the evaluation of f i can also be performed via quadrature rules.

Further, the matrix K is very sparse, since in most triangles, both φ i and φ j are zero. Any efficient implementation must make use of this and avoid computing integrals that return zero. This motivates the concept of global assembly, the process of looping over elements, computing only the contributions to K that are non-zero from that element. Finally, the sparsity of K means that the system should be solved using numerical linear algebra algorithms that can exploit this sparsity.