flash/flashmodel.hh File Reference #include <opm/material/constraintsolvers/NcpFlash.hpp> #include <opm/material/densead/Math.hpp> #include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp> #include <opm/material/fluidmatrixinteractions/NullMaterial.hpp> #include <opm/models/common/energymodule.hh> #include <opm/models/common/multiphasebasemodel.hh> #include <opm/models/flash/flashboundaryratevector.hh> #include <opm/models/flash/flashextensivequantities.hh> #include <opm/models/flash/flashindices.hh> #include <opm/models/flash/flashintensivequantities.hh> #include <opm/models/flash/flashlocalresidual.hh> #include <opm/models/flash/flashparameters.hh> #include <opm/models/flash/flashprimaryvariables.hh> #include <opm/models/flash/flashproperties.hh> #include <opm/models/flash/flashratevector.hh> #include <opm/models/io/vtkcompositionmodule.hh> #include <opm/models/io/vtkdiffusionmodule.hh> #include <opm/models/io/vtkenergymodule.hh> #include <sstream> #include <string>
Include dependency graph for flash/flashmodel.hh:
Go to the source code of this file.
Detailed DescriptionA compositional multi-phase model based on flash-calculations. This model assumes a flow of fluid phases , each of which is assumed to be a mixture chemical species (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 template<class TypeTag>
struct FluxModule<TypeTag, TTag::MyProblemTypeTag> { using type = Opm::ForchheimerFluxModule<TypeTag>; };
Specifies a flux module which uses the Forchheimer relation. Definition: forchheimerfluxmodule.hh:62 The core of the model is the conservation mass of each component by means of the equation
To determine the quanties that occur in the equations above, this model uses flash calculations. A flash solver starts with the total mass or molar mass per volume for each component and, calculates the compositions, saturations and pressures of all phases at a given temperature. For this the flash solver has to use some model assumptions internally. (Often these are the same primary variable switching or NCP assumptions as used by the other fully implicit compositional multi-phase models provided by eWoms.) Using flash calculations for the flow model has some disadvantages:
It is thus adviced to increase the target tolerance of the Newton scheme or a to use type for scalar values which exhibits higher precision than the standard The model uses the following primary variables:
This model assumes a flow of fluid phases , each of which is assumed to be a mixture chemical species (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 template<class TypeTag>
struct FluxModule<TypeTag, TTag::MyProblemTypeTag> { using type = Opm::ForchheimerFluxModule<TypeTag>; };
The core of the model is the conservation mass of each component by means of the equation
To determine the quanties that occur in the equations above, this model uses flash calculations. A flash solver starts with the total mass or molar mass per volume for each component and, calculates the compositions, saturation and pressures of all phases at a given temperature. For this the flash solver has to use some model assumptions internally. Here a constant pressure, constant temperature, two-phase flash calculation method is used. |
||||||||||||||||