27#ifndef OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP
28#define OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP
45template <
class EffLawT>
48 using EffLawParams =
typename EffLawT::Params;
49 using Scalar =
typename EffLawParams::Traits::Scalar;
52 using Traits =
typename EffLawParams::Traits;
55 EclEpsTwoPhaseLawParams()
66 if (config_.enableSatScaling()) {
67 assert(unscaledPoints_);
69 assert(effectiveLawParams_);
71 EnsureFinalized :: finalize();
90 { unscaledPoints_ = value.get(); }
96 {
return *unscaledPoints_; }
102 { scaledPoints_ = value; }
108 {
return scaledPoints_; }
114 {
return scaledPoints_; }
116 Scalar SnTrapped([[maybe_unused]]
bool maximumTrapping)
const
121 Scalar SnStranded([[maybe_unused]] Scalar sg, [[maybe_unused]] Scalar krg)
const
126 Scalar SwTrapped()
const
135 { effectiveLawParams_ = value.get(); }
141 {
return *effectiveLawParams_; }
143 template<
class Serializer>
153 EffLawParams* effectiveLawParams_{};
154 EclEpsConfig config_;
155 ScalingPoints* unscaledPoints_{};
156 ScalingPoints scaledPoints_;
Specifies the configuration used by the endpoint scaling code.
Default implementation for asserting finalization of parameter objects.
Specifies the configuration used by the endpoint scaling code.
Definition EclEpsConfig.hpp:54
Represents the points on the X and Y axis to be scaled if endpoint scaling is used.
Definition EclEpsScalingPoints.hpp:151
void finalize()
Calculate all dependent quantities once the independent quantities of the parameter object have been ...
Definition EclEpsTwoPhaseLawParams.hpp:63
const EclEpsConfig & config() const
Returns the endpoint scaling configuration object.
Definition EclEpsTwoPhaseLawParams.hpp:83
ScalingPoints & scaledPoints()
Returns the scaling points which are seen by the physical model.
Definition EclEpsTwoPhaseLawParams.hpp:113
const ScalingPoints & unscaledPoints() const
Returns the scaling points which are seen by the nested material law.
Definition EclEpsTwoPhaseLawParams.hpp:95
void setEffectiveLawParams(std::shared_ptr< EffLawParams > value)
Sets the parameter object for the effective/nested material law.
Definition EclEpsTwoPhaseLawParams.hpp:134
void setConfig(const EclEpsConfig &value)
Set the endpoint scaling configuration object.
Definition EclEpsTwoPhaseLawParams.hpp:77
const EffLawParams & effectiveLawParams() const
Returns the parameter object for the effective/nested material law.
Definition EclEpsTwoPhaseLawParams.hpp:140
void setScaledPoints(const ScalingPoints &value)
Set the scaling points which are seen by the physical model.
Definition EclEpsTwoPhaseLawParams.hpp:101
const ScalingPoints & scaledPoints() const
Returns the scaling points which are seen by the physical model.
Definition EclEpsTwoPhaseLawParams.hpp:107
void setUnscaledPoints(std::shared_ptr< ScalingPoints > value)
Set the scaling points which are seen by the nested material law.
Definition EclEpsTwoPhaseLawParams.hpp:89
OPM_HOST_DEVICE EnsureFinalized()
The default constructor.
Definition EnsureFinalized.hpp:58
Class for (de-)serializing.
Definition Serializer.hpp:94
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30