28#ifndef OPM_BLACK_OIL_VARIABLE_AND_EQUATION_INDICES_HH
29#define OPM_BLACK_OIL_VARIABLE_AND_EQUATION_INDICES_HH
38template<
unsigned numSolventsV,
40 unsigned numPolymersV,
53 static constexpr bool waterEnabled =
true;
54 static constexpr bool gasEnabled =
true;
70 static constexpr bool enableBiofilm =
false;
71 static constexpr int numBioInWat = 0;
86 static constexpr int numFoam = enableFoam? 1 : 0;
89 static constexpr int numBrine = enableBrine? 1 : 0;
147 static constexpr int oxygenConcentrationIdx = -1000;
148 static constexpr int ureaConcentrationIdx = -1000;
149 static constexpr int biofilmVolumeFractionIdx = -1000;
150 static constexpr int calciteVolumeFractionIdx = -1000;
191 static constexpr int contiOxygenEqIdx = -1000;
192 static constexpr int contiUreaEqIdx = -1000;
193 static constexpr int contiBiofilmEqIdx = -1000;
194 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 three-phase black-oil model.
Definition blackoilvariableandequationindices.hh:47
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numBrine static constexpr int numBrine
Definition blackoilvariableandequationindices.hh:89
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::enableExtbo static constexpr bool enableExtbo
Definition blackoilvariableandequationindices.hh:60
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::compositionSwitchIdx static constexpr int compositionSwitchIdx
Definition blackoilvariableandequationindices.hh:127
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numPhases static constexpr int numPhases
Definition blackoilvariableandequationindices.hh:49
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiMicrobialEqIdx static constexpr int contiMicrobialEqIdx
Definition blackoilvariableandequationindices.hh:190
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiZfracEqIdx static constexpr int contiZfracEqIdx
Definition blackoilvariableandequationindices.hh:178
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numFoam static constexpr int numFoam
Definition blackoilvariableandequationindices.hh:86
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numExtbos static constexpr int numExtbos
Definition blackoilvariableandequationindices.hh:77
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numEq static constexpr int numEq
Definition blackoilvariableandequationindices.hh:92
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiPolymerMWEqIdx static constexpr int contiPolymerMWEqIdx
Definition blackoilvariableandequationindices.hh:186
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::saltConcentrationIdx static constexpr int saltConcentrationIdx
Definition blackoilvariableandequationindices.hh:157
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::waterSwitchIdx static constexpr int waterSwitchIdx
Definition blackoilvariableandequationindices.hh:109
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::polymerConcentrationIdx static constexpr int polymerConcentrationIdx
Definition blackoilvariableandequationindices.hh:138
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::temperatureIdx static constexpr int temperatureIdx
Definition blackoilvariableandequationindices.hh:161
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::enableFullyImplicitThermal static constexpr bool enableFullyImplicitThermal
Definition blackoilvariableandequationindices.hh:66
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::zFractionIdx static constexpr int zFractionIdx
Definition blackoilvariableandequationindices.hh:134
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numSolvents static constexpr int numSolvents
Definition blackoilvariableandequationindices.hh:74
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::foamConcentrationIdx static constexpr int foamConcentrationIdx
Definition blackoilvariableandequationindices.hh:153
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numPolymers static constexpr int numPolymers
Definition blackoilvariableandequationindices.hh:80
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiEnergyEqIdx static constexpr int contiEnergyEqIdx
Definition blackoilvariableandequationindices.hh:205
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numEnergy static constexpr int numEnergy
Definition blackoilvariableandequationindices.hh:83
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::enableMICP static constexpr bool enableMICP
Definition blackoilvariableandequationindices.hh:69
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiFoamEqIdx static constexpr int contiFoamEqIdx
Definition blackoilvariableandequationindices.hh:197
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::conti0EqIdx static constexpr int conti0EqIdx
Definition blackoilvariableandequationindices.hh:170
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::microbialConcentrationIdx static constexpr int microbialConcentrationIdx
Definition blackoilvariableandequationindices.hh:146
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::solventSaturationIdx static constexpr int solventSaturationIdx
Definition blackoilvariableandequationindices.hh:130
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::oilEnabled static constexpr bool oilEnabled
Definition blackoilvariableandequationindices.hh:52
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiPolymerEqIdx static constexpr int contiPolymerEqIdx
Definition blackoilvariableandequationindices.hh:182
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::polymerMoleWeightIdx static constexpr int polymerMoleWeightIdx
Definition blackoilvariableandequationindices.hh:142
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiSolventEqIdx static constexpr int contiSolventEqIdx
Definition blackoilvariableandequationindices.hh:174
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::numDerivatives static constexpr int numDerivatives
Definition blackoilvariableandequationindices.hh:96
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::enableSolvent static constexpr bool enableSolvent
Definition blackoilvariableandequationindices.hh:57
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::pressureSwitchIdx static constexpr int pressureSwitchIdx
Definition blackoilvariableandequationindices.hh:117
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::contiBrineEqIdx static constexpr int contiBrineEqIdx
Definition blackoilvariableandequationindices.hh:201
Opm::BlackOilVariableAndEquationIndices< getPropValue< TypeTag, Properties::EnableSolvent >(), getPropValue< TypeTag, Properties::EnableExtbo >(), getPropValue< TypeTag, Properties::EnablePolymer >(), getPropValue< TypeTag, Properties::EnergyModuleType >()==EnergyModules::FullyImplicitThermal, getPropValue< TypeTag, Properties::EnableFoam >(), getPropValue< TypeTag, Properties::EnableBrine >(), 0, getPropValue< TypeTag, Properties::EnableBioeffects >()>::enablePolymer static constexpr bool enablePolymer
Definition blackoilvariableandequationindices.hh:63