mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Modification of KinematicParcel to stop source exchange in steady parcel when particle stops
This commit is contained in:
@ -334,8 +334,14 @@ bool Foam::KinematicParcel<ParcelType>::move
|
|||||||
|
|
||||||
p.stepFraction() = newStepFraction;
|
p.stepFraction() = newStepFraction;
|
||||||
|
|
||||||
|
bool calcParcel = true;
|
||||||
|
if (!tracking && td.cloud().solution().steadyState())
|
||||||
|
{
|
||||||
|
calcParcel = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Avoid problems with extremely small timesteps
|
// Avoid problems with extremely small timesteps
|
||||||
if (dt > ROOTVSMALL)
|
if ((dt > ROOTVSMALL) && calcParcel)
|
||||||
{
|
{
|
||||||
// Update cell based properties
|
// Update cell based properties
|
||||||
p.setCellValues(td, dt, cellI);
|
p.setCellValues(td, dt, cellI);
|
||||||
|
|||||||
Reference in New Issue
Block a user