Stellarator-Tools
Loading...
Searching...
No Matches
sxrem::sxrem_context Type Reference

Structure to hold all memory needed to be sent to the callback function. More...

Inheritance diagram for sxrem::sxrem_context:
integration_path_context::integration_path_context_class sxrem::sxrem_gp_context_i sxrem::sxrem_gp_context_s sxrem::sxrem_gp_context_x sxrem::sxrem_ti_context sxrem::sxrem_gp_ti_context_i sxrem::sxrem_gp_ti_context_s sxrem::sxrem_gp_ti_context_x

Public Member Functions

procedure run (context, xcart, dxcart, length, dx)
 Soft x-ray callback function.
 
- Public Member Functions inherited from integration_path_context::integration_path_context_class
procedure(integration_function), deferred run integration_function
 

Public Attributes

integer profile_number
 The index of the emissivity profile model.
 
class(model_class), pointer model => null()
 Reference to a model::model_class object.
 

Detailed Description

Structure to hold all memory needed to be sent to the callback function.

Member Function/Subroutine Documentation

◆ run()

procedure sxrem::sxrem_context::run ( class (sxrem_context), intent(in)  context,
real (rprec), dimension(3), intent(in)  xcart,
real (rprec), dimension(3), intent(in)  dxcart,
real (rprec), intent(in)  length,
real (rprec), intent(in)  dx 
)

Soft x-ray callback function.

Returns the value of the soft x-ray emissivity times the change in path length. The soft x-ray emissivity is provided by model::model_get_sxrem.

See also
integration_path
Parameters
[in]contextA sxrem_context for the model.
[in]xcartThe integration point.
[in]dxcartA vector change in path. Not used in this function.
[in]lengthLength along the integration.
[in]dxA scalar change in path.
Returns
The sxrem(x)*dl at point x.

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