Professional Documents
Culture Documents
Abolfazl Asnaghi
Dec 2013
Cavitation
Flow Direction
F
Pressure
Liq : Liquid
B
E
Liq.
Vap
C
D
Liq-Vap
Vap: Vapor
Cavitation
o multiphaseEulerFoam
o compressibleInterFoam
o multiphaseInterFoam
o compessibleTwoPhaseEulerFoam
o settlingFoam
o interFoam
o twoLiquidMixingFoam
o interPhaseChangeFoam
o twoPhaseEulerFoam
interPhaseChangeFoam Solver
interPhaseChangeDyFoam
interPhaseChangeFoam Solver
Since we simulate phase change between two incompressible flows, we can not use the
equation of state. Therefore, the transport equation of liquid (or vapor) volume fraction
has to be used, along with a source term to mimic phase change rate.
l u i
xi
Sl
Need to estimate Sl
o Kunz
o Merkle
o SchnerrSauer
interPhaseChangeFoam Structure
alphaEqn.H
alphaEqnSubCycle.H
createFields.H
interPhaseChangeFoam.C
pEqn.H
UEqn.H
phaseChangeTwoPhaseMixtures Folder
o Kunz Folder
Kunz.C
Kunz.H
o Merkle Folder
Merkle.C
Merkle.H
o phaseChangeTwoPhaseMixture Folder
phaseChangeTwoPhaseMixture.C
phaseChangeTwoPhaseMixture.H
newPhaseChangeTwoPhaseMixture.C
newPhaseChangeTwoPhaseMixture.H
o SchnerrSauer Folder
SchnerrSauer.C
SchnerrSauer.H
o Make Folder
files
options
o
o
o
o
o
o
o
interPhaseChangeFoam Structure
o alphaEqn.H
o alphaEqnSubCycle.H
o interPhaseChangeFoam.C
o pEqn.H
o UEqn.H
o phaseChangeTwoPhaseMixtures Folder
o phaseChangeTwoPhaseMixture Folder
phaseChangeTwoPhaseMixture.C
phaseChangeTwoPhaseMixture.H
o SchnerrSauer Folder
SchnerrSauer.C
SchnerrSauer.H
User Input
o Initial time folder (usually zero folder)
U: velocity (m/s)
alpha1: liquid volume fraction (must be between zero & one
p_rgh = p-rho.g.h where p here is the thermodynamic pressure which comes
from intermolecular forces and you see it in the N.S. equations (pa)
User Input
o constant folder: transportProperties file
Select the phase change model
Solver Flowchart
Reading maxCo, and maxDeltaT from controlDict
Calculates and outputs the mean and
maximum Courant Numbers
Calculates deltaT based on the
maximum Courant Number in the
flow, maximum allowed Courant
Number and maximum allowed deltaT
Calculates viscosity of mean flow
based on the each phase properties,
specified viscosity models for each
phase and alpha distribution. For
homogenous assumption:
(1 v )
(1 v )
Solver Flowchart
UEqn
Keeping this term (which is the
continuity equation, and in converged
solution is equal to zero ) would increase
the stability of the solution considerably
p
x
gx
x
g gx .
p
x
g gx .
p gx
x
pEqn
(just intrested parts)
.U
cp
V vp . p pSat
V vp . p gh gh pSat
cp
V cp V vp . p rgh V cp V vp . pSat
* Look at the Jassak PhD thesis for further information about pressure correction equations
gh
alphaEqnSubCycle
rhoPhi is
set to zero
alphaEqnSubCycle
Main time step used in other equations
Maximum allowed time step for alpha equation is much lower than the one that we can use for
solving momentum or turbulence equations.
Therefore, we consider deltaT as the main time step for momentum or turbulence equations,
and use deltaT/nAlphaSubCycle as the time step for alpha equation.
alphaEqn
l u i
xi
lU
Ur U
vU
l v u r
xi
Sl
k Omega SST
PANS
PANS = Partially Averaged Navier Stokes
o The
of PANS (and
other scale
adaptive
that it
If allmain
of theadvantage
velocity disturbance
specturm
be solved
thatmethods)
would beisDNS:
switches
on resolution,
andofcan
converges tocost
DNS in the
very highdepending
precision but
huge amount
computational
limit. of all of the velocity disturbance specturm that would be
o resolution
If we use vaerage
o Where
use this
in its
work? computational cost
RANS:can
fairone
precision
with
acceptable
is an attractive
featuretosince
it means
that
oneofcould
have primarily
o InItPANS,
we are aiming
calculate
some
parts
unresolved
velocity
RANS for the
most parts of the computation domain and spend the
disturbance
specturm.
resources on the more importance
parts where he/she needs the structures
PANS
RANS
and more
detailed simulation.
DNS
PANS
PANS
Transport Equations for standard k-Epsilon model
m k
u i
t
xi
k
xi
m u ik
x i
x i
Pk
x
i
C 1
k
x i
Pk
Pb C
m u
t
m u ik u
xi
m u i u
xi
u
xi
ku
xi
u
ku
Pu
x
i
u
Pu u
u
*
C2
f k C 1
x
k
ku
i
u
Simulation Results
PANS Turbulence Model
Wet Flow
Primitive Results
Turbulence model
Cd
Cd Error (%)
kEpsilon
1.67
-20.5
0.1348
2.12
OEEVM (LES)
2.05
-2.4
0.1333
PANS
2.139
1.8
0.1293
-2.04
2.1
-----
0.132
-----
Thank you
Backup Slides
Turbulence Models
kEpsilon
Turbulence Models
kEpsilon
Turbulence Models
PANS
based on kEpsilon RANS Model
Turbulence Models
PANS
based on kEpsilon RANS Model
m u i
t
m u i
xi
m u i u
v u i
x i
S ,
xi
u i
xi
1 D
Dt
u
u j
i
x
xi
j
g
m
i 1
i 1
m v v (1 v ) ,
m v v (1 v ) l
To simulate phase change rate, few models are available: Sauer, Kunz, Singhal, ...
o Rename the folder and its files (kEpsilon.C and kEpsilon.H) to kEpsilonPANS
o Replace all of the kEpsilon words with kEpsilonPANS in .C and .H files
o Go to Make folder, and then into the files
Replace kEpsilon with kEpsilonPANS, and also libkEpsilon with
libkEpsilonPANS
Debug the model (wmake libso)
kU_
(
IOobject
(
"kU",
runTime_.timeName(),
mesh_,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
autoCreateK("kU", mesh_)
),
epsilonU_
(
IOobject
(
"epsilonU",
runTime_.timeName(),
mesh_,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
autoCreateEpsilon("epsilonU", mesh_)
),