Skip to content
Snippets Groups Projects
Commit 58f43193 authored by Andrew Heather's avatar Andrew Heather
Browse files

added check for dt > ROOTVSMALL before allowing to calc (un)coupled

parent 53133e9c
Branches
Tags
No related merge requests found
......@@ -234,13 +234,17 @@ bool Foam::KinematicParcel<ParcelType>::move
// Update cell based properties
p.updateCellQuantities(td, dt, celli);
if (td.cloud().coupled())
// Avoid problems with extremely small timesteps
if (dt > ROOTVSMALL)
{
p.calcCoupled(td, dt, celli);
}
else
{
p.calcUncoupled(td, dt, celli);
if (td.cloud().coupled())
{
p.calcCoupled(td, dt, celli);
}
else
{
p.calcUncoupled(td, dt, celli);
}
}
if (p.onBoundary() && td.keepParticle)
......
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