PDE & FEM TERMINOLOGY. BASIC PRINCIPLES OF FEM.

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

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

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

Variational Formulations

Numerical Solutions to Partial Differential Equations

DISCRETE MAXIMUM PRINCIPLES in THE FINITE ELEMENT SIMULATIONS

Simple Examples on Rectangular Domains

Chapter 1: The Finite Element Method

A very short introduction to the Finite Element Method

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

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

Numerical Solutions to Partial Differential Equations

Chapter 5 A priori error estimates for nonconforming finite element approximations 5.1 Strang s first lemma

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

INTRODUCTION TO FINITE ELEMENT METHODS

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

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

The maximum angle condition is not necessary for convergence of the finite element method

On angle conditions in the finite element method. Institute of Mathematics, Academy of Sciences Prague, Czech Republic

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

On an Approximation Result for Piecewise Polynomial Functions. O. Karakashian

Second Order Elliptic PDE

Chapter 2 Finite Element Spaces for Linear Saddle Point Problems

Chapter 1 Foundations of Elliptic Boundary Value Problems 1.1 Euler equations of variational problems

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

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

An a posteriori error estimate and a Comparison Theorem for the nonconforming P 1 element

Finite Element Method for Ordinary Differential Equations

1 Discretizing BVP with Finite Element Methods.

A Mixed Nonconforming Finite Element for Linear Elasticity

Finite Element Methods for Fourth Order Variational Inequalities

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

A WEAK GALERKIN MIXED FINITE ELEMENT METHOD FOR BIHARMONIC EQUATIONS

PREPRINT 2010:25. Fictitious domain finite element methods using cut elements: II. A stabilized Nitsche method ERIK BURMAN PETER HANSBO

A brief introduction to finite element methods

Numerical Methods for the Navier-Stokes equations

