Skip to content
GitLab
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
8d2bed91
Commit
8d2bed91
authored
Dec 12, 2008
by
henry
Browse files
Added ddtPhiCorr back into the pEqn, use if wisely.
parent
d3dde21a
Changes
9
Hide whitespace changes
Inline
Side-by-side
applications/solvers/compressible/rhoPimpleFoam/pEqn.H
View file @
8d2bed91
...
...
@@ -55,7 +55,7 @@ else
fvc
::
interpolate
(
rho
)
*
(
(
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
())
//
+ fvc::ddtPhiCorr(rUA, rho, U, phi)
+
fvc
::
ddtPhiCorr
(
rUA
,
rho
,
U
,
phi
)
);
//bool closedVolume = adjustPhi(phi, U, p);
...
...
applications/solvers/compressible/rhoPisoFoam/pEqn.H
View file @
8d2bed91
...
...
@@ -34,7 +34,7 @@ if (transonic)
}
else
{
phi
=
phi
=
fvc
::
interpolate
(
rho
)
*
(
(
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
())
...
...
applications/solvers/incompressible/pimpleDyMFoam/pimpleDyMFoam.C
View file @
8d2bed91
...
...
@@ -60,12 +60,11 @@ int main(int argc, char *argv[])
{
# include "readControls.H"
# include "CourantNo.H"
# include "setDeltaT.H"
// Make the fluxes absolute
fvc
::
makeAbsolute
(
phi
,
U
);
# include "setDeltaT.H"
runTime
++
;
Info
<<
"Time = "
<<
runTime
.
timeName
()
<<
nl
<<
endl
;
...
...
applications/solvers/multiphase/compressibleInterDyMFoam/Make/options
View file @
8d2bed91
...
...
@@ -8,7 +8,8 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/dynamicFvMesh/lnInclude
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude
EXE_LIBS = \
-linterfaceProperties \
...
...
@@ -18,5 +19,7 @@ EXE_LIBS = \
-lfiniteVolume \
-ldynamicMesh \
-lmeshTools \
-ldynamicFvMesh
-ldynamicFvMesh \
-lsampling
applications/solvers/multiphase/compressibleInterDyMFoam/alphaEqnsSubCycle.H
View file @
8d2bed91
...
...
@@ -12,7 +12,9 @@
surfaceScalarField
phic
=
mag
(
phi
/
mesh
.
magSf
());
phic
=
min
(
interface
.
cAlpha
()
*
phic
,
max
(
phic
));
fvc
::
makeAbsolute
(
phi
,
U
);
volScalarField
divU
=
fvc
::
div
(
phi
);
fvc
::
makeRelative
(
phi
,
U
);
if
(
nAlphaSubCycles
>
1
)
{
...
...
applications/solvers/multiphase/compressibleInterDyMFoam/compressibleInterDyMFoam.C
View file @
8d2bed91
...
...
@@ -42,6 +42,7 @@ Description
#include
"interfaceProperties.H"
#include
"twoPhaseMixture.H"
#include
"turbulenceModel.H"
#include
"probes.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -64,12 +65,11 @@ int main(int argc, char *argv[])
{
#include
"readControls.H"
#include
"CourantNo.H"
#include
"setDeltaT.H"
// Make the fluxes absolute
fvc
::
makeAbsolute
(
phi
,
U
);
#include
"setDeltaT.H"
runTime
++
;
Info
<<
"Time = "
<<
runTime
.
timeName
()
<<
nl
<<
endl
;
...
...
applications/solvers/multiphase/compressibleInterDyMFoam/correctPhi.H
View file @
8d2bed91
...
...
@@ -27,6 +27,7 @@
fvm
::
laplacian
(
rAUf
,
pcorr
)
==
fvc
::
div
(
phi
)
-
divU
);
pcorrEqn
.
setReference
(
0
,
0
);
pcorrEqn
.
solve
();
if
(
nonOrth
==
nNonOrthCorr
)
...
...
applications/solvers/multiphase/compressibleInterDyMFoam/pEqn.H
View file @
8d2bed91
...
...
@@ -21,7 +21,7 @@
surfaceScalarField
phiU
(
"phiU"
,
(
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
())
+
fvc
::
ddtPhiCorr
(
rUA
,
rho
,
U
,
phi
)
(
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
())
);
phi
=
phiU
+
...
...
applications/solvers/multiphase/interDyMFoam/interDyMFoam.C
View file @
8d2bed91
...
...
@@ -65,12 +65,11 @@ int main(int argc, char *argv[])
{
#include
"readControls.H"
#include
"CourantNo.H"
#include
"setDeltaT.H"
// Make the fluxes absolute
fvc
::
makeAbsolute
(
phi
,
U
);
#include
"setDeltaT.H"
runTime
++
;
Info
<<
"Time = "
<<
runTime
.
timeName
()
<<
nl
<<
endl
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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