27 #ifndef OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP
28 #define OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP
34 #include <opm/parser/eclipse/Deck/Deck.hpp>
35 #include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
52 template <
class EffLawT>
55 typedef typename EffLawT::Params EffLawParams;
56 typedef typename EffLawParams::Traits::Scalar Scalar;
59 typedef typename EffLawParams::Traits Traits;
74 if (config_->enableSatScaling()) {
75 assert(unscaledPoints_);
77 assert(effectiveLawParams_);
98 { unscaledPoints_ = value; }
104 {
return *unscaledPoints_; }
110 { scaledPoints_ = *value; }
116 {
return scaledPoints_; }
122 {
return scaledPoints_; }
128 { effectiveLawParams_ = value; }
134 {
return *effectiveLawParams_; }
137 std::shared_ptr<EffLawParams> effectiveLawParams_;
139 std::shared_ptr<EclEpsConfig> config_;
140 std::shared_ptr<ScalingPoints> unscaledPoints_;
141 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:63
Represents the points on the X and Y axis to be scaled if endpoint scaling is used.
Definition: EclEpsScalingPoints.hpp:308
A default implementation of the parameters for the material law adapter class which implements ECL en...
Definition: EclEpsTwoPhaseLawParams.hpp:54
const EffLawParams & effectiveLawParams() const
Returns the parameter object for the effective/nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:133
void finalize()
Calculate all dependent quantities once the independent quantities of the parameter object have been ...
Definition: EclEpsTwoPhaseLawParams.hpp:70
const ScalingPoints & scaledPoints() const
Returns the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:115
void setConfig(std::shared_ptr< EclEpsConfig > value)
Set the endpoint scaling configuration object.
Definition: EclEpsTwoPhaseLawParams.hpp:85
void setScaledPoints(std::shared_ptr< ScalingPoints > value)
Set the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:109
void setEffectiveLawParams(std::shared_ptr< EffLawParams > value)
Sets the parameter object for the effective/nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:127
ScalingPoints & scaledPoints()
Returns the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:121
const ScalingPoints & unscaledPoints() const
Returns the scaling points which are seen by the nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:103
const EclEpsConfig & config() const
Returns the endpoint scaling configuration object.
Definition: EclEpsTwoPhaseLawParams.hpp:91
void setUnscaledPoints(std::shared_ptr< ScalingPoints > value)
Set the scaling points which are seen by the nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:97
Default implementation for asserting finalization of parameter objects.
Definition: EnsureFinalized.hpp:47
void finalize()
Mark the object as finalized.
Definition: EnsureFinalized.hpp:75