27 #ifndef OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP 28 #define OPM_ECL_EPS_TWO_PHASE_LAW_PARAMS_HPP 33 #include <opm/common/utility/gpuDecorators.hpp> 47 template <
class EffLawT>
50 using EffLawParams =
typename EffLawT::Params;
51 using Scalar =
typename EffLawParams::Traits::Scalar;
54 using Traits =
typename EffLawParams::Traits;
69 assert(unscaledPoints_);
71 assert(effectiveLawParams_);
92 { unscaledPoints_ =
value.get(); }
98 {
return *unscaledPoints_; }
104 { scaledPoints_ =
value; }
110 {
return scaledPoints_; }
116 {
return scaledPoints_; }
118 Scalar SnTrapped([[maybe_unused]]
bool maximumTrapping)
const 123 Scalar SnStranded([[maybe_unused]] Scalar sg, [[maybe_unused]] Scalar krg)
const 128 Scalar SwTrapped()
const 137 { effectiveLawParams_ =
value.get(); }
143 {
return *effectiveLawParams_; }
145 template<
class Serializer>
155 EffLawParams* effectiveLawParams_{};
156 EclEpsConfig config_;
157 ScalingPoints* unscaledPoints_{};
158 ScalingPoints scaledPoints_;
void finalize()
Calculate all dependent quantities once the independent quantities of the parameter object have been ...
Definition: EclEpsTwoPhaseLawParams.hpp:65
OPM_HOST_DEVICE const ScalingPoints & scaledPoints() const
Returns the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:109
A default implementation of the parameters for the material law adapter class which implements ECL en...
Definition: EclEpsTwoPhaseLawParams.hpp:48
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Specifies the configuration used by the endpoint scaling code.
Definition: EclEpsConfig.hpp:55
OPM_HOST_DEVICE const EclEpsConfig & config() const
Returns the endpoint scaling configuration object.
Definition: EclEpsTwoPhaseLawParams.hpp:85
OPM_HOST_DEVICE const EffLawParams & effectiveLawParams() const
Returns the parameter object for the effective/nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:142
Represents the points on the X and Y axis to be scaled if endpoint scaling is used.
Definition: EclEpsScalingPoints.hpp:152
Default implementation for asserting finalization of parameter objects.
Specifies the configuration used by the endpoint scaling code.
OPM_HOST_DEVICE bool enableSatScaling() const
Returns whether saturation scaling is enabled.
Definition: EclEpsConfig.hpp:67
void setConfig(const EclEpsConfig &value)
Set the endpoint scaling configuration object.
Definition: EclEpsTwoPhaseLawParams.hpp:79
OPM_HOST_DEVICE void finalize()
Mark the object as finalized.
Definition: EnsureFinalized.hpp:82
void setEffectiveLawParams(std::shared_ptr< EffLawParams > value)
Sets the parameter object for the effective/nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:136
OPM_HOST_DEVICE const ScalingPoints & unscaledPoints() const
Returns 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:48
ScalingPoints & scaledPoints()
Returns the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:115
Class for (de-)serializing.
Definition: Serializer.hpp:95
void setScaledPoints(const ScalingPoints &value)
Set the scaling points which are seen by the physical model.
Definition: EclEpsTwoPhaseLawParams.hpp:103
void setUnscaledPoints(std::shared_ptr< ScalingPoints > value)
Set the scaling points which are seen by the nested material law.
Definition: EclEpsTwoPhaseLawParams.hpp:91