corrections to chemical enthalpy transfer
This commit is contained in:
parent
5ccff5ffca
commit
0696e9aa44
@ -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);
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user