Ewoms::BlackOilTwoPhaseIndices< numSolventsV, numPolymersV, PVOffset, disabledCanonicalCompIdx > 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
 

Static Public Attributes

static const bool oilEnabled = disabledCanonicalCompIdx==0? false:true
 Is phase enabled or not.
 
static const bool waterEnabled = disabledCanonicalCompIdx==1? false:true
 
static const bool gasEnabled = disabledCanonicalCompIdx==2? false:true
 
static const int numPhases = 2
 Number of phases active at all times.
 
static const int numSolvents = numSolventsV
 Number of solvent components considered.
 
static const int numPolymers = numPolymersV
 Number of polymer components considered.
 
static const int numEq = numPhases + numSolvents + numPolymers
 The number of equations.
 
static const int waterSaturationIdx = waterEnabled ? PVOffset + 0: -10000
 The index of the water saturation. For two-phase oil gas models this is disabled.
 
static const int pressureSwitchIdx = PVOffset + 1
 Index of the oil pressure in a vector of primary variables.
 
static const int compositionSwitchIdx = gasEnabled ? PVOffset + 0: -10000
 Index of the switching variable which determines the composition of the hydrocarbon phases. More...
 
static const int solventSaturationIdx = PVOffset + numPhases
 Index of the primary variable for the first solvent.
 
static const int polymerConcentrationIdx = solventSaturationIdx + numPolymers
 Index of the primary variable for the first polymer.
 
static const int conti0EqIdx = PVOffset + 0
 Index of the continuity equation of the first phase.
 
static const int contiSolventEqIdx = PVOffset + numPhases - 1 + numSolvents
 Index of the continuity equation for the first solvent component.
 
static const int contiPolymerEqIdx = contiSolventEqIdx + numPolymers
 Index of the continuity equation for the first polymer component.
 

Detailed Description

template<unsigned numSolventsV, unsigned numPolymersV, unsigned PVOffset, unsigned disabledCanonicalCompIdx>
struct Ewoms::BlackOilTwoPhaseIndices< numSolventsV, numPolymersV, PVOffset, disabledCanonicalCompIdx >

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

Member Data Documentation

◆ compositionSwitchIdx

template<unsigned numSolventsV, unsigned numPolymersV, unsigned PVOffset, unsigned disabledCanonicalCompIdx>
const int Ewoms::BlackOilTwoPhaseIndices< numSolventsV, numPolymersV, PVOffset, disabledCanonicalCompIdx >::compositionSwitchIdx = gasEnabled ? PVOffset + 0: -10000
static

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

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

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