desc.objectives.BScaleLength.compute
- BScaleLength.compute(*args, **kwargs)[source]
Compute magnetic field scale length.
- Parameters:
R_lmn (ndarray) – Spectral coefficients of R(rho,theta,zeta) – flux surface R coordinate (m).
Z_lmn (ndarray) – Spectral coefficients of Z(rho,theta,zeta) – flux surface Z coordinate (m).
L_lmn (ndarray) – Spectral coefficients of lambda(rho,theta,zeta) – poloidal stream function.
i_l (ndarray) – Spectral coefficients of iota(rho) – rotational transform profile.
c_l (ndarray) – Spectral coefficients of I(rho) – toroidal current profile.
Psi (float) – Total toroidal magnetic flux within the last closed flux surface (Wb).
- Returns:
L (ndarray) – Magnetic field scale length at each point (m).