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,8 +566,12 @@ void Foam::KinematicCloud<CloudType>::checkParcelProperties
|
||||
{
|
||||
const scalar carrierDt = mesh_.time().deltaTValue();
|
||||
parcel.stepFraction() = (carrierDt - lagrangianDt)/carrierDt;
|
||||
|
||||
if (parcel.typeId() == -1)
|
||||
{
|
||||
parcel.typeId() = constProps_.parcelTypeId();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
|
||||
Reference in New Issue
Block a user