42 f_m[i][j][k] = lhs.
f_m[i][j][k];
49 (
const double Point[3],
double Value[1])
const {
59 if (i < 0 || j < 0 || k < 0) {
67 f_x[0][0] = (
f_m[i+1][j] [k] -
f_m[i][j] [k]) * dx +
f_m[i][j] [k];
68 f_x[1][0] = (
f_m[i+1][j+1][k] -
f_m[i][j+1][k]) * dx +
f_m[i][j+1][k];
69 f_x[0][1] = (
f_m[i+1][j] [k+1] -
f_m[i][j] [k+1]) * dx +
f_m[i][j] [k+1];
70 f_x[1][1] = (
f_m[i+1][j+1][k+1] -
f_m[i][j+1][k+1]) * dx +
f_m[i][j+1][k+1];
75 f_xy[0] = (f_x[1][0] - f_x[0][0])*dy + f_x[0][0];
76 f_xy[1] = (f_x[1][1] - f_x[0][1])*dy + f_x[0][1];
78 Value[0] = (f_xy[1] - f_xy[0])/
double *** function() const
ThreeDGrid * coordinates_m
void lowerBound(const double &x, int &xIndex, const double &y, int &yIndex, const double &z, int &zIndex) const
TriLinearInterpolator(ThreeDGrid *grid, double ***F)