ENH: Modification of KinematicParcel to stop source exchange in steady parcel when particle stops
This commit is contained in:
parent
5d8318b22c
commit
b2a63da895
1 changed files with 7 additions and 1 deletions
|
|
@ -334,8 +334,14 @@ bool Foam::KinematicParcel<ParcelType>::move
|
|||
|
||||
p.stepFraction() = newStepFraction;
|
||||
|
||||
bool calcParcel = true;
|
||||
if (!tracking && td.cloud().solution().steadyState())
|
||||
{
|
||||
calcParcel = false;
|
||||
}
|
||||
|
||||
// Avoid problems with extremely small timesteps
|
||||
if (dt > ROOTVSMALL)
|
||||
if ((dt > ROOTVSMALL) && calcParcel)
|
||||
{
|
||||
// Update cell based properties
|
||||
p.setCellValues(td, dt, cellI);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue