mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
renaming saltwater-->brine and review comments
This commit is contained in:
committed by
Tor Harald Sandve
parent
106c4e3616
commit
587fa71e04
@@ -35,7 +35,7 @@ namespace Opm {
|
||||
*
|
||||
* \brief The primary variable and equation indices for the black-oil model.
|
||||
*/
|
||||
template <unsigned numSolventsV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableSaltWater, unsigned PVOffset>
|
||||
template <unsigned numSolventsV, unsigned numPolymersV, unsigned numEnergyV, bool enableFoam, bool enableBrine, unsigned PVOffset>
|
||||
struct BlackOilIndices
|
||||
{
|
||||
//! Number of phases active at all times
|
||||
@@ -68,10 +68,10 @@ struct BlackOilIndices
|
||||
static const int numFoam = enableFoam? 1 : 0;
|
||||
|
||||
//! Number of salt equations to be considered
|
||||
static const int numSaltWater = enableSaltWater? 1 : 0;
|
||||
static const int numBrine = enableBrine? 1 : 0;
|
||||
|
||||
//! The number of equations
|
||||
static const int numEq = numPhases + numSolvents + numPolymers + numEnergy + numFoam + numSaltWater;
|
||||
static const int numEq = numPhases + numSolvents + numPolymers + numEnergy + numFoam + numBrine;
|
||||
|
||||
//! \brief returns the index of "active" component
|
||||
static constexpr unsigned canonicalToActiveComponentIndex(unsigned compIdx)
|
||||
@@ -116,13 +116,13 @@ struct BlackOilIndices
|
||||
static const int foamConcentrationIdx =
|
||||
enableFoam ? PVOffset + numPhases + numSolvents + numPolymers : -1000;
|
||||
|
||||
//! Index of the primary variable for the salt water
|
||||
//! Index of the primary variable for the brine
|
||||
static const int saltConcentrationIdx =
|
||||
enableSaltWater ? PVOffset + numPhases + numSolvents + numPolymers + numFoam : -1000;
|
||||
enableBrine ? PVOffset + numPhases + numSolvents + numPolymers + numFoam : -1000;
|
||||
|
||||
//! Index of the primary variable for temperature
|
||||
static const int temperatureIdx =
|
||||
enableEnergy ? PVOffset + numPhases + numSolvents + numPolymers + numFoam + numSaltWater : - 1000;
|
||||
enableEnergy ? PVOffset + numPhases + numSolvents + numPolymers + numFoam + numBrine : - 1000;
|
||||
|
||||
|
||||
////////
|
||||
@@ -150,13 +150,13 @@ struct BlackOilIndices
|
||||
enableFoam ? PVOffset + numPhases + numSolvents + numPolymers : -1000;
|
||||
|
||||
//! Index of the continuity equation for the salt water component
|
||||
static const int contiSaltWaterEqIdx =
|
||||
enableSaltWater ? PVOffset + numPhases + numSolvents + numPolymers + numFoam : -1000;
|
||||
static const int contiBrineEqIdx =
|
||||
enableBrine ? PVOffset + numPhases + numSolvents + numPolymers + numFoam : -1000;
|
||||
|
||||
|
||||
//! Index of the continuity equation for energy
|
||||
static const int contiEnergyEqIdx =
|
||||
enableEnergy ? PVOffset + numPhases + numSolvents + numPolymers + numFoam + numSaltWater: -1000;
|
||||
enableEnergy ? PVOffset + numPhases + numSolvents + numPolymers + numFoam + numBrine: -1000;
|
||||
};
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
Reference in New Issue
Block a user