Opm::FlashModel< TypeTag > Class Template Reference A compositional multi-phase model based on flash-calculations. More...
Inheritance diagram for Opm::FlashModel< TypeTag >:
Detailed Descriptiontemplate<class TypeTag> class Opm::FlashModel< TypeTag > A 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. Constructor & Destructor Documentation◆ FlashModel() [1/2]
template<class TypeTag >
◆ FlashModel() [2/2]
template<class TypeTag >
Member Function Documentation◆ eqName() [1/2]
template<class TypeTag >
Given an equation index, return a human readable name.
◆ eqName() [2/2]
template<class TypeTag >
Given an equation index, return a human readable name.
◆ eqWeight()
template<class TypeTag >
Returns the relative weight of an equation.
◆ globalPhaseStorage()
template<class TypeTag >
Compute the total storage inside one phase of all conservation quantities.
References Opm::ThreadedEntityIterator< GridView, codim >::beginParallel(), Opm::ThreadedEntityIterator< GridView, codim >::increment(), Opm::ThreadedEntityIterator< GridView, codim >::isFinished(), and Opm::ThreadManager< TypeTag >::threadId(). ◆ name()
template<class TypeTag >
◆ phaseIsConsidered()
template<class TypeTag >
Returns true iff a fluid phase is used by the model.
◆ primaryVarName() [1/2]
template<class TypeTag >
Given an primary variable index, return a human readable name.
◆ primaryVarName() [2/2]
template<class TypeTag >
Given an primary variable index, return a human readable name.
◆ primaryVarWeight()
template<class TypeTag >
Returns the relative weight of a primary variable for calculating relative errors.
◆ registerOutputModules_() [1/2]
template<class TypeTag >
◆ registerOutputModules_() [2/2]
template<class TypeTag >
◆ registerParameters() [1/2]
template<class TypeTag >
Register all run-time parameters for the immiscible model. References Opm::MultiPhaseBaseModel< TypeTag >::registerParameters(), Opm::VtkCompositionModule< TypeTag >::registerParameters(), Opm::VtkDiffusionModule< TypeTag >::registerParameters(), and Opm::VtkEnergyModule< TypeTag >::registerParameters(). ◆ registerParameters() [2/2]
template<class TypeTag >
Register all run-time parameters for the immiscible model. References Opm::MultiPhaseBaseModel< TypeTag >::registerParameters(), Opm::VtkCompositionModule< TypeTag >::registerParameters(), Opm::VtkDiffusionModule< TypeTag >::registerParameters(), Opm::VtkEnergyModule< TypeTag >::registerParameters(), and Opm::VtkPTFlashModule< TypeTag >::registerParameters(). The documentation for this class was generated from the following files: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||