vmec_jax.boundary¶
Boundary coefficient handling.
VMEC input files specify boundary Fourier coefficients in arrays:
rbc(n,m), rbs(n,m)
zbc(n,m), zbs(n,m)
where the boundary is expanded in helical harmonics
R(θ,ζ) = Σ_{m,n} [ rbc(n,m) cos(mθ - nζ) + rbs(n,m) sin(mθ - nζ) ] Z(θ,ζ) = Σ_{m,n} [ zbc(n,m) cos(mθ - nζ) + zbs(n,m) sin(mθ - nζ) ]
This module provides helpers to map the sparse namelist assignments to dense coefficient vectors aligned with a ModeTable.
Functions
|
Apply VMEC's internal m=1 boundary constraint and return helical coeffs. |
|
Compute aspect ratio from boundary coefficients using a precomputed basis. |
|
Compute aspect ratio from boundary coefficients using a VMEC static config. |
|
Build dense boundary coefficient vectors aligned with modes. |
|
Convert raw input-convention boundary coefficients to solver convention. |
|
Build dense boundary coefficients in the raw input convention. |
|
Undo VMEC's internal m=1 boundary constraint and return helical coeffs. |
Classes
|
|
|
VMEC internal boundary coefficients (cos/sin of u and v). |