Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
a9dcc207
Commit
a9dcc207
authored
Feb 02, 2018
by
Katharina Heck
Browse files
[cleanup] use the misciblemultiphase constraintsolver for the equilibrium mole fractions
parent
249f2f99
Changes
2
Hide whitespace changes
Inline
Side-by-side
dumux/porousmediumflow/nonequilibrium/volumevariables.hh
View file @
a9dcc207
...
...
@@ -34,8 +34,6 @@
#include
<dumux/porousmediumflow/volumevariables.hh>
#include
<dumux/material/fluidstates/nonequilibrium.hh>
#include
<dumux/material/constraintsolvers/fluidsystemcomputefromreferencephase.hh>
#include
<dumux/material/constraintsolvers/fluidsystemconstraintsolver.hh>
#include
<dumux/material/constraintsolvers/misciblemultiphasecomposition.hh>
namespace
Dumux
...
...
@@ -304,8 +302,7 @@ class NonEquilibriumVolumeVariablesImplementation<TypeTag, true/*enableChemicalN
using
AwnSurfaceParams
=
typename
AwnSurface
::
Params
;
using
DimLessNum
=
DimensionlessNumbers
<
Scalar
>
;
//TODO: write a good constraint solver which does that right
using
ConstraintSolver
=
FluidSystemConstraintSolver
<
Scalar
,
FluidSystem
>
;
using
ConstraintSolver
=
MiscibleMultiPhaseComposition
<
Scalar
,
FluidSystem
>
;
public:
/*!
* \brief Updates the volume specific interfacial area [m^2 / m^3] between the phases.
...
...
@@ -533,7 +530,7 @@ class NonEquilibriumVolumeVariablesImplementation<TypeTag, true/*enableChemicalN
using
AnsSurface
=
typename
GET_PROP_TYPE
(
TypeTag
,
AnsSurface
);
using
AnsSurfaceParams
=
typename
AnsSurface
::
Params
;
using
ConstraintSolver
=
Dumux
::
FluidSystemConstraintSolver
<
Scalar
,
FluidSystem
>
;
using
ConstraintSolver
=
MiscibleMultiPhaseComposition
<
Scalar
,
FluidSystem
>
;
public:
...
...
test/porousmediumflow/mpnc/implicit/evaporationatmosphereproblem.hh
View file @
a9dcc207
...
...
@@ -132,6 +132,7 @@ class EvaporationAtmosphereProblem: public PorousMediumFlowProblem<TypeTag>
enum
{
numEnergyEqSolid
=
GET_PROP_VALUE
(
TypeTag
,
NumEnergyEqSolid
)};
static
constexpr
bool
enableChemicalNonEquilibrium
=
GET_PROP_VALUE
(
TypeTag
,
EnableChemicalNonEquilibrium
);
using
ConstraintSolver
=
MiscibleMultiPhaseComposition
<
Scalar
,
FluidSystem
>
;
// formulations
enum
{
...
...
@@ -268,7 +269,10 @@ public:
fluidState
.
setTemperature
(
wPhaseIdx
,
TInitial_
);
// this value is a good one, TInject does not work
// This solves the system of equations defining x=x(p,T)
FluidSystem
::
calculateEquilibriumMoleFractions
(
fluidState
,
dummyCache
)
;
ConstraintSolver
::
solve
(
fluidState
,
dummyCache
,
/*setViscosity=*/
false
,
/*setEnthalpy=*/
false
)
;
// Now let's make the air phase less than fully saturated with water
fluidState
.
setMoleFraction
(
nPhaseIdx
,
wCompIdx
,
fluidState
.
moleFraction
(
nPhaseIdx
,
wCompIdx
)
*
percentOfEquil_
)
;
...
...
@@ -417,7 +421,10 @@ private:
// This solves the system of equations defining x=x(p,T)
ParameterCache
dummyCache
;
FluidSystem
::
calculateEquilibriumMoleFractions
(
equilibriumFluidState
,
dummyCache
)
;
ConstraintSolver
::
solve
(
equilibriumFluidState
,
dummyCache
,
/*setViscosity=*/
false
,
/*setEnthalpy=*/
false
)
;
FluidState
dryFluidState
(
equilibriumFluidState
);
// Now let's make the air phase less than fully saturated with vapor
...
...
Write
Preview
Supports
Markdown
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