7 - Grid Generation - CFD - PVS
7 - Grid Generation - CFD - PVS
Dr. P. V. Suresh
Professor
• All the techniques of solving fluid flow equations discussed till now were based on
discretisation procedures using the Cartesian coordinate system.
• Extension of the methods developed using Cartesian coordinates to other
orthogonal coordinate systems (cylindrical, spherical etc. ) is relatively
straightforward, provided that we write down the governing equations using the
appropriate form of the div and grad operators for the chosen coordinate system
(Bird et al. for relevant operator definitions)
• However, many engineering problems involve complex geometries that do not fit
exactly in Cartesian coordinates or one of the other systems.
• When the flow boundary does not coincide with the coordinate lines of a
structured grid, we could proceed by approximating the geometry.
• For e.g. consider a two dimensional calculation of the flow past a half cylinder
• The only way to represent the curved surface of the half cylinder in a Cartesian
coordinate system is to use a stepwise approximation.
• When the geometry becomes very complex, finding viable mappings would be
quite difficult and hence this method may not be preferred.
• In these cases, sometimes, it would be advantageous to sub-divide the flow
domain into several different sub-regions or blocks, each of which is meshed
separately and joined up correctly with its neighbours. This leads to so-called
block-structured grids, which are considerably more flexible than Cartesian or
body-fitted meshes.
• There are two types of body-fitted coordinate system:
(i) Orthogonal curvilinear coordinates
(ii) Non-orthogonal coordinates
• Orthogonal curvilinear mesh – grid lines are perpendicular at intersections.
• Non-orthogonal body fitted grid – grid lines do not intersect at 90o angles.
• In both types of body-fitted girds, all the domain boundaries coincide with
coordinate lines, so geometrical details can be incorporated accurately without
the need for stepwise approximations.
• Grids can also be refined easily to capture important flow features.
• Consider a part of heat exchanger tube
bank where CFD can be used to predict the
flow field.
• Considering the symmetry, only the
shaded region of the geometry needs to
be considered.
Cartesian grid using an approximated profile to represent cylindrical surfaces Non-Orthogonal body fitted mesh for flow between cylinders
Predicted flow pattern using a 40 x 15 Cartesian grid Predicted flow pattern using a 40 x 15 structured body-fitted grid
• In spite of the advantages of curvilinear body-fitted grids over simple Cartesian
grids such as efficient use of computational resources, proper representation
of curvatures, the following problems are encountered with general
orthogonal and non-orthogonal structured grids:
▪ If the solution domain cannot be readily mapped into a rectangle (in 2D)
or rectangular parallelepiped (in 3D) this can result in skewed grid lines
causing unnecessary local variations
• The interfaces of adjacent blocks may have grids on either side that are
matching or non-matching, but, either way, they must be properly
treated in a fully conservative manner.
• The block structured grid combines the advantages of
Cartesian grids – easy to generate, equations simple to discretize and solve
Curvilinear grids – the ability to accommodate curved complex boundaries.
• In practical CFD,
✓ triangles or quadrilaterals are
most often used for 2D problems
✓ tetrahedral or hexahedral
elements in 3D ones.
• A hybrid unstructured mesh for the calculation of flow in a tube bank where
quadrilateral cells used near solid walls to provide better resolution of the
viscous effects in the boundary layers and an expanding triangular mesh
structure elsewhere to utilize the resources efficiently.
Discretization in Unstructured grids
• There are two ways of defining CVs in unstructured meshes:
-- Cell centred CVs – Nodes are placed at the centroid of the CV
-- Vertex centred CVs – Nodes are placed on the vertices of the grid