27 #ifndef OPM_ECL_DEFAULT_MATERIAL_PARAMS_HPP 28 #define OPM_ECL_DEFAULT_MATERIAL_PARAMS_HPP 32 #include <opm/common/utility/gpuDecorators.hpp> 45 template<
class Traits,
class GasOilParamsT,
class OilWaterParamsT>
48 using Scalar =
typename Traits::Scalar;
49 enum { numPhases = 3 };
53 using GasOilParams = GasOilParamsT;
54 using OilWaterParams = OilWaterParamsT;
67 { EnsureFinalized::check();
return gasOilParams_; }
73 { EnsureFinalized::check();
return gasOilParams_; }
79 { gasOilParams_ = *val; }
85 { EnsureFinalized::check();
return oilWaterParams_; }
91 { EnsureFinalized::check();
return oilWaterParams_; }
97 { oilWaterParams_ = *val; }
116 OPM_HOST_DEVICE Scalar
Swl()
const 117 { EnsureFinalized::check();
return Swl_; }
131 template<
class Serializer>
136 serializer(gasOilParams_);
137 serializer(oilWaterParams_);
141 GasOilParams gasOilParams_;
142 OilWaterParams oilWaterParams_;
OPM_HOST_DEVICE OilWaterParams & oilWaterParams()
The parameter object for the oil-water twophase law.
Definition: EclDefaultMaterialParams.hpp:90
OPM_HOST_DEVICE EclDefaultMaterialParams()
The default constructor.
Definition: EclDefaultMaterialParams.hpp:59
OPM_HOST_DEVICE GasOilParams & gasOilParams()
The parameter object for the gas-oil twophase law.
Definition: EclDefaultMaterialParams.hpp:72
bool inconsistentHysteresisUpdate() const
Specify whether inconsistent saturations should be used to update the hysteresis parameters.
Definition: EclDefaultMaterialParams.hpp:128
Default implementation for the parameters required by the default three-phase capillary pressure mode...
Definition: EclDefaultMaterialParams.hpp:46
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Default implementation for asserting finalization of parameter objects.
OPM_HOST_DEVICE const OilWaterParams & oilWaterParams() const
The parameter object for the oil-water twophase law.
Definition: EclDefaultMaterialParams.hpp:84
void setGasOilParams(std::shared_ptr< GasOilParams > val)
Set the parameter object for the gas-oil twophase law.
Definition: EclDefaultMaterialParams.hpp:78
OPM_HOST_DEVICE void finalize()
Mark the object as finalized.
Definition: EnsureFinalized.hpp:82
OPM_HOST_DEVICE const GasOilParams & gasOilParams() const
The parameter object for the gas-oil twophase law.
Definition: EclDefaultMaterialParams.hpp:66
void setSwl(Scalar val)
Set the saturation of "connate" water.
Definition: EclDefaultMaterialParams.hpp:110
Default implementation for asserting finalization of parameter objects.
Definition: EnsureFinalized.hpp:48
void setOilWaterParams(std::shared_ptr< OilWaterParams > val)
Set the parameter object for the oil-water twophase law.
Definition: EclDefaultMaterialParams.hpp:96
Class for (de-)serializing.
Definition: Serializer.hpp:95
OPM_HOST_DEVICE Scalar Swl() const
Return the saturation of "connate" water.
Definition: EclDefaultMaterialParams.hpp:116