27#ifndef OPM_ECL_STONE2_MATERIAL_PARAMS_HPP
28#define OPM_ECL_STONE2_MATERIAL_PARAMS_HPP
44template<
class Traits,
class GasOilParamsT,
class OilWaterParamsT>
47 using Scalar =
typename Traits::Scalar;
48 enum { numPhases = 3 };
52 using GasOilParams = GasOilParamsT;
53 using OilWaterParams = OilWaterParamsT;
66 { EnsureFinalized::check();
return *gasOilParams_; }
72 { EnsureFinalized::check();
return *gasOilParams_; }
78 { gasOilParams_ = val; }
84 { EnsureFinalized::check();
return *oilWaterParams_; }
90 { EnsureFinalized::check();
return *oilWaterParams_; }
96 { oilWaterParams_ = val; }
116 { EnsureFinalized::check();
return Swl_; }
118 template<
class Serializer>
123 serializer(*gasOilParams_);
124 serializer(*oilWaterParams_);
128 std::shared_ptr<GasOilParams> gasOilParams_;
129 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 EclStone2MaterialParams.hpp:46
Scalar Swl() const
Return the saturation of "connate" water.
Definition EclStone2MaterialParams.hpp:115
const GasOilParams & gasOilParams() const
The parameter object for the gas-oil twophase law.
Definition EclStone2MaterialParams.hpp:65
void setSwl(Scalar val)
Set the saturation of "connate" water.
Definition EclStone2MaterialParams.hpp:109
EclStone2MaterialParams()
The default constructor.
Definition EclStone2MaterialParams.hpp:58
OilWaterParams & oilWaterParams()
The parameter object for the oil-water twophase law.
Definition EclStone2MaterialParams.hpp:89
GasOilParams & gasOilParams()
The parameter object for the gas-oil twophase law.
Definition EclStone2MaterialParams.hpp:71
void setGasOilParams(std::shared_ptr< GasOilParams > val)
Set the parameter object for the gas-oil twophase law.
Definition EclStone2MaterialParams.hpp:77
const OilWaterParams & oilWaterParams() const
The parameter object for the oil-water twophase law.
Definition EclStone2MaterialParams.hpp:83
void setOilWaterParams(std::shared_ptr< OilWaterParams > val)
Set the parameter object for the oil-water twophase law.
Definition EclStone2MaterialParams.hpp:95
Default implementation for asserting finalization of parameter objects.
Definition EnsureFinalized.hpp:47
void finalize()
Mark the object as finalized.
Definition EnsureFinalized.hpp:75
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