Skip to content
Snippets Groups Projects
Commit e91c2d7d authored by mattijs's avatar mattijs
Browse files

BUG: streamLine : store paths for stagnant particles.

parent b67acb48
Branches
Tags
No related merge requests found
...@@ -168,7 +168,6 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td) ...@@ -168,7 +168,6 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
td.keepParticle td.keepParticle
&& !td.switchProcessor && !td.switchProcessor
&& lifeTime_ > 0 && lifeTime_ > 0
&& tEnd > ROOTVSMALL
) )
{ {
// TBD: implement subcycling so step through cells in more than // TBD: implement subcycling so step through cells in more than
...@@ -191,6 +190,12 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td) ...@@ -191,6 +190,12 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
tEnd -= dt; tEnd -= dt;
stepFraction() = 1.0 - tEnd/deltaT; stepFraction() = 1.0 - tEnd/deltaT;
if (tEnd <= ROOTVSMALL)
{
// Force removal
lifeTime_ = 0;
}
} }
if (!td.keepParticle || lifeTime_ == 0) if (!td.keepParticle || lifeTime_ == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment