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-plus
Commits
8bd869d9
Commit
8bd869d9
authored
May 12, 2017
by
Henry Weller
Committed by
Andrew Heather
May 30, 2017
Browse files
rhoPimpleDyMFoam: Updated transonic formulation for consistency with sonicFoam
parent
13866c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/pEqn.H
View file @
8bd869d9
rho
=
thermo
.
rho
();
volScalarField
rAU
(
1
.
0
/
UEqn
.
A
());
surfaceScalarField
rhorAUf
(
"rhorAUf"
,
fvc
::
interpolate
(
rho
*
rAU
));
volVectorField
HbyA
(
constrainHbyA
(
rAU
*
UEqn
.
H
(),
U
,
p
));
...
...
@@ -27,7 +29,8 @@ if (pimple.transonic())
"phid"
,
(
fvc
::
interpolate
(
psi
)
/
fvc
::
interpolate
(
rho
))
*
phiHbyA
);
phiHbyA
-=
fvc
::
interpolate
(
p
)
*
phid
;
phiHbyA
-=
fvc
::
interpolate
(
psi
*
p
)
*
phiHbyA
/
fvc
::
interpolate
(
rho
);
while
(
pimple
.
correctNonOrthogonal
())
{
...
...
@@ -86,9 +89,11 @@ U.correctBoundaryConditions();
fvOptions
.
correct
(
U
);
K
=
0
.
5
*
magSqr
(
U
);
pressureControl
.
limit
(
p
);
p
.
correctBoundaryConditions
();
rho
=
thermo
.
rho
();
if
(
pressureControl
.
limit
(
p
))
{
p
.
correctBoundaryConditions
();
rho
=
thermo
.
rho
();
}
if
(
!
pimple
.
transonic
())
{
...
...
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