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;
166 static constexpr int ureaConcentrationIdx = -1000;
167 static constexpr int calciteVolumeFractionIdx = -1000;
215 static constexpr int contiUreaEqIdx = -1000;
216 static constexpr int contiCalciteEqIdx = -1000;
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 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:141
static constexpr int contiOxygenEqIdx
MICP only available for one phase indices.
Definition blackoiltwophaseindices.hh:214
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:178
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:210
static constexpr int contiEnergyEqIdx
Index of the continuity equation for energy.
Definition blackoiltwophaseindices.hh:227
static constexpr int contiPolymerEqIdx
Index of the continuity equation for the first polymer component.
Definition blackoiltwophaseindices.hh:198
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:170
static constexpr int numDerivatives
We may want to evaluate with more derivatives that equations, but not this time.
Definition blackoiltwophaseindices.hh:108
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:165
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:190
static constexpr int contiMicrobialEqIdx
Index of the continuity equation for the first microbial component.
Definition blackoiltwophaseindices.hh:206
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:223
static constexpr int saltConcentrationIdx
Index of the primary variable for the salt.
Definition blackoiltwophaseindices.hh:174
static constexpr int polymerConcentrationIdx
Index of the primary variable for the first polymer.
Definition blackoiltwophaseindices.hh:149
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:153
static constexpr int numPolymers
Number of polymer components to be considered.
Definition blackoiltwophaseindices.hh:83
static constexpr bool enableFullyImplicitThermal
Shall energy be conserved?
Definition blackoiltwophaseindices.hh:68
static constexpr int contiZfracEqIdx
Index of the continuity equation for the first extbo component.
Definition blackoiltwophaseindices.hh:194
static constexpr int contiPolymerMWEqIdx
Index of the continuity equation for the second polymer component (molecular weight).
Definition blackoiltwophaseindices.hh:202
static constexpr int conti0EqIdx
Index of the continuity equation of the first phase.
Definition blackoiltwophaseindices.hh:186
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:219
static constexpr int pressureSwitchIdx
Index of the switching variable which determines the pressure.
Definition blackoiltwophaseindices.hh:130
static constexpr int biofilmVolumeFractionIdx
Index of the primary variable for the biofilm component.
Definition blackoiltwophaseindices.hh:161
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:157
static constexpr int zFractionIdx
Index of the primary variable for the first extbo component.
Definition blackoiltwophaseindices.hh:145
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:122
static constexpr int compositionSwitchIdx
Index of the switching variable which determines the composition of the hydrocarbon phases.
Definition blackoiltwophaseindices.hh:138