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-plus
Commits
0daa3af2
Commit
0daa3af2
authored
Sep 08, 2017
by
sergio
Browse files
ENH: adding oversetAdjustPhi to overInterFoam plus reconstructing U from phi in pEq.
parent
ea173eea
Changes
5
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H
View file @
0daa3af2
...
...
@@ -23,3 +23,8 @@ bool ddtCorr
(
pimple
.
dict
().
lookupOrDefault
(
"ddtCorr"
,
true
)
);
bool
adjustFringe
(
pimple
.
dict
().
lookupOrDefault
(
"oversetAdjustPhi"
,
false
)
);
applications/solvers/multiphase/interFoam/overInterDyMFoam/interDyMFoam.C
View file @
0daa3af2
...
...
@@ -53,6 +53,7 @@ Description
#include
"interpolationCellPoint.H"
#include
"transform.H"
#include
"fvMeshSubset.H"
#include
"oversetAdjustPhi.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -64,7 +65,7 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createDynamicFvMesh.H"
#include
"initContinuityErrs.H"
#include
"createControl.H"
pimpleControl
pimple
(
mesh
);
#include
"createTimeControls.H"
#include
"createDyMControls.H"
#include
"createFields.H"
...
...
applications/solvers/multiphase/interFoam/overInterDyMFoam/pEqn.H
View file @
0daa3af2
...
...
@@ -38,6 +38,13 @@
phiHbyA
+=
phig
;
if
(
adjustFringe
)
{
fvc
::
makeRelative
(
phiHbyA
,
U
);
oversetAdjustPhi
(
phiHbyA
,
U
);
fvc
::
makeAbsolute
(
phiHbyA
,
U
);
}
// Update the pressure BCs to ensure flux consistency
constrainPressure
(
p_rgh
,
U
,
phiHbyA
,
rAUf
,
MRF
);
...
...
@@ -64,7 +71,8 @@
"minGradP"
,
fvc
::
reconstruct
((
phig
-
p_rghEqn
.
flux
())
/
rAUf
)
);
U
=
HbyA
+
rAU
*
cellMask
*
minGradP
;
//U = HbyA + rAU*cellMask*minGradP;
U
=
fvc
::
reconstruct
(
phi
);
U
.
correctBoundaryConditions
();
fvOptions
.
correct
(
U
);
}
...
...
applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H
View file @
0daa3af2
...
...
@@ -11,5 +11,6 @@ moveMeshOuterCorrectors =
massFluxInterpolation
=
pimple
.
dict
().
lookupOrDefault
(
"massFluxInterpolation"
,
false
);
ddtCorr
=
pimple
.
dict
().
lookupOrDefault
(
"ddtCorr"
,
true
);
\ No newline at end of file
ddtCorr
=
pimple
.
dict
().
lookupOrDefault
(
"ddtCorr"
,
true
);
adjustFringe
=
pimple
.
dict
().
lookupOrDefault
(
"oversetAdjustPhi"
,
false
);
tutorials/multiphase/overInterDyMFoam/floatingBody/background/system/fvSolution
View file @
0daa3af2
...
...
@@ -85,6 +85,8 @@ PIMPLE
ddtCorr yes;
correctPhi no;
oversetAdjustPhi no;
moveMeshOuterCorrectors no;
turbOnFinalIterOnly no;
}
...
...
Sergio Ferraris
@Sergio
mentioned in issue
#540
·
Sep 08, 2017
mentioned in issue
#540
mentioned in issue #540
Toggle commit list
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