27 #ifndef OPM_ECL_STONE1_MATERIAL_PARAMS_HPP 28 #define OPM_ECL_STONE1_MATERIAL_PARAMS_HPP 44 template<
class Traits,
class GasOilLawT,
class OilWaterLawT>
47 using Scalar =
typename Traits::Scalar;
48 enum { numPhases = 3 };
51 using GasOilParams =
typename GasOilLawT::Params;
52 using OilWaterParams =
typename OilWaterLawT::Params;
66 krocw_ = OilWaterLawT::twoPhaseSatKrn(*oilWaterParams_, Swl_);
75 { EnsureFinalized::check();
return *gasOilParams_; }
81 { EnsureFinalized::check();
return *gasOilParams_; }
87 { gasOilParams_ = val; }
93 { EnsureFinalized::check();
return *oilWaterParams_; }
99 { EnsureFinalized::check();
return *oilWaterParams_; }
105 { oilWaterParams_ = val; }
125 { EnsureFinalized::check();
return Swl_; }
132 { EnsureFinalized::check();
return krocw_; }
144 { EnsureFinalized::check();
return eta_; }
146 template<
class Serializer>
149 serializer(*gasOilParams_);
150 serializer(*oilWaterParams_);
154 std::shared_ptr<GasOilParams> gasOilParams_;
155 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:131
void setEta(Scalar val)
Set the exponent of the extended Stone 1 model.
Definition: EclStone1MaterialParams.hpp:137
Default implementation for the parameters required by the three-phase capillary pressure/relperm Ston...
Definition: EclStone1MaterialParams.hpp:45
Scalar eta() const
Return the exponent of the extended Stone 1 model.
Definition: EclStone1MaterialParams.hpp:143
OilWaterParams & oilWaterParams()
The parameter object for the oil-water twophase law.
Definition: EclStone1MaterialParams.hpp:98
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
void setSwl(Scalar val)
Set the saturation of "connate" water.
Definition: EclStone1MaterialParams.hpp:118
Default implementation for asserting finalization of parameter objects.
void finalize()
Finish the initialization of the parameter object.
Definition: EclStone1MaterialParams.hpp:64
Scalar Swl() const
Return the saturation of "connate" water.
Definition: EclStone1MaterialParams.hpp:124
const OilWaterParams & oilWaterParams() const
The parameter object for the oil-water twophase law.
Definition: EclStone1MaterialParams.hpp:92
OPM_HOST_DEVICE void finalize()
Mark the object as finalized.
Definition: EnsureFinalized.hpp:82
GasOilParams & gasOilParams()
The parameter object for the gas-oil twophase law.
Definition: EclStone1MaterialParams.hpp:80
void setOilWaterParams(std::shared_ptr< OilWaterParams > val)
Set the parameter object for the oil-water twophase law.
Definition: EclStone1MaterialParams.hpp:104
Default implementation for asserting finalization of parameter objects.
Definition: EnsureFinalized.hpp:48
void setGasOilParams(std::shared_ptr< GasOilParams > val)
Set the parameter object for the gas-oil twophase law.
Definition: EclStone1MaterialParams.hpp:86
Class for (de-)serializing.
Definition: Serializer.hpp:94
const GasOilParams & gasOilParams() const
The parameter object for the gas-oil twophase law.
Definition: EclStone1MaterialParams.hpp:74
EclStone1MaterialParams()
The default constructor.
Definition: EclStone1MaterialParams.hpp:57