addd simple salt/brine implementation

This commit is contained in:
Trine S. Mykkeltvedt
2019-11-07 09:39:42 +01:00
committed by Tor Harald Sandve
parent d20bec2f71
commit 5749615bd8
19 changed files with 355 additions and 15 deletions

View File

@@ -98,11 +98,13 @@ namespace Opm
// flag for polymer molecular weight related
static const bool has_polymermw = GET_PROP_VALUE(TypeTag, EnablePolymerMW);
static const bool has_foam = GET_PROP_VALUE(TypeTag, EnableFoam);
static const bool has_salt = GET_PROP_VALUE(TypeTag, EnableSaltWater);
static const int contiSolventEqIdx = Indices::contiSolventEqIdx;
static const int contiPolymerEqIdx = Indices::contiPolymerEqIdx;
// index for the polymer molecular weight continuity equation
static const int contiPolymerMWEqIdx = Indices::contiPolymerMWEqIdx;
static const int contiFoamEqIdx = Indices::contiFoamEqIdx;
static const int contiSaltWaterEqIdx = Indices::contiSaltWaterEqIdx;
// For the conversion between the surface volume rate and reservoir voidage rate
using RateConverterType = RateConverter::
@@ -113,6 +115,7 @@ namespace Opm
has_temperature,
has_energy,
compositionSwitchEnabled,
has_salt,
Indices::numPhases >;
/// Constructor
WellInterface(const Well& well, const int time_step,
@@ -385,6 +388,8 @@ namespace Opm
double wfoam() const;
double wsalt() const;
bool checkRateEconLimits(const WellEconProductionLimits& econ_production_limits,
const WellState& well_state,
Opm::DeferredLogger& deferred_logger) const;