cherab.imas.math.interpolators.StructGridFunction3DΒΆ

class cherab.imas.math.interpolators.StructGridFunction3DΒΆ

Bases: Function3D

Simple interpolator for the data defined on the 3D structured grid.

Find the cell containing the point (x, y, z). Return the data value for this cell or the fill_value if the points lies outside the grid.

Parameters:
x : (L,) array_like

The corners of the quadrilateral cells along x axis.

y : (M,) array_like

The corners of the quadrilateral cells along y axis.

z : (N,) array_like

The corners of the quadrilateral cells along z axis.

grid_data : (L-1, M-1, N-1) ndarray

Array containing data in the grid cells.

fill_value : float, optional

A value returned outside the grid, by default 0.

Methods

__call__

Evaluate the function f(x, y, z)

__call__()ΒΆ

Evaluate the function f(x, y, z)

Parameters:
x : float

function parameter x

y : float

function parameter y

y

function parameter z

Return type:

float