Professional Documents
Culture Documents
Somnath Ghosh
Deptt. Of Aerospace Engineering
IIT, Kharagpur
Computational Fluid Dynamics
Computational fluid dynamics
2. Experiments
http://ctr.stanford.edu/
Introduction
Mach 1.92 jet, radiated noise (efluids gallery)
Types of CFD simulations
Turbulent flows
Wide range of space and time scales
Large Reynolds numbers
Diffusivity: increased exchange of
momentum(spreading rates of jets, mixing layers)
Almost all practical flows are turbulent
Types of CFD simulations
Turbulent flows are computed by:
DNS (Direct numerical simulations): Navier
Stokes equations solved without using any model.
Expensive. Not feasible for Reynolds numbers of
industrial interest. Valuable tool for research.
LES (large eddy simulations): Simulate (resolve) the
large scales of turbulent flows and model the effect of the
small scales. Can be applied to industrial flows with
limitations on Reynolds number.
Types of CFD simulations
RANS (Reynolds averaged Navier Stokes)
simulations model all the scales of a turbulent
flow and compute the mean quantities. The
workhorse for the industry. Popular models
used are k-, k-, Spalart-Allmaras etc.
Governing Equations (nonlinear)
Navier Stokes eqn for incompressible flow:
Governing equations (nonlinear)
Euler equations:
Governing equations (nonlinear)
Compressible flow:
Some linear partial differential
equations
Laplace equation(2nd order, homogeneous):
Soln:
Classification (contd.)
The slope of the characteristic curves is given by
dy/dx.
The value of the discriminant determines the nature
of the characteristics.
Classification (Contd.)
The compatibility conditions are obtained by setting
the numerators in the Cramer's rule to zero to
prevent second derivatives from becoming infinite.
Thus we get the governing eqns which hold along the
characteristic curves and which when integrated
gives the invariants.
Classification (Contd)
Examples:
1. Wave eqn is hyperbolic
such that
and the transformation is invertible.
Canonical form
Applying chain rule
Canonical form
Substituting in the original eq we get,
where
Canonical form
On a line of constant ,
that is, (slope of char.)
Substituting in characteristic eq.,
we get,
which means
Canonical form
Similarly it can be proved that on the curves
where is constant, C=0.
The hyperbolic pde then reduces to
or,
This form is suitable for analytical soln.
Classification by Fourier analysis
Consider 2nd order linear pde
or,
Forward difference,
Truncation error
Finite differences
Backward difference,
Central difference,
Finite difference
How to evaluate truncation error?
Taylor series expansion of u around :
Finite difference
Example: 2nd order central scheme
Dividing throughout by
Finite difference
Grid refinement by a factor of 2 means the
error is reduced by a factor of 4 for a 2nd
order scheme and by a factor of 16 for a 4th
order scheme.
For the same truncation error a fourth order
scheme, for example, will require less grid
points than a second order scheme.
Finite Difference
Please note that the sum of the coefficients
appearing in the expressions of various finite
difference derivative approximations add up to zero.
This is a general property based on the fact that if the
function values are the same at all grid points, the
derivative must be zero, which is a consistency
requirement.
Finite Difference
General technique for construction of finite
difference schemes:
Let us construct the most accurate scheme with
functional values at j, j+1 and j+2.
and
Modified wavenumber analysis
Analytical differentiation gives,
or,
Solution at nth time step,
where
Numerical Stability
If is complex then,
That is,
or,
Amplification factor,
Numerical stability
Where and
so,
Numerical stability
Since should be negative for stability of
the ode, A<B.
So, <1
So, as expected from an implicit scheme,
the trapezoidal (Crank Nicholson) scheme is
unconditionally stable.
Accuracy
We will determine the order of accuracy of the
schemes by comparing with the exact solution,
Now,
Amplification factor of forward Euler scheme,
or,
Amplitude and phase errors
Amplitude of numerical solution after first
timestep is
For stability,
or,
or,
or,
or,
which means
Substituting ,
Von Neumann Analysis
Finally we get,
or,
where
and
When the two equations will be
identical and we can apply the stability
analysis results shown earlier for ODEs.
Modified wavenumber analysis
For example, for the Forward Euler scheme the
timestep was given by,
Then,
where
Modified wavenumber analysis
Comparing with the model equation,
we find, which is purely imaginary.
So, for the convection equation the stability
limit of the timestepping scheme for imaginary
become important.
Forward Euler and 2nd order Runge-Kutta
have poor stability properties for imaginary
Modified wavenumber analysis
4th order Runge-Kutta method has good
stability property for imaginary
From the stability diagram of Runge-Kutta scheme
we find the stability limit to be,
with
Since is diagonal we have a set of
decoupled equations whose solution is,
Matrix stability analysis
Hence, the stability of the solution with time
will depend on the eigenvalues of A
The solution in terms of the original variable is
So,
Modified equation analysis
Substitution in the discrete equation gives,
c<0 :
Finite volume method
Finite volume Lax Wendroff scheme (2nd
order):
Some notes:
Finite volume schemes are more suitable for
complex geometries than Finite difference scheme.
Finite volume method
Conservation is easier to achieve in FV than in
FD schemes.
Higher order accuracy is easier to achieve in
FD than in FV.
FV schemes appear to be more robust than
FD schemes and hence widely used in
commercial software.
Incompressible flows
Poisson equation for pressure,
Smagorinsky:
Baldwin, Lomax:
Two equation models
No need to assume a mixing length.
Velocity and length scales are obtained from
turbulent kinetic energy and turbulent
dissipation rate.
model
Need transport equations for TKE ( ) and
turbulent dissipation rate
So, is essentially an eddy viscosity
model.
LES models
Smagorinsky model: Linear eddy viscosity
model relates the SGS stress to the filtered
strain rate.
Non-uniform grids
The variable to be solved for may vary rapidly in
some part of the domain.
So, we need clustering of grid points in regions of
strong variation. Hence, non uniform grids.
Finite difference formula for nonuniform grids is of
low order.
Alternative is to use coordinate transformation.
Non-uniform grids
We can use the following coordinate
transformation in general,