Commit 4de94aa5 authored by andy's avatar andy
Browse files

ENH: Changed parcel injection/set parcel properties order

parent 11fe0cf3
......@@ -591,12 +591,12 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
tetPtI
);
// Assign new parcel properties in injection model
setProperties(parcelI, newParcels, timeInj, *pPtr);
// Check/set new parcel properties
td.cloud().checkParcelProperties(*pPtr, dt, fullyDescribed());
// Assign new parcel properties in injection model
setProperties(parcelI, newParcels, timeInj, *pPtr);
// Apply correction to velocity for 2-D cases
meshTools::constrainDirection
(
......@@ -696,12 +696,12 @@ void Foam::InjectionModel<CloudType>::injectSteadyState
tetPtI
);
// Assign new parcel properties in injection model
setProperties(parcelI, newParcels, 0.0, *pPtr);
// Check new parcel properties
td.cloud().checkParcelProperties(*pPtr, 0.0, fullyDescribed());
// Assign new parcel properties in injection model
setProperties(parcelI, newParcels, 0.0, *pPtr);
// Apply correction to velocity for 2-D cases
meshTools::constrainDirection
(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment