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

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

#include <blackoilonephaseindices.hh>

Static Public Member Functions

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

Static Public Attributes

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

◆ canonicalToActiveComponentIndex()

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

returns the index of "active" component

Member Data Documentation

◆ biofilmConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::biofilmConcentrationIdx
static
Initial value:
=
numMICPs > 3 ? ureaConcentrationIdx + 1 : -1000
static const int ureaConcentrationIdx
Index of the primary variable for the third MICP component.
Definition: blackoilonephaseindices.hh:145
static const int numMICPs
Number of MICP components to be considered.
Definition: blackoilonephaseindices.hh:85

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::calciteConcentrationIdx
static
Initial value:
=
static const int biofilmConcentrationIdx
Index of the primary variable for the fourth MICP component.
Definition: blackoilonephaseindices.hh:149

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::compositionSwitchIdx = -10000
static

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

Note
For one-phase models this is disabled.

◆ conti0EqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::conti0EqIdx = PVOffset + 0
static

Index of the continuity equation of the first (and only) phase.

◆ contiBiofilmEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiBiofilmEqIdx
static
Initial value:
=
numMICPs > 3 ? contiUreaEqIdx + 1 : -1000
static const int contiUreaEqIdx
Index of the continuity equation for the third MICP component.
Definition: blackoilonephaseindices.hh:220

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiBrineEqIdx
static
Initial value:
=
enableBrine ? PVOffset + numPhases + numSolvents + numExtbos + numPolymers + numMICPs + numFoam : -1000
static const int numPhases
The number of fluid phases.
Definition: blackoilonephaseindices.hh:82
static const int numPolymers
Number of polymer components to be considered.
Definition: blackoilonephaseindices.hh:70
static const int numExtbos
Number of components to be considered for extbo.
Definition: blackoilonephaseindices.hh:67
static const int numFoam
Number of foam equations to be considered.
Definition: blackoilonephaseindices.hh:76
static const int numSolvents
Number of solvent components to be considered.
Definition: blackoilonephaseindices.hh:64

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiCalciteEqIdx
static
Initial value:
=
numMICPs > 4 ? contiBiofilmEqIdx + 1 : -1000
static const int contiBiofilmEqIdx
Index of the continuity equation for the fourth MICP component.
Definition: blackoilonephaseindices.hh:224

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiEnergyEqIdx
static
Initial value:
=
static const bool enableEnergy
Shall energy be conserved?
Definition: blackoilonephaseindices.hh:58
static const int numBrine
Number of salt equations to be considered.
Definition: blackoilonephaseindices.hh:79

Index of the continuity equation for energy.

◆ contiFoamEqIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiFoamEqIdx
static
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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiMicrobialEqIdx
static
Initial value:
=
enableMICP ? PVOffset + numPhases + numSolvents : -1000
static const bool enableMICP
Is MICP involved?
Definition: blackoilonephaseindices.hh:61

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiOxygenEqIdx
static
Initial value:
=
numMICPs > 1 ? contiMicrobialEqIdx + 1 : -1000
static const int contiMicrobialEqIdx
Index of the continuity equation for the first MICP component.
Definition: blackoilonephaseindices.hh:212

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiPolymerEqIdx
static
Initial value:
=
enablePolymer ? PVOffset + numPhases + numSolvents : -1000
static const bool enablePolymer
Are polymers involved?
Definition: blackoilonephaseindices.hh:55

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiPolymerMWEqIdx
static
Initial value:
=
numPolymers > 1 ? contiPolymerEqIdx + 1 : -1000
static const int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition: blackoilonephaseindices.hh:204

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiSolventEqIdx
static
Initial value:
=
enableSolvent ? PVOffset + numPhases : -1000
static const bool enableSolvent
Are solvents involved?
Definition: blackoilonephaseindices.hh:49

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiUreaEqIdx
static
Initial value:
=
numMICPs > 2 ? contiOxygenEqIdx + 1 : -1000
static const int contiOxygenEqIdx
Index of the continuity equation for the second MICP component.
Definition: blackoilonephaseindices.hh:216

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::contiZfracEqIdx
static
Initial value:
=
enableExtbo ? PVOffset + numPhases + numSolvents : -1000
static const bool enableExtbo
Is extbo invoked?
Definition: blackoilonephaseindices.hh:52

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 canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::enableEnergy = numEnergyV > 0
static

Shall energy be conserved?

◆ enableExtbo

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::enableExtbo = numExtbosV > 0
static

Is extbo invoked?

◆ enableMICP

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::enableMICP = numMICPsV > 0
static

Is MICP involved?

◆ enablePolymer

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::enablePolymer = numPolymersV > 0
static

Are polymers involved?

◆ enableSolvent

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::enableSolvent = numSolventsV > 0
static

Are solvents involved?

◆ foamConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::foamConcentrationIdx
static
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 canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::gasEnabled = (canonicalCompIdx == 2)
static

◆ microbialConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::microbialConcentrationIdx
static
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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numBrine = enableBrine? 1 : 0
static

Number of salt equations to be considered.

◆ numEnergy

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numEnergy = enableEnergy ? numEnergyV : 0
static

Number of energy equations to be considered.

◆ numEq

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numEq = numPhases + numSolvents + numExtbos + numPolymers + numEnergy + numFoam + numBrine + numMICPs
static

The number of equations.

◆ numExtbos

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numExtbos = enableExtbo ? numExtbosV : 0
static

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numFoam = enableFoam? 1 : 0
static

Number of foam equations to be considered.

◆ numMICPs

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numMICPs = enableMICP ? numMICPsV : 0
static

Number of MICP components to be considered.

◆ numPhases

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numPhases = 1
static

The number of fluid phases.

◆ numPolymers

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numPolymers = enablePolymer ? numPolymersV : 0
static

Number of polymer components to be considered.

◆ numSolvents

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::numSolvents = enableSolvent ? numSolventsV : 0
static

Number of solvent components to be considered.

◆ oilEnabled

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::oilEnabled = (canonicalCompIdx == 0)
static

◆ oxygenConcentrationIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::oxygenConcentrationIdx
static
Initial value:
=
static const int microbialConcentrationIdx
Index of the primary variable for the first MICP component.
Definition: blackoilonephaseindices.hh:137

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::polymerConcentrationIdx
static
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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::polymerMoleWeightIdx
static
Initial value:
=
static const int polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition: blackoilonephaseindices.hh:129

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::pressureSwitchIdx = PVOffset + 0
static

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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::saltConcentrationIdx
static
Initial value:
=
enableBrine ? PVOffset + numPhases + numSolvents + numExtbos + 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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::solventSaturationIdx
static
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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::temperatureIdx
static
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 canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::ureaConcentrationIdx
static
Initial value:
=
numMICPs > 2 ? oxygenConcentrationIdx + 1 : -1000
static const int oxygenConcentrationIdx
Index of the primary variable for the second MICP component.
Definition: blackoilonephaseindices.hh:141

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 canonicalCompIdx, unsigned numMICPsV>
const bool Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::waterEnabled = (canonicalCompIdx == 1)
static

◆ waterSwitchIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::waterSwitchIdx = -10000
static

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 one-phase models this is disabled.

◆ zFractionIdx

template<unsigned numSolventsV, unsigned numExtbosV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset, unsigned canonicalCompIdx, unsigned numMICPsV>
const int Opm::BlackOilOnePhaseIndices< numSolventsV, numExtbosV, numPolymersV, numEnergyV, enableFoam, enableBrine, PVOffset, canonicalCompIdx, numMICPsV >::zFractionIdx
static
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: