desc.integrals.Bounce1D.interp_to_argmin
- Bounce1D.interp_to_argmin(f, points, *, method='cubic')Source
Interpolate
fto the deepest point pⱼ in magnetic well j.- Parameters:
f (jnp.ndarray) – Shape (num ρ, num α, num ζ). Real scalar-valued functions evaluated on the
gridsupplied to construct this object. Use the methodBounce1D.reshapeto reshape the data into the expected shape.points (tuple[jnp.ndarray]) – Shape (num ρ, num α, num pitch, num well). Optional, output of method
self.points. Tuple of length two (z1, z2) that stores ζ coordinates of bounce points. The points are ordered and grouped such that the straight line path betweenz1andz2resides in the epigraph of B.method (str) – Method of interpolation. See https://interpax.readthedocs.io/en/latest/_api/interpax.interp1d.html. Default is cubic C1 local spline.
- Returns:
f_j (jnp.ndarray) – Shape (num ρ, num α, num pitch, num well).
finterpolated to the deepest point betweenpoints.