mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: sprayParcel - updated treatment of liquid core parcels - mantis #999
This commit is contained in:
@ -68,13 +68,11 @@ void Foam::SprayParcel<ParcelType>::calc
|
|||||||
const CompositionModel<reactingCloudType>& composition =
|
const CompositionModel<reactingCloudType>& composition =
|
||||||
td.cloud().composition();
|
td.cloud().composition();
|
||||||
|
|
||||||
bool coupled = td.cloud().solution().coupled();
|
|
||||||
|
|
||||||
// check if parcel belongs to liquid core
|
// check if parcel belongs to liquid core
|
||||||
if (liquidCore() > 0.5)
|
if (liquidCore() > 0.5)
|
||||||
{
|
{
|
||||||
// liquid core parcels should not interact with the gas
|
// liquid core parcels should not experience coupled forces
|
||||||
td.cloud().solution().coupled() = false;
|
td.cloud().forces().setCalcCoupled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get old mixture composition
|
// get old mixture composition
|
||||||
@ -138,8 +136,8 @@ void Foam::SprayParcel<ParcelType>::calc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// restore coupled
|
// restore coupled forces
|
||||||
td.cloud().solution().coupled() = coupled;
|
td.cloud().forces().setCalcCoupled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user