Introduction ME 503 Advanced Numerical Analysis
Introduction ME 503 Advanced Numerical Analysis
• Spatial Discretion ∆
i+1,
j
i+2,
j
• Division of domain into small parts y i,j-
1
• Numerical schemes are applied to it on its nodes i,j- x
• Discretization for a two-dimensional case in 2
∆
x
i,j+
2
y
i,j+
1
i-2, i-1, i,
j j j
i+1, i+2,
∆ j j
y i,j-
1
i,j-
x
2
Introduction
Elements of a Numerical Method
• Solution Domain
• Representation of region of which analysis is needed to be carried out
• Region of space of a particular geometric shape with in which Numerical Schemes
are to be applied
• It may be
• Model of a physical body of which Numerical Analysis is to be carried out
• A control volume in which analysis is to be carried out
• Or combination
•
Elements of a Numerical Method
• Mesh Introduction
• Subdivision of a continuous geometric space into discrete
cells or elements
• Each element or cell has:
i. cell centroid
ii. Faces in case of 3-D element or cell
iii. nodes or vertices
iv. Edges
a. In 2-D faces and edges are the
same
b. In 3-D the face is a surface
surrounded by edges
• Equations are solved for each element to get values of
unknown variables
a) At nodes/vertices of the element/cell
• node-based or vertex-based schemes
b) At the center of the element/cell
• cell-based schemes
• Calculated values of variables of interest at nodes of a
cell/element are termed as Local Solution
• Local solutions of each element/cell are combined to get
Global Solution for the entire solution domain
Introduction
Elements of a Numerical Method
• Mesh
• Mesh elements may be:
• 2-D
a) Triangle
b) Quadrilateral
• 3-D
a) Tetrahedron
b) Hexahedron
c) Prism
d) Pyramid
•
Introduction
Elements of a Numerical Method
• Mesh
• Mesh Types
a) Structured Mesh
• every interior vertex in the domain is connected to the same number of
neighbor vertices
• Often structured meshes have orthogonal quadrilateral (2D) or hexahedral (3D)
elements
• coefficient matrices that are banded
• Require more number of elements than unstructured mesh for the same problem
• Easy for simple geometry and difficult to adopt for complicated geometry
• Memory efficient
• Fast to Solve
• Angled and curved geometries are approximated (leads to stair stepping)
Introduction
Elements of a Numerical
Method
• Mesh
• Mesh Types
a) Structured Mesh
• It has 3 sub-types:
➢ Uniform Mesh
➢ Rectilinear Mesh
➢ Curvilinear Mesh
•
Introduction
Elements of a Numerical Method
➢ Mesh
■ Mesh Types
● Unstructured Mesh
◆ every interior vertex in the domain is
mostly connected to different number of
neighbor vertices
◆ non-orthogonal, such as triangles (2D) and
tetrahedra (3D)
◆ Complex geometries easier to mesh
◆ local adaptive mesh refinement
◆ Greater memory requirement
◆ slower to solve
◆ It has two subtypes
➢ Single Cell Type Topology
➢ Mixed Cell Type Topology
Introduction
Elements of a Numerical Method
• Mesh
• Mesh Types
c) Block Structured Mesh
• Geometry is divided into blocks
• Mesh inside each block is structured
• arrangement of the blocks
themselves is not necessarily
structured
• Each vertex is connected to an
arbitrary number of neighbor
vertices
• Hanging nodes (algorithms to
handle these nodes)
• It may be
• Matching
• Non-matching
• Chimera (composite)
Introduction
Elements of a Numerical
Method
• Mesh
• Mesh Types
d) Conforming Mesh
• a matching of nodes at the
interface
• no (additional)
interpolation required at a
conformal interface
• computation faster and
more accurate
Introduction
Elements of a Numerical Method
• Mesh
• Mesh Types
e) Non-Conforming Mesh
• a partial or zero matching of nodes at the
interface
• (additional) interpolation required at a
non-conformal interface
f) Adaptive Mesh
• difficult to estimate solution in some regions
due to discontinuities, steep gradients, shocks,
etc.
• refining the mesh of a simulation based on the
solution
Introduction
Elements of a Numerical
Method
• Mesh
• Mesh Quality
a) Aspect Ratio
• ratio of a cell’s longest length to the
shortest length
• ideal aspect ratio is 1.
• Solution accuracy and convergence
depends on it
b) Non-orthogonality
• angle between the vector
connecting two adjacent cell
centers and the normal of the face
shared by these cells
• The range of non-orthogonality is
between 0 (ideal) and 90 (worst)
• numerical instability depends on
this factor
Introduction
Elements of a Numerical Method
• Mesh
• Mesh Quality
c) Skewness
• deviation between the optimal
cell size to the existing cell
size
• range of skewness is between
0 (ideal) to 1 (worst)
• accuracy depends on it
because of interpolation with
in regions
Introduction
Elements of a Numerical Method:
• Set of Algebraic Equations
• When equations are solved for each element of a mesh or node of a grid, a large set of
algebraic equations are formed
• The equations may be linear or nonlinear
• For linear equations, only one solution exists
• For nonlinear equations, more than one solution exist which depend on different factors
like initial guess
• There are two methods to solve the equations
1. direct
• If discretization methods result in A = φ B or φ = inv( A ) B
• If A is a small matrix, direct solution methods do good
• If A is a large matrix as in case of Fluid Dynamics (large number of cells + nonlinear
equations + large number of variables), direct solution methods are embedded with in
iterative processes
2. Iterative
• Initial guess is systematically improved based on convergence criteria
•
Introduction
Elements of a Numerical Method:
• Set of Algebraic Equations
2. Iterative
• They are
• Stationary Methods
• Also called relaxation or smoothing methods
• performs in each iteration the same operations on the current iteration vectors
• It has:
• Jacobi Method
• Gauss-Seidel Method
• Successive Over-Relaxation Method
• Symmetric Successive Over-Relaxation Method
• Multigrid Methods
• very useful in problems exhibiting multiple scales
• It may be
• V-cycle
• W-cycle
• Full Multigrid
Introduction
Elements of a Numerical Method:
• Set of Algebraic Equations
• Non-Stationary Methods
• iteration-dependent coefficients
• It may be:
• Conjugate Gradient Method (CG)
• Generalized Minimal Residual (GMRES)
• BiConjugate Gradient (BiCG)
• Quasi-Minimal Residual (QMR)