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
f989d8e1
Commit
f989d8e1
authored
Jan 13, 2011
by
Andrew Heather
Browse files
ENH: Limit tracking distance for steady calcs
parent
574c23ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcel.C
View file @
f989d8e1
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -342,7 +342,10 @@ bool Foam::KinematicParcel<ParcelType>::move
if
(
p
.
active
())
{
dt
*=
p
.
trackToFace
(
p
.
position
()
+
dt
*
U_
,
td
);
scalar
d
=
mag
(
dt
*
U_
);
const
vector
dir
=
U_
/
mag
(
U_
);
d
=
min
(
d
,
dir
&
mesh
.
bounds
().
span
());
dt
*=
p
.
trackToFace
(
p
.
position
()
+
d
*
dir
,
td
);
}
tEnd
-=
dt
;
...
...
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