Topic 4
Topic 4
Dynamics (CFD)
BTD3233 / BHA4532
Topic 4
Related Course Outcomes
BTD BHA
Lecture Outline
• Basic aspects of the numerics of CFD
• Basic aspects of discretization
Introduction
• We have already discussed the governing equations related to CFD (physical laws)
• How do we solve them?
• Closed form solutions are generally very difficult to obtain – only for simple, limited
problems
• We need to use numerical methods
Discretization
• Finite difference
Convert the PDEs into a system • Finite element
1st stage
of discrete algebraic eqs • Spectral method
• Finite volume
• etc
When more terms are • Let’s say we have a continuous function 𝑓(𝑥)
included, the estimation • We want to find the value of 𝑓 at point 2 (𝑥1 + ∆𝑥)
goes closer to the exact
value • We can do this by estimating 𝑓(𝑥1 + ∆𝑥) expressed in terms
𝑓(𝑥) of a Taylors series expanded about point 1 (𝑥1 )
• The more terms we include, the more accurate our
2 estimation
• The estimation becomes the exact value only when the
1 exact value
terms on the right-hand side is infinite 𝒏 → ∞
Taylor’s expansion
𝑥1 first term only
𝑥1 + ∆𝑥
Taylor series
Example Actual function: 𝑓 𝑥 = 5𝑥 4 − 2𝑥 3 + 10𝑥
Terms 𝑓(2.5)
1 5.0625
2 27.0625
3 45.0625
4 109.0625
5 189.0625
𝑖, 𝑗 + 1
If we know 𝜙𝑖,𝑗 , we can express 𝜙𝑖+1,𝑗 in terms of Taylor series as:
𝑖 − 1, 𝑗 𝑖, 𝑗 𝑖 + 1, 𝑗
𝑖, 𝑗 − 1
2
FDM (Forward difference) The lowest-order term in the truncation
We use information only to the right of point 𝑖, 𝑗 error involves 𝜟𝒙 to the first power
2 +
rearrange
Example of FDM
• Apply FDM to a governing equation (steady state diffusion equation)
• For example a 1D heat conduction process
Γ: diffusion coefficient
Steady state diffusion equation:
𝑆𝜙 : source term
𝛿𝑥 𝛿𝑥
𝑊 𝑃 𝐸
𝛿𝑥𝑊𝑃 𝛿𝑥𝑃𝐸
𝑤 𝑒
𝑊 𝑃 𝐸
∆𝑥
CV integration
𝛿𝑥𝑊𝑃 𝛿𝑥𝑃𝐸
𝑤 𝑒
𝑊 𝑃 𝐸
∆𝑥
We need to express these terms in some useful form to be able to solve the equation
*The 𝛤 and 𝜙 values are defined and evaluated at the nodal points (cell center), so
we need to approximate the values at the cell faces
Central differencing
(linear interpolation)