V3FIT
Data Types | Functions/Subroutines | Variables
thomson Module Reference

Implements thomson scattering diagnostic. Defines the base class of the type thomson_class. More...

Data Types

type  thomson_class
 Base class representing a thomson scattering signal. More...
 
interface  thomson_ne_class
 Base class representing a thomson scattering te signal. More...
 
interface  thomson_p_class
 Base class representing a thomson scattering te signal. More...
 
interface  thomson_te_class
 Base class representing a thomson scattering te signal. More...
 

Functions/Subroutines

class(thomson_te_class) function, pointer thomson_te_construct (xcart)
 Construct a thomson_class object measureing temperature. More...
 
class(thomson_ne_class) function, pointer thomson_ne_construct (xcart)
 Construct a thomson_class object measureing density. More...
 
class(thomson_p_class) function, pointer thomson_p_construct (xcart)
 Construct a thomson_class object measureing pressure. More...
 
subroutine thomson_destruct (this)
 Deconstruct a thomson_class object. More...
 
real(rprec) function, dimension(4) thomson_te_get_modeled_signal (this, a_model, sigma, last_value)
 Calculates the modeled te signal. More...
 
real(rprec) function, dimension(4) thomson_ne_get_modeled_signal (this, a_model, sigma, last_value)
 Calculates the modeled ne signal. More...
 
real(rprec) function, dimension(4) thomson_p_get_modeled_signal (this, a_model, sigma, last_value)
 Calculates the modeled pressure signal. More...
 
character(len=data_name_length) function thomson_get_type (this)
 Gets a discription of the thomson type. More...
 
real(rprec) function thomson_get_gp_s (this, a_model, signal, flags)
 Gets the guassian process kernel for a thomson signal and a signal. More...
 
real(rprec) function thomson_te_get_gp_i (this, a_model, i, flags)
 Gets the guassian process kernel for a thomson te signal and a position. More...
 
real(rprec) function thomson_te_get_gp_x (this, a_model, x_cart, flags)
 Gets the guassian process kernel for a thomson te signal and a cartesian position. More...
 
real(rprec) function thomson_ne_get_gp_i (this, a_model, i, flags)
 Gets the guassian process kernel for a thomson ne signal and a position. More...
 
real(rprec) function thomson_ne_get_gp_x (this, a_model, x_cart, flags)
 Gets the guassian process kernel for a thomson ne signal and a cartesian position. More...
 

Variables

character(len= *), parameter thomson_p_error = 'Guassian processes are not supported ' // 'for thomson pressure measurements.'
 Assert message for pressure methods.
 

Detailed Description

Implements thomson scattering diagnostic. Defines the base class of the type thomson_class.

Super Class:
diagnostic

Function/Subroutine Documentation

◆ thomson_destruct()

subroutine thomson::thomson_destruct ( type (thomson_class), intent(inout)  this)

Deconstruct a thomson_class object.

Uninitializes a thomson_class object.

Parameters
[in,out]thisA thomson_class instance.

Definition at line 210 of file thomson.f.

◆ thomson_get_gp_s()

real (rprec) function thomson::thomson_get_gp_s ( class (thomson_class), intent(in)  this,
type (model_class), pointer  a_model,
class (signal_class), intent(in)  signal,
integer, intent(in)  flags 
)

Gets the guassian process kernel for a thomson signal and a signal.

Calculates the guassian process kernel between the signal and a signal. Calls back to the signal module to call the other signal. This does not support pressure measurements.

Parameters
[in]thisA thomson_class instance.
[in]contextA signal_class instance.
callbackFunction pointer to call back to signal module.
Returns
Kernel value for the signal and the signal.

Definition at line 422 of file thomson.f.

◆ thomson_get_type()

character (len=data_name_length) function thomson::thomson_get_type ( class (thomson_class), intent(in)  this)

Gets a discription of the thomson type.

Returns a description of the thomson type for use when writting output files.

Parameters
[in]thisA thomson_class instance.
Returns
A string describing the thomson type.

Definition at line 389 of file thomson.f.

◆ thomson_ne_construct()

class (thomson_ne_class) function, pointer thomson::thomson_ne_construct ( real (rprec), dimension(3), intent(in)  xcart)

Construct a thomson_class object measureing density.

Parameters
[in]xcartThe measurement point.
Returns
A pointer to a constructed thomson_class object.

Definition at line 152 of file thomson.f.

◆ thomson_ne_get_gp_i()

real (rprec) function thomson::thomson_ne_get_gp_i ( class (thomson_ne_class), intent(in)  this,
type (model_class), pointer  a_model,
integer, intent(in)  i,
integer, intent(in)  flags 
)

Gets the guassian process kernel for a thomson ne signal and a position.

Calculates the guassian process kernel between the signal and the position. Denisty kernels are provided by model::model_get_gp_ne. This does not support pressure measurements.

Parameters
[in]thisA thomson_ne_class instance.
[in]a_modelA model instance.
[in]iIndex of the position for the kernel.
[in]flagsState flags to send to the kernel.
Returns
Kernel value for the position and the signal.

Definition at line 537 of file thomson.f.

◆ thomson_ne_get_gp_x()

