Toroidal coordinates: Difference between revisions

→‎Simple toroidal coordinates: add COCOS warning: the directions of theta and phi vary in different conventions
(→‎Simple toroidal coordinates: add COCOS warning: the directions of theta and phi vary in different conventions)
Line 34: Line 34:
:<math>R(r,\theta) = R_0(r) + r \cos(\theta + \arcsin \delta \sin \theta)</math>
:<math>R(r,\theta) = R_0(r) + r \cos(\theta + \arcsin \delta \sin \theta)</math>
:<math>Z(r,\theta) = Z_0(r) + \kappa(r) r \sin(\theta + \zeta \sin 2 \theta) </math>
:<math>Z(r,\theta) = Z_0(r) + \kappa(r) r \sin(\theta + \zeta \sin 2 \theta) </math>
Warning: there are varying conventions for the directions of \theta and \phi. Which convention is used can depend on the local facility, the software being used, or other context. To help reduce confusion, the different tokamak coordinate conventions have been described and codified in the COCOS system.<ref>O. Sauter and S.Yu. Medvedev, ''Tokamak coordinate conventions: COCOS'', [[doi:10.1016/j.cpc.2012.09.010|Computer Physics Communications '''184''', (2013) 293-302]]</ref>


== Toroidal coordinates ==
== Toroidal coordinates ==
35

edits