Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
05d2ab92
Commit
05d2ab92
authored
13 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Updated liquid evaporation/boiling model in lagrangian intermediate library
parent
e0824b96
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
+29
-25
29 additions, 25 deletions
...ChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
with
29 additions
and
25 deletions
src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
+
29
−
25
View file @
05d2ab92
...
...
@@ -157,8 +157,8 @@ void Foam::LiquidEvaporationBoil<CloudType>::calculate
// liquid volume fraction
const
scalarField
X
(
liquids_
.
X
(
Yl
));
// droplet surface pressure
scalar
ps
=
liquids_
.
pv
(
pc
,
T
,
X
);
// droplet
vapour
surface pressure
scalar
ps
=
liquids_
.
pv
(
pc
,
T
s
,
X
);
// vapour density at droplet surface [kg/m3]
scalar
rhos
=
ps
*
liquids_
.
W
(
X
)
/
(
specie
::
RR
*
Ts
);
...
...
@@ -178,66 +178,64 @@ void Foam::LiquidEvaporationBoil<CloudType>::calculate
const
label
lid
=
liqToLiqMap_
[
i
];
// boiling temperature at cell pressure for liquid species lid [K]
const
scalar
TBoil
=
liquids_
.
properties
()[
lid
].
pvInvert
(
p
c
);
const
scalar
TBoil
=
liquids_
.
properties
()[
lid
].
pvInvert
(
p
s
);
// limit droplet temperature to boiling/critical temperature
const
scalar
Td
=
min
(
T
,
0
.
999
*
TBoil
);
// saturation pressure for liquid species lid [Pa]
const
scalar
pSat
=
liquids_
.
properties
()[
lid
].
pv
(
p
c
,
Td
);
const
scalar
pSat
=
liquids_
.
properties
()[
lid
].
pv
(
p
s
,
Td
);
// carrier phase concentration
const
scalar
Xc
=
XcMix
[
gid
];
if
(
Xc
*
pc
>
pSat
)
{
// saturated vapour - no phase change
}
else
{
// vapour diffusivity [m2/s]
const
scalar
Dab
=
liquids_
.
properties
()[
lid
].
D
(
ps
,
Td
);
// Schmidt number
const
scalar
Sc
=
nu
/
(
Dab
+
ROOTVSMALL
);
// Sherwood number
const
scalar
Sh
=
this
->
Sh
(
Re
,
Sc
);
if
(
pSat
>
0
.
999
*
pc
)
{
// boiling
// const scalar deltaT = max(Tc - Td, 0.5);
const
scalar
deltaT
=
max
(
Tc
-
T
,
0
.
5
);
const
scalar
deltaT
=
max
(
T
-
TBoil
,
0
.
5
);
// liquid specific heat capacity
const
scalar
Cp
=
liquids_
.
properties
()[
lid
].
Cp
(
pc
,
Td
);
// vapour heat of fomation
// vapour heat of fo
r
mation
const
scalar
hv
=
liquids_
.
properties
()[
lid
].
hl
(
pc
,
Td
);
// Nusselt number
const
scalar
Nu
=
2
.
0
+
0
.
6
*
sqrt
(
Re
)
*
cbrt
(
Pr
);
const
scalar
lg
=
log
(
1
.
0
+
Cp
*
deltaT
/
max
(
SMALL
,
hv
));
// mass transfer [kg]
dMassPC
[
lid
]
+=
pi
*
kappac
*
Nu
*
lg
*
d
/
Cp
*
dt
;
// NOTE: Using Sherwood number instead of Nusselt number
dMassPC
[
lid
]
+=
pi
*
kappac
*
Sh
*
lg
*
d
/
Cp
*
dt
;
}
else
{
// evaporation
// surface molar fraction - Raoult's Law
const
scalar
Xs
=
X
[
lid
]
*
pSat
/
p
c
;
const
scalar
Xs
=
X
[
lid
]
*
pSat
/
p
s
;
// molar ratio
const
scalar
Xr
=
(
Xs
-
Xc
)
/
max
(
SMALL
,
1
.
0
-
Xs
);
if
(
Xr
>
0
)
{
// vapour diffusivity [m2/s]
const
scalar
Dab
=
liquids_
.
properties
()[
lid
].
D
(
pc
,
Td
);
// Schmidt number
const
scalar
Sc
=
nu
/
(
Dab
+
ROOTVSMALL
);
// Sherwood number
const
scalar
Sh
=
this
->
Sh
(
Re
,
Sc
);
// mass transfer coefficient [m/s]
const
scalar
kc
=
Sh
*
Dab
/
(
d
+
ROOTVSMALL
);
...
...
@@ -261,18 +259,24 @@ Foam::scalar Foam::LiquidEvaporationBoil<CloudType>::dh
{
scalar
dh
=
0
;
scalar
TDash
=
T
;
if
(
liquids_
.
properties
()[
idl
].
pv
(
p
,
T
)
>=
0
.
999
*
p
)
{
TDash
=
liquids_
.
properties
()[
idl
].
pvInvert
(
p
);
}
typedef
PhaseChangeModel
<
CloudType
>
parent
;
switch
(
parent
::
enthalpyTransfer_
)
{
case
(
parent
:
:
etLatentHeat
)
:
{
dh
=
liquids_
.
properties
()[
idl
].
hl
(
p
,
T
);
dh
=
liquids_
.
properties
()[
idl
].
hl
(
p
,
T
Dash
);
break
;
}
case
(
parent
:
:
etEnthalpyDifference
)
:
{
scalar
hc
=
this
->
owner
().
composition
().
carrier
().
H
(
idc
,
T
);
scalar
hp
=
liquids_
.
properties
()[
idl
].
h
(
p
,
T
);
scalar
hc
=
this
->
owner
().
composition
().
carrier
().
H
(
idc
,
T
Dash
);
scalar
hp
=
liquids_
.
properties
()[
idl
].
h
(
p
,
T
Dash
);
dh
=
hc
-
hp
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment