mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Corrected commit 6a1b567
This commit is contained in:
@ -287,16 +287,13 @@ bool Foam::KinematicParcel<ParcelType>::move
|
||||
const label cellI = p.cell();
|
||||
|
||||
const scalar magU = mag(U_);
|
||||
if (p.active())
|
||||
if (p.active() && moving && (magU > ROOTVSMALL))
|
||||
{
|
||||
const scalar d = dt*magU;
|
||||
const scalar dCorr = min(d, maxCo*cbrt(V[cellI]));
|
||||
dt *= dCorr/d;
|
||||
|
||||
if (moving && (magU > ROOTVSMALL))
|
||||
{
|
||||
dt *= p.trackToFace(p.position() + dCorr*U_/magU, td);
|
||||
}
|
||||
dt *=
|
||||
dCorr/d
|
||||
*p.trackToFace(p.position() + dCorr*U_/magU, td);
|
||||
}
|
||||
|
||||
tEnd -= dt;
|
||||
|
||||
Reference in New Issue
Block a user