Stellarator-Tools
m_grid::m_grid_class Interface Reference

Base class representing a m grid. This is grid contains information about the vacuum fields. More...

Public Member Functions

PROCEDURE, pass interpolate => m_grid_interpolate
 
FINAL m_grid_destruct
 
class(m_grid_class) function, pointer m_grid_construct (mgrid_file_name, parallel, io_unit, vmec)
 Construct a m_grid_class object. More...
 
class(m_grid_class) function, pointer m_grid_construct_plasma (num_r, num_p, num_z, rmax, rmin, zmax, zmin, parallel, io_unit, vmec)
 Construct a m_grid_class object. More...
 

Public Attributes

real(rprec) rmin
 Minimum R position.
 
real(rprec) rmax
 Maximum R position.
 
real(rprec) zmin
 Minimum Z position.
 
real(rprec) zmax
 Maximum Z position.
 
real(rprec) dr
 Radial grid size.
 
real(rprec) dz
 Vertical grid size.
 
integer nfp
 Number of field periods.
 
real(rprec), dimension(:,:,:), pointer a_r => null()
 Vector potential in the R direction.
 
real(rprec), dimension(:,:,:), pointer a_p => null()
 Vector potential in the Phi direction.
 
real(rprec), dimension(:,:,:), pointer a_z => null()
 Vector potential in the Z direction.
 

Detailed Description

Base class representing a m grid. This is grid contains information about the vacuum fields.

Interface for the bmw_commandline_parser constructor.

Member Function/Subroutine Documentation

◆ m_grid_construct()

class (m_grid_class) function, pointer m_grid::m_grid_class::m_grid_construct ( character (len=*), intent(in)  mgrid_file_name,
class (bmw_parallel_context_class), intent(in)  parallel,
integer, intent(in)  io_unit,
class (vmec_file_class), intent(in), pointer  vmec 
)

Construct a m_grid_class object.

Allocates memory and initializes a m_grid_class object with an mgrid file.

Parameters
[in]mgrid_file_nameFile name for vacuum fields.
[in]parallelbmw_parallel_context_class object instance.
[in]io_unitUnit number to write messages to.
[in]vmecThe vmec file object.
Returns
A pointer to a constructed m_grid_class object.

◆ m_grid_construct_plasma()

class (m_grid_class) function, pointer m_grid::m_grid_class::m_grid_construct_plasma ( integer, intent(in)  num_r,
integer, intent(in)  num_p,
integer, intent(in)  num_z,
real (rprec), intent(in)  rmax,
real (rprec), intent(in)  rmin,
real (rprec), intent(in)  zmax,
real (rprec), intent(in)  zmin,
class (bmw_parallel_context_class), intent(in)  parallel,
integer, intent(in)  io_unit,
class (vmec_file_class), intent(in), pointer  vmec 
)

Construct a m_grid_class object.

Allocates memory and initializes a m_grid_class for plasma only responce on a manual grid.

Parameters
[in]num_rNumber of radial points.
[in]num_pNumber of toroidal points.
[in]num_zNumber of vertical points.
[in]rmaxMaximum radial position.
[in]rminMinimum radial position.
[in]zmaxMaximum vertical position.
[in]zminMinimum vertical position.
[in]parallelbmw_parallel_context_class object instance.
[in]io_unitUnit number to write messages to.
[in]vmecThe vmec file object.
Returns
A pointer to a constructed m_grid_class object.

The documentation for this interface was generated from the following file: