Opm::UniformXTabulated2DFunction< Scalar > Class Template Reference Implements a scalar function that depends on two variables and which is sampled uniformly in the X direction, but non-uniformly on the Y axis-. More...
Detailed Descriptiontemplate<class Scalar>
|
|
inline |
|
inline |
Append a sample point.
Returns the i index of that line.
References Opm::UniformXTabulated2DFunction< Scalar >::iToX(), and Opm::UniformXTabulated2DFunction< Scalar >::numX().
|
inline |
Set the x-position of a vertical line.
Returns the i index of that line.
|
inline |
Returns true iff a coordinate lies in the tabulated range.
References Opm::UniformXTabulated2DFunction< Scalar >::xMax(), Opm::UniformXTabulated2DFunction< Scalar >::xMin(), Opm::UniformXTabulated2DFunction< Scalar >::xToI(), Opm::UniformXTabulated2DFunction< Scalar >::yMax(), and Opm::UniformXTabulated2DFunction< Scalar >::yMin().
Referenced by Opm::UniformXTabulated2DFunction< 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::UniformXTabulated2DFunction< Scalar >::applies(), Opm::LocalAd::min(), Opm::UniformXTabulated2DFunction< Scalar >::numX(), Opm::UniformXTabulated2DFunction< Scalar >::numY(), Opm::UniformXTabulated2DFunction< Scalar >::valueAt(), Opm::UniformXTabulated2DFunction< Scalar >::xToI(), and Opm::UniformXTabulated2DFunction< Scalar >::yToJ().
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::print().
|
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::UniformXTabulated2DFunction< Scalar >::applies(), Valgrind::CheckDefined(), Opm::LocalAd::max(), Opm::UniformXTabulated2DFunction< Scalar >::numX(), Opm::UniformXTabulated2DFunction< Scalar >::numY(), Opm::UniformXTabulated2DFunction< Scalar >::valueAt(), Opm::UniformXTabulated2DFunction< Scalar >::xAt(), Opm::UniformXTabulated2DFunction< Scalar >::xToI(), Opm::UniformXTabulated2DFunction< Scalar >::yAt(), and Opm::UniformXTabulated2DFunction< Scalar >::yToJ().
|
inline |
Return the position on the x-axis of the i-th interval.
References Opm::UniformXTabulated2DFunction< Scalar >::numX().
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::appendSamplePoint().
|
inline |
Return the position on the y-axis of the j-th interval.
References Opm::UniformXTabulated2DFunction< Scalar >::numX().
|
inline |
Returns the number of sampling points in X direction.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::appendSamplePoint(), Opm::UniformXTabulated2DFunction< Scalar >::eval(), Opm::UniformXTabulated2DFunction< Scalar >::iToX(), Opm::UniformXTabulated2DFunction< Scalar >::jToY(), Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< Scalar >::yToJ().
|
inline |
Returns the number of sampling points in Y direction a given column.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval(), and Opm::UniformXTabulated2DFunction< Scalar >::print().
|
inline |
Print the table for debugging purposes.
It will produce the data in CSV format on stdout, so that it can be visualized using e.g. gnuplot.
References Opm::UniformXTabulated2DFunction< Scalar >::eval(), Opm::LocalAd::max(), Opm::LocalAd::min(), Opm::UniformXTabulated2DFunction< Scalar >::numX(), Opm::UniformXTabulated2DFunction< Scalar >::numY(), Opm::UniformXTabulated2DFunction< Scalar >::xMax(), Opm::UniformXTabulated2DFunction< Scalar >::xMin(), Opm::UniformXTabulated2DFunction< Scalar >::yMax(), and Opm::UniformXTabulated2DFunction< Scalar >::yMin().
|
inline |
Returns the value of a sampling point.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval().
|
inline |
Returns the value of the X coordinate of the sampling points.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval().
|
inline |
Returns the maximum of the X coordinate of the sampling points.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< Scalar >::xToI().
|
inline |
Returns the minimum of the X coordinate of the sampling points.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< 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::UniformXTabulated2DFunction< Scalar >::xMax(), and Opm::UniformXTabulated2DFunction< Scalar >::xMin().
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), and Opm::UniformXTabulated2DFunction< Scalar >::eval().
|
inline |
Returns the value of the Y coordinate of a sampling point.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval().
|
inline |
Returns the maximum of the Y coordinate of the sampling points for a given column.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< Scalar >::yToJ().
|
inline |
Returns the minimum of the Y coordinate of the sampling points for a given column.
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< 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::UniformXTabulated2DFunction< Scalar >::numX(), Opm::UniformXTabulated2DFunction< Scalar >::yMax(), and Opm::UniformXTabulated2DFunction< Scalar >::yMin().
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval().