Lecture-4 CFD
Lecture-4 CFD
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Basic Methodology
Integrate the governing equations over the control volume and apply the
Gauss divergence theorem to convert volume integrals into surface
fluxes.
Result is a set of linear algebraic equations: one for each control volume
for each property.
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Cells and Nodes
Using finite volume method, the solution domain is subdivided into a finite
number of small control volumes (cells) by a grid.
The grid defines the boundaries of the control volumes while the
computational node lies at the center of the control volume.
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Notations
A typical control volume in Cartesian coordinates is as shown:
The net flux through the control volume boundary is the sum of integrals
over the four control volume faces (six in 3D). The control volumes do
not overlap.
The value of the integrand is not available at the control volume faces and
is determined by interpolation.
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Discretization Example
In order to demonstrate finite volume solution methodology, the transport
of chemical species in a two-dimensional incompressible flow is considered.
The species transport equation (incompressible flow) is given by:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Discretization Example
The balance over the control volume is given by:
The simplest way to determine the values at the faces is by using first
order upwind differencing.
In this method, it is assumed that the value at the face is equal to the
value in the center of the cell upstream of the face; i.e. ce = c p , cw = cW
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Discretization Example
Using this method, the previous equation becomes:
Here nb refers to the neighboring cells. The coefficients anb and b will be
different for every cell in the domain at every iteration. The species
concentration field can be calculated by recalculating cP from this
equation iteratively for all cells in the domain
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Solution
Likewise, as shown in the previous example, all the conserved properties
(momentum, energy, temperature) can be discretized to form algebraic set
of equations (one for each control volume for one property).
In general terms, for a conserved property φ , the finite volume
discretization involves:
Integration of conservation equations in each cell.
Calculation of face values in terms of cell-centered values.
Collection of the central node, P, values on left hand side while the
contribution from neighboring nodes, nb and source terms, S, on the right
hand side .
The result is the following discretization equation (with nb denoting cell
neighbors of cell P):
The above algebraic set of equations (one for each cell for one conserved
property) is normally solved iteratively.
At each iteration, at each cell, a new value for variable φ in cell P can
then be calculated from the above equation.
It is common to apply relaxation as follows:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Convergence
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Residuals
Residuals are usually scaled relative to the local value of the property φ in
order to obtain a relative error
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Finite Control Volume Method: Residuals
A typical residual history graph of a turbulent flow CFD simulation using
ANSYS FLUENT.
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
General Transport Equation
In integral form (finite control volume approach):
Physically,
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation
Consider a steady incompressible diffusion equation:
Notation conventions:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation
Finite volume discretization:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation
Substitution of the linear relation of source term:
where
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Example
One-dimensional heat conduction in an insulated rod, for which
k = 1000W /m.K, A = 0.01 m2 , δx = 0.1 m:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Example
No source term for the discretized equation for an interior node.
Discretization of the boundary node 1:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Example
Similarly the discretized equation for node 5.
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Example
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Example
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Inclusion of Source Term
One-dimensional heat conduction with internal heat generation:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Inclusion of Source Term
For left boundary node:
Coefficients for left boundary node by comparing first equation with the
second equation:
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST
Solution of Steady Diffusion Equation: Inclusion of Source Term
Dr. Tariq Talha Computational Fluid Dynamics, Lecture-4: College of EME, NUST