mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: streamLineParticle : was using GREAT for deltaT which triggers lots of problems.
Now using sqrt(GREAT).
This commit is contained in:
@ -157,7 +157,9 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
|
|||||||
td.switchProcessor = false;
|
td.switchProcessor = false;
|
||||||
td.keepParticle = true;
|
td.keepParticle = true;
|
||||||
|
|
||||||
scalar deltaT = GREAT; //cloud().pMesh().time().deltaTValue();
|
// Set very large dt. Note: cannot use GREAT since 1/GREAT is SMALL
|
||||||
|
// which is a trigger value for the tracking...
|
||||||
|
scalar deltaT = Foam::sqrt(GREAT); //cloud().pMesh().time().deltaTValue();
|
||||||
scalar tEnd = (1.0 - stepFraction())*deltaT;
|
scalar tEnd = (1.0 - stepFraction())*deltaT;
|
||||||
scalar dtMax = tEnd;
|
scalar dtMax = tEnd;
|
||||||
|
|
||||||
@ -169,6 +171,9 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
|
|||||||
&& tEnd > ROOTVSMALL
|
&& tEnd > ROOTVSMALL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// TBD: implement subcycling so step through cells in more than
|
||||||
|
// one step.
|
||||||
|
|
||||||
// set the lagrangian time-step
|
// set the lagrangian time-step
|
||||||
scalar dt = min(dtMax, tEnd);
|
scalar dt = min(dtMax, tEnd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user