links - NumPDE

useful links

Info

  • exam
    • NumPDE midterm (@2026-04-17)
      • chapter 1+2 (mainly)
    • NumPDE endterm (@2026-05-29)
      • chapter 9 (time-derivative)+12 (??)
  • practice classes:

remove pauses in videos:

pip install auto-editor
auto-editor <video> --margin 0.2sec
# if output is black, stream and audio channels are swapped. fix it (before runnign audio-editor):
ffmpeg -i <video> -map 0:v -map 0:a -c copy <output>
Hilfsmittel NumericalMethodsForPartialDifferentialEquations

  • midterm: none
  • endterm: probably none

Exercises

-> FS2026_tasks

Week 1 (16.02.-20.02.): 4 h 45 min

Week 2 (23.02.-27.02.): 6 h 45 min

Week 3 (02.03.-06.03.): 7 h 5 min

Week 4 (09.03.-13.03.): 5 h 45 min

Week 5 (16.03.-20.03.): 7 h 5 min

Week 6 (23.03.-27.03.): 5 h 50 min

Week 7 (30.03.-03.04.): 6 h 5 min

Week 8 (13.04.-17.04.): 4 h

Week 9 (20.04.-24.04.): 3 h 30 min

Week 10 (27.04.-01.05.): 4 h 10 min

Week 11 (04.05.-08.05.): 7 h 15 min

Week 12 (11.05.-15.05.): 7h 10 min

13. week (18.05.-22.05.): 7 h 10 min

Videos

  1. week (16.02.-20.02.):
  1. week (23.02.-27.02.):
  1. week (02.03.-06.03):
  1. week (09.03.-13.03):
  1. week (16.03.-20.03):
  1. week (23.03.-27.03.):
  1. week (30.03.-03.04.):
  1. week (13.04.-17.04.):
  1. week (20.04.-24.04.):
  1. week (27.04.-01.05.):
  1. week (04.05.-08.05.):
  1. week (11.05.-15.05.):
  1. week (18.05.-22.05.):
  1. week (25.05.-29.05.): no videos

Q&A

#timestamp 2026-03-20

Galerking Orthogonality (3.1.3.2)

uuha2=a(uuh,uuh)=a(uvh,uuh)+a(vhuh,uuh)=0vhV0,h

bilinear form is coercive

from this comes the Poincare inequality and uniform positive definite property

In contrast to Cea's Lemma, coercivity does not depend on the energy norm a
Tldr: strong to weak

(11u+12u+22u)+x2u=0Ω, u=1Ω

  1. (simplify strong form, then) convert to weak form
