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
577ef574
Commit
577ef574
authored
Dec 06, 2012
by
andy
Browse files
ENH: buoyantPimpleFoam - updated equation sources
parent
d023108f
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/buoyantPimpleFoam/UEqn.H
View file @
577ef574
...
...
@@ -5,10 +5,14 @@
fvm
::
ddt
(
rho
,
U
)
+
fvm
::
div
(
phi
,
U
)
+
turbulence
->
divDevRhoReff
(
U
)
==
sources
(
rho
,
U
)
);
UEqn
.
relax
();
sources
.
constrain
(
UEqn
);
if
(
pimple
.
momentumPredictor
())
{
solve
...
...
@@ -22,7 +26,6 @@
-
fvc
::
snGrad
(
p_rgh
)
)
*
mesh
.
magSf
()
)
+
sources
(
rho
,
U
)
);
K
=
0
.
5
*
magSqr
(
U
);
}
applications/solvers/heatTransfer/buoyantPimpleFoam/buoyantPimpleFoam.C
View file @
577ef574
...
...
@@ -36,7 +36,6 @@ Description
#include
"fvCFD.H"
#include
"rhoThermo.H"
#include
"turbulenceModel.H"
#include
"fixedGradientFvPatchFields.H"
#include
"IObasicSourceList.H"
#include
"pimpleControl.H"
...
...
applications/solvers/heatTransfer/buoyantPimpleFoam/pEqn.H
View file @
577ef574
...
...
@@ -9,7 +9,7 @@
surfaceScalarField
rhorAUf
(
"Dp"
,
fvc
::
interpolate
(
rho
*
rAU
));
volVectorField
HbyA
(
"HbyA"
,
U
);
HbyA
=
rAU
*
(
UEqn
==
sources
(
rho
,
U
))()
.
H
();
HbyA
=
rAU
*
UEqn
.
H
();
surfaceScalarField
phig
(
-
rhorAUf
*
ghf
*
fvc
::
snGrad
(
rho
)
*
mesh
.
magSf
());
...
...
@@ -24,6 +24,8 @@
+
phig
);
sources
.
relativeFlux
(
fvc
::
interpolate
(
rho
),
phiHbyA
);
fvScalarMatrix
p_rghDDtEqn
(
fvc
::
ddt
(
rho
)
+
psi
*
correction
(
fvm
::
ddt
(
p_rgh
))
...
...
applications/solvers/heatTransfer/buoyantSimpleFoam/createZones.H
deleted
100644 → 0
View file @
d023108f
IOMRFZoneList
mrfZones
(
mesh
);
mrfZones
.
correctBoundaryVelocity
(
U
);
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