Stellarator-Tools
v3rfun_context Module Reference

Defines a v3rfun_context_class object to contain all the memory for running v3rfun. More...

Data Types

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

Functions/Subroutines

type(v3rfun_context_class) function, pointer v3rfun_context_construct (filename)
 Construct a v3rfun_context_class object. More...
 
subroutine v3rfun_context_construct_field_coils (this)
 Construct and initialize the field coil objects. More...
 
subroutine v3rfun_context_construct_responce_grids (this)
 Allocate and initialize the response function arrays. More...
 
subroutine v3rfun_context_destruct (this)
 Deconstruct a v3rfun_context_class object. More...
 
subroutine v3rfun_context_write_mrf (this, d_coil, id_num)
 Write out a magnetic coil response function. More...
 
subroutine v3rfun_context_write_point (this, d_coil, id_num)
 Write out a point probe response. More...
 

Variables

character(len= *), parameter code_name = 'V3RFUN'
 Name of this code.
 

Detailed Description

Defines a v3rfun_context_class object to contain all the memory for running v3rfun.

Function/Subroutine Documentation

◆ v3rfun_context_construct()

type (v3rfun_context_class) function, pointer v3rfun_context::v3rfun_context_construct ( character (len=*), intent(in)  filename)

Construct a v3rfun_context_class object.

Allocates memory and initializes a v3rfun_context_class object.

Returns
A pointer to a constructed v3rfun_context_class object.

◆ v3rfun_context_construct_field_coils()

subroutine v3rfun_context::v3rfun_context_construct_field_coils ( type (v3rfun_context_class), pointer  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.

◆ v3rfun_context_construct_responce_grids()

subroutine v3rfun_context::v3rfun_context_construct_responce_grids ( type (v3rfun_context_class), pointer  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()

subroutine v3rfun_context::v3rfun_context_destruct ( type (v3rfun_context_class), pointer  this)

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.

◆ v3rfun_context_write_mrf()

subroutine v3rfun_context::v3rfun_context_write_mrf ( type (v3rfun_context_class), intent(inout)  this,
type (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.

◆ v3rfun_context_write_point()

subroutine v3rfun_context::v3rfun_context_write_point ( type (v3rfun_context_class), intent(inout)  this,
type (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.