desc.integrals.Bounce2D.compute_fieldline_length

Bounce2D.compute_fieldline_length(quad=None)Source

Compute the (mean) proper length of the field line ∫ dℓ / B.

Parameters:

quad (tuple[jnp.ndarray]) – Quadrature points xₖ and weights wₖ for the approximate evaluation of the integral ∫₋₁¹ f(x) dx ≈ ∑ₖ wₖ f(xₖ). Default is Gauss-Legendre quadrature on each field period along the field line.

Returns:

length (jnp.ndarray) – Shape (num ρ, ).