V_FIELD_2D Derived Type

type, public :: V_FIELD_2D

This KORC type represents a 2-D vector field varible in cylindrical coordinates. For example, this could be the magnetic field in an axisymmetric plasma, which can be written as All the members (components) of the V_FIELD_2D type follow the following index convention: ( index, index).


Inherited by

type~~v_field_2d~~InheritedByGraph type~v_field_2d V_FIELD_2D type~fields FIELDS type~fields->type~v_field_2d E_2D, B_2D, B1Re_2D, B1Im_2D, dBdR_2D, dBdPHI_2D, dBdZ_2D, gradB_2D, curlb_2D

Contents

Source Code


Components

TypeVisibility AttributesNameInitial
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.


Source Code

  TYPE, PUBLIC :: V_FIELD_2D
     !! @note KORC 2-D vector field type @endnote
     !! This KORC type represents a 2-D vector field varible in cylindrical
     !! coordinates. For example, this could be the magnetic
     !! field in an axisymmetric plasma, which can be written as
     !! $$\mathbf{B}(R,Z) = B_R(R,Z) \hat{R} + B_\phi(R,Z) \hat{\phi} + B_Z(R,Z)
     !! \hat{Z}.$$
     !! All the members (components) of the V_FIELD_2D type follow the
     !! following index convention:
     !! (\(R\) 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_2D