polar_map_factory_m Module

Creates matrix mapping from Cartesian to Polar grid



Subroutines

public subroutine create_polar_map_matrix(polar_map_csr, equi, mesh, polar_grid, intorder, dbgout)

Creates matrix that maps a field from Cartesian to polar mesh

Arguments

Type IntentOptional Attributes Name
type(csrmat_t), intent(out), allocatable :: polar_map_csr

Created polar map matrix in CSR format

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

Equilibrium

type(mesh_cart_t), intent(in) :: mesh

Cartesian mesh

type(polar_grid_t), intent(in) :: polar_grid

Polar grid

integer, intent(in) :: intorder

Interpolation order of the mapping

integer, intent(in), optional :: dbgout

Specifies the number of information printed on screen

public subroutine create_cart_map_matrix(cart_map_csr, equi, mesh, polar_grid, intorder, dbgout)

Creates matrix that maps a field from polar mesh to Cartesian mesh (only for closed field line region)

Arguments

Type IntentOptional Attributes Name
type(csrmat_t), intent(out), allocatable :: cart_map_csr

Created Cartesian map matrix in CSR format

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

Equilibrium

type(mesh_cart_t), intent(in) :: mesh

Cartesian mesh

type(polar_grid_t), intent(in) :: polar_grid

Polar grid

integer, intent(in) :: intorder

Interpolation order of the mapping

integer, intent(in), optional :: dbgout

Specifies the number of information printed on screen