A compositional multi-phase model based on non-linear complementarity functions. More...
#include <opm/material/densead/Math.hpp>
#include "ncpproperties.hh"
#include "ncplocalresidual.hh"
#include "ncpextensivequantities.hh"
#include "ncpprimaryvariables.hh"
#include "ncpboundaryratevector.hh"
#include "ncpratevector.hh"
#include "ncpintensivequantities.hh"
#include "ncpnewtonmethod.hh"
#include "ncpindices.hh"
#include <ewoms/models/common/multiphasebasemodel.hh>
#include <ewoms/models/common/energymodule.hh>
#include <ewoms/models/common/diffusionmodule.hh>
#include <ewoms/io/vtkcompositionmodule.hh>
#include <ewoms/io/vtkenergymodule.hh>
#include <ewoms/io/vtkdiffusionmodule.hh>
#include <opm/common/Valgrind.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/common/Exceptions.hpp>
#include <dune/common/fvector.hh>
#include <sstream>
#include <string>
#include <vector>
#include <array>
Go to the source code of this file.
Classes | |
class | Ewoms::NcpModel< TypeTag > |
A compositional multi-phase model based on non-linear complementarity functions. More... | |
class | Ewoms::NcpModel< TypeTag > |
A compositional multi-phase model based on non-linear complementarity functions. More... | |
Functions | |
Ewoms::Properties::NEW_TYPE_TAG (NcpModel, INHERITS_FROM(MultiPhaseBaseModel, VtkComposition, VtkEnergy, VtkDiffusion)) | |
Define the type tag for the compositional NCP model. | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, LocalResidual, Ewoms::NcpLocalResidual< TypeTag >) | |
Use the Ncp local jacobian operator for the compositional NCP model. | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, NewtonMethod, Ewoms::NcpNewtonMethod< TypeTag >) | |
Use the Ncp specific newton method for the compositional NCP model. | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, Model, Ewoms::NcpModel< TypeTag >) | |
the Model property | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, BaseProblem, Ewoms::MultiPhaseBaseProblem< TypeTag >) | |
The type of the base base class for actual problems. | |
Ewoms::Properties::SET_BOOL_PROP (NcpModel, EnableEnergy, false) | |
Disable the energy equation by default. | |
Ewoms::Properties::SET_BOOL_PROP (NcpModel, EnableDiffusion, false) | |
disable diffusion by default | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, RateVector, Ewoms::NcpRateVector< TypeTag >) | |
the RateVector property | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, BoundaryRateVector, Ewoms::NcpBoundaryRateVector< TypeTag >) | |
the BoundaryRateVector property | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, PrimaryVariables, Ewoms::NcpPrimaryVariables< TypeTag >) | |
the PrimaryVariables property | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, IntensiveQuantities, Ewoms::NcpIntensiveQuantities< TypeTag >) | |
the IntensiveQuantities property | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, ExtensiveQuantities, Ewoms::NcpExtensiveQuantities< TypeTag >) | |
the ExtensiveQuantities property | |
Ewoms::Properties::SET_TYPE_PROP (NcpModel, Indices, Ewoms::NcpIndices< TypeTag, 0 >) | |
The indices required by the compositional NCP model. | |
Ewoms::Properties::SET_SCALAR_PROP (NcpModel, NcpPressureBaseWeight, 1.0) | |
The unmodified weight for the pressure primary variable. | |
Ewoms::Properties::SET_SCALAR_PROP (NcpModel, NcpSaturationsBaseWeight, 1.0) | |
The weight for the saturation primary variables. | |
Ewoms::Properties::SET_SCALAR_PROP (NcpModel, NcpFugacitiesBaseWeight, 1.0e-6) | |
The unmodified weight for the fugacity primary variables. | |
A compositional multi-phase model based on non-linear complementarity functions.
This model implements a -phase flow of a fluid mixture composed of
chemical species. The phases are denoted by lower index
. All fluid phases are mixtures of
chemical species which are denoted by the upper index
.
By default, the standard multi-phase Darcy approach is used to determine the velocity, i.e.
although the actual approach which is used can be specified via the FluxModule
property. For example, the velocity model can by changed to the Forchheimer approach by
The core of the model is the conservation mass of each component by means of the equation
For the missing model assumptions, the model uses non-linear complementarity functions. These are based on the observation that if a fluid phase is not present, the sum of the mole fractions of this fluid phase is smaller than
, i.e.
Also, if a fluid phase may be present at a given spatial location its saturation must be non-negative:
Since at any given spatial location, a phase is always either present or not present, one of the strict equalities on the right hand side is always true, i.e.
always holds.
These three equations constitute a non-linear complementarity problem, which can be solved using so-called non-linear complementarity functions . Such functions have the property
Several non-linear complementarity functions have been suggested, e.g. the Fischer-Burmeister function
This model uses
because of its piecewise linearity.
The model assumes local thermodynamic equilibrium and uses the following primary variables: