27 #ifndef OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP
28 #define OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP
34 #include <opm/input/eclipse/EclipseState/EclipseState.hpp>
49 template <
class EffLawT>
52 using EffLawParams =
typename EffLawT::Params;
53 using Scalar =
typename EffLawParams::Traits::Scalar;
56 using Traits =
typename EffLawParams::Traits;
71 if (config_->enableSatScaling()) {
72 assert(unscaledPoints_);
74 assert(effectiveLawParams_);
95 { unscaledPoints_ = value; }
101 {
return *unscaledPoints_; }
107 { scaledPoints_ = value; }
113 {
return scaledPoints_; }
119 {
return scaledPoints_; }
125 { effectiveLawParams_ = value; }
131 {
return *effectiveLawParams_; }
134 std::shared_ptr<EffLawParams> effectiveLawParams_;
136 std::shared_ptr<EclEpsConfig> config_;
137 std::shared_ptr<ScalingPoints> unscaledPoints_;
138 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:57
Represents the points on the X and Y axis to be scaled if endpoint scaling is used.
Definition: EclEpsScalingPoints.hpp:306
A default implementation of the parameters for the material law adapter class which implements ECL en...
Definition: EclEpsTwoPhaseLawParams.hpp:51
const EffLawParams & effectiveLawParams() const
Returns the parameter object for the effective/nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:130
void finalize()
Calculate all dependent quantities once the independent quantities of the parameter object have been ...
Definition: EclEpsTwoPhaseLawParams.hpp:67
const ScalingPoints & scaledPoints() const
Returns the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:112
void setConfig(std::shared_ptr< EclEpsConfig > value)
Set the endpoint scaling configuration object.
Definition: EclEpsTwoPhaseLawParams.hpp:82
void setEffectiveLawParams(std::shared_ptr< EffLawParams > value)
Sets the parameter object for the effective/nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:124
ScalingPoints & scaledPoints()
Returns the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:118
void setScaledPoints(const ScalingPoints &value)
Set the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:106
const ScalingPoints & unscaledPoints() const
Returns the scaling points which are seen by the nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:100
const EclEpsConfig & config() const
Returns the endpoint scaling configuration object.
Definition: EclEpsTwoPhaseLawParams.hpp:88
void setUnscaledPoints(std::shared_ptr< ScalingPoints > value)
Set the scaling points which are seen by the nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:94
Default implementation for asserting finalization of parameter objects.
Definition: EnsureFinalized.hpp:47
void finalize()
Mark the object as finalized.
Definition: EnsureFinalized.hpp:75