28 #ifndef EWOMS_BLACK_OIL_TWO_PHASE_INDICES_HH 29 #define EWOMS_BLACK_OIL_TWO_PHASE_INDICES_HH 40 template <
unsigned numSolventsV,
unsigned numPolymersV,
unsigned PVOffset,
unsigned disabledCanonicalCompIdx>
45 static const bool oilEnabled = disabledCanonicalCompIdx==0?
false:
true;
46 static const bool waterEnabled = disabledCanonicalCompIdx==1?
false:
true;
47 static const bool gasEnabled = disabledCanonicalCompIdx==2?
false:
true;
99 }
else if (!waterEnabled) {
100 assert(compIdx != 1);
105 assert(compIdx != 0);
static const int solventSaturationIdx
Index of the primary variable for the first solvent.
Definition: blackoiltwophaseindices.hh:80
static const int compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases...
Definition: blackoiltwophaseindices.hh:77
static const int contiSolventEqIdx
Index of the continuity equation for the first solvent component.
Definition: blackoiltwophaseindices.hh:116
Definition: baseauxiliarymodule.hh:37
static const int pressureSwitchIdx
Index of the oil pressure in a vector of primary variables.
Definition: blackoiltwophaseindices.hh:69
static const int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition: blackoiltwophaseindices.hh:119
static unsigned canonicalToActiveComponentIndex(unsigned compIdx)
returns the index of "active" component
Definition: blackoiltwophaseindices.hh:92
static const int numEq
The number of equations.
Definition: blackoiltwophaseindices.hh:59
static const int numPhases
Number of phases active at all times.
Definition: blackoiltwophaseindices.hh:50
static const int numSolvents
Number of solvent components considered.
Definition: blackoiltwophaseindices.hh:53
static const int numPolymers
Number of polymer components considered.
Definition: blackoiltwophaseindices.hh:56
The primary variable and equation indices for the black-oil model.
Definition: blackoiltwophaseindices.hh:41
static const bool oilEnabled
Is phase enabled or not.
Definition: blackoiltwophaseindices.hh:45
static const int waterSaturationIdx
The index of the water saturation. For two-phase oil gas models this is disabled. ...
Definition: blackoiltwophaseindices.hh:66
static const int polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition: blackoiltwophaseindices.hh:83
static const int conti0EqIdx
Index of the continuity equation of the first phase.
Definition: blackoiltwophaseindices.hh:112