desc.objectives.QuasisymmetryTwoTerm.compute
- QuasisymmetryTwoTerm.compute(*args, **kwargs)[source]
Compute quasi-symmetry two-term errors.
- 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:
f (ndarray) – Quasi-symmetry flux function error at each node (T^3).