Escolar Documentos
Profissional Documentos
Cultura Documentos
John W. Peterson
peterson@cfdlab.ae.utexas.edu
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Library Description
Tumor
Angiogenesis
Compressible
RBM NS Library Structure
Basic libraries
DD are LibMesh’s
“roots”
LibMesh Application
“branches” built
Petsc off the library
Metis
Laspack “trunk”
STL
Mpich
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
A Generic BVP
A Generic BVP
Associated to the
Ω
h
problem domain Ω is a
LibMesh data structure
called a Mesh
A Mesh is essentially a
collection of finite
elements
[
Ωh := Ωe
e
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
A Generic BVP
Associated to the
Ω
h
problem domain Ω is a
LibMesh data structure
called a Mesh
A Mesh is essentially a
collection of finite
elements
[
Ωh := Ωe
e
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
(F(u), v) = 0 ∀v ∈ V
(F(uh ), vh ) = 0 ∀vh ∈ V h
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
(F(u), v) = 0 ∀v ∈ V
(F(uh ), vh ) = 0 ∀vh ∈ V h
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Some Examples
Poisson Equation
−∆u = f ∈ Ω
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Some Examples
Poisson Equation
−∆u = f ∈ Ω
+ (∇u · n) v ds
∂ΩN
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Some Examples
Linear Convection-Diffusion
−k∆u + b · ∇u = f ∈ Ω
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Some Examples
Linear Convection-Diffusion
−k∆u + b · ∇u = f ∈ Ω
Some Examples
Stokes Flow
∇p − ν∆u = f
∈ Ω
∇·u = 0
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Some Examples
Stokes Flow
∇p − ν∆u = f
∈ Ω
∇·u = 0
+ (∇ · u) q] dx + n · (ν∇u − pI) · v ds
∂ΩN
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Some Examples
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
(F(uh ), vh ) :=
Z
h
∇u · ∇vh − fvh dx = 0 ∀vh ∈ V h
Ωh
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Element Integrals
Z
h
∇u · ∇vh − fvh dx ∀vh ∈ V h
0 =
Ωh
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Element Integrals
Z
h
∇u · ∇vh − fvh dx ∀vh ∈ V h
0 =
Ωh
Ne Z
X h
∇u · ∇vh − fvh dx ∀vh ∈ V h
=
e=1 Ωe
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Ns
X
h
v Ωe
= ci φi
i=1
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Ns
X
h
v Ωe
= ci φi
i=1
Z Ns
X Z
h
v dx = ci φi dx
Ωe i=1 Ωe
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
K e Ue − Fe
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
x
Ωe
x (ξ ) ξ
Ωe
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
x
Ωe
x (ξ ) ξ
Ωe
The Jacobian of the map x(ξ) is J.
Z Z
Fei = f φi dx = f (x(ξ))φi |J|dξ
Ωe Ω̂e
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
x
Ωe
x (ξ ) ξ
Ωe
ˆξ
Chain rule: ∇ = J −1 ∇ξ := ∇
Z Z
K eij = ∇φj · ∇φi dx = ˆ ξ φj · ∇
∇ ˆ ξ φi |J|dξ
Ωe Ω̂e
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Element Quadrature
Element Quadrature
Element Quadrature
Z
Fei = f φi |J|dξ
Ω̂e
Nq
X
≈ f (x(ξq ))φi (ξq )|J(ξq )|wq
q=1
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Element Quadrature
Z
K eij = ˆ ξ φj · ∇
∇ ˆ ξ φi |J|dξ
Ω̂e
Nq
X
≈ ˆ ξ φj (ξq ) · ∇
∇ ˆ ξ φi (ξq )|J(ξq )|wq
q=1
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Convection-Diffusion Equation
−k∆u + b · ∇u = f
Convection-Diffusion Equation
−k∆u + b · ∇u = f
Convection-Diffusion Equation
−k∆u + b · ∇u = f
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
∇p − ν∆u = f
∈ Ω ⊂ R2
∇·u = 0
The element stiffness matrix concept can extended to
include sub-matrices
e
Ku1 u1 Kue1 u2 Kue1 p
e e
Uu1 Fu1
Kue u Kue u Kue p Uue − Fue
2 1 2 2 2 2 2
e
Kpu 1
Kpue
2
Kppe
Upe Fpe
Stokes Flow
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
k11 k12 k13 . f1 1 0 0 0 g1
k21 k22 k23 . f2
0 k22 k23 . , f2 − k21 g1
, →
k31 k32 k33 . f3 0 k32 k33 . f3 − k31 g1
. . . . . 0 . . . .
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Penalty Formulation
Penalty Formulation
Penalty Formulation
Penalty Formulation
Penalty Formulation
LibMesh provides:
A quadrature rule with Nqf points and JxW f[]
A finite element coincident with the boundary face
that has shape function values phi f[][]
Penalty Formulation
LibMesh provides:
A quadrature rule with Nqf points and JxW f[]
A finite element coincident with the boundary face
that has shape function values phi f[][]
Penalty Formulation
LibMesh provides:
A quadrature rule with Nqf points and JxW f[]
A finite element coincident with the boundary face
that has shape function values phi f[][]
1 Introduction
2 Weighted Residuals
3 Poisson Equation
4 Other Examples
5 Essential BCs
6 Some Extensions
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Time-Dependent Problems
KU = F
Outline Introduction Weighted Residuals Poisson Equation Other Examples Essential BCs Some Extensions Reference
Time-Dependent Problems
Nonlinear Problems
Non-Trivial Applications
Natural Convection
Surface-Tension-Driven Flow
Double-Diffusive Convection
Tumor Angiogenesis
Natural Convection
Surface-Tension-Driven Flow
Double-Diffusive Convection
Tumor Angiogenesis