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-plus
Commits
acfe44ea
Commit
acfe44ea
authored
Jun 25, 2015
by
Henry Weller
Browse files
reactingTwoPhaseEulerFoam: Add fvOption handling to the continuity error
correction in MovingPhaseModel<BasePhaseModel>::correct()
parent
3c907567
Changes
7
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/correctContErrs.H
deleted
100644 → 0
View file @
3c907567
phase1
.
continuityError
()
=
fvc
::
ddt
(
alpha1
,
rho1
)
+
fvc
::
div
(
alphaRhoPhi1
)
-
(
fvOptions
(
alpha1
,
rho1
)
&
rho1
);
phase2
.
continuityError
()
=
fvc
::
ddt
(
alpha2
,
rho2
)
+
fvc
::
div
(
alphaRhoPhi2
)
-
(
fvOptions
(
alpha2
,
rho2
)
&
rho2
);
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/pU/pEqn.H
View file @
acfe44ea
...
...
@@ -89,7 +89,7 @@ tmp<surfaceScalarField> phiF2;
while
(
pimple
.
correct
())
{
// Update continuity errors due to temperature changes
#include "correctContErrs.H"
fluid
.
correct
();
// Correct fixed-flux BCs to be consistent with the velocity BCs
MRF
.
correctBoundaryFlux
(
U1
,
phi1
);
...
...
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/pUf/pEqn.H
View file @
acfe44ea
...
...
@@ -93,7 +93,7 @@ tmp<surfaceScalarField> Ff2;
while
(
pimple
.
correct
())
{
// Update continuity errors due to temperature changes
#include "correctContErrs.H"
fluid
.
correct
();
surfaceScalarField
rhof1
(
fvc
::
interpolate
(
rho1
));
surfaceScalarField
rhof2
(
fvc
::
interpolate
(
rho2
));
...
...
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C
View file @
acfe44ea
...
...
@@ -217,8 +217,11 @@ void Foam::MovingPhaseModel<BasePhaseModel>::correct()
this
->
fluid
().
MRF
().
correctBoundaryVelocity
(
U_
);
volScalarField
&
rho
=
this
->
thermo
().
rho
();
continuityError_
=
fvc
::
ddt
(
*
this
,
this
->
thermo
().
rho
())
+
fvc
::
div
(
alphaRhoPhi_
);
fvc
::
ddt
(
*
this
,
rho
)
+
fvc
::
div
(
alphaRhoPhi_
)
-
(
this
->
fluid
().
fvOptions
()(
*
this
,
rho
)
&
rho
);
}
...
...
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/phaseSystems/phaseSystem/phaseSystem.H
View file @
acfe44ea
...
...
@@ -179,7 +179,7 @@ protected:
IOMRFZoneList
MRF_
;
//- Optional FV-options
fv
::
IOoptionList
fvOptions_
;
mutable
fv
::
IOoptionList
fvOptions_
;
//- Blending methods
blendingMethodTable
blendingMethods_
;
...
...
@@ -371,7 +371,7 @@ public:
inline
const
IOMRFZoneList
&
MRF
()
const
;
//- Optional FV-options
inline
fv
::
IOoptionList
&
fvOptions
();
inline
fv
::
IOoptionList
&
fvOptions
()
const
;
//- Access a sub model between a phase pair
template
<
class
modelType
>
...
...
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/phaseSystems/phaseSystem/phaseSystemI.H
View file @
acfe44ea
...
...
@@ -61,7 +61,7 @@ inline const Foam::IOMRFZoneList& Foam::phaseSystem::MRF() const
}
inline
Foam
::
fv
::
IOoptionList
&
Foam
::
phaseSystem
::
fvOptions
()
inline
Foam
::
fv
::
IOoptionList
&
Foam
::
phaseSystem
::
fvOptions
()
const
{
return
fvOptions_
;
}
...
...
applications/solvers/multiphase/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C
View file @
acfe44ea
...
...
@@ -94,8 +94,6 @@ int main(int argc, char *argv[])
fluid
.
solve
();
fluid
.
correct
();
#include "correctContErrs.H"
#include "YEqns.H"
if
(
faceMomentum
)
...
...
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