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> class Opm::UniformXTabulated2DFunction< Scalar > 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-. "Uniform on the X-axis" means that all Y sampling points must be located along a line for this value. This class can be used when the sampling points are calculated at run time. Member Typedef Documentation◆ SamplePoint
template<class Scalar >
Member Enumeration Documentation◆ InterpolationPolicy
template<class Scalar >
Indicates how interpolation will be performed. Normal interpolation is done by interpolating vertically between lines of sample points, whereas LeftExtreme or RightExtreme implies guided interpolation, where interpolation is done parallel to a guide line. With LeftExtreme the lowest Y values will be used for the guide, and the guide line slope extends unchanged to infinity. With RightExtreme, the highest Y values are used, and the slope decreases linearly down to 0 (normal interpolation) for y <= 0.
Constructor & Destructor Documentation◆ UniformXTabulated2DFunction() [1/2]
template<class Scalar >
◆ UniformXTabulated2DFunction() [2/2]
template<class Scalar >
Member Function Documentation◆ appendSamplePoint()
template<class Scalar >
Append a sample point. Returns the i index of the new point within its line. References Opm::UniformXTabulated2DFunction< Scalar >::iToX(), and Opm::UniformXTabulated2DFunction< Scalar >::numX(). ◆ appendXPos()
template<class Scalar >
Set the x-position of a vertical line. Returns the i index of that line. ◆ applies()
template<class Scalar >
template<class Evaluation >
Returns true iff a coordinate lies in the tabulated range. References Opm::UniformXTabulated2DFunction< Scalar >::xMax(), Opm::UniformXTabulated2DFunction< Scalar >::xMin(), Opm::UniformXTabulated2DFunction< Scalar >::xSegmentIndex(), and Opm::UniformXTabulated2DFunction< Scalar >::xToAlpha(). Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval(). ◆ eval()
template<class Scalar >
template<class Evaluation >
Evaluate the function at a given (x,y) position. If this method is called for a value outside of the tabulated range, a References Opm::UniformXTabulated2DFunction< Scalar >::applies(), Opm::Valgrind::CheckDefined(), Opm::UniformXTabulated2DFunction< Scalar >::valueAt(), Opm::UniformXTabulated2DFunction< Scalar >::xSegmentIndex(), Opm::UniformXTabulated2DFunction< Scalar >::xToAlpha(), Opm::UniformXTabulated2DFunction< Scalar >::ySegmentIndex(), and Opm::UniformXTabulated2DFunction< Scalar >::yToBeta(). Referenced by Opm::UniformXTabulated2DFunction< Scalar >::print(). ◆ interpolationGuide()
template<class Scalar >
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::operator==(). ◆ iToX()
template<class Scalar >
Return the position on the x-axis of the i-th interval. References Opm::UniformXTabulated2DFunction< Scalar >::numX(). Referenced by Opm::UniformXTabulated2DFunction< Scalar >::appendSamplePoint(). ◆ jToY()
template<class Scalar >
Return the position on the y-axis of the j-th interval. References Opm::UniformXTabulated2DFunction< Scalar >::numX(). ◆ numX()
template<class Scalar >
Returns the number of sampling points in X direction. Referenced by Opm::UniformXTabulated2DFunction< Scalar >::appendSamplePoint(), Opm::UniformXTabulated2DFunction< Scalar >::iToX(), Opm::UniformXTabulated2DFunction< Scalar >::jToY(), Opm::UniformXTabulated2DFunction< Scalar >::print(), Opm::UniformXTabulated2DFunction< Scalar >::ySegmentIndex(), and Opm::UniformXTabulated2DFunction< Scalar >::yToBeta(). ◆ numY()
template<class Scalar >
Returns the number of sampling points in Y direction a given column. Referenced by Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< Scalar >::yToBeta(). ◆ operator==()
template<class Scalar >
◆ print()
template<class Scalar >
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::max(), Opm::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(). ◆ samples()
template<class Scalar >
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::operator==(). ◆ valueAt()
template<class Scalar >
Returns the value of a sampling point. Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval(). ◆ xAt()
template<class Scalar >
Returns the value of the X coordinate of the sampling points. ◆ xMax()
template<class Scalar >
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 >::xSegmentIndex(). ◆ xMin()
template<class Scalar >
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 >::xSegmentIndex(). ◆ xPos()
template<class Scalar >
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::operator==(). ◆ xSegmentIndex()
template<class Scalar >
template<class Evaluation >
Return the interval index of a given position on the x-axis. References Opm::UniformXTabulated2DFunction< Scalar >::xMax(), and Opm::UniformXTabulated2DFunction< Scalar >::xMin(). Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), and Opm::UniformXTabulated2DFunction< Scalar >::eval(). ◆ xToAlpha()
template<class Scalar >
template<class Evaluation >
Return the relative position of an x value in an intervall. The returned value can be larger than 1 or smaller than zero if it is outside of the range of the segment. In particular this happens for the extrapolation case. Referenced by Opm::UniformXTabulated2DFunction< Scalar >::applies(), and Opm::UniformXTabulated2DFunction< Scalar >::eval(). ◆ yAt()
template<class Scalar >
Returns the value of the Y coordinate of a sampling point. ◆ yMax()
template<class Scalar >
Returns the maximum of the Y coordinate of the sampling points for a given column. Referenced by Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< Scalar >::ySegmentIndex(). ◆ yMin()
template<class Scalar >
Returns the minimum of the Y coordinate of the sampling points for a given column. Referenced by Opm::UniformXTabulated2DFunction< Scalar >::print(), and Opm::UniformXTabulated2DFunction< Scalar >::ySegmentIndex(). ◆ yPos()
template<class Scalar >
Referenced by Opm::UniformXTabulated2DFunction< Scalar >::operator==(). ◆ ySegmentIndex()
template<class Scalar >
template<class Evaluation >
Return the interval index of a given position on the y-axis. References Opm::UniformXTabulated2DFunction< Scalar >::numX(), Opm::UniformXTabulated2DFunction< Scalar >::yMax(), and Opm::UniformXTabulated2DFunction< Scalar >::yMin(). Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval(). ◆ yToBeta()
template<class Scalar >
template<class Evaluation >
Return the relative position of an y value in an interval. The returned value can be larger than 1 or smaller than zero if it is outside of the range of the segment. In particular this happens for the extrapolation case. References Opm::UniformXTabulated2DFunction< Scalar >::numX(), and Opm::UniformXTabulated2DFunction< Scalar >::numY(). Referenced by Opm::UniformXTabulated2DFunction< Scalar >::eval(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||