desc.integrals.Bounce2D.interp_to_argmin
- Bounce2D.interp_to_argmin(f, points, *, nufft_eps=-1.0, **kwargs)Source
Interpolate
fto the deepest point in magnetic well w.Interpolate f to the argmin of the magnetic field between each pair in
points. Explicitly, let E(w) = {ζ ∣ ζ₁(w) < ζ < ζ₂(w)} and A(w) ∈ argmin_E(w) B. Returns {f ∘ A(w)}.- Parameters:
f (jnp.ndarray) – Shape (num ρ, num ζ, num θ). Real scalar-valued periodic function in (θ, ζ) ∈ [0, 2π) × [0, 2π/NFP) evaluated on the
gridsupplied to construct this object. Use the methodBounce2D.reshapeto reshape the data into the expected shape. If the input is not a real-valued array, then it is assumed that the Fourier transform as returned byBounce2D.fourierwas given instead.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.nufft_eps (float) – Precision requested for interpolation with non-uniform fast Fourier transform (NUFFT). If less than
1e-14then NUFFT will not be used.
- Returns:
f_j (jnp.ndarray) – Shape (num ρ, num α, num pitch, num well).
finterpolated to the deepest point betweenpoints.