Stellarator-Tools
|
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. | |
Base class representing a unprimed grid. This is grid the volume integral will be summed over.
Interface to constructors.
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.
[in] | mgrid | A m_grid::m_grid_class object. |
[in] | pgrid | A primed_grid::primed_grid_class object. |
[in] | r_grid | 3D Array of r positions. |
[in] | z_grid | 3D Array of z positions. |
[in] | dphi | Phi grid spacing. |
[in] | parallel | bmw_parallel_context::bmw_parallel_context_class object instance. |
[in] | io_unit | Unit number to write messages to. |
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.
[in] | mgrid | A m_grid::m_grid_class object. |
[in] | pgrid | A primed_grid::primed_grid_class object. |
[in] | pgrid_vac | A primed_grid::primed_grid_class object for the vacuum correction. |
[in] | p_start | Starting phi index to compute fields to. |
[in] | p_end | Ending phi index to compute fields to. |
[in] | parallel | bmw_parallel_context::bmw_parallel_context_class object instance. |
[in] | io_unit | Unit number to write messages to. |
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.
[in] | mgrid | A m_grid::m_grid_class object. |
[in] | pgrid | A primed_grid::primed_grid_class object. |
[in] | p_start | Starting phi index to compute fields to. |
[in] | p_end | Ending phi index to compute fields to. |
[in] | parallel | bmw_parallel_context::bmw_parallel_context_class object instance. |
[in] | io_unit | Unit number to write messages to. |