Coordinate conventions#
GVEC coordinates#
Sketch of the GVEC logical coordinate directions \(\rho,\vartheta,\zeta\) in a stellarator geometry (with magnetic field lines shown in red).#
GVEC uses a flux aligned coordinate system with a radial coordinate \(\rho\in[0,1]\), proportional to the square root of the normalized toroidal flux, and two angular coordinates \(\vartheta,\zeta\in[0,2\pi]\). The Boozer-straight-fieldline-angles \(\vartheta_B,\zeta_B\in[0,2\pi]\) are a different set of flux aligned coordinates.
GVEC uses right-handed \((\rho,\vartheta,\zeta)\) and \((\rho,\vartheta_B,\zeta_B)\) systems with the poloidal angles \(\vartheta,\vartheta_B\) increasing clockwise in the poloidal plane (of constant \(\zeta\) or \(\zeta_B\)). GVEC also uses a right-handed \((X^1,X^2,\zeta)\) reference coordinate frame, e.g. a cylindrical coordinate system \((R,Z,\zeta)\). Note that this definition of the cylindrical coordinate system has the toroidal angle \(\zeta\) increasing clockwise when viewing the \(R,Z\)-plane from above.
Different conventions#
Assuming another code uses flux aligned coordinates \((s,u,v)\) with different conventions, i.e.
\(\qquad s=s(\rho)\,, \quad u=u(\vartheta)\,, \quad v=v(\zeta)\quad\) or
\(\qquad s=s(\rho)\,, \quad u=u(\vartheta_B)\,, \quad v=v(\zeta_B)\,.\)
In the following we will assume logical flux aligned coordinates \((\rho,\vartheta,\zeta)\), but the same formulas apply if one replaces \(\vartheta,\zeta\) by Boozer straight-fieldline-angles \(\vartheta_B,\zeta_B\).
From the relations \(s(\rho), u(\vartheta)\) and \(v(\zeta)\) we get the derivatives \(\frac{ds}{d\rho},\frac{du}{d\vartheta},\frac{dv}{d\zeta}\).