Stellarator-Tools
Loading...
Searching...
No Matches
v3rfun_context::v3rfun_context_class Type Reference

Base class representing a v3rfun context. This contains all memory needed to operate v3rfun. More...

Public Member Functions

FINAL v3rfun_context_destruct (this)
 Deconstruct a v3rfun_context_class object.
procedure write_mrf (this, d_coil, id_num)
 Write out a magnetic coil response function.
procedure write_point (this, d_coil, id_num)
 Write out a point probe response.
procedure init_field_coils (this)
 Construct and initialize the field coil objects.
procedure init_responce_grids (this)
 Allocate and initialize the response function arrays.

Public Attributes

character(len=v3rfun_name_length) date_run
 The date that the V3RFUN code was run.
integer kp_store
 The number of phi planes to store the plasma response function.
integer kp_shell_store
 The number of phi planes to store the conducting shell responce function.
integer mdsig_list_iou
 mdsig list input/output file.
integer mi_iou
 Mutual inductance list input/output file.
class(diagnostic_dot_coil), pointer coils => null()
 Linked list containing all the diagnostic coils.
real(rprec), dimension(:), pointer extcur => null()
 Array of external field coil currents.
real(rprec), dimension(:), pointer rdiag => null()
 Array of external field coil responces.
real(rprec), dimension(:,:,:,:,:), pointer xcart_grid_e => null()
 Array of cartesian coordinates for the plasma response function grid.
real(rprec), dimension(:,:), pointer phi_grid_e => null()
 Array of phi values for the plasma response function grid.
real(rprec), dimension(:,:,:,:), pointer pl_response => null()
 Array of plasma response functions.
real(rprec), dimension(:,:,:,:), pointer pl_response_ss => null()
 Array of stellarator symmetric plasma response functions.
real(rprec), dimension(:,:,:,:), pointer xcart_s_grid_e => null()
 Array of cartesian coordinates for the conducting shell response function grid.
real(rprec), dimension(:,:), pointer phi_grid_shell => null()
 Array of phi values for the conducting shell response function grid.
real(rprec), dimension(:,:,:), pointer s_response => null()
 Array of conducting shell response functions.
real(rprec), dimension(:,:,:), pointer s_response_ss => null()
 Array of stellarator symmetric conducting shell response functions.

Detailed Description

Base class representing a v3rfun context. This contains all memory needed to operate v3rfun.

Member Function/Subroutine Documentation

◆ init_field_coils()

procedure v3rfun_context::v3rfun_context_class::init_field_coils ( class (v3rfun_context_class), intent(inout) this)

Construct and initialize the field coil objects.

Allocates memory and the field coil objects then apply the rotations and shits as defined in the namelist inout file.

@params[in] this An instance of a v3rfun_context_class.

◆ init_responce_grids()

procedure v3rfun_context::v3rfun_context_class::init_responce_grids ( class (v3rfun_context_class), intent(inout) this)

Allocate and initialize the response function arrays.

Allocates memory and for the plasma and conducting shell response function arrays. This does not compute the actual response yet.

@params[in] this An instance of a v3rfun_context_class.

◆ v3rfun_context_destruct()

FINAL v3rfun_context::v3rfun_context_class::v3rfun_context_destruct ( type (v3rfun_context_class), intent(inout) this)
final

Deconstruct a v3rfun_context_class object.

Deallocates memory and uninitializes a v3rfun_context_class object. This all the v3rfun constructed objects are destroyed here.

Parameters
[in,out]thisA v3rfun_context_class instance.

◆ write_mrf()

procedure v3rfun_context::v3rfun_context_class::write_mrf ( class (v3rfun_context_class), intent(inout) this,
class (diagnostic_dot_coil), intent(in) d_coil,
integer, intent(in) id_num )

Write out a magnetic coil response function.

Computes the magnetic response function for each a coil and writes the results to an mdsig file.

Parameters
[in,out]thisA v3rfun_context_class instance.
[in]d_coilA diagnostic_dot::diagnostic_dot_coil instance.
[in]id_numDiagnostic coil number.

◆ write_point()

procedure v3rfun_context::v3rfun_context_class::write_point ( class (v3rfun_context_class), intent(inout) this,
class (diagnostic_dot_coil), intent(in) d_coil,
integer, intent(in) id_num )

Write out a point probe response.

Computes the response function for the vacuum field at the point measurement. Point probes are assumed to be outside of the plasma.

Parameters
[in,out]thisA v3rfun_context_class instance.
[in]d_coilA diagnostic_dot::diagnostic_dot_coil instance.
[in]id_numDiagnostic coil number.

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