Module containing subroutines to calculate the position of the simulated particles in toroidal and cylindrical coordinates.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in), | DIMENSION(:,:), ALLOCATABLE | :: | X | Particles' position in Cartesian coordinates. X(1,:) = , X(2,:) = , X(3,:) = |
|
real(kind=rp), | intent(inout), | DIMENSION(:,:), ALLOCATABLE | :: | Xcyl | Particles' position in cylindrical coordinates. Xcyl(1,:) = , Xcyl(2,:) = , Xcyl(3,:) = |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | pchunk | |||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_X | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_Y | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_Z | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | Y_R | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | Y_PHI | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | Y_Z |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in), | DIMENSION(:,:), ALLOCATABLE | :: | Xcyl | Particles' position in cylindrical coordinates. Xcyl(1,:) = , Xcyl(2,:) = , Xcyl(3,:) = |
|
real(kind=rp), | intent(inout), | DIMENSION(:,:), ALLOCATABLE | :: | X | Particles' position in Cartesian coordinates. X(1,:) = , X(2,:) = , X(3,:) = |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
||
real(kind=rp), | intent(in), | DIMENSION(:,:), ALLOCATABLE | :: | Xcyl | Particles' position in cylindrical coordinates. Xcyl(1,:) = , Xcyl(2,:) = , Xcyl(3,:) = |
|
integer(kind=is), | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | flag |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | pchunk | |||
real(kind=rp), | intent(in) | :: | a | Distance to plasma edge as measured from the magnetic axis. |
||
real(kind=rp), | intent(in) | :: | R0 | Distance to plasma edge as measured from the magnetic axis. |
||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | Xcyl_R | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | Xcyl_Z | ||
integer(kind=is), | intent(inout), | DIMENSION(pchunk) | :: | flag |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in), | DIMENSION(:,:), ALLOCATABLE | :: | X | Particles' position in Cartesian coordinates. X(1,:) = , X(2,:) = , X(3,:) = |
|
type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
||
real(kind=rp), | intent(inout), | DIMENSION(:,:), ALLOCATABLE | :: | Xtor | Particles' position in cylindrical coordinates. Xtor(1,:) = , Xtor(2,:) = , Xtor(3,:) = |
|
integer(kind=is), | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | flag |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | pchunk | |||
real(kind=rp), | intent(in) | :: | R0 | |||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_X | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_Y | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_Z | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | T_R | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | T_T | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | T_Z |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | pchunk | |||
real(kind=rp), | intent(in) | :: | ar | |||
real(kind=rp), | intent(in) | :: | R0 | |||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_X | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_Y | ||
real(kind=rp), | intent(in), | DIMENSION(pchunk) | :: | X_Z | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | T_R | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | T_T | ||
real(kind=rp), | intent(out), | DIMENSION(pchunk) | :: | T_Z | ||
integer(kind=is), | intent(inout), | DIMENSION(pchunk) | :: | flag_cache |