28 #ifndef EWOMS_BLACK_OIL_ONE_PHASE_INDICES_HH 29 #define EWOMS_BLACK_OIL_ONE_PHASE_INDICES_HH 34 #include <opm/common/utility/ConstexprAssert.hpp> 43 template<
unsigned numSolventsV,
45 unsigned numPolymersV,
50 unsigned canonicalCompIdx,
55 static constexpr
bool oilEnabled = canonicalCompIdx == 0;
56 static constexpr
bool waterEnabled = canonicalCompIdx == 1;
57 static constexpr
bool gasEnabled = canonicalCompIdx == 2;
90 static constexpr
int numFoam = enableFoam? 1 : 0;
93 static constexpr
int numBrine = enableBrine? 1 : 0;
144 : std::numeric_limits<unsigned>::max();
149 : std::numeric_limits<unsigned>::max();
154 : std::numeric_limits<unsigned>::max();
159 : std::numeric_limits<unsigned>::max();
164 : std::numeric_limits<unsigned>::max();
169 : std::numeric_limits<unsigned>::max();
174 : std::numeric_limits<unsigned>::max();
179 : std::numeric_limits<unsigned>::max();
184 : std::numeric_limits<unsigned>::max();
189 : std::numeric_limits<unsigned>::max();
194 : std::numeric_limits<unsigned>::max();
200 : std::numeric_limits<unsigned>::max();
static constexpr unsigned saltConcentrationIdx
Index of the primary variable for the salt.
Definition: blackoilonephaseindices.hh:192
static constexpr unsigned polymerMoleWeightIdx
Index of the primary variable for the second polymer primary variable (molecular weight) ...
Definition: blackoilonephaseindices.hh:157
static constexpr int numBrine
Number of salt equations to be considered.
Definition: blackoilonephaseindices.hh:93
static constexpr unsigned pressureSwitchIdx
Index of the switching variable which determines the pressure.
Definition: blackoilonephaseindices.hh:131
static constexpr int numPhases
The number of fluid phases.
Definition: blackoilonephaseindices.hh:96
static constexpr int numEnergy
Number of energy equations to be considered.
Definition: blackoilonephaseindices.hh:87
The primary variable and equation indices for the black-oil model.
Definition: blackoilonephaseindices.hh:52
static constexpr int contiEnergyEqIdx
Index of the continuity equation for energy.
Definition: blackoilonephaseindices.hh:254
static constexpr int numEq
The number of equations.
Definition: blackoilonephaseindices.hh:105
static constexpr unsigned temperatureIdx
Index of the primary variable for temperature.
Definition: blackoilonephaseindices.hh:197
static constexpr unsigned biofilmVolumeFractionIdx
Index of the primary variable for the fourth MICP component.
Definition: blackoilonephaseindices.hh:177
static constexpr int contiBrineEqIdx
Index of the continuity equation for the salt component.
Definition: blackoilonephaseindices.hh:250
static constexpr bool enableSolvent
Are solvents involved?
Definition: blackoilonephaseindices.hh:60
static constexpr int contiCalciteEqIdx
Index of the continuity equation for the fifth MICP component.
Definition: blackoilonephaseindices.hh:242
static constexpr int contiUreaEqIdx
Index of the continuity equation for the third MICP component.
Definition: blackoilonephaseindices.hh:234
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
static constexpr unsigned ureaConcentrationIdx
Index of the primary variable for the third MICP component.
Definition: blackoilonephaseindices.hh:172
static constexpr int contiZfracEqIdx
Index of the continuity equation for the first extbo component.
Definition: blackoilonephaseindices.hh:214
static constexpr int numMICPs
Number of MICP components to be considered.
Definition: blackoilonephaseindices.hh:99
static constexpr int contiSolventEqIdx
Index of the continuity equation for the first solvent component.
Definition: blackoilonephaseindices.hh:210
static constexpr unsigned oxygenConcentrationIdx
Index of the primary variable for the second MICP component.
Definition: blackoilonephaseindices.hh:167
static constexpr bool enablePolymer
Are polymers involved?
Definition: blackoilonephaseindices.hh:66
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition: blackoilonephaseindices.hh:218
static constexpr bool enableFullyImplicitThermal
Shall energy be conserved?
Definition: blackoilonephaseindices.hh:69
static constexpr bool enableExtbo
Is extbo invoked?
Definition: blackoilonephaseindices.hh:63
static constexpr int contiPolymerMWEqIdx
Index of the continuity equation for the second polymer component (molecular weight) ...
Definition: blackoilonephaseindices.hh:222
static constexpr int contiOxygenEqIdx
Index of the continuity equation for the second MICP component.
Definition: blackoilonephaseindices.hh:230
static constexpr bool oilEnabled
Is phase enabled or not.
Definition: blackoilonephaseindices.hh:55
static constexpr int conti0EqIdx
Index of the continuity equation of the first (and only) phase.
Definition: blackoilonephaseindices.hh:207
static constexpr unsigned microbialConcentrationIdx
Index of the primary variable for the first MICP component.
Definition: blackoilonephaseindices.hh:162
static constexpr int numBioInWat
Number of biocomponents in the water phase.
Definition: blackoilonephaseindices.hh:102
static constexpr int numExtbos
Number of components to be considered for extbo.
Definition: blackoilonephaseindices.hh:81
static constexpr bool enableMICP
Is MICP involved? (microbes, oxygen, urea, biofilm, and calcite)
Definition: blackoilonephaseindices.hh:72
static constexpr int numFoam
Number of foam equations to be considered.
Definition: blackoilonephaseindices.hh:90
static constexpr int numDerivatives
We may want to evaluate with more derivatives that equations, but not this time.
Definition: blackoilonephaseindices.hh:109
static constexpr unsigned zFractionIdx
Index of the primary variable for the first extbo component.
Definition: blackoilonephaseindices.hh:147
static constexpr unsigned compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases...
Definition: blackoilonephaseindices.hh:139
static constexpr unsigned polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition: blackoilonephaseindices.hh:152
static constexpr int numSolvents
Number of solvent components to be considered.
Definition: blackoilonephaseindices.hh:78
static constexpr int contiBiofilmEqIdx
Index of the continuity equation for the fourth MICP component.
Definition: blackoilonephaseindices.hh:238
static constexpr int contiMicrobialEqIdx
Index of the continuity equation for the first MICP component.
Definition: blackoilonephaseindices.hh:226
static constexpr unsigned calciteVolumeFractionIdx
Index of the primary variable for the fifth MICP component.
Definition: blackoilonephaseindices.hh:182
static constexpr unsigned solventSaturationIdx
Index of the primary variable for the first solvent.
Definition: blackoilonephaseindices.hh:142
static constexpr unsigned foamConcentrationIdx
Index of the primary variable for the foam.
Definition: blackoilonephaseindices.hh:187
static constexpr int contiFoamEqIdx
Index of the continuity equation for the foam component.
Definition: blackoilonephaseindices.hh:246
static constexpr int numPolymers
Number of polymer components to be considered.
Definition: blackoilonephaseindices.hh:84
static constexpr bool enableBiofilm
Biofilm effects on co2/h2store only for two phase indices.
Definition: blackoilonephaseindices.hh:75
static constexpr unsigned waterSwitchIdx
Index of the switching variable which determines the composistion of the water phase.
Definition: blackoilonephaseindices.hh:123