|
ASCOT5
|
Bilinear interpolation. More...
Go to the source code of this file.
Functions | |
| void | linint2D_init (linint2D_data *str, real *c, int n_x, int n_y, int bc_x, int bc_y, real x_min, real x_max, real y_min, real y_max) |
| Initialize linear interpolation struct for scalar 2D data. | |
| int | linint2D_eval_f (real *f, linint2D_data *str, real x, real y) |
| Evaluate interpolated value of 2D scalar field. | |
Bilinear interpolation.
Definition in file linint2D.c.
| void linint2D_init | ( | linint2D_data * | str, |
| real * | c, | ||
| int | n_x, | ||
| int | n_y, | ||
| int | bc_x, | ||
| int | bc_y, | ||
| real | x_min, | ||
| real | x_max, | ||
| real | y_min, | ||
| real | y_max ) |
Initialize linear interpolation struct for scalar 2D data.
| str | pointer to struct to be initialized |
| c | array where data is stored |
| n_x | number of data points in the x direction |
| n_y | number of data points in the y direction |
| bc_x | boundary condition for x axis |
| bc_y | boundary condition for y axis |
| x_min | minimum value of the x axis |
| x_max | maximum value of the x axis |
| y_min | minimum value of the y axis |
| y_max | maximum value of the y axis |
Definition at line 25 of file linint2D.c.
| int linint2D_eval_f | ( | real * | f, |
| linint2D_data * | str, | ||
| real | x, | ||
| real | y ) |
Evaluate interpolated value of 2D scalar field.
This function evaluates the interpolated value of a 2D scalar field using bilinear interpolation.
| f | variable in which to place the evaluated value |
| str | data struct for data interpolation |
| x | x-coordinate |
| y | y-coordinate |
Definition at line 58 of file linint2D.c.