Stellarator-Tools
unprimed_grid::unprimed_grid_class Interface Reference

Base class representing a unprimed grid. This is grid the volume integral will be summed over. More...

Public Member Functions

FINAL unprimed_grid_destruct
 
class(unprimed_grid_class) function, pointer unprimed_grid_construct_m (mgrid, pgrid, p_start, p_end, parallel, io_unit)
 Construct a unprimed_grid_class object. More...
 
class(unprimed_grid_class) function, pointer unprimed_grid_construct_a (mgrid, pgrid, r_grid, z_grid, dphi, parallel, io_unit)
 Construct a unprimed_grid_class object at specfied points. More...
 
class(unprimed_grid_class) function, pointer unprimed_grid_construct_c (mgrid, pgrid, pgrid_vac, p_start, p_end, parallel, io_unit)
 Construct a unprimed_grid_class object. More...
 

Public Attributes

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.
 
real(rprec), dimension(:,:,:), pointer b_r => null()
 B field in the R direction.
 
real(rprec), dimension(:,:,:), pointer b_p => null()
 B field in the Phi direction.
 
real(rprec), dimension(:,:,:), pointer b_z => null()
 B field in the Z direction.
 

Detailed Description

Base class representing a unprimed grid. This is grid the volume integral will be summed over.

Interface to constructors.

Member Function/Subroutine Documentation

◆ unprimed_grid_construct_a()

class (unprimed_grid_class) function, pointer unprimed_grid::unprimed_grid_class::unprimed_grid_construct_a ( class (m_grid_class), intent(in)  mgrid,
class (primed_grid_class), intent(in)  pgrid,
real (rprec), dimension(:,:,:), intent(in)  r_grid,
real (rprec), dimension(:,:,:), intent(in)  z_grid,
real (rprec), intent(in)  dphi,
class (bmw_parallel_context_class), intent(in)  parallel,
integer, intent(in)  io_unit 
)

Construct a unprimed_grid_class object at specfied points.

Allocates memory and initializes a unprimed_grid_class object. This computes the vector potential, magnetic field and positions on the unprimed grid. The primed grid is supplied as arbitrary r and z positions with a uniformly spaced phi grid. Since the primed grid is arbitrary, this function does not compute the magnetic field components. The middle index represents phi positions.

Parameters
[in]mgridA m_grid::m_grid_class object.
[in]pgridA primed_grid::primed_grid_class object.
[in]r_grid3D Array of r positions.
[in]z_grid3D Array of z positions.
[in]dphiPhi grid spacing.
[in]parallelbmw_parallel_context::bmw_parallel_context_class object instance.
[in]io_unitUnit number to write messages to.
Returns
A pointer to a constructed unprimed_grid_class object.

◆ unprimed_grid_construct_c()

class (unprimed_grid_class) function, pointer unprimed_grid::unprimed_grid_class::unprimed_grid_construct_c ( class (m_grid_class), intent(in)  mgrid,
class (primed_grid_class), intent(in)  pgrid,
class (primed_grid_class), intent(in)  pgrid_vac,
integer, intent(in)  p_start,
integer, intent(in)  p_end,
class (bmw_parallel_context_class), intent(in)  parallel,
integer, intent(in)  io_unit 
)

Construct a unprimed_grid_class object.

Allocates memory and initializes a unprimed_grid_class object. This computes the vector potential, magnetic field and positions on the unprimed grid. Magnetic field components are provided on a truncated grid. Due to the central differencing, field componetents cannot be provided for first and last points on the r and z grids.

This version removes vacuum current contribuitons.

Parameters
[in]mgridA m_grid::m_grid_class object.
[in]pgridA primed_grid::primed_grid_class object.
[in]pgrid_vacA primed_grid::primed_grid_class object for the vacuum correction.
[in]p_startStarting phi index to compute fields to.
[in]p_endEnding phi index to compute fields to.
[in]parallelbmw_parallel_context::bmw_parallel_context_class object instance.
[in]io_unitUnit number to write messages to.
Returns
A pointer to a constructed unprimed_grid_class object.

◆ unprimed_grid_construct_m()

class (unprimed_grid_class) function, pointer unprimed_grid::unprimed_grid_class::unprimed_grid_construct_m ( class (m_grid_class), intent(in)  mgrid,
class (primed_grid_class), intent(in)  pgrid,
integer, intent(in)  p_start,
integer, intent(in)  p_end,
class (bmw_parallel_context_class), intent(in)  parallel,
integer, intent(in)  io_unit 
)

Construct a unprimed_grid_class object.

Allocates memory and initializes a unprimed_grid_class object. This computes the vector potential, magnetic field and positions on the unprimed grid. Magnetic field components are provided on a truncated grid. Due to the central differencing, field componetents cannot be provided for first and last points on the r and z grids.

Parameters
[in]mgridA m_grid::m_grid_class object.
[in]pgridA primed_grid::primed_grid_class object.
[in]p_startStarting phi index to compute fields to.
[in]p_endEnding phi index to compute fields to.
[in]parallelbmw_parallel_context::bmw_parallel_context_class object instance.
[in]io_unitUnit number to write messages to.
Returns
A pointer to a constructed unprimed_grid_class object.

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