Definition of slab equilibrium N.b. this equilibrium is axisymmetric - phi, when required, is not used
Type that represents the slab equilibrium
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public | :: | initialized | = | .false. | ||
| real(kind=FP), | public | :: | x0 |
Magnetic axis x = R/R0 (in normalised units) |
|||
| real(kind=FP), | public | :: | y0 |
Magnetic axis y = Z/R0 (in normalised units) |
|||
| real(kind=FP), | public | :: | phi0 | = | 0.0_FP |
Magnetic axis phi |
|
| real(kind=FP), | public | :: | xmin |
Box limits |
|||
| real(kind=FP), | public | :: | xmax |
Box limits |
|||
| real(kind=FP), | public | :: | ymin |
Box limits |
|||
| real(kind=FP), | public | :: | ymax |
Box limits |
|||
| real(kind=FP), | public | :: | rhomax |
Global limits for rho (rho = normalised psi, n.b. there may also be region-specific limits defined in equi) |
|||
| real(kind=FP), | public | :: | rhomin |
Global limits for rho (rho = normalised psi, n.b. there may also be region-specific limits defined in equi) |
| procedure, public, pass(self) :: absb | |
| procedure, public, pass(self) :: bpol | |
| procedure, public :: init | |
| procedure, public :: display | |
| procedure, public :: debug | |
| procedure, public :: is_axisymmetric | |
| procedure, public :: rho | |
| procedure, public :: bx | |
| procedure, public :: by | |
| procedure, public :: btor | |
| procedure, public :: jacobian | |
| procedure, public :: epol | |
| procedure, public :: erad | |
| procedure, public :: district | |
| procedure, public :: in_vessel | |
| procedure, public :: mag_axis_loc | |
| procedure, public :: is_yperiodic |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self |
flux surface label = x
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
magnetic field component bx = 0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
magnetic field component by = 0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
magnetic field strength normalised = 1
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
Jacobian of geometry (J=1)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
returns in which district point (x, y, phi) is (see module descriptors_m)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
For slab always inside vessel
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi |
Returns .true. if the equilibrium is y periodic and .false. otherwise
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self |
Initialises the slab equilibrium
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(inout) | :: | self |
Instance of the type |
||
| character(len=*), | intent(in), | optional | :: | filename |
Filename, where parameters are read from |
Prints to console information about the equilibrium
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self |
Prints to console information about the equilibrium
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self |
unit vector along poloidal (along flux surface) direction
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi | |||
| real(kind=FP), | intent(out) | :: | epolx |
unit vector component in x-direction |
||
| real(kind=FP), | intent(out) | :: | epoly |
unit vector component in y-direction |
unit vector along radial (across flux surface) direction
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self | |||
| real(kind=FP), | intent(in) | :: | x | |||
| real(kind=FP), | intent(in) | :: | y | |||
| real(kind=FP), | intent(in) | :: | phi | |||
| real(kind=FP), | intent(out) | :: | eradx |
unit vector component in x-direction |
||
| real(kind=FP), | intent(out) | :: | erady |
unit vector component in y-direction |
Returns the coordinates of magnetic axis
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(slab_t), | intent(in) | :: | self |
Instance of class |
||
| real(kind=FP), | intent(in) | :: | phi |
Toroidal angle |
||
| real(kind=FP), | intent(out) | :: | axis_x |
x-coordinate of the magnetic axis |
||
| real(kind=FP), | intent(out) | :: | axis_y |
y-coordinate of the magnetic axis |