Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
2a6ac7ed
Commit
2a6ac7ed
authored
7 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
BUG: nearWallFields: correct exit condition for particles. Fixes
#812
.
parent
e2361b10
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/functionObjects/field/nearWallFields/findCellParticle.C
+5
-2
5 additions, 2 deletions
src/functionObjects/field/nearWallFields/findCellParticle.C
with
5 additions
and
2 deletions
src/functionObjects/field/nearWallFields/findCellParticle.C
+
5
−
2
View file @
2a6ac7ed
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2017 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -110,7 +110,10 @@ bool Foam::findCellParticle::move
trackToAndHitFace
(
f
*
(
end_
-
start_
),
f
,
cloud
,
td
);
}
if
(
stepFraction
()
==
1
||
!
td
.
keepParticle
)
// Note: stepFraction is might not be exactly 1 so check for 1 or
// slightly larger
if
(
stepFraction
()
>=
1
||
!
td
.
keepParticle
)
{
// Hit endpoint or patch. If patch hit could do fancy stuff but just
// to use the patch point is good enough for now.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment