Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Abstract setting
Definition.Alinear variational problemreads as
findu∈V:a(u,v)=l(v),∀v∈V(V)
where V is a vector space, a:V×V→R is a bilinear form and ℓ:V→R is a linear form.
Remark. More generally, u∈V~, where V is an affine space.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Abstract setting
Definition.A symmetric bilinear form a:V×V→R on a real vector space V ispositive definiteif
a(u,u)>0,∀u∈V∖{0}.
Definition.A symmetric positive definite bilinear form a:V×V→R induces theenergy norm
∥u∥a≐a(u,u)1/2.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Abstract setting
Definition. Continuity of (bi)linear forms.Given a vector space V with norm ∥⋅∥, a linear form ℓ:V→R iscontinuous or bounded if
∃C>0:∣ℓ(v)∣≤C∥v∥,∀v∈V.
A bilinear form a:V×V→R is continuous if
∃K>0:∣a(u,v)∣≤K∥u∥∥v∥,∀u,v∈V.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Abstract setting
Theorem. Existence and uniqueness of a minimiser in finite dimension.If the space V in (M) has finite dimension and involves a positive definite symmetric bilinear form a and a continuous functional ℓ, there exists a unique solution for this problem.
Remark. Under finite dimensionality, the variational form can be recast into a solvable square linear system.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
In infinite dimensions:
Choice of functional space V for solution of (M) is critical
In general, we seek the largest V for which
a has sense (i.e., is bounded) and
Vsatisfies suitable boundary conditions
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
In infinite dimensions:
If V is too small, there will not exist a solution to (M)
Example 2. There is no solution to J≐21∫01u2(x)−u(x)dx in C00([0,1]) (no continuous fun. minimises (M)and satisfies BCs)
The key requirement for V is completeness and, in particular, V is generally a Hilbert space (normed, complete + with inner product)
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
Theorem. Existence and uniqueness of solutions in Hilbert spaces. Let us consider a Hilbert space V endowed with the inner product a:V×V→R and a linear functional ℓ:V→R. The quadratic minimisation problem
u=v∈VargminJ(v),J(v)=21a(v,v)−ℓ(v)
has a unique solution.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
Definition. The L2(Ω) spaceis the space of square-integrable functions on Ω:
L2(Ω)≐{v:Ω→R:∫Ω∣v(x)∣2dx<∞}.
It is endowed with the inner product
(u,v)≐∫Ωu(x)v(x)dx.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
Definition. The H1(Ω) spaceis the space of square-integrable functions with square integrable gradients on Ω:
H1(Ω)≐{v∈L2(Ω):∇v∈L2(Ω)}.
It is endowed with the inner product
(u,v)H1≐∫Ωu(x)v(x)dx+∫Ω∇u(x)⋅∇v(x)dx.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
Example 1. Straight elastic bar under tangential load in Ω=[0,1]
J(v)=21∫01v′(x)2−∫01f(x)v(x)dx,∀v∈V.
The previous theorem holds for V=H01([0,1]).
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Functional spaces
Example 3. A multidimensional version of Example 1. in Ω⊂Rd.
Models, e.g., the normal displacement u of a membrane under a normal external pressure f and prescribed displacement at ∂Ω.
J(v)=21∫01∥∇v(x)∥2−∫01f(x)v(x)dx,∀v∈V.
Assuming clamped, the previous theorem holds for V=H01(Ω).
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Boundary value problem
Proposition. Green's first formula (integration by parts).For all ψ∈C1(Ω),v∈C1(Ω), it holds:
Applying the proposition (u∈C2(Ω)) and the fundamental lemma of calculus of variations to the variational form (V) of Example 3....
−Δu=finΩ,u=0on∂Ω.(D)
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
The finite element method
Our goal now is to approximate the mathematical model
Map an ∞-dimensional (M) to a numerical approximation
FEM approximation derived from variational formulation (V)
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
The finite element method
The Galerkin method
Finite elements
Error analysis
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
The Galerkin method
Definition. Galerkin approximation. Given the abstract variational formulation
u∈V:a(u,v)=l(v),∀v∈V,(V)
let us consider a finite dimensional vector subspace VN⊂V, with dim(VN)=N. The Galerkin approximation of (V) reads
uN∈VN:a(uN,vN)=l(vN),∀vN∈VN.(G)
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
The Galerkin method
Since VN is a real vector space of dim <∞, we can pick a basis:
Definition. Basis of a finite dimensional vector space.Given a finite dimensional real vector space VM, the set {φ1,…,φM}⊂M∈N is a basis of VM if, for all v∈VM, there is a unique set of coefficients {vi}i=1M⊂R such that v=v1φ1+…+vMφM. M is equal to the dimension of VM.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
The Galerkin method
Lemma. Galerkin system as a linear system.We consider a basis B={φ1,…,φN} of VN. The Galerkin problem (G) is equivalent to the linear system:
We consider f≡1 and a uniform mesh with N+1 cells of size h (uniform = equidistant nodes). We want to compute the system (S) with linear finite elements.
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Finite elements
Using previous Lemma, the Galerkin approximation (G) leads to the linear system Aμ=f(S) with
Aij=∫01φi′(x)φj′(x)dxandfj=∫01φj(x)dx.
We generally use a numerical quadrature to integrate Aij and fj. Assuming a trapezoidal rule to integrate fj, the linear system reads:
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
$ git clone https://github.com/gridap/Tutorials.git # Clone the repo
$ cd Tutorials # Move to tutorials folder
$ julia --project # Open and activate Julia session
# Type ] to enter in pkg mode
(Tutorials) pkg> instantiate # Download all required packages
# Type Ctrl+C to get back to command mode
julia> include("deps/build.jl") # Build the notebooks
julia> using IJulia
julia> notebook(dir=pwd()) # Open the notebooks
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
Conclusions
FEM approximates PDEs related to energy minimisation problems
Variational formulation are the best for mathematical analysis
Choosing the functional spaces is essential for well-posedness
FEM is an N-dim approximation of an ∞-dim variational problem
FEM rely on meshes and cellwise polynomial bases
Admits very general geometry and BCs
Sparse "well-conditioned" linear systems
Eric Neiva | Intro to FEM | TurlierLab | 18-03-2022
References
Material from this lecture adapted from the lecture notes by Prof. Santiago Badia at Monash University, Melbourne, Australia.
1. C. Johnson. Numerical Solution of Partial Differential Equations by the Finite Element Method. Dover Publications, 2009.
O. C. Zienkiewicz, R. L. Taylor, J.Z. Zhu. The Finite Element Method: Its Basis and Fundamentals. Butterworth-Heinemann, 2013.
And that's all! Thank you!
This material is part of a project that has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 949267).
Except where otherwise noted, this work and its contents (texts and illustrations) are licensed under the Attribution 4.0 International (CC BY 4.0).
- We are concerned with...
- Mathematical models in physics as the minimisation of a potential (energy).
- You know they usually involve partial differential equations.
- You can probably think of a couple of examples.
- You go very far with analytical methods, at least, in biophysics.
- Comment on FEM vs FDM vs FDM. Not in the scope.
- FEM deals better with complicated geometry, general BCs and variable or non-linear material properties.
- Maybe you are familiar with MP and DE, but not so much with VF
- However, VF is the best one for mathematicians to work with
- After illustrating them in the most simple example
- Revisit the concepts in an abstract way and state general w.p.th.
- 💡 Using physical principles (energy minimisation), we can mathematically state physical problems as minimisation problems in an *infinite dimensional* space of functions.
We can now consider the variation of the functional $J$ at $u$ with respect to a variation of $v \in \mathcal{C}_0^1([0,1])$ times $\alpha \in \mathbb{R}$.
Any perturbation of the equilibrium configuration requires to supply energy to the system
Note that the solution of (BVP) is point-wise, whereas (VF) and (MP) is in the weak sense
The solution of a clamped elastic structure in an L-shaped domain does not have a solution in classical sense, since the stresses in the inner corner are infinite
Stop to ask question.
Cauchy sequence wikipedia
- A symmetric positive definite bilinear form is an inner product.
- The proof is done on V, then apply equivalence.
Comment on the hypothesis on f.
- Recasting the problem into a discrete vector subspace
- If (V) is well-posed, then (G) is well-posed (previous theorem for finite dim, also)
Piecewise polynomials
Very general geometry
You do not want them to retain this.
You do not want them to retain this.
You do not want them to retain this.
Note that the basis functions are "globally" continuous.
- The model can be smooth?
- Split window to associate with mathematical formulation
- 3 ways to verify model
- Visual inspection
- Consistency check
- Exact convergence test
- Approx. convergence test
- Overkill solution
- Solution does not change
3. [FEniCS documentation](https://fenicsproject.org/documentation/) 🠒 Check out the books
4. [Wolfgang Bangerth's video lectures](https://www.math.colostate.edu/~bangerth/videos.html) from [deal.ii](www.dealii.org)
5. M. J. Gander and F. Kwok. *Numerical Analysis of PDEs Using Maple and MATLAB*. SIAM, 2018.