Defines a 3D R-Z-phi grid for interpolating plasma parameters and fields
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=Int32), | public | :: | nr | Number of Radii |
|||
integer(kind=Int32), | public | :: | nz | Number of Z values |
|||
integer(kind=Int32), | public | :: | nphi | Number of phi values |
|||
real(kind=Float64), | public | :: | dr | Radial spacing [cm] |
|||
real(kind=Float64), | public | :: | dz | Vertical spacing [cm] |
|||
real(kind=Float64), | public | :: | dphi | Angular spacing [rad] |
|||
real(kind=Float64), | public | :: | da | Grid element area [] |
|||
real(kind=Float64), | public | :: | dv | drdzdphi [] |
|||
integer(kind=Int32), | public | :: | dims(3) | Dimension of the interpolation grid |
|||
real(kind=Float64), | public, | dimension(:), allocatable | :: | r | Radii values [cm] |
||
real(kind=Float64), | public, | dimension(:), allocatable | :: | z | Z values [cm] |
||
real(kind=Float64), | public, | dimension(:), allocatable | :: | phi | Angular values [rad] |
||
integer(kind=Int32), | public | :: | ntrack | Maximum number of cells for particle tracking |
|||
integer(kind=Int32), | public | :: | ngrid | Number of cells |
type InterpolationGrid
!+ Defines a 3D R-Z-phi grid for interpolating plasma parameters and fields
integer(Int32) :: nr
!+ Number of Radii
integer(Int32) :: nz
!+ Number of Z values
integer(Int32) :: nphi
!+ Number of phi values
real(Float64) :: dr
!+ Radial spacing [cm]
real(Float64) :: dz
!+ Vertical spacing [cm]
real(Float64) :: dphi
!+ Angular spacing [rad]
real(Float64) :: da
!+ Grid element area [\(cm^2\)]
real(Float64) :: dv
!+ dr*dz*dphi [\(rad*cm^2\)]
integer(Int32) :: dims(3)
!+ Dimension of the interpolation grid
real(Float64), dimension(:), allocatable :: r
!+ Radii values [cm]
real(Float64), dimension(:), allocatable :: z
!+ Z values [cm]
real(Float64), dimension(:), allocatable :: phi
!+ Angular values [rad]
integer(Int32) :: ntrack
!+ Maximum number of cells for particle tracking
integer(Int32) :: ngrid
!+ Number of cells
end type InterpolationGrid