Opm::UniformTabulated2DFunction< Scalar > Class Template Reference Implements a scalar function that depends on two variables and which is sampled on an uniform X-Y grid. More...
Detailed Descriptiontemplate<class Scalar>
|
|
inline |
|
inline |
Constructor where the tabulation parameters are already provided.
References Opm::UniformTabulated2DFunction< Scalar >::resize().
|
inline |
Returns true iff a coordinate lies in the tabulated range.
References Opm::UniformTabulated2DFunction< Scalar >::xMax(), Opm::UniformTabulated2DFunction< Scalar >::xMin(), Opm::UniformTabulated2DFunction< Scalar >::yMax(), and Opm::UniformTabulated2DFunction< Scalar >::yMin().
Referenced by Opm::UniformTabulated2DFunction< Scalar >::eval().
|
inline |
Evaluate the function at a given (x,y) position.
If this method is called for a value outside of the tabulated range, a Opm::NumericalProblem
exception is thrown.
References Opm::UniformTabulated2DFunction< Scalar >::applies(), Opm::UniformTabulated2DFunction< Scalar >::getSamplePoint(), Opm::LocalAd::max(), Opm::LocalAd::min(), Opm::UniformTabulated2DFunction< Scalar >::numX(), Opm::UniformTabulated2DFunction< Scalar >::numY(), Opm::UniformTabulated2DFunction< Scalar >::xMax(), Opm::UniformTabulated2DFunction< Scalar >::xMin(), Opm::UniformTabulated2DFunction< Scalar >::xToI(), Opm::UniformTabulated2DFunction< Scalar >::yMax(), Opm::UniformTabulated2DFunction< Scalar >::yMin(), and Opm::UniformTabulated2DFunction< Scalar >::yToJ().
|
inline |
Get the value of the sample point which is at the intersection of the -th interval of the x-Axis and the -th of the y-Axis.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::eval().
|
inline |
Return the position on the x-axis of the i-th interval.
References Opm::UniformTabulated2DFunction< Scalar >::numX(), Opm::UniformTabulated2DFunction< Scalar >::xMax(), and Opm::UniformTabulated2DFunction< Scalar >::xMin().
|
inline |
Return the position on the y-axis of the j-th interval.
References Opm::UniformTabulated2DFunction< Scalar >::numY(), Opm::UniformTabulated2DFunction< Scalar >::yMax(), and Opm::UniformTabulated2DFunction< Scalar >::yMin().
|
inline |
Returns the number of sampling points in X direction.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::eval(), Opm::UniformTabulated2DFunction< Scalar >::iToX(), and Opm::UniformTabulated2DFunction< Scalar >::xToI().
|
inline |
Returns the number of sampling points in Y direction.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::eval(), Opm::UniformTabulated2DFunction< Scalar >::jToY(), and Opm::UniformTabulated2DFunction< Scalar >::yToJ().
|
inline |
Resize the tabulation to a new range.
References Opm::UniformTabulated2DFunction< Scalar >::xMax(), Opm::UniformTabulated2DFunction< Scalar >::xMin(), Opm::UniformTabulated2DFunction< Scalar >::yMax(), and Opm::UniformTabulated2DFunction< Scalar >::yMin().
Referenced by Opm::UniformTabulated2DFunction< Scalar >::UniformTabulated2DFunction().
|
inline |
Set the value of the sample point which is at the intersection of the -th interval of the x-Axis and the -th of the y-Axis.
|
inline |
Returns the maximum of the X coordinate of the sampling points.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::applies(), Opm::UniformTabulated2DFunction< Scalar >::eval(), Opm::UniformTabulated2DFunction< Scalar >::iToX(), Opm::UniformTabulated2DFunction< Scalar >::resize(), and Opm::UniformTabulated2DFunction< Scalar >::xToI().
|
inline |
Returns the minimum of the X coordinate of the sampling points.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::applies(), Opm::UniformTabulated2DFunction< Scalar >::eval(), Opm::UniformTabulated2DFunction< Scalar >::iToX(), Opm::UniformTabulated2DFunction< Scalar >::resize(), and Opm::UniformTabulated2DFunction< Scalar >::xToI().
|
inline |
Return the interval index of a given position on the x-axis.
This method returns a floating point number. The integer part should be interpreted as interval, the decimal places are the position of the x value between the i-th and the (i+1)-th sample point.
References Opm::UniformTabulated2DFunction< Scalar >::numX(), Opm::UniformTabulated2DFunction< Scalar >::xMax(), and Opm::UniformTabulated2DFunction< Scalar >::xMin().
Referenced by Opm::UniformTabulated2DFunction< Scalar >::eval().
|
inline |
Returns the maximum of the Y coordinate of the sampling points.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::applies(), Opm::UniformTabulated2DFunction< Scalar >::eval(), Opm::UniformTabulated2DFunction< Scalar >::jToY(), Opm::UniformTabulated2DFunction< Scalar >::resize(), and Opm::UniformTabulated2DFunction< Scalar >::yToJ().
|
inline |
Returns the minimum of the Y coordinate of the sampling points.
Referenced by Opm::UniformTabulated2DFunction< Scalar >::applies(), Opm::UniformTabulated2DFunction< Scalar >::eval(), Opm::UniformTabulated2DFunction< Scalar >::jToY(), Opm::UniformTabulated2DFunction< Scalar >::resize(), and Opm::UniformTabulated2DFunction< Scalar >::yToJ().
|
inline |
Return the interval index of a given position on the y-axis.
This method returns a floating point number. The integer part should be interpreted as interval, the decimal places are the position of the y value between the j-th and the (j+1)-th sample point.
References Opm::UniformTabulated2DFunction< Scalar >::numY(), Opm::UniformTabulated2DFunction< Scalar >::yMax(), and Opm::UniformTabulated2DFunction< Scalar >::yMin().
Referenced by Opm::UniformTabulated2DFunction< Scalar >::eval().