27#ifndef OPM_ECL_STONE1_MATERIAL_PARAMS_HPP
28#define OPM_ECL_STONE1_MATERIAL_PARAMS_HPP
44template<
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_);
68 EnsureFinalized :: finalize();
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_;
Default implementation for asserting finalization of parameter objects.
Default implementation for the parameters required by the three-phase capillary pressure/relperm Ston...
Definition EclStone1MaterialParams.hpp:46
const GasOilParams & gasOilParams() const
The parameter object for the gas-oil twophase law.
Definition EclStone1MaterialParams.hpp:74
OilWaterParams & oilWaterParams()
The parameter object for the oil-water twophase law.
Definition EclStone1MaterialParams.hpp:98
void setGasOilParams(std::shared_ptr< GasOilParams > val)
Set the parameter object for the gas-oil twophase law.
Definition EclStone1MaterialParams.hpp:86
void finalize()
Finish the initialization of the parameter object.
Definition EclStone1MaterialParams.hpp:64
void setEta(Scalar val)
Set the exponent of the extended Stone 1 model.
Definition EclStone1MaterialParams.hpp:137
Scalar Swl() const
Return the saturation of "connate" water.
Definition EclStone1MaterialParams.hpp:124
Scalar eta() const
Return the exponent of the extended Stone 1 model.
Definition EclStone1MaterialParams.hpp:143
void setOilWaterParams(std::shared_ptr< OilWaterParams > val)
Set the parameter object for the oil-water twophase law.
Definition EclStone1MaterialParams.hpp:104
void setSwl(Scalar val)
Set the saturation of "connate" water.
Definition EclStone1MaterialParams.hpp:118
Scalar krocw() const
Return the oil relperm for the oil-water system at the connate water saturation.
Definition EclStone1MaterialParams.hpp:131
GasOilParams & gasOilParams()
The parameter object for the gas-oil twophase law.
Definition EclStone1MaterialParams.hpp:80
EclStone1MaterialParams()
The default constructor.
Definition EclStone1MaterialParams.hpp:57
const OilWaterParams & oilWaterParams() const
The parameter object for the oil-water twophase law.
Definition EclStone1MaterialParams.hpp:92
Default implementation for asserting finalization of parameter objects.
Definition EnsureFinalized.hpp:47
Class for (de-)serializing.
Definition Serializer.hpp:84
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30