Lecture-1 CFD
Lecture-1 CFD
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Finite Difference Formulations
Numerical solution of PDEs comprises of following three steps:
1 Mesh generation: Division of domain in uniform/non-uniform mesh is
performed.
Solution for ∂ f /∂ x:
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Taylor Series Expansion (First Derivative)
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Taylor Series Expansion (First Derivative)
Taylor series expansion of function f (x + ∆ x) and f (x − ∆ x) about x:
The approximation of slope using two points, with one point in the
positive x-direction, is called Forward finite difference.
The approximation of slope using two points, with one point in the
negative x-direction, is called Backward finite difference.
The approximation of slope using two points with both point lying on the
opposite side of the original point is called Central finite difference.
Importance of grid refinement!!!
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Taylor Series Expansion (Second Derivative)
Taylor series expansion of function f (x + ∆ x) and f (x + 2∆ x) about x for
second derivative approximation:
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Taylor Series Expansion (Second Derivative)
Similarly, the backwarf difference approximation of order ∆ x (first order) at
node i, using Taylor series expansions of f (x − ∆ x) and f (x − 2 ∆ x).
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Taylor Series Expansion for Higher Order Derivatives: Recurrence formula
It can be shown:
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Taylor Series Expansion for Higher Order Derivatives: Recurrence formula
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST
Example problems
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-1: College of EME, NUST