V3FIT
|
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. | |
Implements thomson scattering diagnostic. Defines the base class of the type thomson_class.
subroutine thomson::thomson_destruct | ( | type (thomson_class), intent(inout) | this | ) |
Deconstruct a thomson_class object.
Uninitializes a thomson_class object.
[in,out] | this | A thomson_class instance. |
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.
[in] | this | A thomson_class instance. |
[in] | context | A signal_class instance. |
callback | Function pointer to call back to signal module. |
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.
[in] | this | A thomson_class instance. |
class (thomson_ne_class) function, pointer thomson::thomson_ne_construct | ( | real (rprec), dimension(3), intent(in) | xcart | ) |
Construct a thomson_class object measureing density.
[in] | xcart | The measurement point. |
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.
[in] | this | A thomson_ne_class instance. |
[in] | a_model | A model instance. |
[in] | i | Index of the position for the kernel. |
[in] | flags | State flags to send to the kernel. |
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.
[in] | this | A thomson_p_class instance. |
[in] | a_model | A model instance. |
[in] | x_cart | The cartesian position of to get the kernel at. |
[in] | flags | State flags to send to the kernel. |
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.
[in,out] | this | A thomson_ne_class instance. |
[in] | a_model | A model instance. |
[out] | sigma | The modeled sigma. |
[in] | last_value | Last good value in case the signal did not change. |
class (thomson_p_class) function, pointer thomson::thomson_p_construct | ( | real (rprec), dimension(3), intent(in) | xcart | ) |
Construct a thomson_class object measureing pressure.
[in] | xcart | The measurement point. |
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.
[in,out] | this | A thomson_p_class instance. |
[in] | a_model | A model instance. |
[out] | sigma | The modeled sigma. |
[in] | last_value | Last good value in case the signal did not change. |
class (thomson_te_class) function, pointer thomson::thomson_te_construct | ( | real (rprec), dimension(3), intent(in) | xcart | ) |
Construct a thomson_class object measureing temperature.
[in] | xcart | The measurement point. |
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.
[in] | this | A thomson_te_class instance. |
[in] | a_model | A model instance. |
[in] | i | Index of the position for the kernel. |
[in] | flags | State flags to send to the kernel. |
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.
[in] | this | A thomson_te_class instance. |
[in] | a_model | A model instance. |
[in] | x_cart | The cartesian position of to get the kernel at. |
[in] | flags | State flags to send to the kernel. |
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.
[in,out] | this | A thomson_te_class instance. |
[in] | a_model | A model instance. |
[out] | sigma | The modeled sigma. |
[in] | last_value | Last good value in case the signal did not change. |