Unit 3 Discritization: Dr. Naveen G Patil Ajeekya Dy Patil Univrsity School of Engineering
Unit 3 Discritization: Dr. Naveen G Patil Ajeekya Dy Patil Univrsity School of Engineering
Unit 3 Discritization: Dr. Naveen G Patil Ajeekya Dy Patil Univrsity School of Engineering
Discritization
Lets us considered the fluid particles moving with velocity u in directions x with
small distances dx .
In order to find the fluid properties at distance dx can be determine by using
Taylors series
Discretization methods are used to chop a continuous
function (i.e., the real solution to a system of differential
equations in CFD) into a discrete function, where the
solution values are defined at each point in space and
time.
Discretization simply refers to the spacing between each
point in your solution
a) Finite Difference Method (FDM): Describes an unknown
variable ϕ by means of point samples at node points.
Truncated Taylor series expansions are used to generate finite
difference approximations to the derivatives of ϕ at each grid
point and its immediate neighbours.
This method is discussed in more depth in future posts.
Advantages: ease of implementation.
Disadvantages: restricted to simple grids and does not conserve
momentum, energy, and mass on coarse grids.
b) Finite Element Method (FEM): Uses simple piece-wise function (A piece-wise function is a
function whose definition changes depending on the value of the independent variable), valid on
individual elements to describe the local variation of ϕ. The governing equations are precisely satisfied
by the exact solution of ϕ
The main application of FEM is in solid mechanics (structural/stress analysis) because it
has considerable geometric flexibility and general-purpose codes can be used for a wide
variety of physical problems. Some CFD codes (approx. 15%) also make use of this method
too.
FEM uses a series of point called nodes which make the mesh. In structural analysis for
example, this mesh is programmed to contain the material and structural properties
which define how the structure will react to certain loading conditions
Nodes are assigned at a certain density throughout the material depending on the
anticipated stress levels of a particular area. Regions which will receive large amounts of
stress usually have a higher node density than those which experience little or no stress.
Points of interest may consist of: fracture point of previously tested material, fillets,
corners, complex detail, and high stress areas.
The mesh acts like a spider web in that from each node, there extends a mesh element to
each of the adjacent nodes.
Advantages: highest accuracy on coarse grids.
Excellent for diffusion dominated problems (viscous
flow) and viscous, free surface problems.
- Disadvantages: long processing time for large
problems and not well suited for turbulent flow
Finite Volume Method (FVM): Developed as a variant of the finite difference
formulation. This is a common method adopted and will be discussed in more
depth later on. The FVM is popular in fluid mechanics because it rigorously
enforces conservation and it is flexible in terms of both geometry and the variety
of fluid, therefore most of CFD codes (including the ones mentioned earlier –
approx. 80%) are based on finite volume method.
- Advantages: basic FV control volume balance does not limit cell shape; mass,
momentum, energy conserved even on coarse grids; efficient, iterative solvers well
developed.
- Disadvantages: false diffusion when simple numerics are used.
Domain Discritization
Let us consider uij is velocity component along x direction, then find first
order first order first degree forward method velocity (ui+1, j) component
Derive the third order accurate FDM equation in one sided difference
in y marching
Meshing
Unstructured Mesh
Unstructured meshes are meshes with general connectivity whose structure is
arbitrary (random) and hence the connectivity between the elements must be
defined and stored. The unstructured element types have triangular elements (2D)
or tetrahedral (3D) elements
Structured Mesh
Structured meshes are meshes with implicit (absolute) connectivity whose
structure allows for easy identification of elements and nodes. In General, the
structured meshes have quadrilateral elements (2D) or hexahedral (3D) elements.
Local meshing control: Only the portion of the scoped face or body within
Global mesh control :A “default” mesh is automatically generated during a
solution
It is generally recommended that additional controls be added to the default
mesh before solving.
A finer mesh produces more precise answers but also increases CPU time and
memory requirements.
How to decide the Element type for Meshing
The element type for meshing mainly depends on
three factors. The following are discussed below
Geometry Shape and size.
Type of Analysis.
Time Allotted for the project.
Introduction to Explicit Schemes
One dimensional unsteady state heat conduction
equation
In th above equation one marching is there time factor (t) is marching along x
direction
Let us considered eq 1 substitute eq 2 and eq 3 in eq 1
The above eq 6 is called as T is known at
time interval all grid points n
Explicit and Implicit
Explicit Implicit
Time set up is very less Maintain the larger values
time step
Only one parameter is More than one parameter
unknown is unknown
What is TDMA??
A tridiagonal matrix is a band matrix that has nonzero
elements only on the main diagonal, the first diagonal
below this, and the first diagonal above the main
diagonal.
The matrix can be symmetric, having the same number of
sub- and super diagonals. If a matrix has only one sub-
and one super-diagonal, we have a tri-diagonal matrix etc.
The number of super-diagonals is called the upper
bandwidth (two in the example), and the number of sub-
diagonals is the lower bandwidth (three in the
example).
The total number o f diagonals, six in the example, is the
bandwidth.
Tri-diagonal Matrix algorithms-(TDMA)
Nodes βj Dj αj Cj Aj Cj’
n
Introduction to Semi-Impilict or Crank-Nicolsons
The general form of equation
Node 1:
Node 2:
Node 3:
Node 4:
Node 5:
Steps in Thomas algorithms
Φj is unknow parameter of
the any fluid flow (
temp, pressure etc)
Numerical Example 2
Numerical Example 2