28 #ifndef EWOMS_BLACK_OIL_TWO_PHASE_INDICES_HH 29 #define EWOMS_BLACK_OIL_TWO_PHASE_INDICES_HH 31 #include <opm/common/utility/ConstexprAssert.hpp> 43 template<
unsigned numSolventsV,
45 unsigned numPolymersV,
50 unsigned disabledCanonicalCompIdx,
55 static constexpr
bool oilEnabled = disabledCanonicalCompIdx != 0;
56 static constexpr
bool waterEnabled = disabledCanonicalCompIdx != 1;
57 static constexpr
bool gasEnabled = disabledCanonicalCompIdx != 2;
90 static constexpr
int numFoam = enableFoam? 1 : 0;
93 static constexpr
int numBrine = enableBrine? 1 : 0;
124 waterEnabled ? PVOffset + 0
125 : std::numeric_limits<unsigned>::max();
134 waterEnabled ? PVOffset + 1
145 : std::numeric_limits<unsigned>::max();
150 : std::numeric_limits<unsigned>::max();
155 : std::numeric_limits<unsigned>::max();
160 : std::numeric_limits<unsigned>::max();
165 : std::numeric_limits<unsigned>::max();
170 : std::numeric_limits<unsigned>::max();
175 : std::numeric_limits<unsigned>::max();
179 static constexpr
unsigned ureaConcentrationIdx = std::numeric_limits<unsigned>::max();
180 static constexpr
unsigned calciteVolumeFractionIdx = std::numeric_limits<unsigned>::max();
185 : std::numeric_limits<unsigned>::max();
190 : std::numeric_limits<unsigned>::max();
196 : std::numeric_limits<unsigned>::max();
232 static constexpr
int contiUreaEqIdx = -1000;
233 static constexpr
int contiCalciteEqIdx = -1000;
static constexpr unsigned solventSaturationIdx
Index of the primary variable for the first solvent.
Definition: blackoiltwophaseindices.hh:148
static constexpr int contiEnergyEqIdx
Index of the continuity equation for energy.
Definition: blackoiltwophaseindices.hh:244
static constexpr bool enableBiofilm
Are biofilms involved?
Definition: blackoiltwophaseindices.hh:75
static constexpr int numEnergy
Number of energy equations to be considered.
Definition: blackoiltwophaseindices.hh:87
static constexpr int numBrine
Number of salt equations to be considered.
Definition: blackoiltwophaseindices.hh:93
static constexpr bool enableSolvent
Are solvents involved?
Definition: blackoiltwophaseindices.hh:60
static constexpr unsigned waterSwitchIdx
Index of the switching variable which determines the composistion of the water phase.
Definition: blackoiltwophaseindices.hh:123
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition: blackoiltwophaseindices.hh:215
static constexpr int contiPolymerMWEqIdx
Index of the continuity equation for the second polymer component (molecular weight) ...
Definition: blackoiltwophaseindices.hh:219
static constexpr unsigned saltConcentrationIdx
Index of the primary variable for the salt.
Definition: blackoiltwophaseindices.hh:188
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
static constexpr bool enableMICP
MICP only available for one phase indices.
Definition: blackoiltwophaseindices.hh:72
The primary variable and equation indices for the black-oil model.
Definition: blackoiltwophaseindices.hh:52
static constexpr int conti0EqIdx
Index of the continuity equation of the first phase.
Definition: blackoiltwophaseindices.hh:203
static constexpr unsigned compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases...
Definition: blackoiltwophaseindices.hh:143
static constexpr unsigned temperatureIdx
Index of the primary variable for temperature.
Definition: blackoiltwophaseindices.hh:193
static constexpr bool enableFullyImplicitThermal
Shall energy be conserved?
Definition: blackoiltwophaseindices.hh:69
static constexpr int contiBrineEqIdx
Index of the continuity equation for the salt component.
Definition: blackoiltwophaseindices.hh:240
static constexpr int numDerivatives
We may want to evaluate with more derivatives that equations, but not this time.
Definition: blackoiltwophaseindices.hh:109
static constexpr int numPhases
The number of fluid phases.
Definition: blackoiltwophaseindices.hh:102
static constexpr int numSolvents
Number of solvent components to be considered.
Definition: blackoiltwophaseindices.hh:78
static constexpr bool enablePolymer
Are polymers involved?
Definition: blackoiltwophaseindices.hh:66
static constexpr unsigned polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition: blackoiltwophaseindices.hh:158
static constexpr int numEq
The number of equations.
Definition: blackoiltwophaseindices.hh:105
static constexpr unsigned pressureSwitchIdx
Index of the switching variable which determines the pressure.
Definition: blackoiltwophaseindices.hh:133
static constexpr int contiBiofilmEqIdx
Index of the continuity equation for the biofilm component.
Definition: blackoiltwophaseindices.hh:227
static constexpr bool enableExtbo
Is extbo invoked?
Definition: blackoiltwophaseindices.hh:63
static constexpr int contiZfracEqIdx
Index of the continuity equation for the first extbo component.
Definition: blackoiltwophaseindices.hh:211
static constexpr int numBioInWat
Number of biocomponents in the water phase.
Definition: blackoiltwophaseindices.hh:99
static constexpr int numBioComp
Number of biofilm equations to be considered.
Definition: blackoiltwophaseindices.hh:96
static constexpr int contiSolventEqIdx
Index of the continuity equation for the first solvent component.
Definition: blackoiltwophaseindices.hh:207
static constexpr int contiOxygenEqIdx
MICP only available for one phase indices.
Definition: blackoiltwophaseindices.hh:231
static constexpr int numExtbos
Number of components to be considered for extbo.
Definition: blackoiltwophaseindices.hh:81
static constexpr unsigned oxygenConcentrationIdx
MICP only available for one phase indices.
Definition: blackoiltwophaseindices.hh:178
static constexpr unsigned zFractionIdx
Index of the primary variable for the first extbo component.
Definition: blackoiltwophaseindices.hh:153
static constexpr int numPolymers
Number of polymer components to be considered.
Definition: blackoiltwophaseindices.hh:84
static constexpr bool oilEnabled
Is phase enabled or not.
Definition: blackoiltwophaseindices.hh:55
static constexpr unsigned polymerMoleWeightIdx
Index of the primary variable for the second polymer primary variable (molecular weight) ...
Definition: blackoiltwophaseindices.hh:163
static constexpr unsigned biofilmVolumeFractionIdx
Index of the primary variable for the biofilm component.
Definition: blackoiltwophaseindices.hh:173
static constexpr int contiFoamEqIdx
Index of the continuity equation for the foam component.
Definition: blackoiltwophaseindices.hh:236
static constexpr int contiMicrobialEqIdx
Index of the continuity equation for the first microbial component.
Definition: blackoiltwophaseindices.hh:223
static constexpr unsigned foamConcentrationIdx
Index of the primary variable for the foam.
Definition: blackoiltwophaseindices.hh:183
static constexpr unsigned microbialConcentrationIdx
Index of the primary variable for the first microbial component.
Definition: blackoiltwophaseindices.hh:168
static constexpr int numFoam
Number of foam equations to be considered.
Definition: blackoiltwophaseindices.hh:90