V3FIT
Data Types | Functions/Subroutines
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

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

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()

type (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.

Definition at line 84 of file emission.f.

◆ emission_destruct()

subroutine emission::emission_destruct ( type (emission_class), pointer  this)

Deconstruct a emission_class object.

Deallocates memory and uninitializes a emission_class object.

Parameters
[in,out]thisA emission_class instance.

Definition at line 134 of file emission.f.

◆ emission_get_emission()

real (rprec) function emission::emission_get_emission ( type (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.

Definition at line 167 of file emission.f.