Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5c0c1f63
Commit
5c0c1f63
authored
Sep 29, 2010
by
mattijs
Browse files
BUG: streamLineParticle : was using GREAT for deltaT which triggers lots of problems.
Now using sqrt(GREAT).
parent
fdb1c0be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/postProcessing/functionObjects/field/streamLine/streamLineParticle.C
View file @
5c0c1f63
...
...
@@ -157,7 +157,9 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
td
.
switchProcessor
=
false
;
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
dtMax
=
tEnd
;
...
...
@@ -169,6 +171,9 @@ bool Foam::streamLineParticle::move(streamLineParticle::trackData& td)
&&
tEnd
>
ROOTVSMALL
)
{
// TBD: implement subcycling so step through cells in more than
// one step.
// set the lagrangian time-step
scalar
dt
=
min
(
dtMax
,
tEnd
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment