Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV > Struct Template Reference

The primary variable and equation indices for the black-oil model. More...

#include <blackoiltwophaseindices.hh>

Static Public Member Functions

static unsigned canonicalToActiveComponentIndex (unsigned compIdx)
 returns the index of "active" component More...
 
static unsigned activeToCanonicalComponentIndex (unsigned compIdx)
 

Static Public Attributes

static constexpr bool oilEnabled = disabledCanonicalCompIdx != 0
 Is phase enabled or not. More...
 
static constexpr bool waterEnabled = disabledCanonicalCompIdx != 1
 
static constexpr bool gasEnabled = disabledCanonicalCompIdx != 2
 
static constexpr bool enableSolvent = numSolventsV > 0
 Are solvents involved? More...
 
static constexpr bool enableExtbo = numExtbosV > 0
 Is extbo invoked? More...
 
static constexpr bool enablePolymer = numPolymersV > 0
 Are polymers involved? More...
 
static constexpr bool enableEnergy = numEnergyV > 0
 Shall energy be conserved? More...
 
static constexpr bool enableMICP = numMICPsV > 0
 Is MICP involved? More...
 
static constexpr int numSolvents = enableSolvent ? numSolventsV : 0
 Number of solvent components to be considered. More...
 
static constexpr int numExtbos = enableExtbo ? numExtbosV : 0
 Number of components to be considered for extbo. More...
 
static constexpr int numPolymers = enablePolymer ? numPolymersV : 0
 Number of polymer components to be considered. More...
 
static constexpr int numEnergy = enableEnergy ? numEnergyV : 0
 Number of energy equations to be considered. More...
 
static constexpr int numFoam = enableFoam? 1 : 0
 Number of foam equations to be considered. More...
 
static constexpr int numBrine = enableBrine? 1 : 0
 Number of salt equations to be considered. More...
 
static constexpr int numPhases = 2
 The number of fluid phases. More...
 
static constexpr int numMICPs = enableMICP ? numMICPsV : 0
 Number of MICP components to be considered. More...
 
static constexpr int numEq
 The number of equations. More...
 
static constexpr int waterSwitchIdx = waterEnabled ? PVOffset + 0 : -10000
 Index of the switching variable which determines the composistion of the water phase. More...
 
static constexpr int pressureSwitchIdx = waterEnabled ? PVOffset + 1 : PVOffset + 0
 Index of the switching variable which determines the pressure. More...
 
static constexpr int compositionSwitchIdx = (gasEnabled && oilEnabled) ? PVOffset + 1 : -10000
 Index of the switching variable which determines the composition of the hydrocarbon phases. More...
 
static constexpr int solventSaturationIdx
 Index of the primary variable for the first solvent. More...
 
static constexpr int zFractionIdx
 Index of the primary variable for the first extbo component. More...
 
static constexpr int polymerConcentrationIdx
 Index of the primary variable for the first polymer. More...
 
static constexpr int polymerMoleWeightIdx
 Index of the primary variable for the second polymer primary variable (molecular weight) More...
 
static constexpr int microbialConcentrationIdx
 Index of the primary variable for the first MICP component. More...
 
static constexpr int oxygenConcentrationIdx
 Index of the primary variable for the second MICP component. More...
 
static constexpr int ureaConcentrationIdx
 Index of the primary variable for the third MICP component. More...
 
static constexpr int biofilmConcentrationIdx
 Index of the primary variable for the fourth MICP component. More...
 
static constexpr int calciteConcentrationIdx
 Index of the primary variable for the fifth MICP component. More...
 
static constexpr int foamConcentrationIdx
 Index of the primary variable for the foam. More...
 
static constexpr int saltConcentrationIdx
 Index of the primary variable for the salt. More...
 
static constexpr int temperatureIdx
 Index of the primary variable for temperature. More...
 
static constexpr int conti0EqIdx = PVOffset + 0
 Index of the continuity equation of the first phase. More...
 
static constexpr int contiSolventEqIdx
 Index of the continuity equation for the first solvent component. More...
 
static constexpr int contiZfracEqIdx
 Index of the continuity equation for the first extbo component. More...
 
static constexpr int contiPolymerEqIdx
 Index of the continuity equation for the first polymer component. More...
 
static constexpr int contiPolymerMWEqIdx
 Index of the continuity equation for the second polymer component (molecular weight) More...
 
static constexpr int contiMicrobialEqIdx
 Index of the continuity equation for the first MICP component. More...
 
static constexpr int contiOxygenEqIdx
 Index of the continuity equation for the second MICP component. More...
 
static constexpr int contiUreaEqIdx
 Index of the continuity equation for the third MICP component. More...
 
static constexpr int contiBiofilmEqIdx
 Index of the continuity equation for the fourth MICP component. More...
 
static constexpr int contiCalciteEqIdx
 Index of the continuity equation for the fifth MICP component. More...
 
static constexpr int contiFoamEqIdx
 Index of the continuity equation for the foam component. More...
 
static constexpr int contiBrineEqIdx
 Index of the continuity equation for the salt component. More...
 
static constexpr int contiEnergyEqIdx
 Index of the continuity equation for energy. More...
 

Detailed Description

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
struct Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >

The primary variable and equation indices for the black-oil model.

Member Function Documentation

◆ activeToCanonicalComponentIndex()

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
static unsigned Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::activeToCanonicalComponentIndex ( unsigned  compIdx)
inlinestatic

◆ canonicalToActiveComponentIndex()

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
static unsigned Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::canonicalToActiveComponentIndex ( unsigned  compIdx)
inlinestatic

Member Data Documentation

◆ biofilmConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::biofilmConcentrationIdx
staticconstexpr
Initial value:
=
numMICPs > 3 ? ureaConcentrationIdx + 1 : -1000
static constexpr int ureaConcentrationIdx
Index of the primary variable for the third MICP component.
Definition: blackoiltwophaseindices.hh:154
static constexpr int numMICPs
Number of MICP components to be considered.
Definition: blackoiltwophaseindices.hh:93

Index of the primary variable for the fourth MICP component.

◆ calciteConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::calciteConcentrationIdx
staticconstexpr
Initial value:
=
static constexpr int biofilmConcentrationIdx
Index of the primary variable for the fourth MICP component.
Definition: blackoiltwophaseindices.hh:158

Index of the primary variable for the fifth MICP component.

◆ compositionSwitchIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::compositionSwitchIdx = (gasEnabled && oilEnabled) ? PVOffset + 1 : -10000
staticconstexpr

Index of the switching variable which determines the composition of the hydrocarbon phases.

Note
For two-phase water oil and water gas models this is disabled.

◆ conti0EqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::conti0EqIdx = PVOffset + 0
staticconstexpr

Index of the continuity equation of the first phase.

◆ contiBiofilmEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiBiofilmEqIdx
staticconstexpr
Initial value:
=
numMICPs > 3 ? contiUreaEqIdx + 1 : -1000
static constexpr int contiUreaEqIdx
Index of the continuity equation for the third MICP component.
Definition: blackoiltwophaseindices.hh:249

Index of the continuity equation for the fourth MICP component.

◆ contiBrineEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiBrineEqIdx
staticconstexpr
Initial value:
=
enableBrine ? PVOffset + numPhases + numSolvents + numPolymers + numMICPs + numFoam : -1000
static constexpr int numSolvents
Number of solvent components to be considered.
Definition: blackoiltwophaseindices.hh:72
static constexpr int numPolymers
Number of polymer components to be considered.
Definition: blackoiltwophaseindices.hh:78
static constexpr int numFoam
Number of foam equations to be considered.
Definition: blackoiltwophaseindices.hh:84
static constexpr int numPhases
The number of fluid phases.
Definition: blackoiltwophaseindices.hh:90

Index of the continuity equation for the salt component.

◆ contiCalciteEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiCalciteEqIdx
staticconstexpr
Initial value:
=
numMICPs > 4 ? contiBiofilmEqIdx + 1 : -1000
static constexpr int contiBiofilmEqIdx
Index of the continuity equation for the fourth MICP component.
Definition: blackoiltwophaseindices.hh:253

Index of the continuity equation for the fifth MICP component.

◆ contiEnergyEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiEnergyEqIdx
staticconstexpr
Initial value:
=
static constexpr bool enableEnergy
Shall energy be conserved?
Definition: blackoiltwophaseindices.hh:66
static constexpr int numBrine
Number of salt equations to be considered.
Definition: blackoiltwophaseindices.hh:87
static constexpr int numExtbos
Number of components to be considered for extbo.
Definition: blackoiltwophaseindices.hh:75

Index of the continuity equation for energy.

◆ contiFoamEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiFoamEqIdx
staticconstexpr
Initial value:
=
enableFoam ? PVOffset + numPhases + numSolvents + numPolymers + numMICPs : -1000

Index of the continuity equation for the foam component.

◆ contiMicrobialEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiMicrobialEqIdx
staticconstexpr
Initial value:
=
enableMICP ? PVOffset + numPhases + numSolvents : -1000
static constexpr bool enableMICP
Is MICP involved?
Definition: blackoiltwophaseindices.hh:69

Index of the continuity equation for the first MICP component.

◆ contiOxygenEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiOxygenEqIdx
staticconstexpr
Initial value:
=
numMICPs > 1 ? contiMicrobialEqIdx + 1 : -1000
static constexpr int contiMicrobialEqIdx
Index of the continuity equation for the first MICP component.
Definition: blackoiltwophaseindices.hh:241

Index of the continuity equation for the second MICP component.

◆ contiPolymerEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiPolymerEqIdx
staticconstexpr
Initial value:
=
enablePolymer ? PVOffset + numPhases + numSolvents : -1000
static constexpr bool enablePolymer
Are polymers involved?
Definition: blackoiltwophaseindices.hh:63

Index of the continuity equation for the first polymer component.

◆ contiPolymerMWEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiPolymerMWEqIdx
staticconstexpr
Initial value:
=
numPolymers > 1 ? contiPolymerEqIdx + 1 : -1000
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition: blackoiltwophaseindices.hh:233

Index of the continuity equation for the second polymer component (molecular weight)

◆ contiSolventEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiSolventEqIdx
staticconstexpr
Initial value:
=
enableSolvent ? PVOffset + numPhases : -1000
static constexpr bool enableSolvent
Are solvents involved?
Definition: blackoiltwophaseindices.hh:57

Index of the continuity equation for the first solvent component.

◆ contiUreaEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiUreaEqIdx
staticconstexpr
Initial value:
=
numMICPs > 2 ? contiOxygenEqIdx + 1 : -1000
static constexpr int contiOxygenEqIdx
Index of the continuity equation for the second MICP component.
Definition: blackoiltwophaseindices.hh:245

Index of the continuity equation for the third MICP component.

◆ contiZfracEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::contiZfracEqIdx
staticconstexpr
Initial value:
=
enableExtbo ? PVOffset + numPhases + numSolvents : -1000
static constexpr bool enableExtbo
Is extbo invoked?
Definition: blackoiltwophaseindices.hh:60

Index of the continuity equation for the first extbo component.

◆ enableEnergy

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::enableEnergy = numEnergyV > 0
staticconstexpr

Shall energy be conserved?

◆ enableExtbo

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::enableExtbo = numExtbosV > 0
staticconstexpr

Is extbo invoked?

◆ enableMICP

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::enableMICP = numMICPsV > 0
staticconstexpr

Is MICP involved?

◆ enablePolymer

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::enablePolymer = numPolymersV > 0
staticconstexpr

Are polymers involved?

◆ enableSolvent

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::enableSolvent = numSolventsV > 0
staticconstexpr

Are solvents involved?

◆ foamConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::foamConcentrationIdx
staticconstexpr
Initial value:
=
enableFoam ? PVOffset + numPhases + numSolvents + numPolymers + numMICPs : -1000

Index of the primary variable for the foam.

◆ gasEnabled

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::gasEnabled = disabledCanonicalCompIdx != 2
staticconstexpr

◆ microbialConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::microbialConcentrationIdx
staticconstexpr
Initial value:
=
enableMICP ? PVOffset + numPhases + numSolvents : -1000

Index of the primary variable for the first MICP component.

