polar_grid_t Derived Type

type, public :: polar_grid_t

Polar grid


Finalization Procedures

final :: destructor


Type-Bound Procedures

procedure, public :: initialize => initialize_polar_grid

  • interface

    public module subroutine initialize_polar_grid(self, equi, phi, nrho, ntheta)

    Displays information for polar grid

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(inout) :: self

    Instance of the type

    class(equilibrium_t), intent(inout) :: equi

    Equilibrium

    real(kind=FP), intent(in) :: phi

    Toroidal angle

    integer, intent(in) :: nrho

    Number of radial grid points

    integer, intent(in) :: ntheta

    Number of poloidal grid points

procedure, public :: get_phi

  • interface

    public pure module function get_phi(self)

    Returns toroidal angle phi

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value real(kind=fp)

procedure, public :: get_rhopol_min

  • interface

    public pure module function get_rhopol_min(self)

    Gets rhopol_min

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value real(kind=fp)

procedure, public :: get_rhopol_max

  • interface

    public pure module function get_rhopol_max(self)

    Gets rhopol_max

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value real(kind=fp)

procedure, public :: get_nrho

  • interface

    public pure module function get_nrho(self)

    Gets nrho

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value integer

procedure, public :: get_ntheta

  • interface

    public pure module function get_ntheta(self)

    Gets ntheta

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value integer

procedure, public :: get_drho

  • interface

    public pure module function get_drho(self)

    Gets drho

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value real(kind=fp)

procedure, public :: get_dtheta

  • interface

    public pure module function get_dtheta(self)

    Gets dtheta

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    Return Value real(kind=fp)

procedure, public :: get_rho

  • interface

    public pure module function get_rho(self, ip)

    Computes rho at point ip

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    integer, intent(in) :: ip

    Radial grid index

    Return Value real(kind=fp)

procedure, public :: get_theta

  • interface

    public pure module function get_theta(self, jp)

    Computes rho at point ip

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    integer, intent(in) :: jp

    Poloidal grid index

    Return Value real(kind=fp)

procedure, public :: fluxsurf_area

  • interface

    public module function fluxsurf_area(self, equi, ip)

    Computes total area of flux surface Assumes axisymmetry

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    class(equilibrium_t), intent(inout) :: equi

    Equilibrium

    integer, intent(in) :: ip

    Radial grid index

    Return Value real(kind=fp)

procedure, public :: fluxsurf_vol

  • interface

    public module function fluxsurf_vol(self, equi, ip)

    Computes the volume of flux surface Radial extent of [rho-drho/2, rho + drho/2]

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    class(equilibrium_t), intent(inout) :: equi

    Equilibrium

    integer, intent(in) :: ip

    Radial grid index

    Return Value real(kind=fp)

procedure, public :: display => display_polar_grid

  • interface

    public module subroutine display_polar_grid(self)

    Displays information for polar grid

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

procedure, public :: write_netcdf => write_netcdf_polar

  • interface

    public module subroutine write_netcdf_polar(self, equi, fgid)

    Writes information about the polar_grid_t

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(in) :: self

    Instance of the type

    class(equilibrium_t), intent(inout) :: equi

    Equilibrium

    integer, intent(in) :: fgid

    File or group id number of existing Netcdf4 file

procedure, public :: read_netcdf => read_netcdf_polar

  • interface

    public module subroutine read_netcdf_polar(self, fgid)

    Reads information about the polar_grid_t

    Arguments

    Type IntentOptional Attributes Name
    class(polar_grid_t), intent(inout) :: self

    Instance of the type

    integer, intent(in) :: fgid

    File or group id number of existing Netcdf4 file