Skip to content
GitLab
Menu
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
a8e9c35c
Commit
a8e9c35c
authored
Jun 06, 2016
by
sergio
Browse files
BUG: Fixing valueDiff calculation
parent
2ac7b2f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C
View file @
a8e9c35c
...
@@ -280,7 +280,7 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs()
...
@@ -280,7 +280,7 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs()
if
(
!
fBased_
)
//pressure based then weighted by area
if
(
!
fBased_
)
//pressure based then weighted by area
{
{
valueDiff
=
/
patch
().
magSf
();
valueDiff
=
valueDiff
/
gSum
(
patch
().
magSf
()
)
;
}
}
reduce
(
valueDiff
,
sumOp
<
scalar
>
());
reduce
(
valueDiff
,
sumOp
<
scalar
>
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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