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
c4ac52e6
Commit
c4ac52e6
authored
May 19, 2009
by
Andrew Heather
Browse files
fix: taking carrier specie id
parent
f2f7b74f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporation/LiquidEvaporation.C
View file @
c4ac52e6
...
...
@@ -81,7 +81,7 @@ Foam::LiquidEvaporation<CloudType>::LiquidEvaporation
)
),
activeLiquids_
(
this
->
coeffDict
().
lookup
(
"activeLiquids"
)),
liqTo
Gas
Map_
(
activeLiquids_
.
size
(),
-
1
),
liqTo
Carrier
Map_
(
activeLiquids_
.
size
(),
-
1
),
liqToLiqMap_
(
activeLiquids_
.
size
(),
-
1
)
{
if
(
activeLiquids_
.
size
()
==
0
)
...
...
@@ -98,14 +98,14 @@ Foam::LiquidEvaporation<CloudType>::LiquidEvaporation
}
// Determine mapping between liquid and carrier phase species
label
idLiquid
=
owner
.
composition
().
idLiquid
();
forAll
(
activeLiquids_
,
i
)
{
liqTo
Gas
Map_
[
i
]
=
owner
.
composition
().
global
Id
(
idLiquid
,
activeLiquids_
[
i
]);
liqTo
Carrier
Map_
[
i
]
=
owner
.
composition
().
global
CarrierId
(
activeLiquids_
[
i
]);
}
// Determine mapping between local and global liquids
label
idLiquid
=
owner
.
composition
().
idLiquid
();
forAll
(
activeLiquids_
,
i
)
{
liqToLiqMap_
[
i
]
=
...
...
@@ -159,7 +159,7 @@ void Foam::LiquidEvaporation<CloudType>::calculate
// calculate mass transfer of each specie in liquid
forAll
(
activeLiquids_
,
i
)
{
label
gid
=
liqTo
Gas
Map_
[
i
];
label
gid
=
liqTo
Carrier
Map_
[
i
];
label
lid
=
liqToLiqMap_
[
i
];
// vapour diffusivity [m2/s]
...
...
src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/LiquidEvaporation/LiquidEvaporation.H
View file @
c4ac52e6
...
...
@@ -60,8 +60,8 @@ protected:
//- List of active liquid names
List
<
word
>
activeLiquids_
;
//- Mapping between liquid and carrier
gas
species
List
<
label
>
liqTo
Gas
Map_
;
//- Mapping between liquid and carrier species
List
<
label
>
liqTo
Carrier
Map_
;
//- Mapping between local and global liquid species
List
<
label
>
liqToLiqMap_
;
...
...
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