mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: parcel phase change - bypass calc if phase fraction < SMALL - mantis #1298
This commit is contained in:
@ -60,14 +60,14 @@ void Foam::ReactingParcel<ParcelType>::calcPhaseChange
|
|||||||
typedef typename TrackData::cloudType::reactingCloudType reactingCloudType;
|
typedef typename TrackData::cloudType::reactingCloudType reactingCloudType;
|
||||||
PhaseChangeModel<reactingCloudType>& phaseChange = td.cloud().phaseChange();
|
PhaseChangeModel<reactingCloudType>& phaseChange = td.cloud().phaseChange();
|
||||||
|
|
||||||
if (!phaseChange.active())
|
if (!phaseChange.active() || (YPhase < SMALL))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
scalar Tvap = phaseChange.Tvap(YComponents);
|
scalar Tvap = phaseChange.Tvap(YComponents);
|
||||||
|
|
||||||
if (T < Tvap || YPhase < SMALL)
|
if (T < Tvap)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user