◆ numBrine

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numBrine = enableBrine? 1 : 0
staticconstexpr

Number of salt equations to be considered.

◆ numEnergy

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numEnergy = enableEnergy ? numEnergyV : 0
staticconstexpr

Number of energy equations to be considered.

◆ numEq

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numEq
staticconstexpr
Initial value:
static constexpr int numEnergy
Number of energy equations to be considered.
Definition: blackoiltwophaseindices.hh:81

The number of equations.

◆ numExtbos

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numExtbos = enableExtbo ? numExtbosV : 0
staticconstexpr

Number of components to be considered for extbo.

◆ numFoam

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numFoam = enableFoam? 1 : 0
staticconstexpr

Number of foam equations to be considered.

◆ numMICPs

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numMICPs = enableMICP ? numMICPsV : 0
staticconstexpr

Number of MICP components to be considered.

◆ numPhases

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numPhases = 2
staticconstexpr

The number of fluid phases.

◆ numPolymers

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numPolymers = enablePolymer ? numPolymersV : 0
staticconstexpr

Number of polymer components to be considered.

◆ numSolvents

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::numSolvents = enableSolvent ? numSolventsV : 0
staticconstexpr

Number of solvent components to be considered.

◆ oilEnabled

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::oilEnabled = disabledCanonicalCompIdx != 0
staticconstexpr

◆ oxygenConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::oxygenConcentrationIdx
staticconstexpr
Initial value:
=
static constexpr int microbialConcentrationIdx
Index of the primary variable for the first MICP component.
Definition: blackoiltwophaseindices.hh:146

Index of the primary variable for the second MICP component.

◆ polymerConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::polymerConcentrationIdx
staticconstexpr
Initial value:
=
enablePolymer ? PVOffset + numPhases + numSolvents : -1000

Index of the primary variable for the first polymer.

◆ polymerMoleWeightIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::polymerMoleWeightIdx
staticconstexpr
Initial value:
=
static constexpr int polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition: blackoiltwophaseindices.hh:138

Index of the primary variable for the second polymer primary variable (molecular weight)

◆ pressureSwitchIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::pressureSwitchIdx = waterEnabled ? PVOffset + 1 : PVOffset + 0
staticconstexpr

Index of the switching variable which determines the pressure.

Depending on the phases present, this variable is either interpreted as the pressure of the oil phase, gas phase (if no oil) or water phase (if only water)

◆ saltConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::saltConcentrationIdx
staticconstexpr
Initial value:
=
enableBrine ? PVOffset + numPhases + numSolvents + numPolymers + numMICPs + numFoam : -1000

Index of the primary variable for the salt.

◆ solventSaturationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::solventSaturationIdx
staticconstexpr
Initial value:
=
enableSolvent ? PVOffset + numPhases : -1000

Index of the primary variable for the first solvent.

◆ temperatureIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::temperatureIdx
staticconstexpr
Initial value:

Index of the primary variable for temperature.

◆ ureaConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::ureaConcentrationIdx
staticconstexpr
Initial value:
=
numMICPs > 2 ? oxygenConcentrationIdx + 1 : -1000
static constexpr int oxygenConcentrationIdx
Index of the primary variable for the second MICP component.
Definition: blackoiltwophaseindices.hh:150

Index of the primary variable for the third MICP component.

◆ waterEnabled

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr bool Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::waterEnabled = disabledCanonicalCompIdx != 1
staticconstexpr

◆ waterSwitchIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::waterSwitchIdx = waterEnabled ? PVOffset + 0 : -10000
staticconstexpr

Index of the switching variable which determines the composistion of the water phase.

Depending on the phases present, this variable is either interpreted as water saturation or vapporized water in gas phase

Note
For two-phase gas-oil models this is disabled.

◆ zFractionIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned disabledCanonicalCompIdx, unsigned numMICPsV>
constexpr int Opm::BlackOilTwoPhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, disabledCanonicalCompIdx, numMICPsV >::zFractionIdx
staticconstexpr
Initial value:
=
enableExtbo ? PVOffset + numPhases + numSolvents : -1000

Index of the primary variable for the first extbo component.


The documentation for this struct was generated from the following file: