Stellarator-Tools
Loading...
Searching...
No Matches
emission Module Reference

Defines the base class of the type emission_class. This contains the X-Ray emission as function of temperature and energy. This needs to still be multiplied by ne^2. More...

Data Types

type  emission_class
 Base class representing the soft x-ray emission function. More...
interface  emission_construct

Functions/Subroutines

class(emission_class) function, pointer emission_construct_netcdf (filename)
 Construct a emission_class object.
subroutine emission_destruct (this)
 Deconstruct a emission_class object.
real(rprec) function emission_get_emission (this, te, ne, index)
 Gets the emission as a function of energy for a fixed temperature.

Detailed Description

Defines the base class of the type emission_class. This contains the X-Ray emission as function of temperature and energy. This needs to still be multiplied by ne^2.

Function/Subroutine Documentation

◆ emission_construct_netcdf()

class (emission_class) function, pointer emission::emission_construct_netcdf ( character (len=*), intent(in) filename)

Construct a emission_class object.

Allocates memory and initialized a emission_class object from a netcdf file.

Parameters
[in]filenameFile path to the emissivity netcdf file.
Returns
A pointer to a constructed emission_class object.

◆ emission_destruct()

subroutine emission::emission_destruct ( type (emission_class), intent(inout) this)

Deconstruct a emission_class object.

Deallocates memory and uninitializes a emission_class object.

Parameters
[in,out]thisA emission_class instance.

◆ emission_get_emission()

real (rprec) function emission::emission_get_emission ( class (emission_class), intent(in) this,
real (rprec), intent(in) te,
real (rprec), intent(in) ne,
integer, intent(in) index )

Gets the emission as a function of energy for a fixed temperature.

The emission for a fixed temperature is interpolated from a the temperature grid points. The emission array columns are the temperature and rows are the energy. Transmission and absorption function convert to the signal

Parameters
[in]thisA emission_class instance.
[in]teThe electron temperature.
[in]neThe electron density.
[in]indexFilter index of the camera array.
Returns
The emissivity function for a fixed temperature.