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>
42template<
unsigned numSolventsV,
44 unsigned numPolymersV,
49 unsigned disabledCanonicalCompIdx,
54 static constexpr bool oilEnabled = disabledCanonicalCompIdx != 0;
55 static constexpr bool waterEnabled = disabledCanonicalCompIdx != 1;
56 static constexpr bool gasEnabled = disabledCanonicalCompIdx != 2;
89 static constexpr int numFoam = enableFoam? 1 : 0;
92 static constexpr int numBrine = enableBrine? 1 : 0;
163 static constexpr int ureaConcentrationIdx = -1000;
164 static constexpr int calciteVolumeFractionIdx = -1000;
212 static constexpr int contiUreaEqIdx = -1000;
213 static constexpr int contiCalciteEqIdx = -1000;
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
The primary variable and equation indices for the black-oil model.
Definition blackoiltwophaseindices.hh:52
static constexpr int numEnergy
Number of energy equations to be considered.
Definition blackoiltwophaseindices.hh:86
static constexpr int solventSaturationIdx
Index of the primary variable for the first solvent.
Definition blackoiltwophaseindices.hh:138
static constexpr int contiOxygenEqIdx
MICP only available for one phase indices.
Definition blackoiltwophaseindices.hh:211
static constexpr bool enableSolvent
Are solvents involved?
Definition blackoiltwophaseindices.hh:59
static constexpr int temperatureIdx
Index of the primary variable for temperature.
Definition blackoiltwophaseindices.hh:175
static constexpr bool enableBiofilm
Are biofilms involved?
Definition blackoiltwophaseindices.hh:74
static constexpr int numPhases
The number of fluid phases.
Definition blackoiltwophaseindices.hh:101
static constexpr int contiBiofilmEqIdx
Index of the continuity equation for the biofilm component.
Definition blackoiltwophaseindices.hh:207
static constexpr int contiEnergyEqIdx
Index of the continuity equation for energy.
Definition blackoiltwophaseindices.hh:224
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition blackoiltwophaseindices.hh:195
static constexpr int numBrine
Number of salt equations to be considered.
Definition blackoiltwophaseindices.hh:92
static constexpr int foamConcentrationIdx
Index of the primary variable for the foam.
Definition blackoiltwophaseindices.hh:167
static constexpr bool enableEnergy
Shall energy be conserved?
Definition blackoiltwophaseindices.hh:68
static constexpr bool oilEnabled
Is phase enabled or not.
Definition blackoiltwophaseindices.hh:54
static constexpr int oxygenConcentrationIdx
MICP only available for one phase indices.
Definition blackoiltwophaseindices.hh:162
static constexpr int numSolvents
Number of solvent components to be considered.
Definition blackoiltwophaseindices.hh:77
static constexpr int contiSolventEqIdx
Index of the continuity equation for the first solvent component.
Definition blackoiltwophaseindices.hh:187
static constexpr int contiMicrobialEqIdx
Index of the continuity equation for the first microbial component.
Definition blackoiltwophaseindices.hh:203
static constexpr int numEq
The number of equations.
Definition blackoiltwophaseindices.hh:104
static constexpr int contiBrineEqIdx
Index of the continuity equation for the salt component.
Definition blackoiltwophaseindices.hh:220
static constexpr int saltConcentrationIdx
Index of the primary variable for the salt.
Definition blackoiltwophaseindices.hh:171
static constexpr int polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition blackoiltwophaseindices.hh:146
static constexpr bool enableMICP
MICP only available for one phase indices.
Definition blackoiltwophaseindices.hh:71
static constexpr int numExtbos
Number of components to be considered for extbo.
Definition blackoiltwophaseindices.hh:80
static constexpr int numBioComp
Number of biofilm equations to be considered.
Definition blackoiltwophaseindices.hh:95
static constexpr int polymerMoleWeightIdx
Index of the primary variable for the second polymer primary variable (molecular weight).
Definition blackoiltwophaseindices.hh:150
static constexpr int numPolymers
Number of polymer components to be considered.
Definition blackoiltwophaseindices.hh:83
static constexpr int contiZfracEqIdx
Index of the continuity equation for the first extbo component.
Definition blackoiltwophaseindices.hh:191
static constexpr int contiPolymerMWEqIdx
Index of the continuity equation for the second polymer component (molecular weight).
Definition blackoiltwophaseindices.hh:199
static constexpr int conti0EqIdx
Index of the continuity equation of the first phase.
Definition blackoiltwophaseindices.hh:183
static constexpr int numBioInWat
Number of biocomponents in the water phase.
Definition blackoiltwophaseindices.hh:98
static constexpr int contiFoamEqIdx
Index of the continuity equation for the foam component.
Definition blackoiltwophaseindices.hh:216
static constexpr int pressureSwitchIdx
Index of the switching variable which determines the pressure.
Definition blackoiltwophaseindices.hh:127
static constexpr int biofilmVolumeFractionIdx
Index of the primary variable for the biofilm component.
Definition blackoiltwophaseindices.hh:158
static constexpr int numFoam
Number of foam equations to be considered.
Definition blackoiltwophaseindices.hh:89
static constexpr bool enableExtbo
Is extbo invoked?
Definition blackoiltwophaseindices.hh:62
static constexpr int microbialConcentrationIdx
Index of the primary variable for the first microbial component.
Definition blackoiltwophaseindices.hh:154
static constexpr int zFractionIdx
Index of the primary variable for the first extbo component.
Definition blackoiltwophaseindices.hh:142
static constexpr bool enablePolymer
Are polymers involved?
Definition blackoiltwophaseindices.hh:65
static constexpr int waterSwitchIdx
Index of the switching variable which determines the composistion of the water phase.
Definition blackoiltwophaseindices.hh:119
static constexpr int compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases.
Definition blackoiltwophaseindices.hh:135