desc.integrals.Bounce2D.compute_fieldline_length

Bounce2D.compute_fieldline_length(quad=None)Source

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

Computes mean_A ∫ dℓ / B where A is the set of field line labels given when making this object.

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 at resolution Y_B//2 on each toroidal transit.

Returns:

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