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
78524117
Commit
78524117
authored
Aug 21, 2019
by
sergio
Committed by
Andrew Heather
Aug 21, 2019
Browse files
BUG: Correct div(u*p) for Teqn in compressibleInterFoam .Gitlab 1400.
parent
8fe96e5d
Changes
5
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/compressibleInterFoam/TEqn.H
View file @
78524117
...
...
@@ -4,7 +4,7 @@
fvm
::
ddt
(
rho
,
T
)
+
fvm
::
div
(
rhoPhi
,
T
)
-
fvm
::
Sp
(
contErr
,
T
)
-
fvm
::
laplacian
(
turbulence
.
alphaEff
(),
T
)
+
(
(
divU
*
p
)()
-
contErr
/
rho
*
p
divU
p
-
contErr
/
rho
*
p
+
(
fvc
::
ddt
(
rho
,
K
)
+
fvc
::
div
(
rhoPhi
,
K
))()
-
contErr
*
K
)
*
(
...
...
applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/compressibleInterDyMFoam.C
View file @
78524117
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 201
7
OpenCFD Ltd
\\ / A nd | Copyright (C) 201
9
OpenCFD Ltd
.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
...
...
@@ -88,10 +88,11 @@ int main(int argc, char *argv[])
{
#include
"readDyMControls.H"
// Store divU from the previous mesh so that it can be mapped
// Store divU
and divUp
from the previous mesh so that it can be mapped
// and used in correctPhi to ensure the corrected phi has the
// same divergence
volScalarField
divU
(
"divU0"
,
fvc
::
div
(
fvc
::
absolute
(
phi
,
U
)));
volScalarField
divUp
(
"divUp"
,
fvc
::
div
(
fvc
::
absolute
(
phi
,
U
),
p
));
if
(
LTS
)
{
...
...
applications/solvers/multiphase/compressibleInterFoam/compressibleInterFoam.C
View file @
78524117
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) OpenCFD Ltd.
2017
\\ / A nd | Copyright (C)
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
...
...
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
turbulence
.
correctPhasePhi
();
#include
"UEqn.H"
volScalarField
divU
(
fvc
::
div
(
fvc
::
absolute
(
phi
,
U
)));
volScalarField
divU
p
(
"divUp"
,
fvc
::
div
(
fvc
::
absolute
(
phi
,
U
)
,
p
));
#include
"TEqn.H"
// --- Pressure corrector loop
...
...
tutorials/multiphase/compressibleInterDyMFoam/laminar/sloshingTank2D/system/fvSchemes
View file @
78524117
...
...
@@ -34,6 +34,7 @@ divSchemes
div(rhoPhi,T) Gauss linear;
div(rhoPhi,K) Gauss linear;
div((phi+meshPhi),p) Gauss linear;
div(U,p) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
...
...
tutorials/multiphase/compressibleInterDyMFoam/laminar/sphereDrop/system/fvSchemes
View file @
78524117
...
...
@@ -39,6 +39,7 @@ divSchemes
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div((phi+meshPhi),p) Gauss linear;
div(phi,p) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
}
...
...
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