V3FIT
Data Types | Functions/Subroutines
m_grid Module Reference

Defines the base class of the type m_grid_class. This contains the state variables to define the vacuum vector potential. More...

Data Types

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

Functions/Subroutines

type(m_grid_class) function, pointer m_grid_construct (mgrid_file_name, parallel, io_unit)
 Construct a m_grid_class object. More...
 
subroutine m_grid_destruct (this)
 Deconstruct a m_grid_class object. More...
 
pure subroutine m_grid_interpolate (this, r, phi, z, ar, ap, az)
 Interpolate the vector potential at a point. More...
 
pure real(rprec) function m_grid_intf (w1, w2, x)
 

Detailed Description

Defines the base class of the type m_grid_class. This contains the state variables to define the vacuum vector potential.

Function/Subroutine Documentation

◆ m_grid_construct()

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

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.
Returns
A pointer to a constructed m_grid_class object.

Definition at line 68 of file m_grid.f.

◆ m_grid_destruct()

subroutine m_grid::m_grid_destruct ( type (m_grid_class), pointer  this)

Deconstruct a m_grid_class object.

Deallocates memory and uninitializes a m_grid_class object.

Parameters
[in,out]thisA m_grid_class instance.

Definition at line 195 of file m_grid.f.

◆ m_grid_interpolate()

pure subroutine m_grid::m_grid_interpolate ( type (m_grid_class), intent(in)  this,
real (rprec), intent(in)  r,
real (rprec), intent(in)  phi,
real (rprec), intent(in)  z,
real (rprec), intent(out)  ar,
real (rprec), intent(out)  ap,
real (rprec), intent(out)  az 
)

Interpolate the vector potential at a point.

This interpolates the vector potential to from the mgrid grid to an arbitrary point. This performs a trilinear interpolation.

Parameters
[in]thisA m_grid_class instance.
[in]rRadial position to interpolate to.
[in]phiPhi position to interpolate to.
[in]zVertical position to interpolate to.
[out]arInterpolated radial component of the vector potential.
[out]apInterpolated phi component of the vector potential.
[out]azInterpolated vertial component of the vector potential.

Definition at line 239 of file m_grid.f.