omas.identify_cocos¶
- omas.identify_cocos(B0, Ip, q, psi, clockwise_phi=None, a=None)[source]¶
Utility function to identify COCOS coordinate system If multiple COCOS are possible, then all are returned.
- Parameters
B0 – toroidal magnetic field (with sign)
Ip – plasma current (with sign)
q – safety factor profile (with sign) as function of psi
psi – poloidal flux as function of psi(with sign)
clockwise_phi – (optional) [True, False] if phi angle is defined clockwise or not This is required to identify odd Vs even COCOS Note that this cannot be determined from the output of a code. An easy way to determine this is to answer the question: is positive B0 clockwise?
a – (optional) flux surfaces minor radius as function of psi This is required to identify 2*pi term in psi definition
- Returns
list with possible COCOS