Professional Documents
Culture Documents
Handout 4.2 CFD BigIdeas WithNotes
Handout 4.2 CFD BigIdeas WithNotes
Dynamics? (CFD)
• Three conservation laws govern fluid flow
• Mathematical formulation of these laws leads to the
governing equations:
– Partial differential equations or
– Integral equations
• These equations are nonlinear and coupled
– Can be solved exactly for a small no. of special cases
– Can be solved approximately using numerical methods on
a computer (“CFD”)
• Current CFD technology can handle realistic
geometries and complex physics
1
Example: Flow in a Channel
Find:
• Velocity and pressure distribution
• Wall friction
Simplifications:
• Steady, 2D, laminar, incompressible
Pre-Analysis
1. Mathematical model
2. Numerical solution procedure
3. Hand-calculations of expected results/trends
2
Mathematical Model: Governing
Equations
1. Conservation of mass (continuity eq.)
⋅ =0
2. Conservation of momentum ( ⃗ = ⃗)
( ⋅ ) =− +
= ̂+ ̂
y
Unknowns: x
, , , , ( , )
= =0
= =
=0 1
= =0
3
Finite Volume Method
Cell or
control volume
“Discretization”
4
How to Derive System of Algebraic
Equations?
Differential Form Integral Form
Conservation of ⋅ =0 ⋅ dS =0
mass
Conservation of ( ⋅ ) ⋅ =
momentum =− +
− + ⃗
5
Example: Algebraic Equation for
Mass Conservation
6
Discretization: Overview
Algebraic
Differential form Integral form of
CV equations
FVM of governing governing
balances relating cell-
equations + BCs equations + BCs
center values
Algebraic
Differential form of Weighted integral
FEM Polynomial equations
governing form of governing interpolation
relating nodal
equations + BCs equations + BCs
values
+ ⃗
• How to solve nonlinear
system of algebraic eqs.?
– Linearize about guess
values
– Solve iteratively
7
Linearization Illustration
8
How do we know when to stop iterating?
• Solution to algebraic
equations after each
iteration satisfies:
+ +
+ − + +
= + − =0
• Aggregate imbalance:
| |
R=
9
Boundary Value Problem
⋅ =0
( ⋅ ) =− +
= =0
= =
=0 1
= =0
10
Extension to Irregular Meshes
• Cells can be any
type of
– Polygon in 2D
– Polyhedron in 3D
• Calculate fluxes and
forces face by face
– Use neighboring cell
center values to get
face values
11