V3FIT
Data Types | Functions/Subroutines
unprimed_grid Module Reference

Defines the base class of the type unprimed_grid_class. This contains the state variables to define the currents and positions of the volumn integral. More...

Data Types

type  unprimed_grid_class
 Base class representing a unprimed grid. This is grid the volume integral will be summed over. More...
 
interface  unprimed_grid_construct
 Interface to constructors. More...
 

Functions/Subroutines

type(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...
 
type(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...
 
subroutine unprimed_grid_destruct (this)
 Deconstruct a unprimed_grid_class object. More...
 

Detailed Description

Defines the base class of the type unprimed_grid_class. This contains the state variables to define the currents and positions of the volumn integral.

Function/Subroutine Documentation

◆ unprimed_grid_construct_a()

type (unprimed_grid_class) function, pointer unprimed_grid::unprimed_grid_construct_a ( type (m_grid_class), intent(in)  mgrid,
type (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,
type (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.

Definition at line 388 of file unprimed_grid.f.

◆ unprimed_grid_construct_m()

type (unprimed_grid_class) function, pointer unprimed_grid::unprimed_grid_construct_m ( type (m_grid_class), intent(in)  mgrid,
type (primed_grid_class), intent(in)  pgrid,
integer, intent(in)  p_start,
integer, intent(in)  p_end,
type (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.

Definition at line 78 of file unprimed_grid.f.

◆ unprimed_grid_destruct()

subroutine unprimed_grid::unprimed_grid_destruct ( type (unprimed_grid_class), pointer  this)

Deconstruct a unprimed_grid_class object.

Deallocates memory and uninitializes a unprimed_grid_class object.

Parameters
[in,out]thisA unprimed_grid_class instance.

Definition at line 589 of file unprimed_grid.f.