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
d3f2d54a
Commit
d3f2d54a
authored
9 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Lagrangian StandardPatchInteraction - corrected particle output statistics. Fixes
#1
parent
188f3660
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/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/StandardWallInteraction/StandardWallInteraction.C
+10
-6
10 additions, 6 deletions
...onModel/StandardWallInteraction/StandardWallInteraction.C
with
10 additions
and
6 deletions
src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/StandardWallInteraction/StandardWallInteraction.C
+
10
−
6
View file @
d3f2d54a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2015 OpenCFD Ltd
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
This file is part of OpenFOAM.
This file is part of OpenFOAM.
...
@@ -130,6 +130,7 @@ bool Foam::StandardWallInteraction<CloudType>::correct
...
@@ -130,6 +130,7 @@ bool Foam::StandardWallInteraction<CloudType>::correct
active
=
false
;
active
=
false
;
U
=
vector
::
zero
;
U
=
vector
::
zero
;
nEscape_
++
;
nEscape_
++
;
massEscape_
+=
p
.
nParticle
()
*
p
.
mass
();
break
;
break
;
}
}
case
PatchInteractionModel
<
CloudType
>
:
:
itStick
:
case
PatchInteractionModel
<
CloudType
>
:
:
itStick
:
...
@@ -138,6 +139,7 @@ bool Foam::StandardWallInteraction<CloudType>::correct
...
@@ -138,6 +139,7 @@ bool Foam::StandardWallInteraction<CloudType>::correct
active
=
false
;
active
=
false
;
U
=
vector
::
zero
;
U
=
vector
::
zero
;
nStick_
++
;
nStick_
++
;
massStick_
+=
p
.
nParticle
()
*
p
.
mass
();
break
;
break
;
}
}
case
PatchInteractionModel
<
CloudType
>
:
:
itRebound
:
case
PatchInteractionModel
<
CloudType
>
:
:
itRebound
:
...
@@ -197,19 +199,21 @@ bool Foam::StandardWallInteraction<CloudType>::correct
...
@@ -197,19 +199,21 @@ bool Foam::StandardWallInteraction<CloudType>::correct
template
<
class
CloudType
>
template
<
class
CloudType
>
void
Foam
::
StandardWallInteraction
<
CloudType
>::
info
(
Ostream
&
os
)
void
Foam
::
StandardWallInteraction
<
CloudType
>::
info
(
Ostream
&
os
)
{
{
label
npe0
=
this
->
template
getBaseProperty
<
scalar
>
(
"nEscape"
);
PatchInteractionModel
<
CloudType
>::
info
(
os
);
label
npe0
=
this
->
template
getModelProperty
<
scalar
>
(
"nEscape"
);
label
npe
=
npe0
+
returnReduce
(
nEscape_
,
sumOp
<
label
>
());
label
npe
=
npe0
+
returnReduce
(
nEscape_
,
sumOp
<
label
>
());
scalar
mpe0
=
this
->
template
get
Base
Property
<
scalar
>
(
"massEscape"
);
scalar
mpe0
=
this
->
template
get
Model
Property
<
scalar
>
(
"massEscape"
);
scalar
mpe
=
mpe0
+
returnReduce
(
massEscape_
,
sumOp
<
scalar
>
());
scalar
mpe
=
mpe0
+
returnReduce
(
massEscape_
,
sumOp
<
scalar
>
());
label
nps0
=
this
->
template
get
Base
Property
<
scalar
>
(
"nStick"
);
label
nps0
=
this
->
template
get
Model
Property
<
scalar
>
(
"nStick"
);
label
nps
=
nps0
+
returnReduce
(
nStick_
,
sumOp
<
label
>
());
label
nps
=
nps0
+
returnReduce
(
nStick_
,
sumOp
<
label
>
());
scalar
mps0
=
this
->
template
get
Base
Property
<
scalar
>
(
"massStick"
);
scalar
mps0
=
this
->
template
get
Model
Property
<
scalar
>
(
"massStick"
);
scalar
mps
=
mps0
+
returnReduce
(
massStick_
,
sumOp
<
scalar
>
());
scalar
mps
=
mps0
+
returnReduce
(
massStick_
,
sumOp
<
scalar
>
());
os
<<
" Parcel fate (number, mass)"
<<
nl
os
<<
" Parcel fate
: walls
(number, mass)"
<<
nl
<<
" - escape = "
<<
npe
<<
", "
<<
mpe
<<
nl
<<
" - escape = "
<<
npe
<<
", "
<<
mpe
<<
nl
<<
" - stick = "
<<
nps
<<
", "
<<
mps
<<
nl
;
<<
" - stick = "
<<
nps
<<
", "
<<
mps
<<
nl
;
...
...
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