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
6ec44522
Commit
6ec44522
authored
May 20, 2009
by
Andrew Heather
Browse files
Merge branch 'lagrangianDev' into WBM
parents
174efa30
0696e9aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/parcels/Templates/ReactingMultiphaseParcel/ReactingMultiphaseParcel.C
View file @
6ec44522
...
...
@@ -174,9 +174,12 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::cellValueSourceCorrection
const
scalar
cpc
=
td
.
cpInterp
().
psi
()[
cellI
];
this
->
cpc_
=
(
massCell
*
cpc
+
addedMass
*
cpEff
)
/
massCellNew
;
const
scalar
fCarrier
=
-
1
.
0
/
td
.
constProps
().
hRetentionCoeff
();
const
scalar
fCarrier
=
(
1
.
0
-
td
.
cloud
().
constProps
().
hRetentionCoeff
())
/
td
.
cloud
().
constProps
().
hRetentionCoeff
();
const
scalar
dh
=
td
.
cloud
().
hsTrans
()[
cellI
]
+
fCarrier
*
td
.
cloud
().
hcTrans
()[
cellI
];
td
.
cloud
().
hsTrans
()[
cellI
]
-
fCarrier
*
td
.
cloud
().
hcTrans
()[
cellI
];
this
->
Tc_
+=
dh
/
(
this
->
cpc_
*
massCellNew
);
}
...
...
src/lagrangian/intermediate/parcels/Templates/ReactingMultiphaseParcel/ReactingMultiphaseParcelI.H
View file @
6ec44522
...
...
@@ -39,7 +39,19 @@ constantProperties
(
dimensionedScalar
(
this
->
dict
().
lookup
(
"hRetentionCoeff"
)).
value
()
)
{}
{
if
((
hRetentionCoeff_
<
0
)
||
(
hRetentionCoeff_
>
1
))
{
FatalErrorIn
(
"ReactingMultiphaseParcel<ParcelType>::constantProperties::"
"constantProperties"
)
<<
"hRetentionCoeff must be in the range 0 to 1"
<<
nl
<<
exit
(
FatalError
)
<<
endl
;
}
hRetentionCoeff_
=
max
(
1e-06
,
hRetentionCoeff_
);
}
template
<
class
ParcelType
>
...
...
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