27#ifndef OPM_BROOKS_COREY_PARAMS_HPP
28#define OPM_BROOKS_COREY_PARAMS_HPP
45template <
class TraitsT>
48 typedef typename TraitsT::Scalar Scalar;
52 typedef TraitsT Traits;
59 BrooksCoreyParams(Scalar ePressure, Scalar shapeParam)
60 : entryPressure_(ePressure), lambda_(shapeParam)
69 { EnsureFinalized::check();
return entryPressure_; }
75 { entryPressure_ = v; }
82 { EnsureFinalized::check();
return lambda_; }
91 Scalar entryPressure_;
Default implementation for asserting finalization of parameter objects.
Some templates to wrap the valgrind client request macros.
OPM_HOST_DEVICE void SetUndefined(const T &value)
Make the memory on which an object resides undefined in valgrind runs.
Definition Valgrind.hpp:174
Scalar lambda() const
Returns the lambda shape parameter.
Definition BrooksCoreyParams.hpp:81
void setEntryPressure(Scalar v)
Set the entry pressure [Pa].
Definition BrooksCoreyParams.hpp:74
void setLambda(Scalar v)
Set the lambda shape parameter.
Definition BrooksCoreyParams.hpp:87
Scalar entryPressure() const
Returns the entry pressure [Pa].
Definition BrooksCoreyParams.hpp:68
OPM_HOST_DEVICE EnsureFinalized()
The default constructor.
Definition EnsureFinalized.hpp:58
OPM_HOST_DEVICE void finalize()
Mark the object as finalized.
Definition EnsureFinalized.hpp:82
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30