Professional Documents
Culture Documents
eu
AnOverviewof
ComputationalFluid
Dynamics
JoelDucoste
AssociateProfessor
DepartmentofCivil,Construction,
andEnvironmentalEngineering
MBRTrainingSeminar
GhentUniversity
July1517,2008
www.mbr-network.eu
Outline
CFD? Whats that?
Modeling fluid flow and associated processes
Example
Secondary clarifier
www.mbr-network.eu
ComputationalFluidDynamics(CFD)
CFD is the science of determining a solution to fluid flow
through space and time.
CFD models include
a description of the flow geometry,
a set of coupled differential equations describing the physics and
chemistry of the flow,
boundary and initial conditions, and
a structured mesh of points at which these equations are solved
www.mbr-network.eu
Role of CFD
Design Tool
Troubleshooting Tool
www.mbr-network.eu
www.mbr-network.eu
Design B
www.mbr-network.eu
www.mbr-network.eu
www.mbr-network.eu
www.mbr-network.eu
Velocity
Modeling Grease
Interceptors
Oil concentration
www.mbr-network.eu
www.mbr-network.eu
CommonandtraditionalusesofCFD?
Biomedical
Aerospace
Automotive
www.mbr-network.eu
CommonandtraditionalusesofCFD?
Chemical Processing
Hydraulics
HVAC
Streamlines for workstation
ventilation
www.mbr-network.eu
DucostesAreasofResearchInterest
Disinfection
Chemical disinfectants
UV
Anaerobic digestion
Secondary Clarifiers
Advance oxidation
processes
Wetlands
Bioremediation
Chemical mixing
Flocculation
DAF
Biosystems/bioinformatics
www.mbr-network.eu
Modelingfluidflowand
associatedprocesses
Modeling includes:
Geometry, domain, grid specification
Governing equations
Initial and boundary conditions
Selection of models for different applications
www.mbr-network.eu
Typical approaches
Geometry approximation
CAD/CAE integration: use of industry standards such as
Parasolid, ACIS, STEP, or IGES, etc.
www.mbr-network.eu
Modeling(coordinates)
z
Cartesian
(x,y,z)
Cylindrical
(r,,z)
z Spherical
(r,,)
z
y
x
y
x
www.mbr-network.eu
GridSpecification
www.mbr-network.eu
unstructured
j
i
structured
www.mbr-network.eu
GridSpecification
cell distribution within the flow domain (i.e., making the cell
size non-uniform).
www.mbr-network.eu
GridSpecification
The user must still decide on the grid density that is needed to
capture the specific process and flow characteristics and
produce a stable numerical (also known as a grid independent)
solution.
A stable numerical solution is achieved when solved variables
at all discrete cell locations do not significantly change (i.e., less
than 0.1 percent) with increasing grid density.
The user should utilize some kind of grid checker to safeguard
against distorted cells (i.e., long thin cells) .
Grid cell distortion will lead to a poorly converged solution.
www.mbr-network.eu
1.
Governingequations
Governing equations (2D in Cartesian coordinates)
Navier-Stokes Equations
2u 2u
u
u
u
p
+ u
+ v
=
+ 2 + 2 + g x
t
x
y
x
y
x
2v 2v
v
v
v
p
+ u
+ v
=
+ 2 + 2 + g y
t
x
y
y
y
x
Convection
2.
Pressure gradient
Viscous terms
Continuity equation
( u ) ( v ) ( w )
+
+
+
=0
t
x
y
z
3.
Equation of state
p = RT
(U j C )
C
v C
+
=
ui c
t
x j
x j Pr (C ) x j
www.mbr-network.eu
U i
=0
xi
U i 1 P U i
v
Uj
=
+
ui u j
x j
xi x j x j
C
ui c=
PrT (C ) xi
k vt k U i U j U i
+vt
Ui
=
+
xi xi k xi x j xi x j
2
vi
U i U j U i
+C1 vt
=
+
C2
Ui
k x j
k
xi x j
xi xi xi
U i U j
ui u j =vt
+
x x
i
j
2
k ij
3
www.mbr-network.eu
Governing equations
Based on the physics of the fluids phenomena, CFD
can be distinguished into different categories using
different criteria
www.mbr-network.eu
TurbulentFlow
Turbulence Characteristics :
9
Turbulence in 3-D
www.mbr-network.eu
TurbulentFlow(EddiesAction)
www.mbr-network.eu
ReynoldsAveraging
u2
u3
u1, u2, u3 Total Velocity
u1
www.mbr-network.eu
ReynoldsAveraging
Since u1, u2, u3 are all non-zero we have to keep all three Navier Stokes
Equations. Represent Velocity as :
u1 = U1 + u1'
u 2 = U 2 + u '2
u 3 = U 3 + u 3' where U mean velocities and
u ' Random Fluctuating Velocities
Lets take a time average of u1
1
T
t 0 +T
t0
1
u{1 dt =
T
t 0 +T
t +T
1 0 '
t U1dt + T t u1dt
0
0
1
42
4
3
u1 = U1
u1' = 0
www.mbr-network.eu
ReynoldsAveraging
The example above demonstrates that time averaging may reduce the
complexity of our equations
u = 0 Assumes
u1 u 2 u 3
+
+
=0
x1 x 2 x 3
Substituti ng u1 , u 2 , u3 and time averaging :
1
0=
T
t 0 +T
t0
1
(U1 + u1' )dt +
x1
T
t 0 +T
t0
1
(U 2 + u 2' )dt +
x 2
T
t 0 +T
t0
(U 3 + u3' )dt
x 3
www.mbr-network.eu
ReynoldsStresses
u i = U i + u i'
= + '
2 Ui
U i
U i
P
( u i' u 'j )
+ U k
=
+
123
t
x k
x i
x jx j x j
Reynold Stresses
www.mbr-network.eu
TurbulenceClosureProblem
ij = u i' u 'j = t
U i
where t = Turbulent eddy viscosity
x j
www.mbr-network.eu
TurbulenceClosureProblem
most widely used are standard k-, RNG k- and Chen Kim
k-, and Realizable k-
www.mbr-network.eu
TwoEquationTurbulentModel
+ t
+
+Ui
=
x j
xi
t
xi xi k xi
U i
x j
2
U i U j U i
+ c1 t
c2
+Ui
=
+
k
k
t
xi xi e xi
xi x j
x j
2
k
t = C
C = 0.09
c2 = 1.92
k = 1.0
c1 = 1.44
www.mbr-network.eu
TwoEquationTurbulentModel
c = c2 +
*
2
C 3 (1 / 0 )
1 +
k = 0.72 e = 0.72 C
= 0.0845
= (2 E
c1 = 1.42
ij
Eij
1/ 2
www.mbr-network.eu
TwoEquationTurbulentModel
S =
c4
(Eij Eij )2
k
www.mbr-network.eu
TwoEquationTurbulentModel
U i U j
t
+ c1 t
=
+
+Ui
xi xi e xi k
xi
t
x j
2
k
t = C f
V = max k
Rt =
1/ 2
Tt = max 1,
, ( )
1/ 4
k2
=
C2
k
= max
,0
x x
j
2
1
U i
c2
+ E Tt
x
k
E = AE V Tt
k
f =
1 e
A Rt
1 e
Rt
max 1, 1
www.mbr-network.eu
TwoEquationTurbulentModel
The values of the constants for the realizable k- model are:
C = 0.09 k = 1.0 c1 = 1.44
C = 2
e = 1.3
c2 = 1.92
AE = 0.3
A = 0.01
The constants used in these k- models are the default values typically
used in commercial CFD software.
www.mbr-network.eu
Turbulence
Model
Disadvantages
www.mbr-network.eu
TurbulentFlowmeasurementswithinaUV
Reactor(ModelComparisons)
flow
3
www.mbr-network.eu
TurbulentFlowmeasurementswithinaUVReactor
(VelocityProfile)
1
2
www.mbr-network.eu
TurbulentFlowmeasurementswithinaUVReactor
(KineticenergyProfile)
1
2
www.mbr-network.eu
Boundary Conditions
y
Slip-free: u=0,v=?
Slip-free: u=?,v=0
Inlet
r
v=0, dp/dr=0,du/dr=0
www.mbr-network.eu
Boundary Conditions
Boundary conditions in turbulence modeling involve specifications for
For inlet conditions, the average mean velocity normal to the inlet plane
must be specified. All tangential velocities are set to zero. The turbulent
kinetic energy and energy dissipation rate inlet conditions are defined as
follows:
kinlet = (I U)2
inlet = kinlet1.5/(0.1 D)
where I is the turbulence intensity whose value ranges from 0.01-0.07, U
is the normal average velocity at the inlet, and D is a characteristic
dimension. U is calculated as the flow rate divided by the cross sectional
area of the inlet plane. D is typically taken as the inlet pipe diameter.
www.mbr-network.eu
Boundary Conditions
www.mbr-network.eu
Boundary Conditions
For the wall boundary conditions:
No slip condition (i.e., velocities equal to zero) is applied to
all solid surfaces.
At very small distances near the solid wall, a viscous sublayer exists followed by an intermediate layer and turbulent
core.
In the viscous sub-layer, the flow is influenced by viscous
forces and does not depend on free stream turbulent
parameters.
The velocity in this sub-layer only depends on the distance
normal to the wall, fluid density, viscosity, and the wall
shear stress.
www.mbr-network.eu
Boundary Conditions
For the wall boundary conditions:
The intermediate sub-layer is bridged by utilizing empirical
wall functions to provide near-wall boundary conditions for
the mean-flow and turbulence transport equations.
The purpose of these empirical functions is to connect the
wall shear stress to the dependent variables at the near-wall
grid node. This grid node must lie outside this sub-layer and
reside in the fully-turbulent zone.
There are two types of wall function provided in
commercial CFD codes: a) equilibrium log-law wall
functions and non-equilibrium log- law wall functions.
www.mbr-network.eu
Boundary Conditions
For the wall boundary conditions:
The non-equilibrium log- law wall functions should be used
when the turbulent transport of heat, and also species, at a
reattachment point is required.
The equilibrium wall functions are those appropriate to a
near wall layer in local equilibrium. The velocity, turbulent
kinetic energy, and energy dissipation rate in the equilibrium
wall functions are as follows:
u + / u = Ln ( Ey + ) /
k = u / C
2
www.mbr-network.eu
Boundary Conditions
For the wall boundary conditions:
u+ is the absolute value of the resultant velocity parallel to
the wall at the first grid node,
ut is the resultant friction velocity ( u = w / ),
Y is the normal distance of the first grid point from the
wall,
y+ is the dimensionless wall distance ( y + = u Y / ),
Cm is a constant based on the two-equation turbulence
model selection, is the von Karman constant and
E is a roughness parameter. = 0.41 and E = 8.6, which is
appropriate for smooth walls.
www.mbr-network.eu
Boundary Conditions
For the wall boundary conditions:
These wall functions are known as the wall logarithmic law
and should only be used when the y+ value range between
30 and 500.
Deviation from this y+ value range may cause poor
prediction of the pressure drop through the reactor.
If the y+ value falls outside this range, grid refinement must
be performed to correct for these deviated values.
In some commercial CFD codes, the refinement procedure
can occur automatically during the model execution.
www.mbr-network.eu
www.mbr-network.eu
www.mbr-network.eu
www.mbr-network.eu
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
u
x
1
1
u
+
x
2
2
u
+
x
= 0
1 P
Ui
U i
2Ui
=
+ ( + t )
+ Uk
x i
x jx j
t
x k
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
SIMPLE:
It is based on the premise that fluid flows from regions with
high pressure to low pressure.
Start with an initial pressure field.
Look at a cell.
If continuity is not satisfied because there is more mass flowing into
that cell than out of the cell, the pressure in that cell compared to the
neighboring cells must be too low.
Thus the pressure in that cell must be increased relative to the
neighboring cells.
The reverse is true for cells where more mass flows out than in.
Repeat this process iteratively for all cells.
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
Scheme
SMART
H-QUICK
Non-Linear Schemes
B(r)
max(0,min(2r, 0.75r+0.25, 4))
2 (r+|r|)/(r+3)
UMIST
CHARM
MUSCL
Van-Leer
harmonic
(r+|r|)/(r+1)
OSPRE
van Albada [1982]
3 (r2+r)/{2.(r2+r+1)}
(r2+r)/(r2+1)
Notes
Gaskell & Lau [1988]):
bounded QUICK, piecewise
linear
Waterson & Deconinck [1995];
harmonic based on QUICK,
smooth
Lien & Leschziner [1994];
bounded QUICK, piecewise
linear
Zhou [1995]; bounded QUICK,
smooth
van Leer [1979]; bounded
Fromm
bounded Fromm
Waterson & Deconinck [1995];
bounded Fromm
van Albada [1982]; bounded
Fromm
Superbee
Minmod
max( 0, min(r, 1) )
H-CUS
1.5 (r+|r|)/(r+2)
Koren
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
PerformanceofSchemes
www.mbr-network.eu
Exact
Upwind DS
Central DS
Quick
www.mbr-network.eu
LUS
CUS
FROMM
www.mbr-network.eu
SMART
HQUICK
KOREN
Quick
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
cS
www.mbr-network.eu
SOLUTION
cN
cW
An,cn
cP
Aw,cw
As,cs
j,y,v
i,x,u
cS
cE
Ae,ce
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
a P c P = aW cW + a N c N + a E c E + a S c S + b
=
c +b
nb nb
nb
Here nb refers to the neighboring cells. The coefficients anb and b will be
different for every cell in the domain at every iteration. The species
concentration field can be calculated by recalculating cP iteratively
www.mbr-network.eu
SOLUTION
www.mbr-network.eu
SOLUTION
Spot Values
Residual
error
www.mbr-network.eu
MultiphaseFlow
PHOENICS
www.mbr-network.eu
MultiphaseFlow
Multiphase flow describes
Flow with different phases( i.e. solid, liquid or gas).
Flow with different chemical substances but same phase (i.e. liquidliquid like oil-water).
www.mbr-network.eu
MultiphaseFlow
Multiphase flow can be divided into the following
regimes:
Particle flow: Discrete solid particles in a continuous
fluid
Bubbly flow: Discrete gaseous or fluid bubbles in a
continuous fluid
Droplet flow: Discrete fluid droplets in a continuous gas
Slug flow: Large bubbles (nearly filling cross-section) in
a continuous fluid
Stratified/free-surface flow: Immiscible fluids
separated by a clearly-defined interface
www.mbr-network.eu
LagrangianMultiphaseModel
Good for modeling particles, droplets, or bubbles dispersed at
volume fractions less than 10%) in continuous fluid phase
Computes trajectories of particle streams in continuous
phase.
Can allow for heat, mass, and momentum transfer between
dispersed and continuous phases.
Neglects particle-particle interaction.
www.mbr-network.eu
LagrangianMultiphaseModel
www.mbr-network.eu
CouplingBetweenPhases
One-Way Coupling
Fluid phase influences particulate phase via drag and
turbulence transfer.
Particulate phase have no influence on the gas phase.
Two-Way Coupling
Fluid phase influences particulate phase via drag and
turbulence transfer.
Particulate phase influences fluid phase via source terms of
mass, momentum, and energy.
www.mbr-network.eu
ParticleTrajectory(LagrangianModels)
the fluid phase is treated separately from the particle phase
and are coupled through interphase source terms in the
particle momentum equation:
mp
du p , i
dt
= D p , i (u i u p , i ) + m p g i
D p = 0 .5 A p C D u u p
CD =
i = 1,2,3
24
0.42
1 + 0.15 Re 0.687 +
Re
1 + 4.25 x10 4 Re 1.16
www.mbr-network.eu
EulerianMultiphaseModels(IPSA)
www.mbr-network.eu
EulerianMultiphaseModels(IPSA)
Each phase may have its own temperature, enthalpy, and mass fraction of
chemical species.
Phase temperatures are linked by interphase heat transfer.
Phase concentrations are linked by interphase mass transfer.
Each phase may have its own pressure - surface tension raises the pressure
inside bubbles, and interparticle forces prevent tight packing, by raising
pressure.
www.mbr-network.eu
EulerianMultiphaseModels(IPSA)
Phase continuity
regarded as the equations governing the phase
volume fractions.
d(rii)/dt + div( riiVi - rigrad(ri) ) = ji
Transient Convection Phase Diffusion Mass Source
ri = phase volume fraction, m3/m3
i = phase density, kg/m3
Vi = phase velocity vector, m/s
ri = phase diffusion coefficient, Ns/m2
ji = net rate of mass entering phase i from phase j,
kg/(m3s)
www.mbr-network.eu
EulerianMultiphaseModels(IPSA)
i = any variable
ri = phase volume fraction, m3/m3
i = phase density, kg/m3
Vi = phase velocity vector, m/s
i = within-phase diffusion coefficient, Ns/m2
ri = phase diffusion coefficient, Ns/m2
Si = within-phase volumetric sources, kg/(m3s)
Sip = interphase volumetric sources, kg/(m3s)
www.mbr-network.eu
EulerianMultiphaseModels(ASM)
www.mbr-network.eu
EulerianMultiphaseModels(ASM)
www.mbr-network.eu
EulerianMultiphaseModels(ASM)
www.mbr-network.eu
MultiphaseModels
www.mbr-network.eu
CFD Process
Geometry
Physics
Mesh
Solve
Select Geometry
Heat Transfer
ON/OFF
Unstructured
(automatic/
manual)
Steady/
Unsteady
Structured
(automatic/
manual)
Iterations/
Steps
XY Plot
Vectors
Flow properties
Convergent
Limit
Verification
Streamlines
Viscous Model
Precisions
(single/
double)
Validation
Boundary
Conditions
Numerical
Scheme
Geometry
Parameters
Domain Shape
and Size
Compressible
ON/OFF
Initial Conditions
Reports
Forces Report
PostProcessing
Contours
(lift/drag, shear
stress, etc)
www.mbr-network.eu
Example(SecondaryClarifier)
www.mbr-network.eu
Example(SecondaryClarifier)
www.mbr-network.eu
Example(SecondaryClarifier)
The Mixture Model was used to solve this problem. Physical
properties of the two phases according to the following table:
Var
VALUE
DESCRIPTION
110-3 Pas
dd
210-4 m
gz
-9.82 m/s2
max
0.62
vin
1.25 m/s
Inlet velocity
vout
-0.05 m/s
Outlet velocity
in
0.003
www.mbr-network.eu
Results(SecondaryClarifier)
Velocity Contour
www.mbr-network.eu
Results(SecondaryClarifier)
Sludge Mass Contour
www.mbr-network.eu
Results(SecondaryClarifier)
Sludge Mass Contour