Professional Documents
Culture Documents
SURNAME - N - 9999 - LECTURE - CFD Basics PDF
SURNAME - N - 9999 - LECTURE - CFD Basics PDF
CFD Basics
Introduction
CAD to Solution overview
Governing Equations
Initial and Boundary Conditions
Turbulence Modeling
Solution of Governing Equations
Convergence Monitoring
Errors in CFD Analysis
Non-Dimensional Numbers
Mesh Generation
Post-Processing
Divergence
CFD Basics - 1
CFD Basics
Introduction to CFD
Governing equations of fluid flow and heat transfer
Boundary Conditions
Meshing Guidelines
Solution best practices
STAR Workflow overview
CFD Basics - 2
CFD Basics
What is CFD?
CFD is Computational Fluid Dynamics
Fluid
Dynamics
CFD Basics - 3
CFD Basics - 4
CFD Basics - 5
turbulence
model
conservation
equations
combustion
model
mathematical
model
(differential)
spray model
finite volume
discretisation
finite volume
model
wall film
model
solution
algorithm
solution
controls*
moving
mesh*
CFD cpde
STAR-CD
initial/boundary
conditions*
computer
operating
conditions*
postprocessing*
RESULTS
optimisation
CAD
geometry*
CFD Basics - 6
CFD
SOFTWARE
Meshing
CAD
CFD
1.
CAD Modeler
2.
CAD Importer
3.
Pre/Post/Solution
FUNCTION
COMPONENT
Pre-Processor
4.
Solver
5.
Post-Processor
Geometry Building
Run Analysis
CFD Basics - 7
4h
1h
CAD Geometry
1h
Surface Meshing
Surface Clean-up
2h
Volume Meshing
Post-processing
8h
CFD Solution
CD-adapco, Americas Agency Training Document
CFD Basics - 8
CFD Basics - 9
rr
r
= 2 D 2. V I P I
( )
( )]
r T
1 r
D = V + V
2
is the dynamic viscosity, P is the pressure, V is the velocity vector and I is the identity
tensor.
Fouriers Law
Expresses relationship between heat flux and temperature gradient
q =-kT
CFD Basics - 10
CFD Basics - 11
dV + u d A = d A + S dV
S
S
V
t V
V
CONSERVATION:
=1
=u,v,w
= e
mass
momentum
energy
CFD Basics - 12
/
t dV + u dA =
dA + S dV
V
Convective Flux
Rate of change of
quantity in Control
Volume
Diffusion Flux
Volumetric Source
CFD Basics - 13
CONVECTION
u dA
CD-adapco, Americas Agency Training Document
dA
CFD Basics - 14
CFD Basics - 15
CFD Basics - 16
CFD Basics - 17
CFD Basics - 18
Free Stream
Inlet
Outlet
No slip Wall
CFD Basics - 19
CFD Basics - 20
CFD Basics - 21
CFD Basics - 22
CFD Basics - 23
CFD Basics - 24
Outlet
Inlet
No slip wall (u = 0)
Adiabatic, fixed
temperature, or
fixed heat flux.
CFD Basics - 25
CFD Basics - 26
FLOW SPLIT
or
MASS FLOW RATE
CD-adapco, Americas Agency Training Document
CFD Basics - 27
Developing
Zone:
Area has little
accuracy
Developed
Zone:
Area is
accurate
Flow direction
3L-8L
10L
CFD Basics - 28
CFD Basics - 29
CFD Basics - 30
CFD Basics - 31
CFD Basics - 32
CFD Basics - 33
u'(t)
==
1
t
(t)=+ (t)
t
(t) dt
CFD Basics - 34
CFD Basics - 35
CFD Basics - 36
CFD Basics - 37
Intensity of turbulence I
Length of turbulence scale L
Common Practice
I 0.03 - 0.10
L Dh/10
Dh is hydraulic diameter
C = 0.09
3 2 2
k= I V
2
3/2
C3/4
k
=
L
CFD Basics - 38
1/4
1/2
y = C k y/
Where y is the distance of the near wall cell centroid from the wall, k is
the local turbulence kinetic energy, and C is a constant having a value of
0.09.
CFD Basics - 39
Wall Functions
Computationally efficient
Uses logarithmic law of the wall
Requires y+ to be in the 30 200 range
Applies only to attached flows and fails in recirculating flows
Low Reynolds number approach
Computationally expensive
Integrates down to the wall and uses no-slip
Requires near wall y+ less than 5
Hybrid Treatment
If y+ < 5, use Low Re approach
If y+ > 30 use Wall Function approach
If 5 < y+ < 30 blend smoothly between two approaches
CFD Basics - 40
2.
CFD Basics - 41
CFD Basics - 42
CFD Basics - 43
CFD Basics - 44
A cc + k A kk = Q c
CFD Basics - 45
CFD Basics - 46
CFD Basics - 47
2.
3.
4.
5.
6.
7.
CFD Basics - 48
CFD Basics - 49
CFD Basics - 50
Outlet Temperature
CFD Basics - 51
CFD Basics - 52
CFD Basics - 53
CFD Basics - 54
CFD Basics - 55
CFD Basics - 56
CFD Basics - 57
CFD Basics - 58
CFD Basics - 59
CFD Basics - 60
Meshing: ...
CAD
Solid
MESHER
Fluid
CD-adapco, Americas Agency Training Document
CFD Basics - 61
CFD Basics - 62
Arbitrary Polygon
quad
triangle
CD-adapco, Americas Agency Training Document
CFD Basics - 63
LOW QUALITY
HIGH QUALITY
CFD Basics - 64
LOW QUALITY
HIGH QUALITY
If the angle between the face normal and the vector joining adjacent
adjacent cell
centroids is small, the triangle quality is high.
CD-adapco, Americas Agency Training Document
CFD Basics - 65
CFD Basics - 66
Prismatic
Hexahedral
Arbitrary
Polyhedral
Tetrahedral
Pyramid
CFD Basics - 67
CFD Basics - 68
What are the mesh types that can be generated by CDadapco auto meshers?
Trim Mesh
Polyhedral Mesh
Hybrid Mesh
Tetrahedral mesh
CFD Basics - 69
CFD Basics - 70
1.
2.
CFD Basics - 71
CFD Basics - 72
1.
2.
CFD Basics - 73
CFD Basics - 74
CFD Basics - 75
CFD Basics - 76
21,872
POLYS
2,322,106
TETS
593,888
POLYS
CFD Basics - 77
2,322,106
TETS
593,888
POLYS
CFD Basics - 78
Delta P (kPa)
POLY
TET
Run on a 3Ghz
Dual Processor
workstation with
2GB RAM
6.3 hours
> 5% error
43.25 hours
1.6 hours
< 3% error
10 hours
3
10000
100000
1000000
10000000
Number of Cells
CFD Basics - 79
Convection
Diffusion
Low Quality
CFD Basics - 80
CFD Basics - 81
CFD Basics - 82
CFD Basics - 83
Reporting
Drag / Lift Coefficients
Heat Rejection by heat exchanger
Pressure rise across a fan or compressor
Pressure drop in a duct
Swirl, tumble, burn rate in an IC engine
Flow Visualization
Visualization of Fields
Scalar Quantities
Vector Quantities
Streamlines
Iso-Surfaces
Animation
CD-adapco, Americas Agency Training Document
CFD Basics - 84
Centerline Cp
Drag/Lift Monitoring
Field Values
Residual Convergence
CD-adapco, Americas Agency Training Document
CFD Basics - 85
CFD Basics - 86
CFD Basics - 87
CFD Basics - 88
CFD Basics - 89
CFD Basics - 90
CFD Basics - 91
CFD Basics - 92
CFD Basics - 93
CFD Basics - 94
CFD Basics - 95
CFD Basics - 96
CFD Basics - 97
Mesh Type
Hexahedral
Yes
Yes
Yes
Yes
Arbirtrary
Polyhedra
Yes
Yes
No
CFD Basics - 98
Mesh Motion
Rotating Reference
Frames
Arbitrary Sliding Meshes
Parallel Partition across
interfaces
Cell layer addition /
removal
Conditional Cell
attachment / detachment
General Mesh Motion
STAR-CD
V3.26
Yes
STAR-CD
V4.06
Yes
STAR-CCM+
V3.02
Yes
Yes
Yes
Yes
No
No
Yes
Yes
Yes
No
Yes
Yes
No
Yes
Yes
No
CFD Basics - 99
Algorithm
SIMPLE
AMG
Yes
Yes
Yes
PISO
Yes
Yes
No
Coupled Solver
No
No
Yes
Heat Transfer
STAR-CD
V3.26
Yes
STAR-CD
V4.06
Yes
STAR-CCM+
V3.02
Yes
Surface Exchange
Radiation
Participating Media
Radiation
Solar Radiation
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Transparent Solids
Yes
Yes
Yes
STAR-CD
V3.26
Yes
STAR-CD
V4.06
Yes
STAR-CCM+
V3.02
No
Liquid
Yes
Yes
No
Gaseous
Yes
Yes
Yes
EBU
Yes
Yes
Yes
CFM
Yes
Yes
Yes
Yes
Yes
No
PPDF
Yes
Yes
Yes
Ignition
Yes
Yes
Yes
Yes
Yes
No
Complex Chemistry
Yes
Yes
No
IC Engine Combustion
Premixed SI
STAR-CD
V3.26
Yes
STAR-CD
V4.06
Yes
STAR-CCM+
V3.02
No
Partially Premixed SI
Yes
Yes
No
Yes
No
Yes
Yes
No
EGR
Yes
Yes
No
NOx
Yes
Yes
No
SOOT
Yes
Yes
No
Feature
Free Surface
Cavitation
Yes
Yes
Yes
Yes
Yes*
Yes
No
Yes
No
Feature
Aeroacoustics
Fluid Structure
Interaction
Stress
Yes
No
No
No
Yes* (Beta)
No
Melting and
Solidification
Electromagnetics
No
Yes* (Beta)
No
No
Yes* (Beta)
No
Wave
Yes
Yes
No
FlowMaster
Yes
Yes
No
SYSNOISE and
ACTRAN
CHEMKIN
Yes
Yes
No
Yes
No
No
DARS
Yes* (V3.27)
Yes
Yes
1.
2.
3.
4.
5.
6.
7.
8.
9.
Topics Covered
Introduction to the client server architecture
Unique features
Meshing capabilities
Physics Models
Boundary conditions and Post-Processing
GUI layout
Simulation File
Workflow
Accessing Help
STAR-CCM+ Basics -1
STAR-CCM+ is a state-of-the-art CFD solver from CDadapco that uses a Client Server approach.
- Java front end (light on memory) and a C++ server
Client
Server
CD-adapco, Americas Agency Training Document
STAR-CCM+ Basics -2
STAR-CCM+ Basics -3
Binary
STAR-CCM+ Basics -4
STAR-CCM+ Basics -5
STAR-CCM+ Basics -6
STAR-CCM+ Basics -7
STAR-CCM+ Basics -8
STAR-CCM+ Basics -9
Volume Meshing
Core Mesh
Tetrahedral mesh
Polyhedral mesh
Advanced Hexahedral (Trim) mesh
Mesh Manipulation
pro-STAR
Gridgen (via .cas file)
Fluent (.cas, .msh)
Gambit
ICEM
Space
Time
Two-Dimensional
Axisymmetric
Three-Dimensional
Steady
Explicit / Implicit Unsteady
Motion
3 Variants of Spallart-Allmaras
7 Variants of k-
3 Variants of k-
3 Variants of Reynolds Stress Transport
Large Eddy Simulation
Detached Eddy Simulation
Wall Treatment
Low y+
High y+
All y+
Thermal
Solar
View Factors including support for baffles and symmetric boundaries
Surface-to-Surface
Participating Media
Multiphase Flow
VOF
Cavitation
Homogeneous Boiling Model
Lagrangian Multi-Phase
CD-adapco, Americas Agency Training Document
Wall
Non-Reflecting
Average total pressure, temperature and flow angle at inlet, static
pressure at outlet.
Velocity Inlet
Specified velocity components, or specified magnitude and
direction
Free Stream
Specified Mach number and flow angle, static temperature and
static pressure
Symmetry Plane
Axis
For Axisymmetric simulations
Visualization
-
1.
2.
3.
4.
Import CAD
Check Surface
Do manual repair if required.
Setup Meshing Models and properties
Setup Physics Models and properties
Setup Boundary Conditions
Generate Mesh
Setup solver parameters and stopping criteria
Setup post-processing (optional)
Run analysis
1.
2.
3.
4.
5.
Post-Processing - 1
Post-Processing - 2
Post-Processing - 3
Post-Processing - 4
Post-Processing - 5
Post-Processing - 6
Post-Processing - 7
Post-Processing - 8
Post-Processing - 9
Post-Processing - 10
Post-Processing - 11
Post-Processing - 12
Post-Processing - 13
Post-Processing - 14
Post-Processing - 15
Post-Processing - 16
Post-Processing - 17
Post-Processing - 18
Post-Processing - 19
Post-Processing - 20
Post-Processing - 21
Post-Processing - 22
Post-Processing - 23
Post-Processing - 24
Post-Processing - 25
Post-Processing - 26
Post-Processing - 27
Post-Processing - 28
Post-Processing - 29
Post-Processing - 30
Post-Processing - 31
Post-Processing - 32
Post-Processing - 33
Post-Processing - 34
1.
2.
3.
4.
5.
6.
Topics
Surface Mesh Import and Checks
Surface Mesh fixing tools
Mesh generation Models
Mesh Model Parameters
Volume mesh generation
Cell Quality Metrics
Meshing -1
Meshing -2
Meshing -3
Meshing -4
Meshing -5
Meshing -6
Meshing -7
Meshing -8
Meshing -9
Meshing -10
1.
2.
Meshing -11
Meshing -12
Meshing -13
Meshing -14
Meshing -15
Meshing -16
Meshing -17
Meshing -18
Meshing -19
Meshing -20
Meshing -21
Meshing -22
1.
2.
3.
4.
Meshing -23
Meshing -24
Meshing -25
Meshing -26
1.
2.
3.
4.
Meshing -27
Meshing -28
Meshing -29
Meshing -30
Meshing -31
Meshing -32
Tetrahedral Mesh
Meshing -33
Polyhedral Mesh
Meshing -34
Meshing -35
Meshing -36
Trimmed Mesh
(Advanced
Hexahedral)
Meshing -37
Meshing -38
Meshing -39
Meshing -40
Meshing -41
Meshing -42
Meshing -43
Meshing -44
Constant Rate
Constant Rate Normal
Hyperbolic Tangent
What parameters are applied for extrusion at boundary level?
Meshing -45
Note: There is an option to create a new region for the extruded mesh.
Meshing -46
Face Validity
Cell Quality
Volume Change
Cell Skewness Angle
Boundary Skewness Angle
Meshing -47
2.
Meshing -48
Meshing -49
Meshing -50
Meshing -51
Meshing -52
Meshing -53
2.
3.
Meshing -54
Meshing -55
Meshing -56
Meshing -57
Meshing -58
Meshing -59
1.
2.
3.
Topics
Creation and use of volume sources
Multi-Region Meshing requirements
Boolean Operations on Surfaces
Advanced Meshing -1
Advanced Meshing -2
1.
2.
Advanced Meshing -3
Advanced Meshing -4
Advanced Meshing -5
Advanced Meshing -6
Advanced Meshing -7
Advanced Meshing -8
Advanced Meshing -9
Outline of Lecture
Introduction to client and server
Viewing Client and Server processes
Connecting and Reconnecting to Servers
Remote Server requirements
Parallel Processing
Client Server 1
Client Server 2
Client Server 3
Client Server 4
Client Server 5
Client Server 6
Client Server 7
Client Server 8
Client Server 9
Client Server 10
Client Server 11
Client Server 12
Client Server 13
1.
2.
Client Server 14
Client Server 15
Client Server 16
2.
3.
4.
5.
Client Server 17
Client Server 18
Client Server 19
Client Server 20
Client Server 21
Client Server 22
Introduction
Recording and Playing Java Macros
Simple Examples
Java API
Summary
Scripting -1
Scripting -2
Scripting -3
2.
3.
Scripting -4
Scripting -5
Scripting -6
Scripting -7
Scripting -8
Scripting -9
Scripting -10
Scripting -11
Scripting -12
Scripting -13
Scripting -14
Scripting -15
Scripting -16
Scripting -17
Field Functions - 1
1.
2.
3.
4.
5.
Field Functions - 2
Field Functions - 3
Field Functions - 4
Field Functions - 5
Field Functions - 6
Field Functions - 7
Field Functions - 8
V = 10 Sin (50t)
This can be defined as:
10 * sin(50 * $Time)
Field Functions - 9
Field Functions - 10
2
I=
k
3
This can be defined as:
sqrt (2/3 * TurbulentKineticEnergy)
Field Functions - 11
Field Functions - 12
FAQ -1
FAQ -2
FAQ -3
Coupled Solver
Segregated Solver
FAQ -4
FAQ -5
FAQ -6
FAQ -7
FAQ -8
FAQ -9
FAQ -10
FAQ -11
What are the main methods for creating a new cell set?
-Cell List (proSTAR cell number)
-Threshold (using a scalar criteria)
-Zone (drawing a box)
-Geometric Range
FAQ -12
2.
FAQ -13
FAQ -14
FAQ -15
FAQ -16
Step 1.
Step 2.
Step 3.
Step 4.
FAQ -17
FAQ -18