mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Only set parcel type ID to default if not already set
This commit is contained in:
@ -566,7 +566,11 @@ void Foam::KinematicCloud<CloudType>::checkParcelProperties
|
|||||||
{
|
{
|
||||||
const scalar carrierDt = mesh_.time().deltaTValue();
|
const scalar carrierDt = mesh_.time().deltaTValue();
|
||||||
parcel.stepFraction() = (carrierDt - lagrangianDt)/carrierDt;
|
parcel.stepFraction() = (carrierDt - lagrangianDt)/carrierDt;
|
||||||
parcel.typeId() = constProps_.parcelTypeId();
|
|
||||||
|
if (parcel.typeId() == -1)
|
||||||
|
{
|
||||||
|
parcel.typeId() = constProps_.parcelTypeId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user