vmec_jax.redl_bootstrapΒΆ

Differentiable Redl bootstrap-current algebra.

This module contains the pure profile, trapped-particle, and Redl fit helpers used by finite-beta objectives. VMEC-state geometry assembly remains in finite_beta so these functions stay small, testable, and independent of the large Mercier/JXBFORCE state machinery.

Functions

polynomial_profile_and_derivative(coeffs, s)

Evaluate a polynomial profile and d/ds derivative.

redl_bootstrap_jdotb(*, s, G, R, iota, ...)

Return <J.B> from the Redl et al. bootstrap-current fit.

redl_bootstrap_mismatch_from_profiles(*, ...)

Return normalized Redl bootstrap-current mismatch residuals.

trapped_fraction_from_modb_sqrtg(*, modB, sqrtg)

Return Redl/Sauter geometry moments from |B| and sqrt(g).