real (rprec) function thomson::thomson_ne_get_gp_x ( class (thomson_ne_class), intent(in)  this,
type (model_class), pointer  a_model,
real (rprec), dimension(3), intent(in)  x_cart,
integer, intent(in)  flags 
)

Gets the guassian process kernel for a thomson ne signal and a cartesian position.

Calculates the guassian process kernel between the signal and the position. Denisty kernels are provided by model::model_get_gp_ne. This is the second signal so x_cart goes in the second position and this signal in the first.

Parameters
[in]thisA thomson_p_class instance.
[in]a_modelA model instance.
[in]x_cartThe cartesian position of to get the kernel at.
[in]flagsState flags to send to the kernel.
Returns
Kernel value for the signal and the signal.

Definition at line 576 of file thomson.f.

◆ thomson_ne_get_modeled_signal()

real (rprec) function, dimension(4) thomson::thomson_ne_get_modeled_signal ( class (thomson_ne_class), intent(inout)  this,
type (model_class), pointer  a_model,
real (rprec), dimension(4), intent(out)  sigma,
real (rprec), dimension(4), intent(in)  last_value 
)

Calculates the modeled ne signal.

Calculates the modeled signal at a point. Density is provided by model::model_get_ne.

Parameters
[in,out]thisA thomson_ne_class instance.
[in]a_modelA model instance.
[out]sigmaThe modeled sigma.
[in]last_valueLast good value in case the signal did not change.
Returns
The model value.

Definition at line 290 of file thomson.f.

◆ thomson_p_construct()

class (thomson_p_class) function, pointer thomson::thomson_p_construct ( real (rprec), dimension(3), intent(in)  xcart)

Construct a thomson_class object measureing pressure.

Parameters
[in]xcartThe measurement point.
Returns
A pointer to a constructed thomson_class object.

Definition at line 179 of file thomson.f.

◆ thomson_p_get_modeled_signal()

real (rprec) function, dimension(4) thomson::thomson_p_get_modeled_signal ( class (thomson_p_class), intent(inout)  this,
type (model_class), pointer  a_model,
real (rprec), dimension(4), intent(out)  sigma,
real (rprec), dimension(4), intent(in)  last_value 
)

Calculates the modeled pressure signal.

Calculates the modeled signal at a point. Pressure is provided by model::model_get_p.

Parameters
[in,out]thisA thomson_p_class instance.
[in]a_modelA model instance.
[out]sigmaThe modeled sigma.
[in]last_valueLast good value in case the signal did not change.
Returns
The model value.

Definition at line 342 of file thomson.f.

◆ thomson_te_construct()

class (thomson_te_class) function, pointer thomson::thomson_te_construct ( real (rprec), dimension(3), intent(in)  xcart)

Construct a thomson_class object measureing temperature.

Parameters
[in]xcartThe measurement point.
Returns
A pointer to a constructed thomson_class object.

Definition at line 125 of file thomson.f.

◆ thomson_te_get_gp_i()

real (rprec) function thomson::thomson_te_get_gp_i ( class (thomson_te_class), intent(in)  this,
type (model_class), pointer  a_model,
integer, intent(in)  i,
integer, intent(in)  flags 
)

Gets the guassian process kernel for a thomson te signal and a position.

Calculates the guassian process kernel between the signal and the position. Temperature kernels are provided by model::model_get_gp_te.

Parameters
[in]thisA thomson_te_class instance.
[in]a_modelA model instance.
[in]iIndex of the position for the kernel.
[in]flagsState flags to send to the kernel.
Returns
Kernel value for the position and the signal.

Definition at line 459 of file thomson.f.

◆ thomson_te_get_gp_x()

real (rprec) function thomson::thomson_te_get_gp_x ( class (thomson_te_class), intent(in)  this,
type (model_class), pointer  a_model,
real (rprec), dimension(3), intent(in)  x_cart,
integer, intent(in)  flags 
)

Gets the guassian process kernel for a thomson te signal and a cartesian position.

Calculates the guassian process kernel between the signal and the position. Temperature kernels are provided by model::model_get_gp_te. This is the second signal so x_cart goes in the second position and this signal in the first.

Parameters
[in]thisA thomson_te_class instance.
[in]a_modelA model instance.
[in]x_cartThe cartesian position of to get the kernel at.
[in]flagsState flags to send to the kernel.
Returns
Kernel value for the signal and the signal.

Definition at line 499 of file thomson.f.

◆ thomson_te_get_modeled_signal()

real (rprec) function, dimension(4) thomson::thomson_te_get_modeled_signal ( class (thomson_te_class), intent(inout)  this,
type (model_class), pointer  a_model,
real (rprec), dimension(4), intent(out)  sigma,
real (rprec), dimension(4), intent(in)  last_value 
)

Calculates the modeled te signal.

Calculates the modeled signal at a point. Temperature is provided by model::model_get_te.

Parameters
[in,out]thisA thomson_te_class instance.
[in]a_modelA model instance.
[out]sigmaThe modeled sigma.
[in]last_valueLast good value in case the signal did not change.
Returns
The model value.

Definition at line 238 of file thomson.f.