mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
corrections to chemical enthalpy transfer
This commit is contained in:
@ -174,9 +174,12 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::cellValueSourceCorrection
|
|||||||
const scalar cpc = td.cpInterp().psi()[cellI];
|
const scalar cpc = td.cpInterp().psi()[cellI];
|
||||||
this->cpc_ = (massCell*cpc + addedMass*cpEff)/massCellNew;
|
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 =
|
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);
|
this->Tc_ += dh/(this->cpc_*massCellNew);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,19 @@ constantProperties
|
|||||||
(
|
(
|
||||||
dimensionedScalar(this->dict().lookup("hRetentionCoeff")).value()
|
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>
|
template<class ParcelType>
|
||||||
|
|||||||
Reference in New Issue
Block a user