/*! * \brief Initialize the parameters for water using an ECL deck. * * This method assumes that the deck features valid DENSITY and PVDG keywords. */ void initFromDeck(DeckConstPtr deck, EclipseStateConstPtr eclState) { if (enableThermal && (deck->hasKeyword("WATDENT") || deck->hasKeyword("VISCREF"))) setApproach(ThermalWaterPvt); else if (deck->hasKeyword("PVTW")) setApproach(ConstantCompressibilityWaterPvt); OPM_WATER_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState)); }
/*! * \brief Initialize the parameters for water using an ECL deck. * * This method assumes that the deck features valid DENSITY and PVDG keywords. */ void initFromDeck(const Deck& deck, const EclipseState& eclState) { bool enableWater = deck.hasKeyword("WATER"); if (!enableWater) return; if (enableThermal && (deck.hasKeyword("WATDENT") || deck.hasKeyword("VISCREF"))) setApproach(ThermalWaterPvt); else if (deck.hasKeyword("PVTW")) setApproach(ConstantCompressibilityWaterPvt); OPM_WATER_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState)); }
/*! * \brief Initialize the parameters for gas using an ECL deck. * * This method assumes that the deck features valid DENSITY and PVDG keywords. */ void initFromDeck(const Deck& deck, const EclipseState& eclState) { bool enableGas = deck.hasKeyword("GAS"); if (!enableGas) return; if (enableThermal && (deck.hasKeyword("TREF") || deck.hasKeyword("GASVISCT"))) setApproach(ThermalGasPvt); else if (deck.hasKeyword("PVTG")) setApproach(WetGasPvt); else if (deck.hasKeyword("PVDG")) setApproach(DryGasPvt); OPM_GAS_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState)); }
/*! * \brief Initialize the parameters for water using an ECL deck. * * This method assumes that the deck features valid DENSITY and PVTO/PVDO/PVCDO keywords. */ void initFromDeck(const Deck& deck, const EclipseState& eclState) { bool enableOil = deck.hasKeyword("OIL"); if (!enableOil) return; if (enableThermal && (deck.hasKeyword("THERMAL") || deck.hasKeyword("TEMP"))) setApproach(ThermalOilPvt); else if (deck.hasKeyword("PVCDO")) setApproach(ConstantCompressibilityOilPvt); else if (deck.hasKeyword("PVDO")) setApproach(DeadOilPvt); else if (deck.hasKeyword("PVTO")) setApproach(LiveOilPvt); OPM_OIL_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState)); }