28#ifndef EWOMS_BLACK_OIL_ONE_PHASE_INDICES_HH
29#define EWOMS_BLACK_OIL_ONE_PHASE_INDICES_HH
33#include <opm/common/utility/ConstexprAssert.hpp>
42template<
unsigned numSolventsV,
44 unsigned numPolymersV,
49 unsigned canonicalCompIdx,
54 static constexpr bool oilEnabled = canonicalCompIdx == 0;
55 static constexpr bool waterEnabled = canonicalCompIdx == 1;
56 static constexpr bool gasEnabled = canonicalCompIdx == 2;
89 static constexpr int numFoam = enableFoam? 1 : 0;
92 static constexpr int numBrine = enableBrine? 1 : 0;
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:45
The primary variable and equation indices for the black-oil model.
Definition blackoilonephaseindices.hh:52
static constexpr int numBioInWat
Number of biocomponents in the water phase.
Definition blackoilonephaseindices.hh:101
static constexpr int numBrine
Number of salt equations to be considered.
Definition blackoilonephaseindices.hh:92
static constexpr int ureaConcentrationIdx
Index of the primary variable for the third MICP component.
Definition blackoilonephaseindices.hh:165
static constexpr int contiUreaEqIdx
Index of the continuity equation for the third MICP component.
Definition blackoilonephaseindices.hh:220
static constexpr int contiEnergyEqIdx
Index of the continuity equation for energy.
Definition blackoilonephaseindices.hh:240
static constexpr int numPolymers
Number of polymer components to be considered.
Definition blackoilonephaseindices.hh:83
static constexpr int foamConcentrationIdx
Index of the primary variable for the foam.
Definition blackoilonephaseindices.hh:177
static constexpr int numEq
The number of equations.
Definition blackoilonephaseindices.hh:104
static constexpr int polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition blackoilonephaseindices.hh:149
static constexpr int contiCalciteEqIdx
Index of the continuity equation for the fifth MICP component.
Definition blackoilonephaseindices.hh:228
static constexpr int numPhases
The number of fluid phases.
Definition blackoilonephaseindices.hh:95
static constexpr bool enableSolvent
Are solvents involved?
Definition blackoilonephaseindices.hh:59
static constexpr int contiZfracEqIdx
Index of the continuity equation for the first extbo component.
Definition blackoilonephaseindices.hh:200
static constexpr bool enablePolymer
Are polymers involved?
Definition blackoilonephaseindices.hh:65
static constexpr bool enableExtbo
Is extbo invoked?
Definition blackoilonephaseindices.hh:62
static constexpr int pressureSwitchIdx
Index of the switching variable which determines the pressure.
Definition blackoilonephaseindices.hh:130
static constexpr int waterSwitchIdx
Index of the switching variable which determines the composistion of the water phase.
Definition blackoilonephaseindices.hh:122
static constexpr int compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases.
Definition blackoilonephaseindices.hh:138
static constexpr int conti0EqIdx
Index of the continuity equation of the first (and only) phase.
Definition blackoilonephaseindices.hh:193
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition blackoilonephaseindices.hh:204
static constexpr int numSolvents
Number of solvent components to be considered.
Definition blackoilonephaseindices.hh:77
static constexpr int microbialConcentrationIdx
Index of the primary variable for the first MICP component.
Definition blackoilonephaseindices.hh:157
static constexpr int contiFoamEqIdx
Index of the continuity equation for the foam component.
Definition blackoilonephaseindices.hh:232
static constexpr int contiBiofilmEqIdx
Index of the continuity equation for the fourth MICP component.
Definition blackoilonephaseindices.hh:224
static constexpr int temperatureIdx
Index of the primary variable for temperature.
Definition blackoilonephaseindices.hh:185
static constexpr int calciteVolumeFractionIdx
Index of the primary variable for the fifth MICP component.
Definition blackoilonephaseindices.hh:173
static constexpr bool enableFullyImplicitThermal
Shall energy be conserved?
Definition blackoilonephaseindices.hh:68
static constexpr int contiMicrobialEqIdx
Index of the continuity equation for the first MICP component.
Definition blackoilonephaseindices.hh:212
static constexpr int numMICPs
Number of MICP components to be considered.
Definition blackoilonephaseindices.hh:98
static constexpr int numFoam
Number of foam equations to be considered.
Definition blackoilonephaseindices.hh:89
static constexpr int zFractionIdx
Index of the primary variable for the first extbo component.
Definition blackoilonephaseindices.hh:145
static constexpr int solventSaturationIdx
Index of the primary variable for the first solvent.
Definition blackoilonephaseindices.hh:141
static constexpr bool enableMICP
Is MICP involved? (microbes, oxygen, urea, biofilm, and calcite).
Definition blackoilonephaseindices.hh:71
static constexpr int numDerivatives
We may want to evaluate with more derivatives that equations, but not this time.
Definition blackoilonephaseindices.hh:108
static constexpr bool oilEnabled
Is phase enabled or not.
Definition blackoilonephaseindices.hh:54
static constexpr int oxygenConcentrationIdx
Index of the primary variable for the second MICP component.
Definition blackoilonephaseindices.hh:161
static constexpr bool enableBiofilm
Biofilm effects on co2/h2store only for two phase indices.
Definition blackoilonephaseindices.hh:74
static constexpr int contiPolymerMWEqIdx
Index of the continuity equation for the second polymer component (molecular weight).
Definition blackoilonephaseindices.hh:208
static constexpr int polymerMoleWeightIdx
Index of the primary variable for the second polymer primary variable (molecular weight).
Definition blackoilonephaseindices.hh:153
static constexpr int biofilmVolumeFractionIdx
Index of the primary variable for the fourth MICP component.
Definition blackoilonephaseindices.hh:169
static constexpr int contiOxygenEqIdx
Index of the continuity equation for the second MICP component.
Definition blackoilonephaseindices.hh:216
static constexpr int saltConcentrationIdx
Index of the primary variable for the salt.
Definition blackoilonephaseindices.hh:181
static constexpr int contiBrineEqIdx
Index of the continuity equation for the salt component.
Definition blackoilonephaseindices.hh:236
static constexpr int contiSolventEqIdx
Index of the continuity equation for the first solvent component.
Definition blackoilonephaseindices.hh:196
static constexpr int numEnergy
Number of energy equations to be considered.
Definition blackoilonephaseindices.hh:86
static constexpr int numExtbos
Number of components to be considered for extbo.
Definition blackoilonephaseindices.hh:80