div([112121]u)+x2u=0div(Au)+βu=0div(Au)v+βuvdx=0
  1. choose suitable test function
  • e.g. vC0H1(Ω)
  1. IBP (use Green's formula)
ΩAuv+βuv dvΩAunv dl0 by b.c.=0
  1. Incorporate b.c. (if needed)
  • for Dirichlet (essential) -> nothing to do
  1. choose suitable fct. space
  • minimal suitable fct. space (often H1)
  • here, we need at list one derivative for u
Auv+βuv dx=0vH01(Ω)

#timestamp 2026-05-15

endterm

for forms: see https://www.math.ucla.edu/~tao/preprints/forms.pdf

Vorlesung

1. Second-Order Scalar Elliptic Boundary Value Problems

Video 1.2.1: Elastic Membranes

Goal: compute shape of string (1D)/membrane (2D) under vertical loading

Notion 1.2.1.1. Configuration space

The configuration space of a mathematical model is a set, each of whose elements completely describe all relevant aspects of a state of the modeled physical system.

Pasted image 20260216223006.png
Pasted image 20260216223153.png
Pasted image 20260216223325.png
-> but need formula for potential energy
Pasted image 20260216223452.png

Video 1.2.2 Eloectrostatic Fields (6min)

Pasted image 20260217102058.png
Pasted image 20260217102244.png
Note: V^C0(Ω)

Equilibrium condition for electrostatics

The physical field will attain minimal electromagnetic field energy (1.2.2.16)

u=argminuV^EJE(u).

Video 1.2.3 Quadratic Minimization Problems (21 min)

Pasted image 20260217102711.png

Definition 1.2.3.13. Quadratic minimization problem

A minimization problem

w=argminwV0J(w)

is called a quadratic minimization problem, if J is a =quadratic functional on a real vector space V0.

extension to affine space:

V^=μ0"offset function"+V0V

Pasted image 20260217103305.png
Pasted image 20260217103546.png
Recall from LA:

A=As.p.d(μ,η)μAη=^inner product

Pasted image 20260217104011.png
Pasted image 20260217104355.png

Tldr

we are trying to find the most stable/lowest energy state of the system. The idea is to find a general formula for the structurally similar string/membrane/electricity problem, which can be described by a Quadratic functional:

J(v)=12a(v,v)internal energyl(v)external load+c=12xAxbx+c(a bilinear + symmetric, l linear)

However, we can only solve the problem if the energy formula has a minimum (imagine the energy formula as a paraboloid "bowl"):
Pasted image 20260217110348.png|300
Thus, for of solution, the problem must fulfill:

  1. a(v,v)>0v0 -> bilinear form must be at least semi-positive definite
  2. |l(v)|C||v||a, where ||v||a=a(v,v) energy norm. -> linear form l(v) must be bounded/continuous with respect to energy norm. This ensures the "load" isn't so strong that it rips the system apart.

#todo add some integrals to the tldr

Video 1.3 Sobolev spaces (22 min)

have a bad reputation as having a useless mathematical sophistication

Pasted image 20260217113247.png
choose

V0:={functions v on Ω:a(v,v)<}

=> energy space generated by a(,)
Pasted image 20260217113422.png
Pasted image 20260217113818.png
in contrast to L2-Space, here the boundary conditions are not dropped; the reason for this are the norms:
Pasted image 20260217114017.png
Sobolev space without boundary conditions:
Pasted image 20260217114124.png
the L2 can be bounded by the size of the domain and the energy norm:

Theorem 1.3.4.17: First Poincaré-Friedrichs inequality

If ΩRd, dN, is bounded, then

u0diam(Ω)grad u0uH01(Ω).

|(v)|f0 diam(Ω)CvavH01(Ω)

Pasted image 20260217114451.png

How to "work with" Sobolev spaces

Most concrete results about Sobolev spaces boil down to relationships between their norms. The spaces themselves remain intangible, but the norms are very concrete and can be computed and manipulated as demonstrated above.

Tip

  • Do not be afraid of Sobolev spaces!
  • It is only the norms that matter for us, the 'spaces' are irrelevant!

Corollary 1.3.4.26. H1-norm of piecewise smooth functions

Under the assumptions of Thm. 1.3.4.23 we have for a continuous, piecewise smooth function uC0(Ω)

|u|H1(Ω)2=|u|H1(Ω1)2+|u|H1(Ω2)2=Ω1|grad u(x)|2 dx+Ω2|grad u(x)|2 dx.

If uC0(Ω) compute H1-norm piecewise

Tldr

  • L2 space - space of all functions where f2<. Here, b.c. are meaningless, since changing the function at a single point costs zero energy
  • H1 space - "energy space" for membranes; includes functions where derivatives are square-integrable. Unlike L2, the b.c. cannot be ignored, since changing a point blows up the derivative
  • H01-space - H1 with zero b.c.
    • one can think of H1 as the space of peicewise smooth, globally continuous functions

Tldr

Functions of an L2 space are square-integrable on Ω:

Ω|u(x)|2dx<

Functions of the H1 space are in L2, too. Additionally, the first (hence ^1) derivative is in L2, too:

H1(Ω)={uL2(Ω) | uL2(Ω)}

Note that H1 functions do not need to be in C1 or even C0! A counterexample is

u(x,y)={0,x121,x>12in Ω=[0,1]2

Video 1.4 Linear Variational Problems (21 min)

Pasted image 20260219081701.png
Pasted image 20260219082140.png
Pasted image 20260219082308.png
Poincare-friedrich?
Pasted image 20260219082838.png

Video 1.5 Equilibrium Models: Boundary Value Problems (22 min)

Pasted image 20260224174310.png
Pasted image 20260224175303.png
=> 2-pt BVP (a Dirichlet problem) in strong form (vs. "weak form" = LVP)

Pasted image 20260224175546.png
Pasted image 20260224175607.png

Lemma 1.5.3.4: Fundamental lemma of calculus of variations in higher dimensions

If fL2(Ω) satisfies

Ωf(x)v(x)dx=0vC0(Ω),

then f0 can be concluded.

Pasted image 20260224180021.png
Pasted image 20260224180509.png

Video 1.6 Diffusion Models: Stationary Heat Conduction (5 min)

Pasted image 20260224182905.png
Pasted image 20260224183014.png
by combining those two using Gauss theorem, we get:
Pasted image 20260224183120.png
=> we reach at the same PDE as for the membrane model

Video 1.7 Boundary Conditions (07.35 min)

Pasted image 20260224183718.png
example of a mixed BVP:
Pasted image 20260224184006.png

Boundary conditions for second-order elliptic BVPs

For second order elliptic boundary value problems exactly one boundary condition is needed on every part of Ω.

Video 1.8 Second-Order Elliptic Variational Problems (13 min)

Pasted image 20260224190120.png
for Dirichlet BVP:
Pasted image 20260224213109.png
for Radiation BVP:
Pasted image 20260224213302.png
for Neumann BVP:
Pasted image 20260224214942.png
Pasted image 20260224215319.png
Pasted image 20260224215332.png

Theorem 1.8.0.20: Second Poincaré-Friedrichs inequality

If ΩRd, dN, is bounded, then

C=C(Ω)>0:u0C diam(Ω)grad u0uH1(Ω).

Video 1.9 Essential and Natural Boundary Conditions (18 min)

summary of 1.4 - 1.9:
Pasted image 20260225081041.png
Pasted image 20260225081059.png
Pasted image 20260225081424.png
Pasted image 20260225082319.png
Pasted image 20260225082332.png

Tldr

For a summary of this week, see the notes from the exercise session:
-> ETH_NumericalMethodsForPDE_Übungen#^75b794

2. Finite Element Methods (FEM)

Video 2.2 Principles of Galerkin Discretization (25 min)

graph LR
	A[Variational boundary
value problems] -- discretization --> B["System of a finite number of equations for (real) unknowns"]

Pasted image 20260301110814.png

garlekin discretization in two steps:

  1. V0V0,hV,dimV0,h<
Galerkin discretization (step 1)

Replace the infinite-dimensional function space V0 in the linear variational problem (2.2.0.2) with a finite-dimensional subspace V0,hV0.

-> "h" =^ tag for s.th. finite

Pasted image 20260301111127.png
Pasted image 20260301111209.png

  1. Choose basis, then plug basis expansions int DVP, and use (bi-linearity)

Pasted image 20260301111355.png
Pasted image 20260301111722.png|697


Theorem 2.2.2.7: Independence of Galerkin solution of choice of basis

The choice of the basis Bh has no impact on the (set of) Galerkin solutions uh of (2.2.1.1).

Pasted image 20260301111839.png
Pasted image 20260301112119.png

Properties all Garlekin matrices for a DVP (all matrices from a congruence clas) share:

Garleking pos. dev / symm.a(,) s.p.d on V0,h

Pasted image 20260301112433.png

Video 2.3 Case Study: Linear FEMfor Two-Point Boundary Value Problems (24 min)

u=f in [a,b]u(a)=u(b)=0

NOTE: fL2(Ω)is given inprocedural form, fC0([a,b])
Pasted image 20260301112821.png

Idea underlying the finite element method: approximate u by means of continuous, piecewise polynomial functions on a mesh:

Pasted image 20260301113228.png
Pasted image 20260301113412.png
Pasted image 20260301114959.png

Video 2.4 Case Study: Triangular Linear FEMin Two Dimensions I (28 min)

Pasted image 20260301182551.png

Pasted image 20260301183038.png

test space in 2 (space of M-p.w. linear continuous function on Ω):
Pasted image 20260301183355.png

tent function alternative in 2D:
Pasted image 20260301184029.png

In 2D, the Galerking matrix does not have a nice structure like in 1D; however, it is still sparse, since nodes unconnected by edges result in a 0 in the Matrix:
Pasted image 20260301184700.png

Video 2.4 Case Study: Triangular Linear FEMin Two Dimensions II (32 min)

Galerkin discretization based on a nodal basis of tent functions and a triangular mesh:
Pasted image 20260301203218.png
Pasted image 20260301203646.png
there are two approaches to creating the Galerkin-matrix:

  1. assemble matrix from all vertices
    Pasted image 20260301204539.png
    Problems:
In my opinion, it is not fair to compare it with the cell-oriented approach, when the data class is also cell-oriented
  1. cell-oriented approach, by "distribute & add"
    Pasted image 20260301204704.png
    Pasted image 20260301204836.png
for finite-element algorithms, always do it cell-oriented

Pasted image 20260301205155.png
dof: degrees of freedom
Pasted image 20260301205231.png


now, we assemble everything:
Pasted image 20260301205651.png
for the RHS, we can compute the integral using composite trapezoidal rule (we are working with triangles anyways):
Pasted image 20260301205803.png

Tldr

We are trying to get variational problems from infinite-dimensional function spaces to something discrete by

  1. choosing a finite-dimensional subspace V0,hV0, where the bilinear and linear form a(,),l() remain well-defined
  2. choosing an ordered basis {b1,,bN} for the subspace V0,h, dim(V0,h)=N, and using the basis to convert problem into a linear system

In those two steps, the problem can be transformed into a LSE

Aμ=ϕ
Tldr - Step 1

In the first step of the discretization, our goal is to replace space V0,dim(V0)= with finite V0,hV0. The space should preserve the bilinear form a(,) and linear form l(). The new problem is:

find uhV0,hs.t. a(uh,vh)=l(vh) vhV0,h
  1. define Mesh M. Normally, we use triangulation - pay attention that the mesh does not have "hanging nodes" (2.4.1)
  2. choose a "building block" function to use for each cell. Normally, pecewise linear functions are used, evtl. quadratic or cubic polynomials
  • ensure C0 -> do not use piecewise constants, since then V0,hV0, e.g. if V0=H1
  1. incoroporate boundary conditions, in case of Dirichlet by discarding any basis functions with nodes on the boundary
Tldr - Step 2

4. choose a basis Bh={b1h,,bNh}, then write every vhV0,h as linear combination of basis functions:

uh=j=1Nμjbjh,vh=i=1Nνibih
  1. convert to a linear system by exploiting bilinearity of a(,) and linearity of l():
j=1Nμja(bjh,bih)=l(bih)for i=1,,NAμ=ϕ
  • A: Galerkin/stiffness matrix, Aij=a(bjh,bih), how basis functions interact through the bilinear form
  • ϕ: load vector, ϕi=l(bih)
  • μ: solution vector; the final Galerkin solution uh=bihμi (basis, weighted by solution vector)
Basis choice

  • no impact on Galerking solution; however:
  • basis functions with small local support (e.g. tent function) results in a sparse matrix -> desired outcome
  • basis choice determines condition number of matrix -> sensitivity to rounding errors

Video 2.5 Building Blocks of General Finite Element Methods (22 min)

meshes
2D: {cells, edges, nodes}=(mesh/geometric) entities

polynomials
Pasted image 20260306093818.png
1st option: e.g.

p=2:P2(R2)=span{1,x,y,x2,xy,y2}
Definition 2.5.2.7: Tensor product polynomials

Space of tensor product polynomials of degree pN in each coordinate direction

Qp(Rd):={x1=0pd=0pc1,,dx11xdd,c1,,dR}=Span{xp1(x1)pd(xd),piPp(R),i=1,,d}.
Lemma 2.5.2.8: Dimension of spaces of tensor product polynomials

dimQp(Rd)=(p+1)dfor all pN0,dN

2nd option: e.g.

Q2(R2)=span{1,x,x2y,yx,yx2y2,y2x,y2x2}

basis functions (also called global shape functions (GSF), degrees of freedom)

Locally supported basis functions

Third main ingredient of FEM: locally supported basis functions (see Section 2.2 for role of bases in Galerkin discretization)

Basis functions bh1,,bhN for a finite element trial/test space V0,h built on a mesh M must satisfy:

  • (B1) Bh:={bh1,,bhN} is basis of V0,hN=dimV0,h,
  • (B2) each bhi is associated with a single geometric entity (cell/edge/face/vertex) of M,
  • (B3) supp(bhi)={K:KM,pK}, if bhi associated with cell/edge/face/vertex p.

we want local support:

generalization of barycentric coordinate functions:
Pasted image 20260306094819.png

Video 2.6 Lagrangian Finite Element Methods (23 min)

Pasted image 20260310115750.png
one triangle, with Kardinal property:
Pasted image 20260310115836.png
gluing triangles (interpolation nodes):
Pasted image 20260310115922.png
-> globally continuous piecewise function

for more dimensions, we "subdivide"; then, we might also have interpolation nodes inside the shape
Pasted image 20260310120326.png
for hybrid mesh:
Pasted image 20260310120410.png
works, becuase functions Q1/P1 are all linear when restricted to straigt edge (which we have)

works for any degree!

Video 2.7.2 Mesh Information and Mesh Data Structures (21 min)

problems with FEM:
Pasted image 20260310121851.png

// factory object creates mesg entities auto of 2D mesh data structure from information contained in mesh_file
auto factory = std::make_unique<lf::mesg::hybrid2d::MeshFactory>(2);
lf::io::GmshReader readermove(factory), mesh_file.string();

we need

Pasted image 20260310122228.png

mesh

for(const lf::mesh::Entity &entity : mesh.Entitiy(codimension));

topology layer
Pasted image 20260310122516.png
Pasted image 20260310122650.png
access:
Pasted image 20260310122726.png

auto sub_entities_range = entity.SubEntities(sub_codimension);
for(const: lf::mesh::Entity &subentity : sub_entities_range)
    mesh.Index(subentity);

geometry layer

const lf::geometry::Geometry *geo_ptr = entity.Geometry();
Eigen::MatrixXd corners = lf::geometry::Corners(*geo_ptr);

Video 2.7.4 Assembly Algorithms (26 min)

continuation of 2.4

assembly algorithms: building of FE Galerkin amtrix/r.h.s. vector from local contributions

we can split the integrals from the weak form into sums of local contributions (see exercise lession, week3, thu, hongg)
Pasted image 20260310132555.png
Pasted image 20260310133311.png
Pasted image 20260310133322.png
LehrFM numbering rules:
Pasted image 20260310133410.png
Pasted image 20260310133459.png
Pasted image 20260310133904.png

  1. dimension of Space
  2. Number of local Dofs (number of local shape functions)
  3. array of locglobmap for all local indices of entity
  4. number of local/global shape functions associatet with entity
  5. global indices of associated local shape functions of indices (not discussed until now)
  6. global index of entity associated with dof

Initalize dynamic Dof Handler:
Pasted image 20260310134015.png
for lagr. FE: uniform no of GSFs associated with entities of same type -> initalization can be simplified:

using dof_map_t = std::map<lf::base::RefEl, base::size_type>;
UniformFEDofHandler(std::shared_ptr<const lf::mesh::Mesh> mesh_p,
                    dof_map_t dofmap);

example:
Pasted image 20260310134056.png
distribute pattern used for assembly

not copied: code 2.7.4.23: Assembly function of LehrFEM++

Video 2.7.5 Local Computations (26 min)

either by analytic computation (only if we have polynomials -> locally constant functions on each cell of the mesh) or

analytic computation:

Lemma 2.7.5.5. Integration of powers of barycentric coordinate functions

For any non-degenerate d-simplex K with barycentric coordinate functions λ1,,λd+1 and exponents αjN,j=1,,d+1,

(2.7.5.6)Kλ1α1λd+1αd+1 dx=d!|K|α1!α2!αd+1!(α1+α2++αd+1+d)!αN0d+1.

depends only on area of K

e.g.
Pasted image 20260310135246.png
local quadrature

general formula:
Pasted image 20260310135653.png
example on KM:
Pasted image 20260310135938.png
however, if ϕK affine => det(DϕK)const., and we get:
Pasted image 20260310140013.png
in LehrFEM, we can use:
Pasted image 20260310145530.png

Definition 2.7.5.29: Order of a local quadrature rule

A local quadrature rule according to Def. 2.7.5.9 is said to be order qN, if

  • for a simplex K (triangle, tetrahedron) it is exact for all polynomials fPq1(Rd),
  • for a tensor product element K (rectangle, brick) it is exact for all tensor product polynomials fQq1(Rd).

"order no. of nodes "

transformation on affine maps preserves polynomials

-> integral transformation doesn't change order of polynomials

Pasted image 20260310145821.png
quadrature rules in LehrFEM: reference object shape + desired order
Pasted image 20260310145901.png

not copied: code 2.7.5.41: Entity-based composite numerical quadrature

Video 2.7.6 Treatment of Essential Boundary Conditions (21 min)

#todo understand offset function:

Pasted image 20260310150708.png
Pasted image 20260310151152.png
Pasted image 20260310152333.png

maybe missed something relevant...

Pasted image 20260310152411.png

using LehrFM:
Pasted image 20260310152445.png

not copied code 2.7.6.17: Transformation function, which generates the block matrix from above

Tldr: LehrFEM++ example for dirichlet b.c. problem

Problem: Δu=f
Weak form: Ωuv dx=Ωfv dx,vH01(Ω)

  • Boundary conditions: Dirichlet (essential)
// 1. Load Mesh and Setup DofHandler for Linear FE (1 DOF per node)
auto factory = std::make_unique<lf::mesh::hybrid2d::MeshFactory>(2);
lf::io::GmshReader readermove(factory), "mesh.msh";
auto mesh_p = reader.mesh();
lf::assemble::UniformFEDofHandler dofh(mesh_p, {{lf::base::RefEl::kPoint(), 1}});

// 2. Prepare Global System Containers (N x N)
lf::assemble::COOMatrix<double> A_triplets(dofh.NumDofs(), dofh.NumDofs());
Eigen::VectorXd rhs = Eigen::VectorXd::Zero(dofh.NumDofs());

// 3. Assemble Stiffness Matrix (using built-in Laplace Provider)
lf::uscalfe::LinearFELaplaceElementMatrix elmat_builder;
lf::assemble::AssembleMatrixLocally(0, dofh, dofh, elmat_builder, A_triplets);

// 4. Handle Dirichlet Boundary Conditions (Offset Function)
auto bd_flags = lf::mesh::utils::flagEntitiesOnBoundary(mesh_p, 2); // Flag nodes
auto selector = [&](unsigned int idx) -> std::pair<bool, double> {
 auto node = dofh.Entity(idx);
 return {bd_flags(*node), 0.0}; // Fix boundary nodes to 0.0
};
lf::assemble::FixFlaggedSolutionCompAlt(selector, A_triplets, rhs);

// 5. Solve
Eigen::SparseMatrix<double> A = A_triplets.makeSparse();
Eigen::SparseLU<Eigen::SparseMatrix<double>> solver(A);
if(solver.info() != Eigen::Success) abort();
Eigen::VectorXd solution = solver.solve(rhs);
  • codim: 0->cells, 1->edges, 2->nodes
  • COOMatrex avoids memory shifts during assembly
  • AssembleMatrixLocally is templated -> works independent of test/trial space

Video 2.8 Parametric Finite Element Methods I (22 min)

remaining challenge: what to do with general mesh (curved edges, triangles + quadrilaterals)

Affine equivalence
Pasted image 20260314201011.png
affine pullback preserves polynomials:

Lemma 2.8.1.3: Preservation of polynomials under affine pullback

If Φ:RdRd is an affine (linear) transformation ( Def. 2.7.5.13), then

Φ(Pp(Rd))=Pp(Rd)andΦ(Qp(Rd))=Qp(Rd).

general quadrilateral lagrangian FE

bKj:=(ϕK1)b^j

-> gluing: GSF

bilinear transformation: componentwise (tensor product) polynomial deg=2
Pasted image 20260314202207.png

gluing:
-> local shape functions are no longer bilinear, since ϕK1 is no longer polynomial (rational function)

Non-polynomial nature of bilinear shape functions

The local shape functions bKi defined by (2.8.2.4), where ΦK is a bilinear transformation and b^i are the bilinear local shape functions on the unit square, are not polynomial in general.

Video2.8 Parametric Finite Element Methods II (27 min)

Pasted image 20260314211639.png
Note that possibility of gluing needs to be checked!

#todo: what are we doing here?

[...]
Pasted image 20260314213531.png
Pasted image 20260314213641.png

Information defining a H1(Ω)-conforming parametric finite element

In order to define a H1(Ω)-conforming parametric finite element in a finite element code we have to implement for all reference elements and i=1,,Q

  1. a function realizing x^b^i(x^),xK^,
  2. and the evaluation x^gradb^i(x^),xK^.
// interface in LF++:
size_type ScalarReferenceFiniteElement::NumRefShapeFunctions() const;
size_type ScalarReferenceFiniteElement::NumRefShapeFunctions(dim_t codim) const;
size_type ScalarReferenceFiniteElement::NumRefShapeFunctions(dim_t codim, sub_idx_t subidx) const;

Eigen::Matrix<SCALAR, Eigen::Dynamic, Eigen::Dynamic>
ScalarReferenceFiniteElement::EvalReferenceShapeFunctions(
    const Eigen::MatrixXd& refcoords) const;

Eigen::Matrix<SCALAR, Eigen::Dynamic, Eigen::Dynamic>
ScalarReferenceFiniteElement::GradientsReferenceShapeFunctions(
    const Eigen::MatrixXd& refcoords) const;

didn't copy code 2.8.3.29: Eval() method for parametric element matrix provider

Boundary Approximation by Parametric FEM:
Pasted image 20260314214831.png
"6-node triangle" in LehrFEM++:
Pasted image 20260314215207.png

Degeneracy of the Transformation

ΦK may be "degenerate" DΦK(x^) singular for some x^K^.

Question: why is this better than simply splitting the curve into multiple triangles? The approximation wouldn't be much worse than by this approach.

Tldr: Pullback

Let K be a cell, K^ a reference cell. Then we define the bijection ΦK

ΦK:K^KΦK(x^)=xfor x^K^,xKΦK1(x)=x^(the inverse mapping)u(x)=(ΦK1)u^(x)=u^(ΦK1(x))u^(x^)=(Φu)(x^)=u(Φ(x^))=u(x)

For Gradients,

(2.8.3.11)gradx^u^(x^)=(DΦ(x^))(gradxu)(Φ(x^))gradxu(x)=(DΦ(x^))gradx^u^(x^)

#todo what is the difference between Φ1 and Φ? Is this correct:

Notation Name Acts On Direction
Φ Mapping Points (Coordinates) K^K
Φ1 Inverse Mapping Points (Coordinates) KK^
Φ Pullback Functions / Forms KK^
(Φ1) Inverse Pullback Functions / Forms K^K

3. FEM: Convergence and Accuracy

Video 3.1 Abstract Galerkin Error Estimates (20 min)

convergence (how fast does uh get closer to μ?) and accuracy (how close is uh to μ?)

Discretization error uuhV0 (a function in BVP context!)

Our goal:

Bound relevant norm of discretization error uuh

A relevant norm:

Lemma 3.1.2.3. Energy norm and energy deviation

Let uV0 solve the linear variational prolem (2.2.0.2),

(2.2.0.2)uV0:a(u,v)=(v)vV0

and let Ass. 3.1.1.2–Ass. 3.1.1.4 be satisfied. Then, with J(v):=12a(v,v)(v),

(3.1.2.4)J(w)J(u)=wua2wV0

galerkin orthogonality:
Pasted image 20260315120409.png
from this follows Pythagoras theorem:
Pasted image 20260315121030.png
Pasted image 20260315121044.png
or shorter:

Theorem 3.1.3.7. Cea's lemma

Under Ass. 3.1.1.2–Ass. 3.1.1.4 the energy norm of the Galerkin discretization error for (2.2.0.2) satisfies

uuha=infvhV0,huvha.

-> Galerking solution is optimal (in energy)

Optimality of Galerkin solutions:

(3.1.3.9)uuha((energy) norm of) discretization error=infvhV0,huvhabest approximation error in V0,h,

-> As regards the energy norm, the Galerkin solution is the best possible solution we can obtain in a given trial space.

Pasted image 20260315121738.png

Video 3.2 Empirical (Asymptotic) Convergence of Lagrangian FEM (26 min)

Asymptotic Convergence

Convergence: asymptotic perspective

Crucial: our notion of convergence is asymptotic!
sequence of discrete models sequence of approximate solutions (uh(i))iN
study sequence (uh(i)u)iN as i
created by variation of a discretization parameter.

Definition 3.2.1.4. Mesh width

Given a mesh M={K}, its mesh width hM is defined as

hM:=max{diamK:KM},diamK:=max{|pq|:p,qK}.

cost might depend on dimension V0,h (or nnz(A))

algebraic and exponential convergence

Definition 3.2.2.1. Types of convergence ,

uuN=O(Nα),α>0algebraic convergence with rate αuuN=O(exp(γNδ)), with γ,δ>0exponential convergence

(asymptotically for N)

-> (integral) error norms can usually be computed only by numerical quadrature (/sampling) of sufficiently high order

Example:

-> there might be pre-asymptotic behaviour (no convergence until mesh fine / polynomial degree high)

Tldr: h- vs p- refinement

Feature h-Refinement p-Refinement
Strategy Subdivide mesh cells (h0) Increase local polynomial degree (p)
Typical Convergence Algebraic: O(hp) Exponential: O(exp(γpδ)) for analytic solutions
Limiting Factor Polynomial degree p and smoothness k Smoothness k of the exact solution
Space Property Often results in nested spaces (e.g., via regular refinement) Inherently leads to nested finite element spaces

Video 3.3 A Priori (Asymptotic) Finite Element Error Estimates I (10 min)

Foundation: Cea's lemma

uuha=infvhV0,huvhuwhawhV0,h

a suitable "candidate function" wh obtained by interpolation

Note: For 2nd-order elliptic Dirichlet BVP: va|v|H1(Ω)

Global estimates for norms

(3.3.1.14)|uI1u|H1([a,b])hMuL2([a,b])

-> algebraic cvg., rate 1

(3.3.1.11)uI1uL2([a,b])hM2uL2([a,b])

-> algebraic cvg. rate 2

(3.3.1.4)uI1uL([a,b])14hM2uL([a,b])smoothness requirement

-> algebraic cvg. rate 2

Video 3.3 A Priori (Asymptotic) Finite Element Error Estimates II (18 min)

Definition 3.3.2.1. Linear interpolation in 2D

The linear interpolation operator I1:C0(Ω¯)S10(M) is defined by

I1uS10(M),I1u(p)=u(p)pV(M).

uniquely fixes element of piecweise FE space

Pasted image 20260321201604.png

Definition 3.3.2.20. Shape regularity measure

For a simplex KRd we define its shape regularity measure as the ratio

ρK:=hKd:|K|

and the shape regularity measure of a simplicial mesh M={K}

ρM:=maxKMρK.

Pasted image 20260321202155.png

Theorem 3.3.2.21. Error estimate for piecewise linear interpolation

For any uC2(Ω¯) and 2D piecewise linear interpolation I1:C0(Ω¯)S10(M), M a triangular mesh, holds

uI1uL2(Ω)38hM2|D2u|FL2(Ω),

-> alg. cvg. rate 2

grad(uI1u)L2(Ω)324ρMhM|D2u|FL2(Ω).

-> alg. cvg. rate 1
where hM denotes the mesh width ( Def. 3.2.1.4) and ρM the shape regularity measure ( Def. 3.3.2.20) of M.

#todo learn multi-index notation

Definition 3.3.3.1. Higher order Sobolev spaces/norms

The m-th order Sobolev norm, mN0, for u:ΩRdR (sufficiently smooth) is defined by

uHm(Ω)2:=k=0mαNd,|α|=kΩ|Dαu|2dx, where Dαu:=|α|ux1α1xdαd.

Sobolev space Hm(Ω):={v:ΩR:==vHm(Ω)<==}.

L2(Ω)=H0(Ω)H1(Ω)H2(Ω)H3(Ω)

increasing regularity of functions

Definition 3.3.3.3. Higher order Sobolev semi-norms

The m-th order Sobolev semi-norm, mN, for sufficiently smooth u:ΩR is defined by

|u|Hm(Ω)2:=αNd,|α|=mΩ|Dαu|2dx.

rewriting error bounds using Sobolev norms, we get:

Corollary 3.3.3.4. Error estimate for piecewise linear interpolation in 2D

Under the assumptions/with notations of Thm. 3.3.2.21 (uH2(Ω))

uI1uL2(Ω)38hM2|u|H2(Ω)|uI1u|H1(Ω)324ρMhM|u|H2(Ω)
Theorem 3.3.3.8. Sobolev embedding theorem

m>d2Hm(Ω)C0(Ω¯)C=C(Ω)>0:uCuHm(Ω)uHm(Ω)

Theorem answers:

"How many derivatives must a function have (in a weak, square-integrable sense) before we can guarantee it is actually a continuous, point-wise defined function?"

e.g. d=2: m>1 => H2(Ω) functions are guaranteed to be continuous

Video 3.3 A Priori (Asymptotic) Finite Element Error Estimates III (16 min)

Theorem 3.3.5.6. Best approximation error estimates for Lagrangian finite elements

Let ΩRd,d=1,2,3, be a bounded polygonal/polyhedral domain equipped with a mesh M consisting of simplices or parallelepipeds. Then, for each kN, there is a constant C>0 depending only on k and the shape regularity measure ρM such that

infvhSp0(M)uvhH1(Ω)C(hMp)min{p+1,k}1discretization params.uHk(Ω)smoothness reqirementuHk(Ω)(3.3.5.7)

If we assume uniform shape-regularity and local quasi-uniformity of the mesh, then, from theorem 3.3.5.6 we get:

(3.3.5.19)infvhSp0(M)|uvh|H1(Ω)CNminp,k1d|u|Hk(Ω)

=> Algebraic convergence of discretization error with respect to N (DOFs), rate

1dmin(p,k1)

By what extra cost can we buy a certain improvement of the FEM solution? (3.3.5.23)

Assuming the a priori error estimate is sharp (the actual error follows the theoretical trend), the relationship between error reduction and computational cost is:

Cost Factorρdminp,k1
takeaways

  1. The Curse of Dimension (d): As the spatial dimension d increases, the cost of reducing error grows exponentially. Accuracy is much "cheaper" in 1D than in 3D.
  2. Optimal Efficiency (p=k1): For best gain/cost, polynomial degree p should match solution's smoothness k (Hk)
  3. Smoothness Matters: For very smooth solutions (k is large), high-order elements (p>1) reduce the required increase in N significantly compared to linear elements (p=1).
  4. The "Slow" Limit: If the solution is not smooth (small k), increasing the polynomial degree p does not help efficiency, because the cost factor will be stuck at ρd/(k1) regardless of how high you choose p.

type of refinement alg. cvg. rate
h-refinement (p fixed & small: pk1) p/d
h-refinement (low regularity of u: kp+1) (k1)/d
p-refinement (hm fixed, limited regularity u) (k1)/d
p-refinement (perfectly smooth (analytic) solution)
(because C depends on k in unspecified way)
theorem doesn't work

Here is a compressed summary of Unit 3.3 for your markdown callout, based on the course videos and documents:

Tldr 3.3: A Priori Finite Element Error Estimates

  • Cea's Lemma: energy norm of discretization =^ best approximation error of FE space
  • accuracy is governed by the mesh width (hM), the polynomial degree (p), and the Sobolev smoothness (uHk) of the exact solution.

General H1-Error Estimate:

infvhSp0(M)|uvh|H1(Ω)C(hMp)min{p,k1}|u|Hk(Ω)

where the generic constant C depends on the shape regularity (ρM) of the mesh but is independent of hM.

Algebraic Convergence Trends (h-refinement): On quasi-uniform meshes, the error decays relative to the number of unknowns (N) as:

Error Norm(N)CNα,with rate α=min{p,k1}d
  • Curse of Dimension: Convergence speed deteriorates as the spatial dimension d increases.
  • Rate Limits: The rate is limited by either the polynomial degree p (for smooth solutions) or the solution's lack of regularity k (for rough solutions).

Asymptotic Efficiency (Cost-Benefit): Reducing the error by a factor ρ>1 requires increasing the problem size N by a factor of ρd/minp,k1. Efficiency is theoretically optimal when p=k1.

#todo Learn more about Sobolev regularity (solution uHk(Ω), which k?)

Video 3.4 Elliptic Regularity Theory (11 min)

WHat is the Sobolev regularity of solutions of elliptic BVP?

Theorem 3.4.0.2. Smooth elliptic lifting theorem

If Ω is C-smooth, ie. possesses a local parameterization by C-functions, and σC(Ω), then, for any kN,

Dirichlet problemuH01(Ω)anddiv(σgradu)Hk(Ω)Neumann prob.uH1(Ω),div(σgradu)Hk(Ω)andgradun=0 on $Ω

uHk+2(Ω).

In addition, for such u there is C=C(k,Ω,σ) such that

uHk+2(Ω)Cdiv(σgradu)Hk(Ω)

probably irrelevant:

Theorem 3.4.0.6. Corner singular function decomposition

Let ΩR2 be a polygon with J corners ci. Denote the polar coordinates in the corner ci by (ri,φi) and the inner angle at the corner ci by ωi. Additionally, let fHl(Ω) with lN0 and lλik1, where the λik are given by the singular exponents

(3.4.0.7)λik=kπωifor kN.

Then uH01(Ω) with =Δu=f= in Ω (Dirichlet prob.) can be decomposed

(3.4.0.8)u=u0+i=1Jψ(ri)λik<l+1κiksik(ri,φi),κikR,

with regular part u0Hl+2(Ω), cut-off functions ψC(R+) (ψ1 in a neighborhood of 0), and corner singular functions

(3.4.0.9)λikN:sik(r,φ)=rλiksin(λikφ),λikN:sik(r,φ)=rλik(lnr)sin(λikφ).

=> reentrant corners lead to very poor regularity

Intermediate

ΩR2 has re-entrant corners if u solves Δu=f in Ω, u=0 on Ω, then uH2(Ω) in general.

however, for convex problems, the dirichlet solution is in H2 (BVP is 2-regular)

Theorem 3.4.0.10. Elliptic lifting theorem on convex domains

If ΩRd convex, uH01(Ω),ΔuL2(Ω)uH2(Ω).

Video 3.5 Variational Crimes (15 min)

"theory is incredibly difficult"

Variational crime: instead of solving exact discrete variational problem, we solve a perturbed one:

ah(u~h,vh)=lh(vh)

-> inevitable, since some functions are only given in procedural form

Guideline for acceptable variational crimes

Variational crimes must not affect (type and rate) of asymptotic convergence

  1. Impact of Numerical Quadrature

Note: To show that QR is of order 2 -> show that it integrates polybomials of order 1 exactly (n-1) -> integrates λ1,λ2,λ3 exactly

Intermediate

Finite element theory tells us that the above guideline can be met, if the local numerical quadrature rule has sufficiently high order. The quantitative results can be condensed into the following rules of thumb:

Target Accuracy Required Quadrature Order
|uuh|1=O(hMp) Order 2p1 sufficient for fh
|uuh|1=O(hMp) Order 2p1 sufficient for ah

Example of crime: Using midpoint rule (order 2) for quadratic elements (p=2) will cause convergence rate in terms of N to drop.

  1. Impact of boundary approximation
Rule of thumb deduced from sophisticated finite element theory:

If V0,h=Sp0(M), use boundary fitting with polynomials of degree p.

for quadratic FEM, use quadratic boundary approximation (see chapter 2)

Example of crime: When Ω has curved boundary, approximation with polygon (linear) is a crime (perturbed domain Ωh)

When using LehrFEM to refine meshes, the boundary stays the same -> round boundary does not get "rounded" when refining

Video 3.8 Validation and Debugging of Finite Element Codes (13 min)

matching theoretical rates are a strong circumstatial evidence of correctness

-> if code converges mroe slowly than theory predicts, there is almost certainly a bug

3 main methods:

  1. observing convergence between mesh levels

test code by comparing solutions on a sequence of nested meshes created by regular refinement

  1. method of manufactured solutions

most popular way to test a solver

  1. Direct Testing of Bilinear Forms

test specific parts of your code, e.g. Galerkin matrix for a specific boundary term

Warning

  • Avoid polynomial solution: polynomial as manufactured solution will have 0 error -> no convergence rate
  • Smothness matters: singularities in the solution can "foil" the fast convergence you expect to see

9. Second-Order Linear Evolution Problems

Video 9.2.1 Heat Equation (10 min)

9.2 Parabolic Initial-Boundary Value Problems

balance law:
Pasted image 20260328150854.png
using localization and fourier law, we get:

t(ρu)div(κ(x)grad u)=fin Ω~:=Ω×]0,T[

spatial b.c.:

For second order parabolic evolutions we can/must use the same spatial boundary conditions as for stationary second order elliptic boundary value problems

(although the boundary conditions are now dependent from x and t)

initial conditions (temporal b.c.):

u(x,0)=u0(x)BVP

combined:

(7.1.1.5)t(ρ(x)u)div(κ(x)grad u)=finΩ~:=Ω×]0,T[,(7.1.1.7)boundary condition:u(x,t)=g(x,t)for(x,t)Ω×]0,T[,(7.1.1.8)initial condition:u(x,0)=u0(x)for allxΩ.

Video 9.2.2 Heat Equation: Spatial Variational Formulation (8 min)

Spatial variational form of (7.1.1.5)–(7.1.1.7): seek t]0,T[u(t)H01(Ω)

(6.2.2.4)Ωρ(x)u˙(t)v dx=:m(u˙,v)+Ωκ(x)u(t)v dx=:a(u(t),v)=Ωf(x,t)v(x) dx=:l(t)(v)vH01(Ω),(6.2.2.5)initial conditionu(0)=u0H01(Ω)

abstract linear evolution problem:

(6.2.2.8)t]0,T[u(t)V0:{m(u˙(t),v)+a(u(t),v)=(t)(v)vV0,u(0)=u0V0.

Video 9.2.3 Stability of Parabolic Evaolution Problems (10 min)

#todo sould I add solution of 1D heat equation?
#todo TA prioritized a different part of the viedo/chapter

It is always simpler to look at the square of the norms

reminder: Poincare-Friedrichs inequality:

γvm2=L2normva2H1seminormvV0
Lemma 6.2.3.3. Decay of solutions of parabolic evolutions

For f0 the solution u(t) of (7.1.2.4) satisfies

u(t)meγtu0m,u(t)aeγtu0at]0,T[

where γ>0 is the constant from (7.1.3.1), and a, m stand for the energy norms induced by a(,) and m(,), respectively.

Dissipation of energy in parabolic evolutions

Exponential decay of energy during parabolic evolution without excitation ("Parabolic evolutions dissipate energy")

Video 9.2.4 Spatial Semi-Discretization: Method of Lines (6 min)

-> spatial Galerkin discretization of 6.2.2.8 yields:

i=1Nμ˙i(t)m(bhi,bhj)+μi(t)a(bhi,bhj)=(t)(bhj)vhV0,h,j=1,,N
Method-of-lines ordinary differential equation

Combining (7.1.4.1) and (7.1.4.2) we obtain

(6.2.4.4)(7.1.4.1){M{ddtμ(t)}+Aμ(t)=φ(t)μ(0)=μ0for 0<t<T,

with

  • s.p.d. stiffness matrix ARN,N, (A)ij:=a(bhj,bhi) (independent of time),
  • s.p.d. mass matrix MRN,N, (M)ij:=m(bhj,bhi) (independent of time),
  • source (load) vector φ(t)RN, (φ(t))i:=(t)(bhi) (time-dependent),
  • μ0 coefficient vector of a projection of u0 onto V0,h.
Note

(7.1.4.4) is an ordinary differential equation (ODE) for tμ(t)RN

=> MOL-ODE is semi-discrete

Video 9.2.7 Timestepping for Method-of-Lines ODE (30 min)

(7.1.7.2)Expl. Eul. (7.1.7.2):μ(j)=μ(j1)+τjM1(φ(tj1)Aμ(j1))(7.1.7.3)Impl. Eul. (7.1.7.3):μ(j)=(τjA+M)1(Mμ(j1)+τjφ(tj))

since s.p.d., can be invertedy -> use Cholesky-decomposition ( #todo what is that?)

MOL-ODE is stiff!

Explicit Euler timestepping is not stable (exponential blow-up) in case of large timestep combined with fine mesh.

Lemma 6.2.7.32. Behavior of generalized eigenvalues

Let M be a simplicial mesh and A, M denote the Galerkin matrices for the bilinear forms a(u,v)=Ωgradugradvdx and m(u,v)=Ωu(x)v(x)dx, respectively, and V0,h:=Sp,00(M). Then the smallest and largest generalized eigenvalues of Aμ=λMμ, denoted by λmin and λmax, satisfy

1diam(Ω)2λminC,λmaxChM2,

where the "generic constants" ( Rem. 3.3.5.10) depend only on the polynomial degree p, the domain Ω, and the shape regularity measure ρM.

-> timestep constraint: τChm2 (similar to ode45)

diagonalization of RK-SSM (φ0)
Pasted image 20260328180532.png

Unconditional stability of single step methods

Necessary condition for universal unconditional stability of a single step method for semi-discrete parabolic evolution problem (7.1.4.4) ("method of lines"):

The discrete evolution Ψλτ:RR of the single step method applied to the scalar ODE u˙=λu satisfies

(6.2.7.45)λ>0limj(Ψλτ)ju0=0u0R,τ>0.

RK-SSM for u˙=λuu(j)=S(λτ)stability functionsu(j1)

cAb(6.2.7.47a)Ψλt,t+τu=S(λτ)u,

with rational stability function

(6.2.7.47b)S(z)=1+zb(IzA)11=det(IzA+z1b)det(IzA),1=[1,,1]Rs.

a rational function in z

RK-SSM is unconditionally stable for MOL-ODE if |S(z)|1 z<0

Definition 6.2.7.48. L(π)-stability

A Runge-Kutta single-step method satisfying (7.1.7.45) is called L(π)-stable, if its stability function S(z) according to (7.1.7.47b) satisfies

  1. |S(z)|<1 for all z<0, and
  2. "S()" :=limzRS(z)=0.

Pasted image 20260328181937.png
necessarily implicit

Video 9.2.8 Fully Discrete Method of Lines: Convergence (18 min)

The Parabolic Discretization Path

  1. Heat Equation (Strong Form): transient heat equation on a space-time cylinder Ω×]0,T[, subject to initial and boundary conditions:utΔu=f(x,t)in Ω,u(x,t)=0on Ω
  2. Spatial Variational Formulation: By treating time t as a passive parameter and applying integration by parts in the spatial domain, the PDE is converted to a weak form:
Ωutvdx+Ωgrad ugrad vdx=Ωf(t)vdxvH01(Ω)
  1. Abstract Formulation: The weak form is generalized into an abstract parabolic evolution problem using the mass bilinear form m(,) and the stiffness bilinear form a(,):
m(u˙,v)+a(u,v)=(t)(v)vV0
  1. Method of Lines ODE: Applying Galerkin discretization in space (e.g., using finite elements) transforms the abstract evolution into a system of ordinary differential equations for the coefficient vector μ(t):
Mμ˙(t)+Aμ(t)=φ(t)

where M is the mass matrix and A is the stiffness matrix.
5. Runge-Kutta Method (Full Discretization): Finally, the semi-discrete ODE is integrated in time using a single-step method (SSM). For parabolic problems, L-stable Runge-Kutta methods (such as Radau methods) are preferred to ensure stability:

μ(j)=Ψτ,tj1μ(j1)

resulting in a fully discrete scheme where the total error is the combined effect of spatial and temporal discretization.

Pasted image 20260328195207.png

Refinement for fully discrete parabolic evolution problems

Guideline: spatial and temporal resolution have to be adjusted in tandem

for a conditionally stable explicit method, we often have timestep constraint τCh2

-> if we reduce mesh for accuracy, we have to reduce the timestep more severly than accuarcy requires -> inefficiency "overkill constraint"

-> use unconditionally stable implicit methods instead

10. Modeling Fluid Flow

Video 10.1.1 Modeling Fluid Flow (7 min)

flow field v:ΩRd=^ velocity field

streamline ODE

flow map

Φ:{R×ΩΩ(t,y0)Φty0:=y(t) Φ0y0=y0y0ΩΦs+t=ΦsΦt

Video 10.1.2 Heat Convection and Diffusion (5 min)

div j=fbalance law+j(x)=κ grad u(x)+v(x)ρu(x)generalized fourier’s law

=> linear scalar convection-diffusion equation for energy (CDE) (1.6.0.3) + (10.1.2.4):

(10.1.2.8)div(κ grad u)+div(ρv(x)u)=finΩdiv(κ grad u)+div(ρv(x)u)=fdiffusive termconvective term(2nd-order)(1st-order)
Intermediate

Suitable boundary conditions fitting a PDE are determined by the highest-order term.

Here: diffusion term

Video 10.1.3 Incompressible Fluids (10 min)

Definition 10.1.3.1. Incompressible flow field

A fluid flow is called incompressible, if the associated flow map Φt is volume preserving,

|Φt(V)|=|Φ0(V)|=|V|

for all sufficiently small t>0, and for all control volumes V.

mathematically:

|Φt(V)|=Φt(V)1dx=V|detDxΦt(x^)|dx^ddt|Φt(V)|=0Vt|detDxΦt(x)|dx=tdetDxΦt(x)=0V
Theorem 10.1.3.7. Differentiation formula for determinants

Let S:IRRn,n be a smooth matrix-valued function. If S(t0) is regular for some t0I, then

ddt(detS)(t0)=det(S(t0))tr(dSdt(t0)S1(t0)) ,

where det:Rn,nR is the matrix determinant and tr stands for the trace of a matrix.

Theorem 10.1.3.8. Divergence-free velocity fields for incompressible flows

A stationary fluid flow in ΩRd is incompressible ( Def. 10.1.3.1), if and only if its associated velocity field v=[v1,,vd]:ΩRd satisfies divv=j=1dvjxj=0 everywhere in Ω.

scalar convection-diffusion equation for incompressible flow:

(10.1.3.11)κΔu+ρvgrad u=finΩ
Theorem 10.1.3.13. Maximum principle for scalar 2nd-order convection diffusion equations

Let v:ΩRd be a continuously differentiable vector field and uC0(Ω)C2(Ω). Then there holds the maximum principle

Δu+vgrad uheat sources only0minxΩu(x)=minxΩu(x),Δu+vgrad u0maxxΩu(x)=maxxΩu(x).

Video 10.1.4 Time-Dependent (Transient) Heat Flow in a Fluid (4 min)

new: time-dependent velocity field v=v(x,t)

ddtVρu dxenergy stored in V+Vjn dSpower flux through V=Vf dxheat generation in Vfor all "control volumes" V.(9.2.1.3)

yields transient CDE:

t(ρu)div(κgrad u)+div(ρv(x,t)u)=f(x,t)in Ω~:=Ω×]0,T[.(10.1.4.1)

+ "elliptic" boundary conditions
+ initial condition : u(x,0)=u0(x)

for incompressible fluid divxv(x,t)=0 :

(10.1.4.2)t(ρu)κΔu+ρv(x,t)grad u=f(x,t)in Ω~:=Ω×]0,T[ 

Video 10.2.1 Singular Perturbation (16 min)

linear variational problem (u,wH01(Ω)):

(10.2.0 .3)ϵΩgrad ugrad w dx+Ω(vgrad u)w dxbilinear form a(u,w)=Ωf(x)w(x) dxlinear form (w)

#todo maybe some notes on the derivation of notion?

use method of characteristics (MoC) to compute u(y(t)):

(10.2.1.8)u(y(t))=u(x0)+0tf(y(s)) ds
Notion 10.2.1.9. Singularly perturbed problem

A boundary value problem depending on parameter ϵϵ0 is called singularly perturbed, if the limit problem for ϵϵ0 is not compatible with the boundary conditions.

For the pure transport problem vgrad u=f Dirichlet boundary conditions can be imposed only on the inflow boundary part

(10.2.1.11)Γin:={xΩ:v(x)n(x)<0} .

but not on its complement in Ω, the outflow boundary part

(10.2.1.12)Γout:={xΩ:v(x)n(x)>0} .

Pasted image 20260421090327.png|400

=> singular perturbation

Pasted image 20260421090250.png|400

On a closed streamline we cannot find a point x0Γin, which renders the solution formula (10.2.1.8) meaningless.

Video 10.2.2 Upwinding (13 min)

ΩRd=^ bounded computational domain

(10.2.0.1)ϵΔudiffusive term(2nd-order term)+v(x)grad uconvective term(1st-order term)=fin Ω,u=0on Ω.

#todo look at derivation of 10.2.2.2

for ϵ1 spurious oscillation due to even-odd decoupling

Alrebraic sign conditions

(Linearly interpolated) discrete solution satisfies maximum principle (3.7.2.1). system matrix complies with sign-conditions

Tldr: Upwinding: idea

  • Goal: ϵ-robust method (satisfaction of maximum principle)
  • Mechanism of Upwinding: use one-sided difference quotients in direction of velocity ("upwind" direction)
    • In 1D: use backwards diff. quotient to satisfy algebraic sign conditions regardless of h,ϵ (forwards diff. quotient only works for h<2ϵ)
    • 2D/3D: standard Galerking methods produces "terrible oscillation" -> upwinding needed

"tradeoff between cvg. speed and accuracy ()"

Video 10.2.2.1 Upwind Quadrature (17 min)

different derivation of upwinding for 1D: apply global composite trapezoidal rule to 2nd term of convertcion-diffusion 2-pt BVP:

(10.2.2.1)ϵd2udx2+dudx=f(x)in Ω,u(0)=0,u(1)=0

uH01(]0,1[):

ϵ01dudx(x)dvdx(x)dx+01dudx(x)v(x)dx=:a(u,v)=01f(x)v(x)dx=:(v)vH01(]0,1[)

Pasted image 20260421110419.png
upwind quadrature rule approximates the convective bilinear form as a weighted sum over all mesh nodes pV(M):

Ω(vgrad uh)whdxpV(M)m(p)(v(p)(grad uh)up(p))wh(p) m(p)=13KUp|K|

p.w. linear functions: grad uh is constant on each triangle but discontinuous across edges and at nodes

=> idea: use values from upstream triangle Ku
Pasted image 20260421110516.png|400

Ku(p):={KM:pK and s>0 such that psv(p)K}

The gradient value used in the quadrature is then defined by the limit:

v(p)grad uh(p):=limδ0v(p)grad uh(pδv(p))

using "tent function" basis {bi}i=1N, entries of the convective part of the Galerkin matrix B are given by:

Bj,i=m(aj)(v(aj)(grad bi)|Ku(aj))

=> fulfills algebraic sign conditions => ϵ-robust

#todo not happy with this summary

Always be sure in which direction the velocity is going!

Video 10.2.2.2 Streamline Diffusion (19 min)

Artificial diffusion/viscosity CFD

upwinding = h-dependent enhancement of diffusive term

problem:
Pasted image 20260421111344.png
enhancing diffusion smearing of internal layers and ridges

we are no longer solving the right problem!
Heuristics of streamline upwinding (SV)

Since the solution is smooth along streamlines, then adding diffusion in the direction of streamlines cannot do much harm.

solution: anisotropic artificial diffusion in streamline direction

ϵϵI+=δKvKvKT=new diffusion tensorR2,2

SU-enhanced variational problem

(10.2.2.30)Ω(ϵI+=δKvKvKT=)gradugradw+v(x)graduwdx=ΩfwdxwH01(Ω).

This tampering affects the solution u: (solution of (10.2.2.30) solution of (10.2.0.1))

Definition 10.2.2.31. Consistent modifications of variational problems

A variational problem is called a consistent modification of another, if both possess the same (unique) solution(s): If uV solves

a(u,v)=(v)vV0

then, it should also solve modified LVP:

a~(u,v)=~(v)vV0

to satisfy this, we add a residual (term that vanishes for exact solution)

(10.2.2.35)Ωϵgradugradw+(v(x)gradu)wdx+KMδKK(ϵΔu+vgraduf)(vgradw)dxstabilization term =0, if u is exact solution=ΩfwdxwH01(Ω)

Choice of δK: (for p.w. linear FE)

δK:={ϵ1hK2, if vK,hK2ϵ1,diffusion dominatedhK, if vK,hK2ϵ>1.convection dominated
"Meta theorem" :

No ϵ-robust linear method that respects the maximum principle strictly can be more than 1st-order convergent in L2!

Video 10.3.1 Method of Lines (13 min)

Method of Lines (MOL) for transient convection-diffusion problems: "half-way" discretization strategy that converts a time-dependent partial differential equation (PDE) into a system of ordinary differential equations (ODEs) by first discretizing only the spatial variables:

transient convection-diffusion equation with Dirichlet boundary conditions:

(10.3.1.1){utϵΔu+v(x,t)gradu=fin Ω~:=Ω×]0,T[,u(x,t)=g(x,t)xΩ,0<t<T,u(x,0)=u0(x)xΩ.
  1. Spatial Discretization: t is treated as parameter, spatial domain is discretized (e.g., using finite elements on a fixed mesh) => system of ODEs for the time-dependent basis expansion coefficients
(10.3.1.2)Mdμdt(t)+ϵAμ(t)+B(t)μ(t)=φ(t)

* μ(t): The time-dependent vector of basis expansion coefficients representing uh(x,t).
* M : mass matrix
* A : FE Galerkin matrix for Δ
* B(t) : transport matrix (discretization of the convective term vgrad u)
* φ(t) : load vector (depending on f and g -> time-independet)
2. Temporal Discretization: solve ODE system using numerical integrator (timestepping method) to obtain a fully discrete solution.


robustness:

12. Finite Elements for the Stokes Equations

Video 12.1 Modeling the Flow of a Viscous Fluid (30 min)

(substantial modelling component in this chapter)

with these assumptions, we get the space:

(12.1.0.6)V:={v:ΩRd continuous, divv=0,v|Ω=0}.

balance between 2nd law of T.D. (entropy maximized) and 1st law of T.D. (conservation of energy):

(12.1.0.12)Ωμcurlv(x)2dxdissipated energy=Ωfvdxenergy injected through forces(12.1.0.13)v=argmax{Ωμcurlv(x)2dx:vV,v satisfies (12.1.0.12)}

converted to quadratic minimization problem:

(12.1.0.18)v=argminvV12Ωμcurlv(x)2dxΩfvdx.

#todo review questions

Video 12.2.1 The Stokes Equations: Constrained variational formulation (20 min)

Lemma 12.2.1.2. Δ=curl curlgrad div

For vC2(Ω),v|Ω=0, holds (v=[v1,,vd])

Ωcurl v2dx+Ω|div v|2dx=ΩDvF2dx=ΩDvJacobian:Dvdx=i=1dΩgrad vi2dx

where Dv:Dv is the Euclidean inner product of matrices

using lemma 12.2.1.2 + divergence constraint (div v=0), we get:

(12.2.1.4)v=argminvV(12a(v,v)(v))(12.2.1.12)a(v,w):=ΩμDv:Dwdx=μi=1dΩgrad vigrad widx(w):=Ωfwdx(f external stirring force field)

on the space

(12.2.1.13)V=H01(div 0,Ω):={v(H01(Ω))d:div v=0}
No simple FE subspace of H01(div 0,Ω) -> variational form useless

#todo review questions

Video 12.2.2 The Stokes Equations: Saddle Point Problem Formulation (55 min)

[AI] We want to solve a constrained minimization problem. We introduce a state space U and a multiplier space Q. For a convex differentiable functional J(v) subject to a linear constraint Bv=0, we define the Lagrangian functional L(v,p):=J(v)+(p,Bv)Q, where pQ is the Lagrange multiplier. The solution is found by solving the min-max problem v=argminvUsuppQL(v,p).

Lemma 12.2.2.4. Necessary conditions for existence of solution of saddle point problems

Any solution v of (12.2.2.3) will be the first component of a zero (v,p) of the derivative ("gradient") of the Lagrangian functional L: =DL(v,p)=0

=^ solutions of min-max problems correspond to saddle points:
Pasted image 20260422220206.png
[AI] To find the saddle point, we evaluate the partial derivatives of L:

Lv(v,p)(w)=DJ(v)(w)+(p,Bw)Q=0wULp(v,p)(q)=(q,Bv)Q=0qQ

Setting the derivatives to zero yields a system of variational equations. If J(v) is quadratic, we replace DJ(v)(w) with a bilinear form a(v,w) and a linear form (w).

...we get to the variational saddle point problem (SPP)

(12.2.2.9)DJ(v),wa(v,w)+(p,Bw)Q=0(w)wU,(q,Bv)Q=0qQ.

Seek the velocity field v(H01(Ω))d and a Lagrange multiplier pL2(Ω) such that

(12.2.2.16)ΩμDv:Dwdxa(v,w)+Ωdivwpdxb(w,p)=Ωfwdx(w)w(H01(Ω))dΩdivvqdxb(v,q)=0qL2(Ω)

[AI] Ensuring uniqueness of pressure: By Gauss' theorem, Ωdivvdx=ΩvndS=0 since v=0 on Ω. We infer that the pressure solution p is only unique up to a constant (adding any constant c to p still retains a valid solution). To restore uniqueness, we impose a vanishing average condition on the pressure. We replace L2(Ω) with the constrained space L2(Ω):={qL2(Ω):Ωqdx=0}.

Theorem 12.2.2.23. Ladyzhenskaya–Babuška–Brezzi conditions (LBB-conditions)

If the following two conditions are satisfied,
(i) the bilinear form a is N(b)-elliptic (ellipticity on the kernel)

(LBB1)α>0:|a(v,v)|αvU2vN(b),

(ii) the bilinear form b satisfies the inf-sup condition

(LBB2)β>0:supvU|b(v,q)|vUβqQqQ,

then the variational saddle point problem (12.2.2.50) possesses a unique solution (v,p)U×Q, which satisfies

(12.2.2.24)vU+pQC(supwU|(w)|wU+supqQ|g(q)|qQ),

with C>0 independent of and g.

Pasted image 20260422222216.png

Applied to stokes SPP:

ΩμDv:Dwdx+Ωdivwpdx=Ωfwdxw(H01(Ω))d,(12.2.2.19)Ωdivvqdx=0qL2(Ω),(12.2.2.21)vUpQ:{a(v,w)+b(w,p)=(w)wUb(v,q)=g(q)qQ

where

note: complex derivation using Theorem (12.2.2.38): existence of stable velocity potentials can be looked up in the script; however, we get:

Theorem 12.2.2.40. Existence and uniqueness of weak solutions of Stokes problem ("stability estimate")

The linear variational saddle point problem (12.2.2.19) ("Stokes problem") has a unique solution (v,p)H01(div 0,Ω)×L2(Ω), which satisfies

(12.2.2.41)C=C(Ω)>0:vH1(Ω)+pL2(Ω)CfL2(Ω).

Video 12.2.3 Stokes System of Partial Differential Equations (15 min)

Pasted image 20260428103723.png

12.2.3.1. Extra somoothness of velocity and pressure

For the solution (v,p) of (12.2.2.19) we assume

v=(H2(Ω))danduH1(Ω)

Stokes equation:

(12.2.3.5)μΔu+p=fmomentum balancediv u=0in ΩincompressibilityΩp dx=0zero mean for pressureu=0on Ωno-slip b.c.

pressure poisson: If v,p sufficiently smooth, we have div(Δu)=Δ(divu), and we get:

Δp=divfin Ω

-> cannot be solved, missing b.c. for p

#todo review questions

12.3 Galerking Discretization of the Stokes Saddle Point Problem

Video 12.3.1 Pressure Instability (40 min)

applying galerking discretization to the problem from chapter 12.1/.2:

MMnMQQnQ in (2.19)N:=dimMn,M:=dimQn<

DVP:

(12.3.0.4)vhUhphQh:a(vh,wh)+b(wh,ph)=(wh)whUh,b(vh,qh)0=0qhQh. vh=i=1Nvibhiph=j=1Mπjβhj

leads to saddle point LSE:

(12.3.0.7)[ABTB0][vπ]=[ϕ0],

with matrix entries:

(12.3.0.8a)A:=[a(bhj,bhi)]i,j=1N=[ΩμDbhj(x):Dbhi(x)dx]i,j=1NRN,N,(12.3.0.8b)B:=[b(bhj,βhi)]1iM1jN=[Ωdivbhj(x)βhi(x)dx]1iM1jNRM,N,(12.3.0.8c)ϕ:=[(bhj)]j=1N=[Ωf(x)bhj(x)dx]j=1NRN.

pressure instability
B has to be chosen carefully to prevent spurious oscillations

Intermediate

dimUhdimQh is a necessary condition for the uniqueness of the pressure solution ph of the discrete saddle point variational problem (12.3.0.4).

Video 12.3.2 Stable Galerkin Discretization of Stokes Saddle Point Problem (30 min)

#todo why, exactly?

example: by rising velocity field space P1P2, checkerboard modes instability (see previous video) is cured

Definition 12.3.2.7. Stable finite element pair

A pair of finite element spaces UhH01(Ω), QhL2(Ω) is a stable finite element pair, if the solution (vh,ph) of the discrete saddle point problem (12.3.0.4) satisfies

C>0:vha+phL2(Ω)Csupw(H01(Ω))d|Ωf(x)w(x)dx|wafL2(Ω),

where the constant C>0 may depend only on Ω, the coefficient μ, and the shape regularity measure ( Def. 3.3.2.20) of M.


Theorem 12.3.2.15. inf-sup condition

The finite element spaces UhH01(Ω), QhL2(Ω) provide a stable finite element pair ( Def. 12.3.2.7) for the Stokes problem (12.2.2.19)/(12.3.0.2) if there is a constant β>0 depending only on Ω and the shape regularity measure ( Def. 3.3.2.20) of M such that

inf-sup cond.: supwhUh|b(wh,qh)|whaβqhL2(Ω)qhQh.

-> #todo conclusion?

Video 12.3.3 Convergence of Stable FEM for Stokes (30 min)

abstract lax equivalence principle

Assumption 12.3.3.5. Stability of the discrete variational problem

(12.3.3.6)Cs>0:uhCssupwhHh|(wh)|wh,

using residual equation + assumption + -inequality:

uuhdiscretizat. error(1+CsCc)independent of uinfvhHhuvhbest approx. error

-> u is quasi-optimal (optimal (see Cea's lemma) + some constant)

Discrete stability quasi-optimality

If a discrete linear variational problem is stable according to Ass. 12.3.3.5, then Galerkin solutions are quasi-optimal.

which leads to:

Theorem 12.3.3.13. Convergence of stable FE for Stokes problem

If Uh,Qh is =a stable finite element pair= ( Def. 12.3.2.7) for the Stokes variational saddle point problem (12.2.2.19), then the corresponding finite element Galerkin solution (vh,ph) satisfies

vvhH1(Ω)+pphL2(Ω)C(infwhUhvwhH1(Ω)+infqhQhpqhL2(Ω))sum of both best approximation errors,

with a constant C>0 that depends only on Ω,μ, and the shape regularity of the finite element mesh.

but we don't want a poor pressure space to affect the convergence of velocity solution:

Definition 12.3.3.16. Pressure-robust Galerkin discretization of the Stokes problem

A pair of finite element spaces Uh(H01(Ω))d, QhL2(Ω) for the Galerkin discretization of the Stokes variational saddle point problem (12.2.2.19) is called pressure-robust, if the velocity component vh of the Galerkin solution satisfies

vvhH1(Ω)CinfwhUhvwhH1(Ω)

with C>0 independent of the driving force field f.

Lemma 12.3.3.17. Criterion for pressure robustness

A pair of finite element spaces Uh(H01(Ω))d,QhL2(Ω) for the Galerkin discretization of the Stokes variational saddle point problem (12.2.2.19) is pressure-robust in the sense of Def. 12.3.3.16, if

divUhQh.

If we assume this, from

(12.3.3.18)vhUh,phQh:ΩμDvh:Dwhdx+Ωdivwhphdx=ΩfwhdxwhUh,Ωdivvhqhdx=0qhQh.

we get:

ΩμD(vvh):Dwhdx=0whUh(div0)

and since this is a version of Galerkin orthogonality, (similar to proof for Cea's lemma)

vvhainfwhMh(div0)vwha

-> optimality, if approximating function in discrite space of functions with vanishing div
-> however, no practical spaces have been found that satisfy this criterion -> currently useless

#todo review questions

Video 12.3.4 The Taylor-Hood Finite Element Method (15 min)

Intermediate

  1. The pair (Uh,Qh) of finite element spaces must be stable ( Def. 12.3.2.7)
  2. The velocity finite element space Uh should provide the same rate of algebraic convergence of the H1(Ω)-best approximation error w.r.t. hM0 as the pressure space Qh in L2(Ω).
  3. The velocity finite element space Uh should guarantee 1 and 2 with as few degrees of freedom as possible.

-> 2. and 3. concern efficiency. A stable way to satisfy the requirements is the Taylor-Hood (PS-P1) finite element method for Stokes problem:


Video 12.3.5 The Non-Conforming Crouzeix-Raviart FEM (40 min)

Definition 12.3.5.2. 2D scalar Crouzeix-Raviart finite element space

The Crouzeix-Raviart finite element space on a triangular mesh M is

CR(M):={vL2(Ω):v|KP1(K)KM,

v continuous at midpoints of interior edges of M}.

(12.3.5.8)CR0(M):={vhCR(M):vh(me)=0eΩ}Uh:=(CR0(M))2(H01(Ω))2Qh:=S0,1(M)

Pasted image 20260428145349.png
DVP: seek vh(CR(M))2,phS0,1(M) such that

(12.3.5.16)KMKμDvh|K:Dwh|Kdx+KMKdivwh|Kphdx=Ωfwhdx,KMKdivvh|Kqhdx=0,
Lemma 12.3.5.19. Inf-sup condition for (CR0(M))2-S01(M)-pair

With a constant C>0 depending only on Ω and the shape-regularity measure of M

(12.3.5.20)supwh(CR0(M))21whH1(M)|KMKdivwh|Kqhdx|1CqhL2(Ω)qhS0,1(M)
wH1(M)2:=KMw|KH1(K)2("broken" H1-norm)
Lemma 12.3.5.22. Continuity of ICR

With a constant CI>0 depending only on the shape-regularity measure of M

(12.3.5.23)ICRvH1(M)CIvH1(Ω)vH1(Ω)

intermediate result:

Lemma 12.3.5.25. Fortin-projector property of ICR

(12.3.5.26)KMKdiv(ICRv|K)qhdx=Ωdivvqhdxv(H1(Ω))2,qhS01(M)

and remember:

Theorem 12.2.2.38. Existence of stable velocity potentials

C=C(Ω)>0:qL2(Ω):v(H01(Ω))d:q=divvvH1(Ω)CqL2(Ω).

#todo review questions
#todo tldr not useful

Tldr: Stokes saddle point variational problem

v(H01(Ω))d,pL2(Ω)s.t.

(12.2.2.19)ΩμDv:Dwdx+Ωdivwpdx=Ωfwdxw(H01(Ω))d,Ωdivvqdx=0qL2(Ω).

with a, b form:

(12.3.0.2)vU:=(H01(Ω))dpQ:=L2(Ω):a(v,w)+b(w,p)=(w)wU,b(v,q)=0qQ.

13. Finite-Element Exterior Calculus (FEEC)

13.1 (Differential) Forms

Video 13.1.2 Fields and Integral Forms/Currents (28 min)

-> e and b have totally different physical natures and should be discretized differently.

Orientation:
Pasted image 20260510135853.png

S(Ω)

S(Ω) set of all -dimensional oriented "surfaces" (sub-manifolds) in ΩRd

Notion 13.1.2.7. Integral -forms (IF)/-currents

An (integral) -form/-current ω, 0n, on Σambient domain is a continuous () and additive () mapping ω:kSk(Σ)R satisfying

(13.1.2.8)ω(Γ)=ω(Γ)ΓS(Σ),ω(γ)=0γSk(Σ),k<,

where Γ denotes the -dimensional surface/sub-manifold with flipped orientation.

on domain ΩR3:
Pasted image 20260510135621.png
Notation: I(Ω) vector space of -forms

Field Type Form Degree Integrated Over... Examples
Scalar Field 0-form Points Temperature, Electric Potential
Circulation 1-form Curves Electric Field (e), Magnetic Field (h)
Flux 2-form Surfaces Magnetic Induction (b), Heat Flux, Current Density (j)
Density 3-form Volumes Mass Density, Charge Density
Integral -form / -current, I(Ω)

An integral -form ω is a mapping ω:S(Ω)R that is:

  • Continuous: Small surface deformations lead to small changes in value.
  • Additive: ω(Γ1Γ2)=ω(Γ1)+ω(Γ2) for disjoint Γ1,Γ2.
  • Orientation-reversing: ω(Γ)=ω(Γ).
  • Dimension-consistent: ω(γ)=0 for surfaces γ with dim(γ)<.

I(Ω) denotes the vector space of these forms.

  • Notation: as a duality pairing: ω,Γ:=ω(Γ).

Video 13.1.3 Differential Forms (56 min)

we now go from global measurements of fields (integral forms) to local characterization:

Definition 13.1.3.4. Alternating -linear form

An alternating -linear form μ, N, on a real vector space V is a mapping

μ:V×V××V timesR,

which

  1. is linear in each of its arguments, and which
  2. changes sign, when any two arguments are swapped ("alternating").
    =0 when any two arg. vectors are the same
    =0 when args. are linearly depependent

it returns the signed volume of the parallelotope spanned by its arguments

Notation: (V) vector space

(V)=(n),0 if >n

Vector proxies: differential forms in R3 are identified with classical fields via proxies

Integration over manifolds: integral of a diff. form ω over an oriented -dimensional manifold Γ:

(13.1.3.34)Γω={ω(x)for =0,Γ={x},xΩ,Γv.p.(ω)(x)ds(x)for =1,Γv.p.(ω)(x)n(x) dS(x)for =2, flux integralΓv.p.(ω)(x) dxfor =3.
Intermediate

Continuous differential -forms ω1C0Λ(Ω1), ω2C0Λ(Ω2), give rise to a valid integral -form on Ω by piecewise integration, if and only if

(13.1.3.37)ω1(x)(t1,,t)=ω2(x)(t1,,t)t1,,tTx(Σ)xΣ.

"For piecewise smooth forms to define a valid global integral form, they must agree on the tangent space of the interface Σ"

  • 0-forms: Must be globally continuous.
  • 1-forms: Must have tangential continuity (jump in u×n=0).
  • 2-forms: Must have normal continuity (jump in un=0).
  • 3-forms: No continuity required.

Video 13.1.4 Exterior Calculus (70 min)

pullbacks:
Pasted image 20260512143308.png

Definition 13.1.4.4. Pullback/transformation for differential forms

Given a C1-mapping Φ:Ω^Ω, Ω^,ΩRd domains, the pullback Φ:Λ(Ω)Λ(Ω^), 0d, is defined as

(Φω)(x^)(v1,,v)=ω(Φ(x^))(DΦ(x^)v1,,DΦ(x^)v)viRdx^Ω^.
Theorem 13.1.4.5. Invariance of integrals under pullback

Using the notations of Def. 13.1.4.4, the pullback Φ:Λ(Ω)Λ(Ω^) satisfies

(13.1.4.6)Γ^(Φω)=Φ(Γ^)ωΓ^S(Ω^),

which ensures compatibility with the pullback of integral forms.

Vector Proxy Formulas (in 3D):

orientation of (t) = induced orientation
Pasted image 20260512144020.png

Definition 13.1.4.27. Exterior derivative of integral forms

Let Σ be an n-dimensional manifold/domain, nN. For 0<n the exterior derivative operators (for integral forms)

d:I(Σ)I+1(Σ)

are defined as

(13.1.4.28)dω,Γ=ω,ΓωI(Σ)ΓS+1(Σ),

where the boundary Γ is endowed with the induced orientation.

"d,=,"

fundamental identity

Γ=d+1d=0Φ(Γ)=Φ(Γ)Φd=dΦ
Definition 13.1.4.38. Exterior derivative for C1 differential forms

The exterior derivative of a continuously differentiable differential form ωC1Λ(Ω) of order {0,,d1} on a domain ΩRd is the continuous differential +1-form dω defined asa

(13.1.4.39)dω(x)(v1,,v+1):=k=1+1(1)k1Dω(x)vk(v1,,vˇk,,v+1)

for all xΩ and "tangent vectors" viRd.


aIn this formula Dω:ΩL(Rd,Λ(Rd)) is the (Fréchet) derivative of ω, which maps into the space of linear mappings RdΛ(Rd).

Pasted image 20260512145150.png

Theorem 13.1.4.57. Generalized Stokes theorem

For every domain ΩRd and {0,,d1} holds true

(13.1.4.58)Γdω=ΓωωC1Λ(Σ),ΓS+1(Ω).

3D Vector Proxy Identifications:

Theorem 13.1.4.64. dd=0

For every domain ΩRd and {0,,d2} holds true

(13.1.4.65)d+1d=0 on C2Λ(Ω)R(d)N(d+1),

that is, the image of d lies in the kernel of d+1.

curlgrad=0divcurl=0
Theorem 13.1.4.81. Existence of potentials

Let ΩRd be a domain and 1d. Topological assumption: If every oriented, compact and closed -dimensional sub-manifold S(Ω) is the boundary of an +1-dimensional sub-manifold S+1(Ω), then

(13.1.4.82)ωC1Λ(Ω),dω=0ηC1Λ1(Ω)such thatd1η=ωa potential.

We call ΓS(Ω) closed, if Γ=

Definition 13.1.4.102. Exterior product/wedge product of alternating multilinear forms

For a vector space V the exterior product (also called wedge product)

:Λ(V)×Λk(V)Λ+k(V)

(Λn(V) is the vector space of alternating n-linear forms on V, see Def. 13.1.3.4) is defined as

(αβ)(v1,,v+k)=1!k!σΠ+ksgn(σ)α(vσ(1),,vσ())β(vσ(+1),,vσ(+k))Permutations of (1,,+k)

for all v1,,v+kV.

Exterior Product is associative, bilinear & (anti-)commutative

(13.1.4.113)v.p.(ωη)={v.p.(ω) v.p.(η)forωC0Λ0(Ω),ηC0Λk(Ω),k=0,1,2,3,v.p.(ω)×v.p.(η)forωC0Λ1(Ω),ηC0Λ1(Ω),v.p.(ω)v.p.(η)forωC0Λ1(Ω),ηC0Λ2(Ω).
Theorem 13.1.4.117. Pullback and exterior product/wedge product

Let Ω^,ΩRd be two domains connected by a C1-mapping Φ:Ω^Ω. Then the pullback Φ of differential forms commutes with the exterior product of differential forms:

(13.1.4.118)Φ(ωη)=(Φω)(Φη)ωC0Λ(Ω),ηC0Λk(Ω),,kN0.
Theorem 13.1.4.119. Product rule for exterior derivatives

For any domain ΩRd and ,k{0,,d}

(13.1.4.120)d+k(ωη)=dωη+(1)ωdkηωC1Λ(Ω),ηC1Λk(Ω).

example from video: 20260513_NumPDE_video13.1.5_maxwell

Video 13.1.5 Sobolev Spaces of Differential Forms (18 min)

Definition 13.1.5.1. Space of square-integrable differential forms

Let u=[u1um]=:ΩR(d) by any "component representation" of a differential -form ωΛ(Ω),{0,,d}.
Then we define the Hilbert space of square-integrable differential -forms

L2Λ(Ω):={ωΛ(Ω):uiL2(Ω)}.
Definition 13.1.5.2. Sobolev space of differentiable differential forms

For a domain ΩRd and {0,,d1} we define

HΛ(d,Ω)"finite-energy fields":={ωL2Λ(Ω):dωL2Λ+1(Ω)},

which becomes a Hilbert space with the basis-dependent norm

ωHΛ(d,Ω)2:=ωL2Λ(Ω)2+dωL2Λ+1(Ω)2.

3. Vector Proxy Identifications (in 3D)

Form Degree Sobolev Space Vector Analytic Proxy Property
0-form HΛ0(d,Ω) H1(Ω) ω,grad(ω)L2
1-form HΛ1(d,Ω) H(curl,Ω) u,curl(u)L2
2-form HΛ2(d,Ω) H(div,Ω) u,div(u)L2

Pasted image 20260512152537.png|300

Theorem 13.1.5.10. Transmission condition for HΛ(d,Ω)

Let ω1C1Λ(Ω1) and ω2C1Λ(Ω2),{0,,d1}, be two continuously differentiable -forms that are continuous up to boundary of Ωi and set

ω:={ω1in Ω1,ω2in Ω2.

Then

ωHΛ(d,Ω)ω1(x)(t1,,t)=ω2(x)(t1,,t)space of tangent vectorstiTx(Σ),xΣ:

ωHΛ(d,Ω), if and only if the restrictions of ω1 and ω2 to Σ coincide as differential -forms on Σ.

Practical 3D Continuity:

For d>1, integration over sub-manifolds is not a bounded linear functional on these Sobolev spaces (similar to how point evaluation is not bounded in H1)
Tldr: Sobolev Spaces of Differential Forms

L2-Space

  • coefficient functions uiL2(Ω)
  • intrinsic space (basis-independent), norm basis-dependent

Sobolev Space of "Finite Energy" Fields

HΛ(d,Ω):={ωL2Λ(Ω):dωL2Λ+1(Ω)}
  • Norm: ωHΛ2:=ωL22+dωL22.
  • The exterior derivative d is a bounded linear operator mapping HΛHΛ+1.

Zero Boundary Conditions (H0Λ)

  • forms with vanishing tangential trace on Ω
  • example: e×n=0 (PEC boundary conditions for the electric field, 13.1.3.43)

13.2 Discrete Differential Forms

13.2.1 Cochain Calculus (67 min)

Introduce discrete integral -forms as mappings from a finite (and suitable: meaningful ) subset of S(Ω) into R.

reminder: Integral form: assigns value -> oriented surface

Cochain ("discrete integral form") Assigns values to specific -facets of a mesh

in 3D:

Cochain assignes values to...
0-cochain nodes
1-cochain edges
2-cochain faces
3-cochain cells
Definition 13.2.1.1. Generalized oriented meshes

A generalized oriented mesh M of a domain ΩRd is a collection of sets of -facets,

(13.2.1.1)M:=(F(M))=0d

such that

  1. F(M)S(Ω): every -facet fF(M) is an oriented (*), relatively open, bounded, -dimensional, non-degeneratea Cpw1-surface Rd,
  2. the facets form a partition of Ω:
Ω==0dFF(M)F,ff=fFj(M),fFk(M),k,j{0,,d}
  1. for every FF(M),0<d, its boundary F is the union of the closures of finitely many 1-facets:
FF(M):{f1,,fm}F1(M) such that F=f1fm
  1. the intersection of the closures of any two -facets is an 1-facet,
{1,,d},f,fF(M):ffF1(M)
  1. for every fF(M),0<d, there is a FF+1(M) such that fF.

aAn -dimensional sub-manifold Rd is called non-degenerate, if it has non-zero -dimensional volume.

For cochain to define values consistently, the mesh must be oriented. Each facet has an intrinsic orientation (e.g., the direction of an edge). When we look at the boundary of a face, the face's orientation induces a direction on its edges.

Definition 13.2.1.13. Relative orientation of mesh facets

Given FF(M),0<d, and fF1(M), we define their relative orientation as

or(f,F):={1, if fF and the orientations of f and F agree,1, if fF and the orientations of f and F are opposite,0, if fF.

example:
Pasted image 20260513172938.png|300

Definition 13.2.1.16. Exterior derivative for cochains

Given a generalized oriented mesh M of ΩRd and {0,,d1}, the exterior derivative d:C(M)C+1(M)linear operator is defined by

(13.2.1.17)dω,F=fF(M)or(f,F)ω,fFF+1(M).

incidence matrix representation D:

Matrix Calculus Proxy Maps...
D0 Discrete Gradient Nodes Edges
D1 Discrete Curl Edges Faces
D2 Discrete Divergence Faces Cells
Theorem 13.2.1.21. dd=0

For any generalized mesh M of a domain ΩRd and {0,,d2} holds true

d+1d=0D+1D=OR(D)N(D+1).
Theorem 13.1.4.81. Existence of potentials

Let ΩRd be a domain and 1d. If

  • (topological assumption:) every oriented, compact and closed -dimensional sub-manifold of S(Ω) is the boundary of an +1-dimensional sub-manifold S+1(Ω)

then

(13.1.4.82)ωC1Λ(Ω),dω=0ηC1Λ1(Ω)such thatd1η=ω.
Theorem 13.2.1.22. Existence of cochain potentials

Let the domain ΩRd satisfy the assumptions of Thm. 13.1.4.81. Then for any generalized oriented mesh M of Ω and for any 1d we have

ωC(M):dω=0ηC1(M) such that d1η=ω(13.2.1.23)R(d1)=N(d)R(D1)=N(D).
From now on, C0 is not a continuous function but an 0-cochain!
Summary for 3D till now
Category Degree =0 Degree =1 Degree =2 Degree =3
Physical Nature Scalar Value Circulation Flux Density
Mathematical Nature Real Number Linear Form (Functional) Alternating Bilinear Form Alternating Trilinear Form
Local Action ω(x)() Scalar value cR Maps 1 vector: vR Maps 2 vectors: (v1,v2)R Maps 3 vectors: (v1,v2,v3)R
Integral Form
(I)
Value at a point Work along a curve Flow through a surface Amount in a volume
Differential Form
(Λ)
Scalar function u(x) 1-linear form (Linear functional) Alternating 2-linear form Alternating 3-linear form
Alternating Property N/A (Linear by default) ω(v1,v2)=ω(v2,v1) Swapping any two vectors flips the sign
3D Vector Proxy
(v.p.)
Scalar function u(x) Vector field u(x) Vector field u(x) Scalar function u(x)
Proxy Evaluation u(x) Dot product: u(x)v Cross product: u(x)(v1×v2) Determinant: u(x)det(v1,v2,v3)
Integration (Eq. 13.1.3.34) Value at point x Path integral: Γuds Flux integral: ΓundS Volume integral: Γudx
Exterior Deriv. (d) Gradient Curl Divergence Zero (dd=0)
Sobolev Space H1(Ω) H(curl,Ω) H(div,Ω) L2(Ω)
Mesh Entity (Facet) Node (Vertex) Edge Face Cell
Cochain (C) Values on nodes Values on edges Values on faces Values on cells

13.2.2 Whitney Forms (70 min)

Goal:

-cochain ω(mapping F(M)R)matching integral -form ω(mapping S(Ω)R)

interpolation condition: ω,f=ω,ffF(M)

Local Whitney Forms (Basis Functions) On a simplex K with barycentric coordinates λi, the local Whitney -forms are the basis for reconstruction:


general formula for d-simplex K:

(13.2.2.17)(W,Kω)(x)=!fF(K)j=0(1)j(λijd0λi0d0λijd0λi)βf,Kω,f,
Lemma 13.2.2.2.22. Local interpolation commutes with exterior derivative

The local interpolant of the exterior derivative of an -cochain is the same as the exterior derivative of the interpolant of that cochain,

d(W,Kω)=W+1,K(dω)ωC(M),KFd(M)C(M)W,KCΛ(K)ddC+1(M)W+1,KCΛ+1(K).
dW=W+1d

-> Whitney forms are not just any interpolant; they are structure-preserving

(13.2.2.37)span{v. p.(βf,K2)}fF2(K)={xKax+b,aR,bR3}(P1(K))3.

vector proxy formulas for the spaces spanned by local Whitney -forms on K

Degree ℓ span{v. p.(βf,Kℓ​)}f∈Fℓ​(K)​ Cochain coeff.
=0 {xKa+bx,aR,bR3} uu(ai)
=1 {xKa+b×x,a,bR3} uΣ[ai,aj]uds
=2 {xKax+b,aR,bR3} uΣ[ai,aj,ak]undS
=3 {xc,cR} uKudx
Definition 13.2.2.43. Generalized interpolation operator for cochains

Given an -cochain ωC(M), we define the generalized interpolation operators,

W:C(M)I(Ω),0d,

as

(13.2.2.44)(Wω)(x):=(W,Kω)(x)for allxK,KFd(M),

with W,K. In particular, Wω is a M-piecewise smooth differential -form.

We call the integral -form

(13.2.2.52)βf:=WωfI(Ω)

the Whitney -formA global shape function ! associated with the -facet f.

Lemma

(13.2.2.53)supp(βf)={KFd(M):fK}.

Intermediate

given a simplicial mesh M of Ω we have identified the Whitney finite-element space of degree {0,,d},

W(M):=W(C(M))=span({βf}fF(M))HΛ(d,Ω),

as a finite-element subspace of the Sobolev space HΛ(d,Ω) of (differential) -forms on Ω.

Convergence

infvhVhuvhL2(Ω)=O(hMp+1)forhM0,
Theorem 13.2.2.59. L2-norm best approximation estimates for W(M)

If ωH1Λ(Ω) then

infvhW(M)ωvhL2Λ(Ω)ChMωH1Λ(Ω),

with a constant C>0 that depends only on and the shape regularity measure (Def. 3.3.2.20) of M.

13.3 Whitney FEM for Computational Electromagnetism

13.3.1 Energies and Linear Material Laws (35 min)

Maxwells equations are underdetermined -> need "closure equations"

Field energy functionals

Assumption 13.3.1.4. Linear materials

Both electric and magnetic field energies are homogeneous quadratic functionals, that is, there are bilinear forms mϵ:L2Λ1(Ω)×L2Λ1(Ω)R and mμ:L2Λ1(Ω)×L2Λ1(Ω)R such that

(13.3.1.5)Eel(e(t))=12mϵ(e(t),e(t))andEmag(h(t))=12mμ(h(t),h(t)).

Moreover we expect mϵ and mμ to be bounded from above and below

(13.3.1.6)ϵ,ϵ+>0:ϵωL2Λ1(Ω)2mϵ(ω,ω)ϵ+ωL2Λ1(Ω)2ωL2Λ1(Ω),(13.3.1.7)μ,μ+>0:μωL2Λ1(Ω)2mμ(ω,ω)μ+ωL2Λ1(Ω)2ωL2Λ1(Ω).

-> we want mϵ, mμ to be symmetric bilinear, bounded, uniformly positive definite

3D: For local linear materials, the energy is the integral of a local quadratic form:

using the wedge product, we get weak formulation

Ωd(t)e=mϵ(e(t),e)eL2Λ1(Ω)Ωb(t)h=mμ(h(t),h)hL2Λ1(Ω).

inserting this, we get:
Combining the expressions from image_1e0f33.png and image_1e0f17.png for the electromagnetic energy balance, the relationship is given by:

dEdt(t)EM energy balance=Ωe(t)j(t)+Ωh(t)e(t)Poynting vector=power delivered by j+power flux through Ω=^ Poynting’s theorem

13.3.2.1 Electromagnetic Wave Equations (45 min)

IBVP for EM fields:

ME: d1e(t)=ddtb(t)L2Λ2(Ω),d1h(t)=ddtd(t)+j(t)L2Λ2(Ω)ML: Ωd(t)e=mϵ(e(t),e)eL2Λ1(Ω)Ωb(t)h=mμ(h(t),h)hL2Λ1(Ω)b.c.: (artificial / idealization)

In variational form:

Intermediate

Seek e:[0,T]H0Λ1(d,Ω)PEC b.c. are essential b.c. and h:[0,T]L2Λ1(Ω) such that

(13.3.2.6)mϵ(dedt(t),e)Ωh(t)d1e=Ωj(t)eeH0Λ1(d,Ω),mμ(dhdt(t),h)+Ωd1e(t)h=0hL2Λ1(Ω).

when we combine the terms, we get:

(13.3.2.14)mϵ(dedt(t),e(t))+mμ(dhdt(t),h(t))=Ωj(t)e(t).ddtEtot(t)=Ωj(t)e(t)power injected by src. current

use material law, differentiate in time, test with exterior derivative, 2nd term vanish (both for 1st and 2nd formula), (integration by parts), extract PDE:

#todo missed some derivations that seem interesting

We get to

Seek e:]0,T[H0(curl,Ω) such that

Ω(ϵ(x)d2eˇdt2(x,t))eˇ(x)dx+Ω(μ1(x)curleˇ(x,t))curleˇ(x)dx=Ωjˇt(x,t)eˇ(x)dx

for all eˇH0(curl,Ω) (13.3.2.32)

Note

Which is a form we've already seen in chapter 9.2:

(9.3.1.8)u(t)V0:m(d2udt2,v)+a(u,v)=(v)vV0.

with function space V0:=H0(curl,Ω),

-> electromagnetic wave equations have a lot in common with scalar wave equations

suppe(t),supph(t){xR3:dist(Ω0,x)tsmax}

13.3.2.3 Method of lines for Electromagnetic Wave Equations, Timestepping for Semi-Discrete Electromagnetic Wave Equations (45 min)

we start from #^13-3-2-6:

Seek e:[0,T]H0Λ1(d,Ω) and h:[0,T]L2Λ1(Ω) such that

(13.3.2.6)mϵ(dedt(t),e)Ωh(t)d1e=Ωj(t)eeH0Λ1(d,Ω),mμ(dhdt(t),h)+Ωd1e(t)h=0hL2Λ1(Ω).

method lines (MOL):

stage 1: spatial galerkin discretization

  1. Trial (& test spaces) -> fin.dim. subspaces independent of time
  1. choose ordered bases

MOL-ODE: Seek time-dependent basis expansion coefficient vectors e:[0,T]Rn and h:[0,T]Rm such that

(13.3.2.36)Mϵdedt(t)Bh(t)=ψ(t),Mμdhdt(t)+Be(t)=0,

some other notes:

(13.3.2.21)Ωb(t)d0v=Ωb0d0vddtd2b(t)=0vHΛ0(d,Ω)and all times t,(13.3.2.27)Ωdddt(t)d0v=Ωj(t)d0vcontinuity equ.vH0Λ0(d,Ω)and for all times t.

stage 2: timestepping -> see chapter 9.3.4 (which was not part of the course)

(13.3.2.51)[Mϵ12τjB12τjBMμ][e(j)h(j)]=[Mϵτj12B12τjBMμ][e(j1)h(j1)]+[ψ(tj12)0]. (13.3.2.47)Etot(j)=Etot(j1)+τj12(e(j)+e(j1))ψ(tj12),Etot(k):=12(e(k))Mϵe(k)+12(h(k))Mμh(k)=1/2mϵ(eh(k),eh(k))+1/2mμ(hh(k),hh(k))
Mϵe(j)=Mϵe(j1)+τBh(j12)+τψ(tj12),(I)Mμh(j+12)=Mμh(j12)τBe(j).(II)

boundary conditions:

e×n=0on Ω
13.3.3 Magnetostatic

13.3.3.1 Magnetostatics: Formulations Based on Scalar Potentials (30 min)

static settings: fields do not depend on time, ddt=0

(13.3.3.3)electrostatics: (FL): d1e=0,d2d=qconstraints in transient setting,(13.3.3.4)magnetostatics: (AL): d1h=jnecessary: d2j=0,d2b=0.

+ demand: supp(j)Ωj|Ω=0[v.p.: jn=0 on Ω]


Magnetostatic BVP:

(13.3.3.9)d1h=j,d2b=0in ΩR3,h|Ω=0[PMC]on Ω,

weak MLs:

Ωbh=mμ(h,h)hL2Λ1(Ω),Ωhb=mμ(b,b)bL2Λ2(Ω).

two ways to convert to variational form:

  1. Formulations based on Scalar Potential
Assumption 13.3.3.7. Simple topology of Ω

We assume that the assumptions of Thm. 13.1.4.81 on Ω for =1,2 are satisfied:

  • Every oriented closed 2-surface Ω is the boundary of a sub-domain Ω.
  • Every closed directed curve in Ω is the boundary of an oriented surface Ω.

and we get (after some transformations, i.b.p.):

Intermediate

Seek vH0Λ0(d,Ω) such that

(13.3.3.12)mμ(d0v,d0v)=mμ(hs,d0v)vH0Λ0(d,Ω)

For local, linear ML, v.p., vH01(Ω):

(13.3.3.13)Ω(μ(x)gradv(x))gradv(x)dx=Ω(μ(x)hs(x))gradv(x)dxvH01(Ω).

2nd-order elliptic BVP in weak form

now, we can replace

  1. option 2 for conversion to variational form not explained

13.3.3.2 Magnetostatics: Vector-Potential-Based Variational Formulations (40 min)

(13.3.3.21)aHΛ1(d,Ω):mμ(d1a,d1a)=ΩjaaHΛ1(d,Ω).

LLML & vector proxy formulation:

aˇH(curl,Ω):Ωμ(x)1curlaˇ(x)curlaˇ(x)dx(13.3.3.22)=Ωj(x)aˇ(x)dxaˇH(curl,Ω).

with b.c. hidden in formulation

#todo didn't understand this part

minute 13: great explanation of Lagrange multiplier

Augmented LSE :

(13.3.3.26)[AZZO]regular square matrix[ζπ]=[φ0].

applied to our variational form:
Seek aHΛ1(d,Ω), pHΛ0(d,Ω):={qHΛ0(d,Ω):Ωv.p.(q)(x)dx=0}

(13.3.3.28)mμ(d1a,d1a)+m(a,d0p)p=0!=ΩjaaHΛ1(d,Ω),m(a,d0p)enforces m(,)-orthogonality to N(d1)=0pHΛ0(d,Ω).

or LLML, vector proxy notation:
Seek a˘H(curl,Ω),p˘H1(Ω):={vH1(Ω):Ωv(x)dx=0} such that

(13.3.3.29)Ωμ(x)1curla˘(x)curla˘(x)dx+Ωa˘(x)gradp˘(x)dx=Ωj˘(x)a˘(x)dx,Ωa˘(x)gradp˘(x)dx=0.

for all a˘H(curl,Ω),p˘H1(Ω).


Galerking discretization

  1. choose f.d. subspaces -> Whitney FE spaces
    • also add vanishing mean constraint

Seek ahW1(M), phW0(M), and λR such that

(13.3.3.33)mμ(d1ah,d1ah)+m(ah,d0ph)=Ωjah,aW1(M)m(ah,d0ph)+λΩph(x)dxλ=0orthogonality to (discrete) kernel=0,phW0(M)H0(d,Ω)Ωph(x)dx"orthogonality to const."=0.

for all a˘hW1(M), phW0(M).

  1. ordered bases (whitney 1/O-forms)
(13.3.3.34)[AB0BOc0c0][ahphλ]=[ψ00],

with ph,λ dummy unknowns

13.3.3.3-13.3.3.4 Saddle-Point Variational Problems, Discrete LBB-Conditions for a-Based Magnetostatics (60 min)

start: #^13-3-3-28 Is a saddle point variational problem

we define the kernel of b:

N(b)={uM:b(u,q)=0 qQ}M

In Euclidean setting, we get a saddle point LSE:

(12.2.2.32)vRmπRn:Av+Bπ=φ,Bv+Bπ=γ,

Pasted image 20260514135747.png|500


Galerkin discretization:

  1. step 1
UhU,dimUh=mQhQ,dimQh=n
Theorem 13.3.3.40. Galerkin discretization error estimate for discrete variational saddle point problems

Let the assumptions of Thm. 12.2.2.23 be satisfied. Also assume discrete counterparts of (LBB1) and (LBB2), namely the discrete LBB-conditions

(LBB1h)αh>0:|a(vh,vh)|αhvhU2vhNh(b)constant C>0,(LBB2h)βh>0:supvhUh|b(vh,qh)|vhUβhqhQqhQh.

then the discrete variational saddle point problem (12.2.2.49) possesses a unique solution (vh,ph)Uh×Qh, which satisfies the Galerkin discretization error estimate

(13.3.3.41)vvhU+pphQC(infuhUhvuhU+infqhQhpqhQ),

where (v,p)U×Q solves (12.2.2.49) and with a constant C>0 depending only on Ca,Cb and αh,βh}.

Tldr: discrete #^LBB

  1. ellipticity on kernel of b
  2. in-sup condiction

-> existence, uniqueness, stability of solution + quasi-optimality

  • quasi-optimality: discretization errorbest approx. error|
  1. step 2 of Galerkin discretization:

ordered bases BU:={bh1,,bhN},BQ:={βh1,,βhM} of Uh,N:=dimUh,Qh,M:=dimQh,

saddle point LSE:

(12.3.0.7)[ABTB0][vπ]=[ψφ],


note, that for our problem, while LBB2 always holds, LBB1 only holds if we assume simple topology (#^simple-topology), which we can prove using

Theorem 13.3.3.58. Poincaré-Friedrichs-type inequality for d1

Under Ass. 13.3.3.7 and with a constant C1>0 depending only on Ω (and on the definition of the L2-norm) holds true

(13.3.3.59)vL2Λ1(Ω)C1d1vL2Λ2(Ω)vN(b).
Theorem 13.3.3.64. Discrete Poincaré-Friedrichs-type inequality for d1

Taking for granted Ass. 13.3.3.7 (#^simple-topology) we have

(13.3.3.65)mμ(d1ah,d1ah)αahL2Λ1(Ω)2ahNh(b),

with a constant α>0 depending only on Ω,μ±, and the shape regularity measure of M (and on the definition of the L2-norm).

since LBB1 & LBB2 holds, we get quasi-optimality (for uniformly shape regular families of meshes)

(13.3.3.70)aahHΛ1(d,Ω)+pphHΛ0(d,Ω)C(infvhW1(M)avhHΛ1(d,Ω)=O(hm)+infqhW0(M)pqhHΛ0(d,Ω)=O(hm)),
Corollary 13.3.3.71. Asymptotic Whitney finite element error estimate

Provided that aH1Λ1(Ω), d1aH1Λ2(Ω), pH2Λ0(Ω), the asymptotic discretization error estimate

(13.3.3.72)aahHΛ1(d,Ω)+pphHΛ0(d,Ω)=O(hM)for hM0

holds true for uniformly shape regular families of simplicial meshes M with meshwidths hM.

algebraic cvg with rate 1!


comparing the two different discretizations:
#todo

Formatting

We're converting image into markdown + latex formulas. For normal text, normal markdown. For boxes, use callouts. The format of callouts is the following:

> [!name] <title>
> content

Note that there is no empty line between the callout header and the content!

For inline latex, the format is the following: <content>

For one-line latex, the format is the following:

<content>

For multiline latex, the format is the following:

<content>

Highlighted text can be highlighted in markdown, too: highlight. This is not standard commonmark, but if you see highlighted text in the image, highlight it when converting, too. Same for bold: if a text is emphasised, make it bold.