My Project
|
A compositional multi-phase model based on flash-calculations. More...
#include <flashmodel.hh>
Public Member Functions | |
FlashModel (Simulator &simulator) | |
std::string | primaryVarName (unsigned pvIdx) const |
Given an primary variable index, return a human readable name. | |
std::string | eqName (unsigned eqIdx) const |
Given an equation index, return a human readable name. | |
Scalar | primaryVarWeight (unsigned globalDofIdx, unsigned pvIdx) const |
Returns the relative weight of a primary variable for calculating relative errors. | |
Scalar | eqWeight (unsigned globalDofIdx, unsigned eqIdx) const |
Returns the relative weight of an equation. | |
void | registerOutputModules_ () |
FlashModel (Simulator &simulator) | |
std::string | primaryVarName (unsigned pvIdx) const |
Given an primary variable index, return a human readable name. | |
std::string | eqName (unsigned eqIdx) const |
Given an equation index, return a human readable name. | |
void | registerOutputModules_ () |
![]() | |
MultiPhaseBaseModel (Simulator &simulator) | |
bool | phaseIsConsidered (unsigned) const |
Returns true iff a fluid phase is used by the model. | |
void | globalPhaseStorage (EqVector &storage, unsigned phaseIdx) |
Compute the total storage inside one phase of all conservation quantities. | |
void | registerOutputModules_ () |
Static Public Member Functions | |
static void | registerParameters () |
Register all run-time parameters for the immiscible model. | |
static std::string | name () |
static void | registerParameters () |
Register all run-time parameters for the immiscible model. | |
![]() | |
static void | registerParameters () |
Register all run-time parameters for the immiscible model. | |
A compositional multi-phase model based on flash-calculations.
This model assumes a flow of
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
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 double
(e.g. quad
) if this model ought to be used.
The model uses the following primary variables:
This model assumes a flow of
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
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.
|
inline |
Given an equation index, return a human readable name.
eqIdx | The index of the conservation equation of interest. |
|
inline |
Given an equation index, return a human readable name.
eqIdx | The index of the conservation equation of interest. |
|
inline |
Returns the relative weight of an equation.
globalVertexIdx | The global index of the vertex |
eqIdx | The index of the equation |
|
inlinestatic |
|
inline |
Given an primary variable index, return a human readable name.
pvIdx | The index of the primary variable of interest. |
|
inline |
Given an primary variable index, return a human readable name.
pvIdx | The index of the primary variable of interest. |
|
inline |
Returns the relative weight of a primary variable for calculating relative errors.
globalDofIdx | The global index of the degree of freedom |
pvIdx | The index of the primary variable |