Derived type having all the parameters of the analytical magnetic field included in KORC.
The analytical magnetic field is given by: where is the aspect ratio, the constant denotes the magnitude of the toroidal magnetic field, and is the poloidal magnetic field with safety factor . The constant is the safety factor at the magnetic axis and the constant is obtained from the values of and at the plasma edge .
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rp), | public | :: | Bo | Magnitude of the toroidal magnetic field . |
|||
real(kind=rp), | public | :: | a | Plasma edge as measured from the magnetic axis. |
|||
real(kind=rp), | public | :: | Ro | Radial position of the magnetic axis |
|||
real(kind=rp), | public | :: | qa | Safety factor at the plasma edge. |
|||
real(kind=rp), | public | :: | qo | Safety factor at the magnetic axis . |
|||
real(kind=rp), | public | :: | lambda | parameter of . |
|||
real(kind=rp), | public | :: | Bpo | @deprecated Parameter not used anymore. TodoDelete parameter. |
|||
real(kind=rp), | public | :: | Bp_sign | Sign of . This depends on current_direction, Bp_sign=1 for current_direction='PARALLEL', and Bp_sign=-1 for current_direction='ANTI-PARALLEL'. |
|||
character(len=MAX_STRING_LENGTH), | public | :: | current_direction | Direction of plasma current: PARALLEL or ANTI-PARALLEL to the toroidal magnetic field. |
|||
real(kind=rp), | public | :: | Ero | radial electric field amplitude. |
|||
real(kind=rp), | public | :: | rmn | mode location rmn |
|||
real(kind=rp), | public | :: | sigmamn | mode width sigmamn |
TYPE, PRIVATE :: A_FIELD
!! @note Derived type having all the parameters of the analytical
!! magnetic field included in KORC. @endnote
!! The analytical magnetic field is given by:
!! $$\mathbf{B}(r,\vartheta) = \frac{1}{1 + \eta \cos{\vartheta}}
!! \left[ B_0 \hat{e}_\zeta + B_\vartheta(r) \hat{e}_\vartheta \right],$$
!! where \(\eta = r/R_0\) is the aspect ratio, the constant \(B_0\)
!! denotes the magnitude of the toroidal magnetic field,
!! and \(B_\vartheta(r) = \eta B_0/q(r)\) is the poloidal magnetic
!! field with safety factor
!! \(q(r) = q_0\left( 1 + \frac{r^2}{\lambda^2} \right)\). The
!! constant \(q_0\) is the safety factor at
!! the magnetic axis and the constant \(\lambda\) is obtained from
!! the values of \(q_0\) and \(q(r)\)
!! at the plasma edge \(r=r_{edge}\).
REAL(rp) :: Bo
!! Magnitude of the toroidal magnetic field \(B_0\).
REAL(rp) :: a
!! Plasma edge \(r_{edge}\) as measured from the magnetic axis.
REAL(rp) :: Ro
!! Radial position of the magnetic axis \(R_0\)
REAL(rp) :: qa
!! Safety factor at the plasma edge.
REAL(rp) :: qo
!! Safety factor at the magnetic axis \(q_0\).
REAL(rp) :: lambda
!! \(\lambda\) parameter of \(q(r)\).
REAL(rp) :: Bpo
!! @deprecated Parameter not used anymore. @todo Delete parameter.
REAL(rp) :: Bp_sign
!! Sign of \(B_\vartheta(r)\). This depends on current_direction,
!! Bp_sign=1 for
!! current_direction='PARALLEL', and Bp_sign=-1 for
!! current_direction='ANTI-PARALLEL'.
CHARACTER(MAX_STRING_LENGTH) :: current_direction
!! Direction of plasma current: PARALLEL or ANTI-PARALLEL to the
!! toroidal magnetic field.
REAL(rp) :: Ero
!! radial electric field amplitude.
REAL(rp) :: rmn
!! mode location rmn
REAL(rp) :: sigmamn
!! mode width sigmamn
END TYPE A_FIELD