Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
21369e47
Commit
21369e47
authored
Apr 18, 2018
by
Andrew Heather
Browse files
COMP: correction for Clang
parent
ed4564a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/outletMachNumberPressure/outletMachNumberPressureFvPatchScalarField.C
View file @
21369e47
...
...
@@ -176,7 +176,7 @@ void Foam::outletMachNumberPressureFvPatchScalarField::updateCoeffs()
const
vectorField
UbOld
(
U
.
oldTime
().
boundaryField
()[
patchi
]);
// relax U
Ub
=
relax_
*
UbOld
+
(
1
-
relax_
)
*
Ub
;
Ub
=
relax_
*
UbOld
+
(
1
-
relax_
)
*
Ub
;
const
scalarField
gamma
(
thermoPtr
->
gamma
()().
boundaryField
()[
patchi
]);
...
...
@@ -214,7 +214,7 @@ void Foam::outletMachNumberPressureFvPatchScalarField::updateCoeffs()
<<
exit
(
FatalError
);
}
const
scalarField
r
=
pBack_
/
ptot
;
const
scalarField
r
(
pBack_
/
ptot
)
;
const
scalar
area
=
gSum
(
mag
(
patch
().
Sf
()));
M
=
A1_
/
(
c1_
*
area
)
...
...
Write
Preview
Markdown
is supported
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