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
0912c6c7
Commit
0912c6c7
authored
Jun 27, 2008
by
henry
Browse files
Made consistent with respect to pd BC and ddtPhiCorr
parent
53cb0c6c
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/buoyantFoam/pEqn.H
View file @
0912c6c7
bool
closedVolume
=
pd
.
needReference
();
//pd.boundaryField() ==
// p.boundaryField() - rho.boundaryField()*gh.boundaryField() - pRef.value();
rho
=
thermo
->
rho
();
volScalarField
rUA
=
1
.
0
/
UEqn
.
A
();
...
...
applications/solvers/heatTransfer/buoyantSimpleFoam/pEqn.H
View file @
0912c6c7
pd
.
boundaryField
()
==
p
.
boundaryField
()
-
rho
.
boundaryField
()
*
gh
.
boundaryField
()
-
pRef
.
value
();
volScalarField
rUA
=
1
.
0
/
UEqn
().
A
();
U
=
rUA
*
UEqn
().
H
();
UEqn
.
clear
();
...
...
applications/solvers/heatTransfer/buoyantSimpleRadiationFoam/pEqn.H
View file @
0912c6c7
pd
.
boundaryField
()
==
p
.
boundaryField
()
-
rho
.
boundaryField
()
*
gh
.
boundaryField
()
-
pRef
.
value
();
volScalarField
rUA
=
1
.
0
/
UEqn
().
A
();
U
=
rUA
*
UEqn
().
H
();
UEqn
.
clear
();
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H
View file @
0912c6c7
{
bool
closedVolume
=
false
;
//pdf[i].boundaryField() ==
// thermof[i].p().boundaryField()
// - rhof[i].boundaryField()*ghf[i].boundaryField()
// - pRef.value();
rhof
[
i
]
=
thermof
[
i
].
rho
();
volScalarField
rUA
=
1
.
0
/
UEqn
().
A
();
...
...
@@ -15,11 +10,11 @@
fvc
::
interpolate
(
rhof
[
i
])
*
(
(
fvc
::
interpolate
(
Uf
[
i
])
&
fluidRegions
[
i
].
Sf
())
//
+ fvc::ddtPhiCorr(rUA, rhof[i], Uf[i], phif[i])
+
fvc
::
ddtPhiCorr
(
rUA
,
rhof
[
i
],
Uf
[
i
],
phif
[
i
])
)
-
fvc
::
interpolate
(
rhof
[
i
]
*
rUA
*
ghf
[
i
])
*
fvc
::
snGrad
(
rhof
[
i
])
*
fluidRegions
[
i
].
magSf
();
*
fvc
::
snGrad
(
rhof
[
i
])
*
fluidRegions
[
i
].
magSf
();
// Solve pressure difference
# include "pdEqn.H"
...
...
@@ -55,8 +50,7 @@
initialMassf
[
i
]
)
-
fvc
::
domainIntegrate
(
thermof
[
i
].
psi
()
*
thermof
[
i
].
p
())
)
/
fvc
::
domainIntegrate
(
thermof
[
i
].
psi
());
)
/
fvc
::
domainIntegrate
(
thermof
[
i
].
psi
());
rhof
[
i
]
=
thermof
[
i
].
rho
();
}
...
...
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