# Naming convention used in PLEQUE¶

## Coordinates¶

Here presented naming convention is used to read/create input/output dict/xarray files.

• 2D
• R (default): Radial cylindrical coordinates with zero on machine axis
• Z (default): Vertical coordinate with zero on machine geometrical axis
• 1D
• psi_n (default): Normalized poloidal magnetic flux with zero on magnetic axis and one on the last closed flux surface

$$\psi_\mathrm{N} = \frac{\psi - \psi_\text{ax}}{\psi_\text{LCFS} - \psi_\text{ax}}$$

• Fallowing input options are not implemented yet.

• rho: $$\rho = \sqrt{\psi_\text{N}}$$

• psi_1dprof - poloidal magnetic flux; this coordinate axis is used only if psi_n is not found on the input. Output files uses implicitly psi_n axis.

## 2D profiles¶

• Required on the input
• psi (Wb): poloidal magnetic flux
• Calculated
• B_R (T): $$R$$ component of the magnetic field.
• B_Z (T): $$Z$$ component of the magnetic field.
• B_pol (T): Poloidal component of the magnetic field. $$B_\theta =\text{sign\,} (I_p) \sqrt{B_R^2 + B_Z^2}$$ Todo resolve the sign of B_pol and implement it!!!
• B_tor (T): Toroidal component of the magnetic field.
• B_abs (T): Absolute value of the magnetic field.
• j_R (A/m2): $$R$$ component of the current density. todo: Check the current unit
• j_Z (A/m2): $$Z$$ component of the current density.
• j_pol (A/m2): Poloidal component of the current density.
• j_tor (A/m2): Toroidal component of the current density.
• j_abs (A/m2): Asolute value of the current density.

## 1D profiles¶

• Required on the input
• pressure (Pa)
• pprime (Pa/Wb)
• F: $$F = R B_\phi$$
• Calculated
• pprime: $$p \partial_\psi$$
• Fprime: $$F' = \partial_\psi F$$
• FFprime: $$FF' = F \partial_\psi F$$
• fprime: $$f' = \partial_\psi f$$
• f: $$f = (1/\mu_0) R B_\phi$$
• ffprime: $$ff' = f \partial_\psi f$$
• rho, psi_n
• Deriver
• q: safety factor profile
• qprime$$q' = \partial_\psi q$$
• Not yet implemented:
• magnetic_shear

## Attributes¶

• To be written.