Construction of `Wachspress type' rational basis functions over rectangles

From Completing the Squares and Orthogonal Projection to Finite Element Methods

Numerical Methods for Partial Differential Equations

FINITE ELEMENT METHODS

Finite difference method for elliptic problems: I

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

Approximation in Banach Spaces by Galerkin Methods

Lecture Note III: Least-Squares Method

Maximum norm estimates for energy-corrected finite element method

Solutions of Selected Problems

CONVERGENCE THEORY. G. ALLAIRE CMAP, Ecole Polytechnique. 1. Maximum principle. 2. Oscillating test function. 3. Two-scale convergence

WEAK GALERKIN FINITE ELEMENT METHODS ON POLYTOPAL MESHES

On the equivalence of regularity criteria for triangular and tetrahedral finite element partitions

Hamburger Beiträge zur Angewandten Mathematik

Solution of Non-Homogeneous Dirichlet Problems with FEM

SPECTRAL PROPERTIES OF THE LAPLACIAN ON BOUNDED DOMAINS

SUPERCONVERGENCE PROPERTIES FOR OPTIMAL CONTROL PROBLEMS DISCRETIZED BY PIECEWISE LINEAR AND DISCONTINUOUS FUNCTIONS

A Finite Element Method for an Ill-Posed Problem. Martin-Luther-Universitat, Fachbereich Mathematik/Informatik,Postfach 8, D Halle, Abstract

1. Subspaces A subset M of Hilbert space H is a subspace of it is closed under the operation of forming linear combinations;i.e.,

Weak Convergence Methods for Energy Minimization

NUMERICAL PARTIAL DIFFERENTIAL EQUATIONS

Numerical Solutions to Partial Differential Equations

HIGHER ORDER FINITE-ELEMENT MODELLING FOR CURVED INTERFACE PROBLEMS BASED ON STRAIGHT- EDGED N-SIMPLEXES AND POLYNOMIAL ALGEBRA

The following definition is fundamental.

2. Dual space is essential for the concept of gradient which, in turn, leads to the variational analysis of Lagrange multipliers.

Lecture Notes 1: Vector spaces

arxiv: v1 [math.na] 29 Feb 2016

Numerical Analysis and Methods for PDE I

b i (x) u + c(x)u = f in Ω,

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

Functional Analysis. Franck Sueur Metric spaces Definitions Completeness Compactness Separability...

One-dimensional and nonlinear problems

Weak Formulation of Elliptic BVP s

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

The Mortar Boundary Element Method

Boundary Value Problems and Iterative Methods for Linear Systems

Scientific Computing I

Existence of minimizers for the pure displacement problem in nonlinear elasticity

Numerische Mathematik

arxiv: v1 [math.na] 27 Jan 2016

Variational Principles for Equilibrium Physical Systems

Numerical Solution I

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

Cambridge University Press The Mathematics of Signal Processing Steven B. Damelin and Willard Miller Excerpt More information

PARTITION OF UNITY FOR THE STOKES PROBLEM ON NONMATCHING GRIDS

Weak Solutions, Elliptic Problems and Sobolev Spaces

Iterative Methods for Linear Systems

Mixed Hybrid Finite Element Method: an introduction

DIFFERENTIAL EQUATIONS

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

WELL POSEDNESS OF PROBLEMS I

PDEs, part 1: Introduction and elliptic PDEs

Linear Algebra. Session 12

2 Elliptic Differential Equations

Traces, extensions and co-normal derivatives for elliptic systems on Lipschitz domains

Numerical Solution of Partial Differential Equations

Algorithms for Scientific Computing

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

Chapter 1. Preliminaries. The purpose of this chapter is to provide some basic background information. Linear Space. Hilbert Space.

Auerbach bases and minimal volume sufficient enlargements

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Algebraic Methods in Combinatorics

Fact Sheet Functional Analysis

Theory of PDE Homework 2

Transcription:

PDE & FEM TERMINOLOGY. BASIC PRINCIPLES OF FEM. Sergey Korotov Basque Center for Applied Mathematics / IKERBASQUE http://www.bcamath.org & http://www.ikerbasque.net 1

Introduction The analytical solution of problems described by partial differential equations (PDEs) is known only in a few cases on special domains (like balls, cubes, half-spaces, etc). It is often necessary to use some numerical methods to get an approximation of this solution. One of the most powerful numerical methods for solving PDEs is the Galerkin method. The standard finite element method (FEM) is, roughly speaking, the Galerkin method with a special choice of basis functions. 2

The FEM has been developed during last 70 years. The discovery of FEM is usually attributed to Richard Courant [Courant, 1943]. However, in [Ciarlet, Lions] we can find some older references to finite element-like methods. The first monograph on FEM is probably that of Synge [Synge] of 1957. The notion element was introduced in the 1950-th by aerospace engineers performing elasticity computations as they devided a continuum into small pieces called elements. The notion finite element was introduced by mathematicians later, in the 1960-th. From that time the theory of FEM has also been rigorously investigated. R. Courant. Variational methods for problems of equilibrium and vibration. Bull. Amer. Math. Soc. 49 (1943), 1 23. P. G. Ciarlet, J. L. Lions (eds.). Handbook of Numerical Analysis. Vol. II Finite element methods. North-Holland, Amsterdam, 1991. J. L. Synge. The Hypercircle in Mathematical Physics. Cambridge Univ. Press, Cambridge, 1957. 3

Nowadays FEM seems to be one of the most efficient numerical methods for solving problems of mathematical physics which are based on variational principles. One may solve by FEM some variational problems which do not correspond to any PDEs (e.g. the obstacle problem). Moreover, FEM enables perfect description of the examined domain, which was not possible by classical numerical methods (such as the collocation method, finite difference method, etc.). 4

The flow-chart of numerical simulation: No Continue with analytical (non computer) methods of solution A physical problem to be solved Set up mathematical description of the problem (mathematical problem) Is a computer solution to be considered? Yes Establish mathematical model into form suitable for numerical solution Perform discretization and solve the resulting discrete problem Check correctness of numerical results There are many ways how to set up a mathematical model and then design it into a form suitable for numerical solution. In our case it will be so that we give a variational formulation of the problem in an appropriate function space: We want to find a function minimizing a convex functional over a closed set of admissible functions. The basic idea of the discretization will consist then in transforming the problem formulated in function spaces with infinite dimension into appropriate problems in finite-dimensional spaces. 5

First we shall remind a variational (weak) formulation of problems described by second order PDEs of elliptic type with some boundary conditions. This formulation is useful in explaining the mathematical background of FEM and is based on the theory of Sobolev spaces. Sobolev spaces are extensions of spaces of differentiable functions in the classical sense. Such extensions are natural as the solution of a variational problem usually does not have the classical derivatives. 6

Model Problem In a bounded domain with a Lipschitz boundary, consider the following second order PDE for the unknown function u C 2 (): d i,j=1 x i ( ) u a ij +cu = f. x j Here c,f C() and the matrix A = (a ij ) (C 1 ()) d d are given. We further assume that a ij = a ji, i,j = 1,...,d, c(x) 0, x, and that there is a constant M > 0 such that d i,j=1 a ij (x)ξ i ξ j M d ξi 2 (ξ 1,...,ξ d ) T R d, x. i=1 The above assumptions ensure that our model problem is elliptic. 7

Three (standard) types of boundary conditions characterizing the (homogeneous) Dirichlet, Neumann and Newton classical problem: u = 0 on, n A u = 0 on, αu+ n A u = 0 on. Here α = α(s) 0 on is continuous, n A u = d i,j=1 a ij u x j n i = n T Agradu denotes the conormal derivative, n i are the components of the unit outward normal to and n A = An is the conormal. The vector function Agradu on is said to be the cogradient and the scalar function n T Agradu the boundary flux. 8

The model PDE with one of the above boundary conditions represents the so-called boundary value problem (BVP) (classically formulated). The function u C 2 () satisfying the PDE and the associated boundary condition is called the classical solution. Such BVP may describe a stationary magnetic, electric, or temperature fields, etc. The coefficients a ij describe physical properties of the medium. If a ij are constants (i.e., independent of x), we call the medium homogeneous (otherwise nonhomogeneous). If a ii (x) = a 11 (x) for i = 2,...,d, and a ij (x) = 0 for i j, the medium is said to be isotropic (otherwise anisotropic). If A is only diagonal, the medium is orthotropic. In real-life problems the coefficients a ij, c, α are often nonsmooth (they are, e.g., piecewise constant) and we cannot use the equation as it stands, since the classical derivatives in it need not exist. This is why we introduce a weak formulation of the classical problems, which enables us to consider also nonsmooth coefficients and/or nonsmooth f. 9

Consider e.g. the Newton classical problem and introduce the space of test functions V := H 1 (). Multiplying the PDE by an arbitrary test function v V and integrating over we get i,j x i ( ) u a ij vdx+ cuvdx = x j fvdx. Employing now Green s formula, we find that i,j u v u a ij dx a ij n i vds+ cuvdx = x j x i x j i,j fvdx. Using further the boundary condition, we obtain that i,j u v a ij dx+ cuvdx+ αuvds = x j x i fvdx v V. 10

We see that any classical solution of the Newton problem (if it exists) satisfies the equation i,j u v a ij dx+ cuvdx+ αuvds = x j x i fvdx v V. ( ) Let us observe that the integrals in above are well defined even when a ij, c L (), α L ( ), f L 2 (), and when prescribed conditions on the coefficients hold almost everywhere (a.e.) in only. When introducing the space of test functions V we started to use implicitly the concept of completion. Instead of looking for u C 2 () satisfying the PDE and the boundary condition, we shall solve the integral form equation ( ). Its solution will be searched in the Hilbert space H 1 (), which is, of course, complete and bigger than C 2 (). This allows us to employ some useful results from functional analysis (e.g. Lax-Milgram lemma) and apply the finite element method. 11

Weak Solution The function u H 1 () is called the weak (or generalized) solution of the Newton problem if i,j u v a ij dx+ cuvdx+ αuvds = x j x i fvdx v V. ( ) For convenience the weak solution is denoted by u as the classical solution. Note that the classical solution from C 2 () need not exist. However, if it does exist, it is also the weak solution. Notice further that the weak formulation ( ) contains only the first (generalized) derivatives of u which may be advantageous for approximation. 12

In order to establish under what conditions the problem posed in a weak form has a unique solution in the Sobolev space H 1 (), we recall some definitions and present two abstract theorems. Let V be a linear space. A mapping a(, ) : V V R 1 is called a bilinear form, if for any fixed v V the mappings a(v, ) : V R 1 and a(,v) : V R 1 are linear. If, in addition, a(v,w) = a(w,v) v,w V, the bilinear form a(, ) is said to be symmetric. 13

Theorem 1: Let V be a Banach space equipped with the norm V and let F : V R 1 be a continuous linear form. Let a(, ) : V V R 1 be a symmetric and continuous bilinear form, i.e., there exists C 1 > 0 such that a(v,w) C 1 v V w V v,w V. Moreover, we suppose that there exists C 2 > 0 such that a(v,v) C 2 v 2 V v V (V-ellipticity condition). Then the problem: Find u V such that a(u, v) = F(v) v V (variational equality) has one and only one solution. 14

P r o o f : Due to the symmetry of a(, ) and V-ellipticity, the bilinear form a(, ) is a scalar product on V since a(v,v) = 0 implies v = 0. The corresponding norm a(, ) is, obviously, equivalent to the given norm V. Thus V equipped with the scalar product a(, ) is a Hilbert space. Since F( ) is a continuous linear form, there exists by the Riesz representation theorem a unique element u = u F V such that F(v) = a(u F,v) v V. 15

Theorem 2: Let all the assumptions of the previous theorem be fulfilled. Then the problem: Find u V such that a(u,v) = F(v) v V, is equivalent to the problem: Find u V such that where J(u) = inf v V J(v), J(v) = 1 2 a(v,v) F(v). 16

Functional J(v) = 1 a(v,v) F(v) is called the energy functional. 2 Norm a(, ) (equivalent to V -norm) is called the energy norm. To apply Theorem 1 to the weak formulation ( ) we set a(v,w) = V = H 1 (), v w a ij dx+ cvwdx+ x j x i i,j F(v) = fvdx, v V αvwds, v,w V, and verify whether all the assumptions of the theorem are fulfilled. 17

Useful Inequalities Let be a bounded domain with a Lipschitz boundary and let v,w H 1 (). Then v L 2 ( ), v L 2 ( ) C v H 1 () (trace theorem), v wdx+ v w dx = x j x j vwn j ds (Green s formula), 18

v H 1 () C ( d ( v j=1 x j ) 2 dx+ 0 v 2 ds )1 2 (Friedrichs inequality), where 0 is such that meas 0 > 0, v H 1 () C ( d ( v j=1 x j ) 2 dx+ B v 2 dx)12 (X), where B is a ball, v H 1 () C ( d ( v j=1 x j ) 2 dx+( vdx) 2 )12 (Poincaré s inequality). For the proof, see [Dautray, Lions, vol. 2], [Nečas, 1967]. 19

V is a Hilbert space. a(v,w) = i,j v w a ij dx+ cvwdx+ αvwds, v,w V, x j x i F(v) = fvdx, v V The linearity of F( ) and bilinearity of a(, ) are obvious. The continuity of F( ) follows immediately from the Cauchy-Schwarz inequality F(v) = as 0, 1,. fvdx f 0, v 0, f 0, v 1, 20

a(v,w) = i,j v w a ij dx+ cvwdx+ αvwds, v,w V, x j x i The bilinear form is symmetric as a ij = a ji and continuous as: d a(v,w) a ij L () v w x i 0, x j i,j=1 0, + c L () v 0, w 0, + α L ( ) v L 2 ( ) w L 2 ( ) C v 1, w 1,, where we used the trace theorem and the relation d v 2 1, = v 2 0, + v 2 x j j=1 0,. 21

What remains is to prove the V-ellipticity condition for a(v,w) = i,j v w a ij dx+ cvwdx+ αvw ds, x j x i Suppose that α(x) α 0 > 0 on some part 0 which has a positive measure. Then we can use Friedrichs inequality, and get a(v,v) M d ( ) 2 v dx+α 0 i=1 x i 0 v 2 ds C v 2 1,. So, in this case the variational problem ( ) has a unique solution by virtue of Theorem 1. 22

Another situation. a(v,w) = i,j v w a ij dx+ cvwdx+ αvw ds, x j x i Let now c(x) c 0 > 0 on a ball B. Then we get the V-ellipticity in a view of inequality (X): a(v,v) M d ( ) 2 v dx+c 0 i=1 x i B v 2 dx C v 2 1,, which gives the existence of just one solution u V. 23

We can show that the weak solution of ( ) belonging to C 2 () is also the classical solution of the Newton problem. If c = 0 in and simultaneously α = 0 on then we get the so-called Neumann problem, which requires a special treatment (not to be considered now). We can similarly handle the Dirichlet problem. For the space of test functions, we choose V = H 1 0() = { v H 1 () v = 0 on }. Now from Friedrichs inequality we immediately find that the associated symmetric bilinear form a(v,w) = i,j v w a ij dx+ cvwdx, v,w V, x j x i fulfils the V-ellipticity condition. 24

Consider now the nonhomogeneous mixed boundary conditions: u = ū on Γ 1, n A u = g on Γ 2, αu+ n A u = g on Γ 3, where ū H 1 (), g L 2 (Γ 2 Γ 3 ), α L (Γ 3 ), α 0, Γ 1,Γ 2,Γ 3 are mutually disjoint and are open sets in (one or two of them may be empty), Γ 0 Γ 1 Γ 2 Γ 3 =, and Γ 0 (meas Γ 0 = 0) is a set of those points where one type of boundary condition changes into another. 25

In order to apply the FEM later, we shall assume from now on that each set Γ i (i = 1,2,3) has a finite number of components. Let the space of test functions be chosen as follows: V = {v H 1 () v = 0 on Γ 1 }. 26

If the problem with the above mixed boundary conditions is not purely Neumann with c = 0 then the corresponding variational formulation consists in finding u = u 0 +ū, where u 0 V satisfies a(u 0,v) = F(v) v V, and where v w a(v,w) = a ij dx+ cvwdx x j x i i,j + αvwds, v,w V, Γ 3 F(v) = fvdx+ gvds a(ū,v), v V. Γ 2 Γ 3 The desired V-ellipticity condition follows again from Friedrichs inequality or (X). Note that it may be sometimes difficult to find ū H 1 () with prescribed values on Γ 1. 27

Lax-Milgram Lemma Sometimes we need to solve an elliptic problem whose associated bilinear form a(, ) is not symmetric. Then, instead of Theorem 1, the following theorem (often called Lax-Milgram lemma in the numerical analysis) is applied. Theorem 3: Let V be a Hilbert space, let a(, ) : V V R 1 be a continuous V-elliptic bilinear form and let F : V R 1 be a continuous linear form. Then the problem: Find u V such that a(u,v) = F(v) v V, has one and only one solution. If a(, ) is not symmetric then there is no associated minimization problem as in Theorem 2. 28

Basic Idea of FEM Now we shall show how to construct finite element subspaces V h of V. The FEM in its simplest setting is a Galerkin method characterized by the following basic aspects in the construction of V h : (i) a triangulation T h is established over the domain, (ii) the functions v h V h are piecewise polynomials, (iii) there exists a basis in V h whose functions have small supports. The so-called discretization parameter h is associated with a characteristic size of triangulations used - it will be defined more precisely later. 29

Let now V h be an arbitrary finite-dimensional subspace of V. Then the Galerkin method for approximating the solution of the problem: Find u V such that a(u,v) = F(v) v V, consists of finding u h V h such that a(u h,v h ) = F(v h ) v h V h. ( ) Applying Lax-Milgram lemma, we observe that this problem has one and only one solution u h, which we shall call the discrete solution. 30

When a(, ) is symmetric, the discrete solution is also characterized by the property (see Theorem 2) where J(u h ) = inf v h V h J(v h ), J(v) = 1 2 a(v,v) F(v). This definition of discrete solution is known as the Ritz method. Note that J(u) J(u h ), since V h V. 31

Obviously, we have the following orthogonality relation a(u u h,v h ) = 0 v h V h, which means that the error u u h is orthogonal to V h with respect to the scalar product a(, ). This orthogonality relation implies that u h is the projection of u on V h with respect to a(, ) and that a(u u h,u u h ) = inf v h V h a(u v h,u v h ), i.e. the Ritz method yields the best approximation with respect to the energy norm. 32

Let a(, ) be not necessarily symmetric. And let {v i } m i=1 be basis in V h. We shall look for the discrete solution u h as a linear combination u h = m c j v j. j=1 Then by ( ) it is true that ( m ) a c j v j,v i = F(v i ), i = 1,...,m. j=1 This finally leads to the following system of algebraic equations: m a j=1 ( v j,v i) c j = F(v i ), i = 1,...,m, ( ) for the unknowns c 1,...,c m. 33

The matrix A = ( a(v j,v i ) ) m and the vector ( F(v i ) ) m are often i,j=1 i=1 called (by reference to elasticity problems) the stiffness matrix and the load vector, respectively. We prove that A is nonsingular. From the bilinearity of a(, ) and the V-ellipticity condition we have (Aξ,ξ) = ( a(v j,v i )ξ i ξ j = a ξ j v j, ) ξ i v i = a(v,v) i,j j i C 2 v 2 V > 0 ξ = (ξ 1,...,ξ m ) T R m, ξ 0, where v = ξ i v i, and v 0 since {v i } is a basis and ξ 0. Hence, the i homogeneous equation Aξ = 0 cannot have a nontrivial solution ξ 0. 34

The discrete solution u h is obviously independent of basis functions v 1,...,v m V h, whereas the structure of A depends considerably on v 1,...,v m. Thus, concerning the choice of the basis {v i }, it is very important from the numerical point of view that the matrix A possesses as many zero entries as possible. For instance, if the intersection of the supports of basis functions v p and v q has zero measure then a(v p,v q ) = 0. That is why the condition (iii) is required. It may even happen that a(v p,v q ) = 0, p q, though the intersection of supports has a positive measure. Thus according to (iii), only a few entries (more precisely O(m) entries) of the m m stiffness matrix A remain different from zero, i.e., A is sparse. Hence, we need less computer memory and fewer arithmetic operations to solve ( ) than for full matrices which arise, in general, from the classical Galerkin method. 35

In order to introduce some typical V h, we first establish a triangulation T h over domain, i.e., we subdivide the set into a finite number of subsets K (called elements) in such a way that the following properties hold: (1) = K T h K, (2) for each K T h, the set K is closed and its interior K 0 is non-empty, (3) for each distinct K 1,K 2 T h, one has K 0 1 K 0 2 =, (4) for each K T h, the boundary K is the Lipschitz one. Later we shall give further assumptions on T h. The discretization parameter h is the maximum diameter of all K T h. Note that there is a certain ambiguity in the meaning of T h as for a given sufficiently small h there may exist many different triangulations T h. Nevertheless, we will keep this often used notation. Sometimes T h is called a partition or a decomposition of into elements. From now on we shall write H k (K) instead of H k (K 0 ) for simplicity. 36

In what follows we shall construct finite element spaces V h consisting of piecewise polynomial functions over T h. An important property of such spaces is given in the following theorem. Theorem 4: Let T h be a triangulation (decomposition) of formed by convex elements. Let V h be a subspace of L 2 () such that the space P K = {v h K v h V h } consists of polynomial functions for any K T h. Then V h H 1 () iff V h C(), i.e. a piecewise polynomial function is from H 1 () iff it is continuous. 37

P r o o f : So let V h H 1 () and let there exist a function v h V h which is not continuous. Then there exist two adjacent elements K 1, K 2 T h and an open ball B K 1 K 2 such that B S and v h K1 > v h K2 on B S, where S = K 1 K 2. Let w C 0 () be a hill function such that w(x) > 0 x B and w(x) = 0 x \B. Denote by n j = (n j 1,...,nj d )T the outward unit normal to K j, j = 1,2. We see that S is contained in a hyperplane of R d as K 1 and K 2 are convex. Therefore n j is constant on S and there exists i {1,...,d} such that n 1 i 0. 38

Now, referring to Green s formula, we arrive at 0 = = = v h w wdx+ v h dx = x i x i 2 ( j=1 K j v h x i wdx+ 2 ( w v h dx+ v h Kj wn j i j=1 K j x ds+ i K j ) (v h K1 v h K2 wn 1 i ds = n 1 i S B S ) w v h dx K j x i ) w v h dx K j x i (v h K1 v h K2 )wds. But this is a contradiction, since n 1 i 0 and the last integral is positive due to our assumptions upon w and the piecewise polynomial function v h. 39

Conversely, let v h V h be continuous. Then evidently v h L 2 () and we show that it has also the first generalized derivatives in L 2 (). Since any K has a Lipschitz boundary and P K H 1 (K) for all K T h, we may apply Green s formula for i {1,...,d} to get v h w wdx+ v h dx = v h K wn K i ds w C0 (), ( ) x i x i K K K where n K i is the ith component of the unit outward normal to K. Let z i L 2 () be defined through the relation z i K = v h x i, K T h. 40

Summing ( ) over all the elements K T h, we obtain z i w wdx+ v h dx = v h K wn K i ds. x i K T h We see, however, that the sum vanishes. Either a portion of K is a portion of the boundary, where w = 0, or the contribution of any two adjacent elements K,K T h is zero as n K +n K = 0. Hence, z i w wdx = v h dx w C0 () x i and the functions z i, i = 1,...,d, are the first generalized derivatives of v h. Thus we may write z i = v h / x i in the whole. K 41

The theorem can be also modified to the case when P K contains generally nonpolynomial functions from C(K) H 1 (K) and for nonconvex elements. This may be useful to construct some more complicated spaces of finite elements. Suppose further that in the case d 2 elements of T h are convex polygons or polyhedra, which is fulfilled quite often. Then is, of course, a polygon or polyhedron. We add two more assumptions upon T h : (5) any face of any K T h is either a subset of the boundary, or a face of another element K T h, (6) the interior of any face of any K T h is disjoint with Γ 0, where Γ 0 is a set of those points where one type of boundary condition changes into another. 42

Remark: For any generally nonconvex polygon (polyhedron) there exists a triangulation T h satisfying (1) (5) such that all the elements K T h are triangles (tetrahedra). Construction can be done as follows. Let S 1,...,S q be faces of and let L 1,...,L q be straight lines (planes) such that S j L j. First show that components of the set \ q j=1 Lj are convex. Then cut these components into simplexes so that (5) holds. 43

Finite Elements The following general definition of the finite element will be used to construct finite element spaces V h. Definition: The finite element is a triple (K,P,Σ), where: (I) K is a closed subset of R d with a non-empty interior and a Lipschitz boundary, (II) P is a space of real-valued functions defined over the set K, (III) Σ is a finite set of linearly independent linear forms Φ i, 1 i N, defined over the space P (or over a space which contains P). 44

The set Σ is said to be P-unisolvent if for any real scalars α i, 1 i N, there exists a unique function p P which satisfies Φ i (p) = α i, 1 i N. Consequently, if Σ is P-unisolvent then there exist functions p i P, 1 i N, which satisfy Φ j (p i ) = δ ij, 1 j N, where δ ij is Kronecker s symbol. Since p P p = N Φ i (p)p i, i=1 we have dimp = N. The linear forms Φ i, 1 i N, are called the degrees of freedom of the finite element, and the functions p i, 1 i N, are called the basis functions of the finite element. 45

In what follows we introduce several examples of the most used finite elements, where K will be a convex set of a simple form and P a space of polynomials. Functions from P are sometimes called ansatz-functions. The space of all polynomials of degree at most k defined on K is denoted by P k (K). We introduce only some lower order elements, since the use of higher order elements requires certain higher smoothness of the true solution, which is usually not present in practical problems. 46

Linear simplicial element The set K is a d-simplex, the space P = P K is the space P 1 (K) of linear functions p(x 1,...,x d ) = γ 0 +γ 1 x 1 +...+γ d x d, γ i R 1, dimp 1 (K) = d+1. A 3 A 4 A 3 A A A A 1 2 1 2 A 1 A 2 47

The set of degrees of freedom Σ = Σ K consists of the forms Φ i (p) = p(a i ), 1 i d+1, p P 1 (K), where A 1,...,A d+1 are the vertices of K. For the sake of simplicity we shall write only symbolically Σ K = {p(a i ), 1 i d+1}. 1 A 3 p 1 1 p 1 A 1 A 2 A 1 A 2 In the case d = 2, this element is also known as Courant s triangle (element). The first basis function p 1 is sketched above for d = 1,2. 48

Quadratic simplicial element K is again a d-simplex, P K = P 2 (K) is the space of quadratic functions p(x 1,...,x d ) = γ 0 + d γ i x i + γ ij x i x j, γ i,γ ij R 1, i=1 1 i j d and Σ K = {p(a i ), 1 i d+1; p(a ij ), 1 i < j d+1}, where A i are the vertices of K and A ij = 1 2 (A i +A j ), 1 i < j d+1, are the midpoints of the edges of the d-simplex K: 49

A 3 A 34 A 4 A 13 A A A A A 1 A 12 2 1 12 A 23 2 A 3 A 13 A 1 A A 14 A 23 12 A 24 A 2 We may easily check that dimp 2 (K) = 1 2 (d+1)(d+2). 50

Two figures in below show two qualitatively different types of basis functions of the quadratic element for d = 1 and d = 2, respectively: 51

Bilinear and trilinear rectangular elements Here K is a d-rectangle, P K = Q 1 (K) is the space of d-linear functions p(x 1,...,x d ) = γ q1...q d x q 1 1...x q d d, γ q1...q d R 1 0 q i 1,1 i d (for d = 2 and d = 3 these functions are called bilinear and trilinear polynomials, respectively), dimq 1 (K) = 2 d and { Σ K = p(a i ), 1 i 2 d}, where A i are the vertices of K. A 4 A 3 A 5 A 84 7 A 6 A A 1 A 2 A 4 A 3 A 1 A 2 52

Prismatic element The set K is a prismatic domain. The space P K is the tensor product of the space P 1 in variables x 1,x 2 by the space Q 1 in the variable x 3, i.e. dim P K = 6 and P K consists of polynomials of the form p(x 1,x 2,x 3 ) = γ 0 +γ 1 x 1 +γ 2 x 2 +γ 3 x 3 +γ 4 x 1 x 3 +γ 5 x 2 x 3, γ i R 1, and Σ K = {p(a i ), 1 i 6}, where A i are again the vertices of K. A 4 A 6 A 5 x 3 A 1 A 3 x 1 x 2 A 2 53

All the previous elements are called Lagrange finite elements since the degrees of freedom are of the form p p(a), A K. The point A is then called the node. These elements are P K -unisolvent, i.e, given any (α 1,...,α N ) T R N there exists just one polynomial p P K such that, for all the nodes A 1,...,A N, p(a i ) = α i holds. If at least one directional derivative occurs as a degree of freedom, the associated finite element is said to be a Hermite finite element. 54

As an example we introduce the Hermite cubic element which is also P K -unisolvent. Here K is a triangle, P K = P 3 (K) is the space of cubic polynomials, and { Σ K = p(a i ), p x 1 (A i ), } p (A i ), i = 1,2,3 ; p(g) x 2 where A i are the vertices of K and G is its centre of gravity., A 3 G A 1 A 2 55

Some other types of degrees of freedom often used in FEM: Φ(p) = p (A) normal derivative n Φ(p) = (D i p)(a), i 1 higher order derivative Φ(p) = K p(x)dx integral over the element K Φ(v) = n 1 v 1 (A)+ +n d v d (A) normal component of vector-function(v 1,...,v d ) T Note that, in engineering literature, the degrees of freedom of a finite element are sometimes called parameters. 56

Finite Element Spaces We shall give now a description of a finite element space generated by Lagrange elements (K,P K,Σ K ), K T h. The sets of degrees of freedom of adjacent finite elements will be related as follows: Whenever (K l,p Kl,Σ Kl ) with Σ Kl = {p(a l i), 1 i N l }, l = 1,2, are two adjacent finite elements, then ) {A 1 i} ( N1 K 2 = ) {A 2 i} ( N2 K 1. i=1 i=1 Let us denote this set by N S, where S = K 1 K 2. 57

Note that the situation in below cannot occur due to property (5). K 2 K 1 When we want to joint adjacent finite elements, we moreover need that {p 1 S p 1 P K1 } = {p 2 S p 2 P K2 }. We denote this space by P S. Finally suppose that if p P S and p(a) = 0 for all A N S, then p = 0 on S. 58

Let us define the set N h = K T h N K, where, for each finite element (K,P K,Σ K ), the symbol N K denotes the set of nodes. The associated finite element space X h is then given by X h = {v h C() v h K P K K T h }. Therefore a function in the space X h is uniquely determined by the set Σ h = {v(a), A N h }, which is called the set of degrees of freedom of the finite element space X h. Given values at nodal points, we always get a continuous function. 59

An example of function from X h defined by the linear finite elements for d = 2. 60

According to Theorem 4 and the consistency condition (6) we define finite element subspaces of the space by V = {v H 1 () v = 0 on Γ 1 }. V h = {v h X h v h (A) = 0 for A N h Γ 1 } V. It is really a subspace of V, as v h = 0 on Γ 1, by our assumptions. 61

To guarantee the requirement (iii) we choose the basis {v i } m i=1 V h v i (A j ) = δ ij, where m = dimv h, i,j = 1,...,m, A i N h, and A i Γ 1. 1 0 1 62

Let for example d = 1, = (0,1), a(v,w) = ( v x, w ), v,w H0(), 1 x 0, and 0 < A 1 < A 2 < < A m < 1. Then a(v i,v j ) = ( v i x, vj x ) 0,suppv i suppv j and the standard Courant basis functions yield a(v i,v j ) = 0 whenever i j > 1. Thus we see that the matrix A = (a(v i,v j )) m i,j=1 is only tridiagonal. For d > 1 the nodes can be numbered so that A is a band matrix. 63

When is piecewise curved, there are several ways of constructing finite element spaces. One way is to generate them by the so-called isoparametric (curved) elements. Note that a curved element, K need not be convex and P K may be formed e.g. by rational functions. K Another way is to approximate by a polygonal (polyhedral) domain h and then to extend finite element functions from h to the whole in an appropriate manner. 64

Consider for instance a bounded plane domain with a Lipschitz boundary which consists of a finite number of smooth convex and concave arcs. h The sides of h are chords or tangents of convex or concave arcs, respectively. The points of inflexion of coincide with some vertices of h. 65

For such a polygon h there is a triangulation T h consisting of triangles such that the maximum length of all their sides equals h. Let us define the space of continuous piecewise linear functions as follows V h = {v h C() v h K P 1 (K) K T h, v h \h = 0}. We see now that V h is entirely contained in the space of test functions V = H0() 1 for the homogeneous Dirichlet problem. Note that in the case of the mixed boundary conditions, the parts Γ 2 and Γ 3 need not be approximated by polygonal curves and we still have V h V. 66

When V h V, and when the bilinear and linear form of the discrete problem are identical to the original ones, the finite element method is said to be conforming. That was the case before. h A nonconforming method arises when V h V or when e.g. some numerical integration is used. Figure in above shows another manner of boundary approximation which is often used in practice and which also yields V h V. A nonconforming method is also obtained when the function u H 1 () from the Dirichlet boundary condition is approximized by a piecewise polynomial continuous function. 67