template<class Scalar>
class Dumux::Tabulated2DFunction< Scalar >
This class can be used to tabulate a two dimensional function \(f(x, y)\) over the range \([x_{min}, x_{max}] \times [y_{min},
y_{max}]\). For this, the ranges of the \(x\) and \(y\) axes are divided into \(m\) and \(n\) sub-intervals and the values of \(f(x_i, y_j)\) need to be provided. Here, \(x_i\) and \(y_j\) are the largest positions of the \(i\)-th and \(j\)-th interval. Between these sampling points this tabulation class uses linear interpolation.
|
| | Tabulated2DFunction () |
| | Default constructor.
|
| |
| | Tabulated2DFunction (Scalar xMin, Scalar xMax, int m, Scalar yMin, Scalar yMax, int n) |
| | Constructor where the tabulation parameters are already provided.
|
| |
| void | resize (Scalar xMin, Scalar xMax, int m, Scalar yMin, Scalar yMax, int n) |
| | Resize the tabulation to a new range.
|
| |
| Scalar | iToX (int i) const |
| | Return the position on the x-axis of the i-th interval.
|
| |
| Scalar | jToY (int j) const |
| | Return the position on the y-axis of the j-th interval.
|
| |
| Scalar | xToI (Scalar x) const |
| | Return the interval index of a given position on the x-axis.
|
| |
| Scalar | yToJ (Scalar y) const |
| | Return the interval index of a given position on the y-axis.
|
| |
| Scalar | getSamplePoint (int i, int j) const |
| | Get the value of the sample point which is at the intersection of the \(i\)-th interval of the x-Axis and the \(j\)-th of the y-Axis.
|
| |
| void | setSamplePoint (int i, int j, Scalar value) |
| | Set the value of the sample point which is at the intersection of the \(i\)-th interval of the x-Axis and the \(j\)-th of the y-Axis.
|
| |
| Scalar | get (Scalar x, Scalar y) const |
| | Return an interpolated value.
|
| |
| Scalar | operator() (Scalar x, Scalar y) const |
| | The () operator.
|
| |