The primary variable and equation indices for the black-oil model. More...
#include <blackoilindices.hh>
Static Public Member Functions | |
static constexpr unsigned | canonicalToActiveComponentIndex (unsigned compIdx) |
returns the index of "active" component | |
Static Public Attributes | |
static const int | numPhases = 3 |
Number of phases active at all times. | |
static const bool | oilEnabled = true |
All phases are enabled. | |
static const bool | waterEnabled = true |
static const bool | gasEnabled = true |
static const int | numSolvents = numSolventsV |
Number of solvent components considered. | |
static const int | numPolymers = numPolymersV |
Number of polymer components considered. | |
static const int | numEq = numPhases + numSolvents + numPolymers |
The number of equations. | |
static const int | waterSaturationIdx = PVOffset + 0 |
The index of the water saturation. | |
static const int | pressureSwitchIdx = PVOffset + 1 |
Index of the oil pressure in a vector of primary variables. | |
static const int | compositionSwitchIdx = PVOffset + 2 |
Index of the switching variable which determines the composition of the hydrocarbon phases. More... | |
static const int | solventSaturationIdx = compositionSwitchIdx + numSolvents |
Index of the primary variable for the first solvent. | |
static const int | polymerConcentrationIdx = solventSaturationIdx + numPolymers |
Index of the primary variable for the first polymer. | |
static const int | conti0EqIdx = PVOffset + 0 |
Index of the continuity equation of the first phase. | |
static const int | contiSolventEqIdx = PVOffset + numPhases - 1 + numSolvents |
Index of the continuity equation for the first solvent component. | |
static const int | contiPolymerEqIdx = contiSolventEqIdx + numPolymers |
Index of the continuity equation for the first polymer component. | |
The primary variable and equation indices for the black-oil model.
|
static |
Index of the switching variable which determines the composition of the hydrocarbon phases.
Depending on the phases present, this variable is either interpreted as the saturation of the gas phase, as the mole fraction of the gas component in the oil phase or as the mole fraction of the oil component in the gas phase.