27 #ifndef OPM_ECL_STONE1_MATERIAL_PARAMS_HPP 28 #define OPM_ECL_STONE1_MATERIAL_PARAMS_HPP 32 #include <type_traits> 46 template<
class Traits,
class GasOilLawT,
class OilWaterLawT>
49 typedef typename Traits::Scalar Scalar;
50 enum { numPhases = 3 };
53 typedef typename GasOilLawT::Params GasOilParams;
54 typedef typename OilWaterLawT::Params OilWaterParams;
68 krocw_ = OilWaterLawT::twoPhaseSatKrn(*oilWaterParams_, Swl_);
77 { EnsureFinalized::check();
return *gasOilParams_; }
83 { EnsureFinalized::check();
return *gasOilParams_; }
89 { gasOilParams_ = val; }
95 { EnsureFinalized::check();
return *oilWaterParams_; }
101 { EnsureFinalized::check();
return *oilWaterParams_; }
107 { oilWaterParams_ = val; }
127 { EnsureFinalized::check();
return Swl_; }
134 { EnsureFinalized::check();
return krocw_; }
146 { EnsureFinalized::check();
return eta_; }
149 std::shared_ptr<GasOilParams> gasOilParams_;
150 std::shared_ptr<OilWaterParams> oilWaterParams_;
Scalar krocw() const
Return the oil relperm for the oil-water system at the connate water saturation.
Definition: EclStone1MaterialParams.hpp:133
void setEta(Scalar val)
Set the exponent of the extended Stone 1 model.
Definition: EclStone1MaterialParams.hpp:139
Default implementation for the parameters required by the three-phase capillary pressure/relperm Ston...
Definition: EclStone1MaterialParams.hpp:47
Scalar eta() const
Return the exponent of the extended Stone 1 model.
Definition: EclStone1MaterialParams.hpp:145
OilWaterParams & oilWaterParams()
The parameter object for the oil-water twophase law.
Definition: EclStone1MaterialParams.hpp:100
Definition: Air_Mesitylene.hpp:33
void setSwl(Scalar val)
Set the saturation of "connate" water.
Definition: EclStone1MaterialParams.hpp:120
Default implementation for asserting finalization of parameter objects.
void finalize()
Finish the initialization of the parameter object.
Definition: EclStone1MaterialParams.hpp:66
Scalar Swl() const
Return the saturation of "connate" water.
Definition: EclStone1MaterialParams.hpp:126
const OilWaterParams & oilWaterParams() const
The parameter object for the oil-water twophase law.
Definition: EclStone1MaterialParams.hpp:94
void finalize()
Mark the object as finalized.
Definition: EnsureFinalized.hpp:77
GasOilParams & gasOilParams()
The parameter object for the gas-oil twophase law.
Definition: EclStone1MaterialParams.hpp:82
void setOilWaterParams(std::shared_ptr< OilWaterParams > val)
Set the parameter object for the oil-water twophase law.
Definition: EclStone1MaterialParams.hpp:106
Default implementation for asserting finalization of parameter objects.
Definition: EnsureFinalized.hpp:46
void setGasOilParams(std::shared_ptr< GasOilParams > val)
Set the parameter object for the gas-oil twophase law.
Definition: EclStone1MaterialParams.hpp:88
const GasOilParams & gasOilParams() const
The parameter object for the gas-oil twophase law.
Definition: EclStone1MaterialParams.hpp:76
EclStone1MaterialParams()
The default constructor.
Definition: EclStone1MaterialParams.hpp:59