Professional Documents
Culture Documents
Lecture 01 CFD-Incompressible
Lecture 01 CFD-Incompressible
Chapter 1 : Introduction
2022-2023
Introduction :
CFD =
Computational Fluid Dynamics :
COMSOL multiphysics
The aim is to simulate with the aid of
(super-)computers a problem of fluid
mechanics.
CFD = 1
Equation system
Problem
Computational Fluid Dynamics : Geometry Modelisation
Initial and Boundary
The aim is to simulate with the aid of conditions
(super-)computers a problem of fluid
mechanics.
2
System
Discretization Approximation
3
Equation Discretization Approximation
4
Solving Algebraic Approximation
Equations
5
Approximate Solution
of the Problem
CFD = 1
Equation system
Problem
Computational Fluid Dynamics : Geometry Modelisation
Initial and Boundary
The aim is to simulate with the aid of conditions
(super-)computers a problem of fluid
mechanics.
2
System
Structure of the course Discretization Approximation
7 lecture sessions (CM)
5 programming sessions (TD) 3
Equation Discretization Approximation
Tools that will be used
FreeFEM : Geometry + Discretization
Octave : Initial and Boudary conditions 4
Solving Algebraic Approximation
+ Resolution + Visualization Equations
Evaluation 5
Approximate Solution
1/3 mid-term report + 2/3 oral exam of the Problem
General case :
∂ρ
+ ∇ · (ρu) = 0 Continuity (1)
∂t
∂ρu
+ ∇ · ρu ⊗ u + pI = ∇·τ +f Momentum (2)
∂t
in direction i
Projection of the momentum equation in cartesian coordinates
∂ui ∂ui 1 ∂p ∂ ∂ui fi
+ uj + = ν +
∂t ∂xj ρ ∂xi ∂xj ∂xj ρ
Advection-Diffusion equation
∂T
+ (u · ∇) T − ∇ · (κ∇T ) = s (6)
∂t
T : scalar quantity (e.g. temperature, concentration, ...)
s : source term
∂T ∂T ∂ ∂T
Projection in cartesian coordinates + uj − κ =s
∂t ∂xj ∂xj ∂xj
Dimensionless solution :
u(x, y, t) = cos(x) sin(y) exp(−2νt)
v(x, y, t) = − sin(x) cos(y) exp(−2νt)
ρ
P(x, y, t) = − [cos(2x) + cos(2y)] exp(−2νt)
4
y y y
Dimensionless solution :
u(x, y, t) = cos(x) sin(y) exp(−2νt)
v(x, y, t) = − sin(x) cos(y) exp(−2νt)
ρ
P(x, y, t) = − [cos(2x) + cos(2y)] exp(−2νt)
4
−
→
Vorticity : −
→
ω =∇∧ u
−
→
u and ω
∂
∂x u
−
→ ∂
ω = ∧ v x
∂y
w
∂
∂z
Introduce D = b 2 − 4ac
PDE classification :
D > 0 Hyperbolic equation
D = 0 Elliptic equation
D < 0 Parabolic equation
PARABOLIC :
t One-way behavior
Things to specify :
zone of
influence Initial value
Boundary values on all points of the border
ELLIPTIC :
Two-way behavior
y
Things to specify :
zone of Boundary value of each variable needs to
influence
be specified along the entire boundary
No initial value needed
HYPERBOLIC :
t Kind of One-way behavior : not along coordinate
directions but along the characteristics
zone of
influence Things to specify :
Initial value
Boundary values only for "incoming"
zone of characteritics
dependence
∂2φ ∂φ
Example : Wave equation − α2 2 = 0
x ∂t 2 ∂x
Pressure-Velocity coupling :
By taking the divergence of the momentum equation we obtain
∂ ∂p ∂ ∂(ρui uj )
= − (8)
∂xi ∂xi ∂xi ∂xj
Prototypical problems :
We will focus first on the following problems in order to study simple parabolic and elliptic
problems :
Steady heat equation −∇ · (κ∇T ) = s
Neumann : (∇T · n) (x ∈ S) = h
∂T
Unsteady Heat − ∇ · (κ∇T ) = s Time integration
∂t
∇p
Steady Stokes − ∇ · (ν∇u) = g
ρ Pressure-Velocity coupling
∇·u=0 and its implementation
∂u ∇p
Unsteady Stokes + − ∇ · (ν∇u) = g
∂t ρ Time integration
∇·u=0
∂u ∇p
Navier-Stokes + (u · ∇) u + − ∇ · (ν∇u) = g
∂t ρ Advective Term
∇·u=0
This chapter has been prepared with the aid of the following material :
The original slides of Prof. Jan Dušek "CFD - Incompressible flows"
The lecture notes of the lecture "Numerical Fluid Mechanics I"
from Prof. Markus Uhlmann
The book of Suhas V. Patankar, "Numerical Heat Transfer and Fluid Flow"
(1980)
The book of Joel H. Ferziger and Milovan Períc, "Computational Methods
for Fluid Dynamics" (2002)
The book of Charles Hirsch, "Numerical Computation of Internal and
External Flows" (2007)
The book of George Em Karniadakis and Spencer J. Sherwin,
"Spectral/hp Element Methods for Computational Fluid Dynamics" (2005)