corrections to chemical enthalpy transfer

This commit is contained in:
andy 2009-05-20 14:50:08 +01:00
parent 5ccff5ffca
commit 0696e9aa44
2 changed files with 18 additions and 3 deletions

View File

@ -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);
}

View File

@ -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>