-
iwopy.utils.RegularDiscretizationGrid.deriv_coeffs_gridpoints(inds, var, order=
2
, orderb=1
)[source] Calculates the derivative coefficients at grid points.
Parameters¶
- inds: numpy.ndarray
The integer grid point indices, shape: (n_inds, n_dims)
- var: int
The dimension representing the variable wrt which to differentiate
- order: int
The finite difference order, 1 = forward, -1 = backward, 2 = centre
- orderb: int
The finite difference order at boundary points
Returns¶
- gpts: numpy.ndarray
The grid points relevant for coeffs, shape: (n_gpts, n_dims)
- coeffs: numpy.ndarray
The gradient coefficients, shape: (n_inds, n_gpts)