|
ncpmodel.hh File Reference A compositional multi-phase model based on non-linear complementarity functions. More... #include <opm/material/localad/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/ErrorMacros.hpp>#include <opm/common/Exceptions.hpp>#include <dune/common/fvector.hh>#include <dune/common/unused.hh>#include <sstream>#include <string>#include <vector>#include <array>
Include dependency graph for ncpmodel.hh:
![]() Go to the source code of this file.
Detailed DescriptionA compositional multi-phase model based on non-linear complementarity functions. This model implements a 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 SET_TYPE_PROP(MyProblemTypeTag, FluxModule, Ewoms::ForchheimerFluxModule<TypeTag>);
The core of the model is the conservation mass of each component by means of the equation
For the missing
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
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:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||