mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: SprayParcel - limit T to Tmax - mantis #942
This commit is contained in:
@ -76,6 +76,10 @@ void Foam::SprayParcel<ParcelType>::calc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set the maximum temperature limit
|
||||||
|
const scalar TMax = td.cloud().composition().liquids().TMax(this->pc_);
|
||||||
|
td.cloud().constProps().TMax() = TMax;
|
||||||
|
|
||||||
// store the parcel properties
|
// store the parcel properties
|
||||||
const scalarField& Y(this->Y());
|
const scalarField& Y(this->Y());
|
||||||
scalarField X(td.cloud().composition().liquids().X(Y));
|
scalarField X(td.cloud().composition().liquids().X(Y));
|
||||||
@ -301,15 +305,12 @@ Foam::scalar Foam::SprayParcel<ParcelType>::chi
|
|||||||
{
|
{
|
||||||
// modifications to take account of the flash boiling on primary break-up
|
// modifications to take account of the flash boiling on primary break-up
|
||||||
|
|
||||||
static label nIter = 200;
|
|
||||||
|
|
||||||
typedef typename TrackData::cloudType::reactingCloudType reactingCloudType;
|
typedef typename TrackData::cloudType::reactingCloudType reactingCloudType;
|
||||||
const CompositionModel<reactingCloudType>& composition =
|
const CompositionModel<reactingCloudType>& composition =
|
||||||
td.cloud().composition();
|
td.cloud().composition();
|
||||||
|
|
||||||
scalar chi = 0.0;
|
scalar chi = 0.0;
|
||||||
scalar T0 = this->T();
|
scalar T0 = this->T();
|
||||||
scalar Tc0 = this->Tc();
|
|
||||||
scalar p0 = this->pc();
|
scalar p0 = this->pc();
|
||||||
scalar pAmb = td.cloud().pAmbient();
|
scalar pAmb = td.cloud().pAmbient();
|
||||||
|
|
||||||
@ -322,21 +323,7 @@ Foam::scalar Foam::SprayParcel<ParcelType>::chi
|
|||||||
// liquid is boiling - calc boiling temperature
|
// liquid is boiling - calc boiling temperature
|
||||||
|
|
||||||
const liquidProperties& liq = composition.liquids().properties()[i];
|
const liquidProperties& liq = composition.liquids().properties()[i];
|
||||||
scalar TBoil = T0;
|
scalar TBoil = liq.pvInvert(p0);
|
||||||
|
|
||||||
for (label k=0; k<nIter; k++)
|
|
||||||
{
|
|
||||||
scalar pBoil = liq.pv(p0, TBoil);
|
|
||||||
|
|
||||||
if (pBoil > p0)
|
|
||||||
{
|
|
||||||
TBoil = TBoil - (T0 - Tc0)/nIter;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scalar hl = liq.hl(pAmb, TBoil);
|
scalar hl = liq.hl(pAmb, TBoil);
|
||||||
scalar iTp = liq.h(pAmb, T0) - liq.rho(pAmb, T0);
|
scalar iTp = liq.h(pAmb, T0) - liq.rho(pAmb, T0);
|
||||||
|
|||||||
Reference in New Issue
Block a user