Professional Documents
Culture Documents
Dynamics
Title
3 Column (full page)
What is 2Computational
Column
Fluid Dynamics (CFD)?
1 Column
Half page
Computational Fluid Dynamics
Computational Fluid Dynamics (CFD) is a “field in fluid dynamics that incorporates
numerical analysis to simulate and solve problems involving fluid flows”.
Applications of CFD
● Lowerdevelopment costs
● Shortened designcycle
Design
Simulation Redesign Build
(CAD)
1 Column
Half page
Step 1: Create geometric model
Flow Inlet
Velocity (flow rate) =known
Pressure =?or may be known
Flow Outlet
FrictionWalls Velocity =?
Velocity = 0 Pressure =Known static pressure
Pressure = ?
How CFDworks:
2 Column
Half page
Physical Problem to Simulation Model
● Most equations are derived by considering a very small fluid volume called
“Control Volume (CV)” and applying the conservation laws
● Since each CV has finite size, this method is called “Finite Volume Method” ( FVM)
● The entire continuous flow domain is discretized into these simple shaped
Control Volumes (CVs)
The Finite VolumeMethod
The ControlVolume:
Face centroid
CV CV boundary
centroid
The Finite VolumeMethod
The ControlVolume:
•
How CFD works - Process
How CFD works - Process
How CFD works - Process
Pressure (P) =?
Velocity (V) =?
Pressure (P) =
reference staticvalue
Source:
https://web.stanford.edu/class/me469b/handouts/incompressible.pdf
The Finite Volume Method: Boundary conditions
The Dirichlet condition:
u|∂Ω = 0 on ∂Ω
The Finite Volume Method: Boundary conditions
The Neumann condition:
● Is a ‘fixed derivative condition’ for a flow variable on the boundary e.g velocity,
pressure
● It is used when the actual value is an unknown and a variable but the rate of
change isknown.
∂u/∂ν |∂Ω = 0 on ∂Ω
The Finite Volume Method: Boundary conditions
The Mixed/Robin condition:
● Gauss Seidel(G.S)
○ Slow convergence
○ Very stable
● Conjugate Gradient(C.G)
○ Faster convergence
○ Stability highly dependant on
mesh quality
● Multi-Grid method(MG)
○ Very fast convergence (uses
multi-level approach)
Source:
○ Stable *A conjugate gradient method for solving the non-LTE line radiation transfer problem
+http://people.bath.ac.uk/em459/research_ellipticsolvers.html
Are my results correct?
● Experience and engineering judgement are the most important factors for
performing an accurate analysis.
● Correct implementation of the physics and modeling steps is critical for
accuracy
● Simulation results should be compared quantitatively with analytical data or
calculations
● It is always recommended to compare simulation results to some experimental
data for setting a baseline case
Are my results correct?
Are my results correct?
● Numerical Error
○ Introduced by the computer when it rounds or truncates numbers as it
assembles matrices and solved equations
Errors in CFD
ModelingErrors: Outlet Sections
Errors in CFD
Modeling Errors:Inlet Sections
Inlet
Outlet
Flow area of
interest
Errors in CFD
Modeling Errors:Inlet Sections
Fluid entering
container
Outlet forAir in
the container
Responsibility of the user
● Smooth and colorful contours can be produced by any model, good or bad
● A responsible user must understand the nature of the problem and the inherent
assumptions before setting up the problem and analyzing the results
● The results should always be first compared qualitatively and then with Analytical
calculations or Hand approximations to check for obvious inconsistencies
Books &resources
● “An Introduction to Fluid Dynamics” by G. K. Batchelor
● “Physical Fluid Dynamics” by D. J. Tritton
● “Fundamentals of Aerodynamics” Book by John D. Anderson
● “Modern Compressible Flow: With Historical Perspective” 2nd Edition Book by John D. Anderson
2 Column
CFD : Meshing
1 Column
Half page
. . . ..
Units are
Meters
CAD Operations onSimScale
Centroid Boundary
faces
○ Very robust
○ Medium-quality meshes
○ Optional boundary layer refinement
○ Underlying algorithm:Netgen
4-node
Tet Element
How Netgen creates the Tet mesh
Node
Element
2-D SurfaceTet meshing
2D Cell/Element
3-D Tetmeshing
Element Types: 3D Hexahedral mesh
● Robust
● High-quality meshes
● Optional boundary layer refinement
● Underlying algorithm:snappyHexMesh
Hex-mesh*: Definingbounding box
‘Top-bottom’ approach.
Base Mesh
Cell Size
for X
Refinement level‘n’
n = 1, 2, 3……..10, 11.
Hex-mesh: Surface refinement
Hex-mesh: Region refinement
Hex-mesh: Mesh removal
Hex-mesh: Surface snapping
Hex-mesh: Layeraddition
Which MeshType To Select
Which MeshType To Select
Automatic mesher
● For simpler models with less or no relatively small faces and edges
Tet-mesh: Auto Global and local surface refinements with layers, works for single part or assembly.
Hex-mesh: Global surface refinement with layers, works only for single part that must be the fluid domain.
Parametric/Manual
● For complex models with complicated small features, faces and edges
Tet-mesh: User specified Global and local surface refinements with layers, works for single part or assembly.
Hex-mesh: All types of refinement with layers, works for single part or assembly.
Checking meshquality
● Non-Orthogonal cells
● High Skewness
● Concavity
Checking meshquality
The accuracy of the simulation depends highly on the quality of the mesh
---------------------
Layer mesh : cells:8250379 faces:26747115 points:10388056
Cells per refinement level:
0 102169
1 4096
2 14944
3 282757
4 111811
5 539081
6 2103732
7 2559871
8 2531918
Writing mesh to time constant
Wrote mesh in = 27.97 s.
Layers added in = 249.49 s.
Checking final mesh ...
Checking faces in error :
non-orthogonality > 75 degrees : 21
faces with face pyramid volume < 1e-13 : 5
faces with concavity > 80 degrees : 2
faces with skewness > 4 (internal) or 20 (boundary) : 0
faces with interpolation weights (0..1) < 0.01 : 0
faces with volume ratio of neighbour cells < 0.01 : 3
faces with face twist < 0.005 : 17
faces on cells with determinant < 0.005 : 25
Finished meshing with 73 illegal faces (concave, zero area or negative cell pyramid volume)
Finished meshing in = 820.84 s.
Should be smaller than 75 Degree!
End
Performing a mesh convergence study
● Do a convergence study to obtain mesh-independent results
○ Create a mesh using the fewest (coarse), reasonable number of
elements/cells and analyze the velocity field on a cross section
○ Recreate the mesh with a smaller (finer) element/cell distribution,
re-analyze it, and compare the results to those of the previous mesh.
○ Keep increasing the mesh density and re-analyzing the model until the
results converge and are not changing anymore.
○ Accurate results with lowest computation times
Performing a mesh convergence study
● Use point and line plots at critical sections to check value of velocity and pressure
● Compare velocity contours at cross sections for changes in results
2 Column
CFD : Analysis Types
1 Column
Half page
● Advance Concepts
○ Rotating Zones, Porous Media, Solid Body
Motion and 6 Degree of Freedom (6DOF)
Incompressible vs. Compressible
Incompressible Compressible
● Mass and Momentum conservation ● Mass and Momentum conservation
only
● Energy (heat) balance also solved
● No Energy (Heat) balance
● Densityis constant ● Density is a variable
● Mostlyall Liquids ● Mostly gases at high speed or
● Usually low speed gas flow pressure
Single vs. Multi-Phase
2 Column
CFD : Incompressible
Flow Analysis
1 Column
Half page
What is an Incompressible Flow Analysis?
○ Low temperatures
When is incompressibilityNOT valid
Compressibility:
“Flow is compressible if the pressure or temperature changes due to flow are large
enough to cause significant density changes”.
Compressible flow is more demanding numerically (additional equations) and should only
be selected if necessary
Gas Properties andModels
Mach Number
Ma =v / a
Rule of thumb:
If Ma > 0.3 then compressible flow should be applied for gases
Fluid Properties and Models
● If the system is expected to converge to a state where it doesn't change any more, use
steady-state.
● Transient flow changes with time and has periodic phenomenon e.g vortex shedding
1 Column
Half page
Wall
Flow Outlet
Laminar Steady PipeFlow
Problem Overview:
● Velocity:Low
● Flow behaviour:Independent of time
● Fluid:Water
Interested intime
Fluid:Water Velocity:Low independent flow
Incompressible
Analysis Laminar Flow Steady-State