Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
05d2ab92
Commit
05d2ab92
authored
Jan 10, 2012
by
andy
Browse files
ENH: Updated liquid evaporation/boiling model in lagrangian intermediate library
parent
e0824b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporationBoil/LiquidEvaporationBoil.C
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment