KORC 3-D vector field type
This KORC type represents a 3-D vector field varible in cylindrical coordinates. For example, this could be the 3-D magnetic field, which can be written as All the members (components) of the V_FIELD_3D type follow the following index convention: ( index, index, index)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=rp), | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | R | component of the vector field variable. |
||
real(kind=rp), | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | PHI | component of the vector field variable. |
||
real(kind=rp), | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | Z | component of the vector field variable. |
TYPE, PUBLIC :: V_FIELD_3D
!! @note KORC 3-D vector field type @endnote
!! This KORC type represents a 3-D vector field varible in
!! cylindrical coordinates. For example, this could be the 3-D magnetic
!! field, which can be written as $$\mathbf{B}(R,\phi,Z) = B_R(R,\phi,Z)
!! \hat{R} + B_\phi(R,\phi,Z) \hat{\phi} + B_Z(R,\phi,Z) \hat{Z}.$$
!! All the members (components) of the V_FIELD_3D type follow the
!! following index convention:
!! (\(R\) index,\(\phi\) index, \(Z\) index)
REAL(rp), DIMENSION(:,:,:), ALLOCATABLE :: R
!! \(R\) component of the vector field variable.
REAL(rp), DIMENSION(:,:,:), ALLOCATABLE :: PHI
!! \(\phi\) component of the vector field variable.
REAL(rp), DIMENSION(:,:,:), ALLOCATABLE :: Z
!! \(Z\) component of the vector field variable.
END TYPE V_FIELD_3D