Opm::FlashIndices< TypeTag, PVOffset > Class Template Reference

Defines the primary variable and equation indices for the compositional multi-phase model based on flash calculations. More...

#include <flashindices.hh>

Inheritance diagram for Opm::FlashIndices< TypeTag, PVOffset >:
Inheritance graph

Static Public Attributes

static const int numEq = numComponents + EnergyIndices::numEq_
 number of equations/primary variables More...
 
static const int cTot0Idx = PVOffset
 
static const int conti0EqIdx = PVOffset
 
static constexpr bool waterEnabled = enableWater
 All phases active (note: immiscible/"dummy" water phase) More...
 
static constexpr bool gasEnabled = true
 
static constexpr bool oilEnabled = true
 
static constexpr int numPhases = enableWater ? 3 : 2
 number of active phases More...
 
static constexpr int numEq = numComponents + EnergyIndices::numEq_ + (enableWater ? 1 : 0)
 number of equations/primary variables More...
 
static constexpr int pressure0Idx = PVOffset
 Index of the pressure. More...
 
static constexpr int z0Idx = pressure0Idx + 1
 Index of the molefraction of the first component. More...
 
static constexpr int water0Idx = enableWater ? z0Idx + numComponents - 1 : -1000
 Index of water saturation. More...
 
static constexpr int conti0EqIdx = PVOffset
 

Detailed Description

template<class TypeTag, int PVOffset>
class Opm::FlashIndices< TypeTag, PVOffset >

Defines the primary variable and equation indices for the compositional multi-phase model based on flash calculations.

Defines the primary variable and equation indices for the compositional multi-phase model based on PT flash calculations.

Template Parameters
PVOffsetThe first index in a primary variable vector.

Member Data Documentation

◆ conti0EqIdx [1/2]

template<class TypeTag , int PVOffset>
const int Opm::FlashIndices< TypeTag, PVOffset >::conti0EqIdx = PVOffset
static

Index of the mass conservation equation for the first component.

◆ conti0EqIdx [2/2]

template<class TypeTag , int PVOffset>
constexpr int Opm::FlashIndices< TypeTag, PVOffset >::conti0EqIdx = PVOffset
staticconstexpr

Index of the mass conservation equation for the first component.

◆ cTot0Idx

template<class TypeTag , int PVOffset>
const int Opm::FlashIndices< TypeTag, PVOffset >::cTot0Idx = PVOffset
static

Index of the total concentration of the first component in the pore space.

◆ gasEnabled

template<class TypeTag , int PVOffset>
constexpr bool Opm::FlashIndices< TypeTag, PVOffset >::gasEnabled = true
staticconstexpr

◆ numEq [1/2]

template<class TypeTag , int PVOffset>
const int Opm::FlashIndices< TypeTag, PVOffset >::numEq = numComponents + EnergyIndices::numEq_
static

number of equations/primary variables

◆ numEq [2/2]

template<class TypeTag , int PVOffset>
constexpr int Opm::FlashIndices< TypeTag, PVOffset >::numEq = numComponents + EnergyIndices::numEq_ + (enableWater ? 1 : 0)
staticconstexpr

number of equations/primary variables

◆ numPhases

template<class TypeTag , int PVOffset>
constexpr int Opm::FlashIndices< TypeTag, PVOffset >::numPhases = enableWater ? 3 : 2
staticconstexpr

number of active phases

◆ oilEnabled

template<class TypeTag , int PVOffset>
constexpr bool Opm::FlashIndices< TypeTag, PVOffset >::oilEnabled = true
staticconstexpr

◆ pressure0Idx

template<class TypeTag , int PVOffset>
constexpr int Opm::FlashIndices< TypeTag, PVOffset >::pressure0Idx = PVOffset
staticconstexpr

Index of the pressure.

◆ water0Idx

template<class TypeTag , int PVOffset>
constexpr int Opm::FlashIndices< TypeTag, PVOffset >::water0Idx = enableWater ? z0Idx + numComponents - 1 : -1000
staticconstexpr

Index of water saturation.

◆ waterEnabled

template<class TypeTag , int PVOffset>
constexpr bool Opm::FlashIndices< TypeTag, PVOffset >::waterEnabled = enableWater
staticconstexpr

All phases active (note: immiscible/"dummy" water phase)

◆ z0Idx

template<class TypeTag , int PVOffset>
constexpr int Opm::FlashIndices< TypeTag, PVOffset >::z0Idx = pressure0Idx + 1
staticconstexpr

Index of the molefraction of the first component.


The documentation for this class was generated from the following files: