periodic_toroidal_angle#

cherab.lhd.machine.wall.periodic_toroidal_angle(phi: float) tuple[float, bool]Source#

Return toroidal angle & z coordinate under periodic boundary condition.

The specified toroidal angle by EMC3-EIRENE varies from 0 to 18 degrees. For example, the poloidal grid plane at 27 degrees corresponds to the one flipped along the z-axis at 9 degrees.

Parameters:
phifloat

Toroidal angle in degree.

Returns:
phifloat

Toroidal angle in degree between 0 and 18.

flippedbool

Flag of flipping z coordinate. If flipped is True, \(z\) component is multiplied by -1.