ecx__core Module

Core.


Uses

  • module~~ecx__core~~UsesGraph module~ecx__core ecx__core codata codata module~ecx__core->codata ieee_arithmetic ieee_arithmetic module~ecx__core->ieee_arithmetic iso_c_binding iso_c_binding module~ecx__core->iso_c_binding stdlib_kinds stdlib_kinds module~ecx__core->stdlib_kinds stdlib_math stdlib_math module~ecx__core->stdlib_math

Used by

  • module~~ecx__core~~UsedByGraph module~ecx__core ecx__core module~capi__core capi__core module~capi__core->module~ecx__core module~ecx ecx module~ecx->module~ecx__core module~ecx__eis ecx__eis module~ecx->module~ecx__eis module~ecx__kinetics ecx__kinetics module~ecx->module~ecx__kinetics module~ecx__pec ecx__pec module~ecx->module~ecx__pec module~capi capi module~ecx->module~capi module~ecx__eis->module~ecx__core module~ecx__kinetics->module~ecx__core module~ecx__pec->module~ecx__core module~capi->module~capi__core module~capi__eis capi__eis module~capi->module~capi__eis module~capi__kinetics capi__kinetics module~capi->module~capi__kinetics module~capi__eis->module~ecx__eis module~capi__kinetics->module~ecx__kinetics

Variables

Type Visibility Attributes Name Initial
real(kind=dp), public, parameter :: PI = 4.0_dp*datan(1.0_dp)

PI

real(kind=dp), public, parameter :: T_K = 273.15_dp

0°C in Kelvin.

real(kind=c_double), public, bind(C, name="0") :: capi_PI = PI
real(kind=c_double), public, bind(C, name="0") :: capi_T_K = T_K

Functions

public function assertEqual(x1, x2, n) result(r)

Assert if two numbers are equal.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x1

First number to be compared.

real(kind=dp), intent(in) :: x2

Second number to be compared.

integer(kind=int32), intent(in) :: n

Number of digits.

Return Value logical

Comparison result.

public pure elemental function deg2rad(theta) result(phase)

Converts degrees to rad.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: theta

Angle in degrees.

Return Value real(kind=dp)

Angle in rad.

public pure elemental function kTe(T) result(r)

Compute the thermal voltage.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: T

Temperature in °C.

Return Value real(kind=dp)

Thermal voltage in V.

public pure elemental function nm2eV(lambda) result(E)

Convert wavelength to energy

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: lambda

Wavelength in nm.

Return Value real(kind=dp)

Energy in eV.

public pure elemental function rad2deg(phase) result(theta)

Converts degrees to rad.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: phase

Angle in rad.

Return Value real(kind=dp)

Angle in degrees.

public pure elemental function roundn(x, n) result(r)

Round x to n digits.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x

Number to be rounded.

integer(kind=int32), intent(in) :: n

Number of digits.s

Return Value real(kind=dp)

Rounded number