The primary variable and equation indices for the black-oil model. More...
#include <blackoiltwophaseindices.hh>
Static Public Member Functions | |
static unsigned | canonicalToActiveComponentIndex (unsigned compIdx) |
returns the index of "active" component | |
Static Public Attributes | |
static const bool | oilEnabled = disabledCanonicalCompIdx==0? false:true |
Is phase enabled or not. | |
static const bool | waterEnabled = disabledCanonicalCompIdx==1? false:true |
static const bool | gasEnabled = disabledCanonicalCompIdx==2? false:true |
static const int | numPhases = 2 |
Number of phases active at all times. | |
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 = waterEnabled ? PVOffset + 0: -10000 |
The index of the water saturation. For two-phase oil gas models this is disabled. | |
static const int | pressureSwitchIdx = PVOffset + 1 |
Index of the oil pressure in a vector of primary variables. | |
static const int | compositionSwitchIdx = gasEnabled ? PVOffset + 0: -10000 |
Index of the switching variable which determines the composition of the hydrocarbon phases. More... | |
static const int | solventSaturationIdx = PVOffset + numPhases |
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.