28 #ifndef OPM_BLACK_OIL_VARIABLE_AND_EQUATION_INDICES_HH 29 #define OPM_BLACK_OIL_VARIABLE_AND_EQUATION_INDICES_HH 40 template<
unsigned numSolventsV,
42 unsigned numPolymersV,
55 static constexpr
bool waterEnabled =
true;
56 static constexpr
bool gasEnabled =
true;
72 static constexpr
bool enableBiofilm =
false;
73 static constexpr
int numBioInWat = 0;
88 static constexpr
int numFoam = enableFoam? 1 : 0;
91 static constexpr
int numBrine = enableBrine? 1 : 0;
134 : std::numeric_limits<unsigned>::max();
139 : std::numeric_limits<unsigned>::max();
144 : std::numeric_limits<unsigned>::max();
149 : std::numeric_limits<unsigned>::max();
153 static constexpr
unsigned oxygenConcentrationIdx = std::numeric_limits<unsigned>::max();
154 static constexpr
unsigned ureaConcentrationIdx = std::numeric_limits<unsigned>::max();
155 static constexpr
unsigned biofilmVolumeFractionIdx = std::numeric_limits<unsigned>::max();
156 static constexpr
unsigned calciteVolumeFractionIdx = std::numeric_limits<unsigned>::max();
161 : std::numeric_limits<unsigned>::max();
166 : std::numeric_limits<unsigned>::max();
172 : std::numeric_limits<unsigned>::max();
201 static constexpr
int contiOxygenEqIdx = -1000;
202 static constexpr
int contiUreaEqIdx = -1000;
203 static constexpr
int contiBiofilmEqIdx = -1000;
204 static constexpr
int contiCalciteEqIdx = -1000;
static constexpr unsigned microbialConcentrationIdx
No bioeffects for three phase indices.
Definition: blackoilvariableandequationindices.hh:152
static constexpr bool enablePolymer
Are polymers involved?
Definition: blackoilvariableandequationindices.hh:65
static constexpr int contiPolymerMWEqIdx
Index of the continuity equation for the second polymer component (molecular weight) ...
Definition: blackoilvariableandequationindices.hh:196
static constexpr unsigned saltConcentrationIdx
Index of the primary variable for the brine.
Definition: blackoilvariableandequationindices.hh:164
static constexpr int numFoam
Number of foam equations to be considered.
Definition: blackoilvariableandequationindices.hh:88
static constexpr unsigned solventSaturationIdx
Index of the primary variable for the first solvent.
Definition: blackoilvariableandequationindices.hh:132
static constexpr int contiMicrobialEqIdx
No bioeffects for three phase indices.
Definition: blackoilvariableandequationindices.hh:200
static constexpr int contiBrineEqIdx
Index of the continuity equation for the salt water component.
Definition: blackoilvariableandequationindices.hh:211
static constexpr unsigned temperatureIdx
Index of the primary variable for temperature.
Definition: blackoilvariableandequationindices.hh:169
static constexpr bool enableSolvent
Are solvents involved?
Definition: blackoilvariableandequationindices.hh:59
static constexpr bool enableFullyImplicitThermal
Shall energy be conserved?
Definition: blackoilvariableandequationindices.hh:68
static constexpr bool oilEnabled
All phases are enabled.
Definition: blackoilvariableandequationindices.hh:54
static constexpr int numSolvents
Number of solvent components to be considered.
Definition: blackoilvariableandequationindices.hh:76
static constexpr int contiFoamEqIdx
Index of the continuity equation for the foam component.
Definition: blackoilvariableandequationindices.hh:207
static constexpr unsigned polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition: blackoilvariableandequationindices.hh:142
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
static constexpr unsigned polymerMoleWeightIdx
Index of the primary variable for the second polymer primary variable (molecular weight) ...
Definition: blackoilvariableandequationindices.hh:147
The primary variable and equation indices for the three-phase black-oil model.
Definition: blackoilvariableandequationindices.hh:48
static constexpr unsigned waterSwitchIdx
Index of the switching variable which determines the composistion of the water phase.
Definition: blackoilvariableandequationindices.hh:111
static constexpr int contiSolventEqIdx
Index of the continuity equation for the first solvent component.
Definition: blackoilvariableandequationindices.hh:184
static constexpr int numExtbos
Number of components to be considered for extbo.
Definition: blackoilvariableandequationindices.hh:79
static constexpr int numDerivatives
We may want to evaluate with more derivatives that equations, but not this time.
Definition: blackoilvariableandequationindices.hh:98
static constexpr int numBrine
Number of salt equations to be considered.
Definition: blackoilvariableandequationindices.hh:91
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition: blackoilvariableandequationindices.hh:192
static constexpr unsigned zFractionIdx
Index of the primary variable for the first extbo component.
Definition: blackoilvariableandequationindices.hh:137
static constexpr int numEnergy
Number of energy equations to be considered.
Definition: blackoilvariableandequationindices.hh:85
static constexpr int contiZfracEqIdx
Index of the continuity equation for the first extbo component.
Definition: blackoilvariableandequationindices.hh:188
static constexpr unsigned compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases...
Definition: blackoilvariableandequationindices.hh:129
static constexpr bool enableMICP
No bioeffects for three phase indices.
Definition: blackoilvariableandequationindices.hh:71
static constexpr int numPolymers
Number of polymer components to be considered.
Definition: blackoilvariableandequationindices.hh:82
static constexpr unsigned foamConcentrationIdx
Index of the primary variable for the foam.
Definition: blackoilvariableandequationindices.hh:159
static constexpr int contiEnergyEqIdx
Index of the continuity equation for energy.
Definition: blackoilvariableandequationindices.hh:215
static constexpr unsigned pressureSwitchIdx
Index of the switching variable which determines the pressure.
Definition: blackoilvariableandequationindices.hh:119
static constexpr int numPhases
Number of phases active at all times.
Definition: blackoilvariableandequationindices.hh:51
static constexpr int conti0EqIdx
Index of the continuity equation of the first phase.
Definition: blackoilvariableandequationindices.hh:180
static constexpr bool enableExtbo
Is extbo invoked?
Definition: blackoilvariableandequationindices.hh:62
static constexpr int numEq
The number of equations.
Definition: blackoilvariableandequationindices.hh:94