| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(PARAMS), | private | :: | pdf_params | ||||
| type(HOLLMANN_PARAMS), | public | :: | h_params | ||||
| real(kind=rp), | private, | parameter | :: | xo | = | (C_ME*C_C**2/C_E)/1.0E6 | |
| real(kind=rp), | private, | parameter | :: | Tol | = | 1.0E-5_rp | |
| real(kind=rp), | private, | parameter | :: | minmax_buffer_size | = | 10.0_rp |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rp), | public | :: | E | ||||
| real(kind=rp), | public | :: | Zeff | ||||
| real(kind=rp), | public | :: | max_pitch_angle | ||||
| real(kind=rp), | public | :: | min_pitch_angle | ||||
| real(kind=rp), | public | :: | min_energy | ||||
| real(kind=rp), | public | :: | max_energy | ||||
| real(kind=rp), | public | :: | min_p | ||||
| real(kind=rp), | public | :: | max_p | ||||
| real(kind=rp), | public | :: | k | ||||
| real(kind=rp), | public | :: | t | ||||
| real(kind=rp), | public | :: | fGo | ||||
| real(kind=rp), | public | :: | Bo | ||||
| real(kind=rp), | public | :: | lambda | ||||
| real(kind=rp), | public | :: | A_fact |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=MAX_STRING_LENGTH), | public | :: | filename | ||||
| integer, | public | :: | rho_ind | ||||
| real(kind=rp), | public | :: | E | ||||
| real(kind=rp), | public | :: | Eo | ||||
| real(kind=rp), | public | :: | sigma_E | ||||
| real(kind=rp), | public | :: | Zeff | ||||
| real(kind=rp), | public | :: | sigma_Z | ||||
| real(kind=rp), | public | :: | max_pitch_angle | ||||
| real(kind=rp), | public | :: | min_pitch_angle | ||||
| real(kind=rp), | public | :: | min_sampling_energy | ||||
| real(kind=rp), | public | :: | max_sampling_energy | ||||
| real(kind=rp), | public | :: | min_sampling_g | ||||
| real(kind=rp), | public | :: | max_sampling_g | ||||
| real(kind=rp), | public | :: | min_energy | ||||
| real(kind=rp), | public | :: | max_energy | ||||
| real(kind=rp), | public | :: | min_g | ||||
| real(kind=rp), | public | :: | max_g | ||||
| real(kind=rp), | public | :: | min_pitch | ||||
| real(kind=rp), | public | :: | max_pitch | ||||
| integer, | public | :: | N | ||||
| integer, | public | :: | NE | ||||
| integer, | public | :: | Nrho | ||||
| real(kind=rp), | public, | DIMENSION(:), ALLOCATABLE | :: | E_axis | |||
| real(kind=rp), | public, | DIMENSION(:), ALLOCATABLE | :: | rho_axis | |||
| real(kind=rp), | public, | DIMENSION(:), ALLOCATABLE | :: | g | |||
| real(kind=rp), | public, | DIMENSION(:), ALLOCATABLE | :: | fRE_E | |||
| real(kind=rp), | public, | DIMENSION(:), ALLOCATABLE | :: | fRE_pitch | |||
| real(kind=rp), | public, | DIMENSION(:,:), ALLOCATABLE | :: | fRE_E_2D | |||
| real(kind=rp), | public, | DIMENSION(:,:), ALLOCATABLE | :: | fRE_pitch_2D | |||
| character(len=MAX_STRING_LENGTH), | public | :: | current_direction | ||||
| real(kind=rp), | public | :: | Bo | ||||
| real(kind=rp), | public | :: | lambda | ||||
| real(kind=rp), | public | :: | A_fact | ||||
| logical, | public | :: | gam_min_from_col |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | x |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | x |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | x | |||
| real(kind=rp), | intent(in) | :: | k | |||
| real(kind=rp), | intent(in) | :: | t |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | p |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | p |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | mean | |||
| real(kind=rp), | intent(in) | :: | sigma |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | v | |||
| real(kind=rp), | intent(in) | :: | x |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | v | |||
| real(kind=rp), | intent(in) | :: | x |
@brief Extended trapezoidal rule for integrating the Gamma PDF. See Sec. 4.2 of Numerical Recipies in Fortran 77.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | a | |||
| real(kind=rp), | intent(in) | :: | b | |||
| real(kind=rp), | intent(in) | :: | k | |||
| real(kind=rp), | intent(in) | :: | t |
@brief Extended trapezoidal rule for integrating the modified Bessel function of second kind. See Sec. 4.2 of Numerical Recipies in Fortran 77.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | a | |||
| real(kind=rp), | intent(in) | :: | b |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | p | |||
| real(kind=rp), | intent(in) | :: | Bo | |||
| real(kind=rp), | intent(in) | :: | l |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | g |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| type(FIELDS), | intent(in) | :: | F | |||
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | g | |||
| real(kind=rp), | intent(in) | :: | R | |||
| real(kind=rp), | intent(in) | :: | Z | |||
| real(kind=rp), | intent(in) | :: | R0 | |||
| real(kind=rp), | intent(in) | :: | Z0 | |||
| real(kind=rp), | intent(in), | optional | :: | EPHI | ||
| integer, | intent(in), | optional | :: | rho_ind |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | g | |||
| real(kind=rp), | intent(in) | :: | EPHI | |||
| real(kind=rp), | intent(in) | :: | ne | |||
| real(kind=rp), | intent(in) | :: | Te | |||
| real(kind=rp), | intent(in) | :: | nAr0 | |||
| real(kind=rp), | intent(in) | :: | nAr1 | |||
| real(kind=rp), | intent(in) | :: | nAr2 | |||
| real(kind=rp), | intent(in) | :: | nAr3 | |||
| real(kind=rp), | intent(in) | :: | nD | |||
| real(kind=rp), | intent(in) | :: | nD1 |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | eta | |||
| real(kind=rp), | intent(in) | :: | g |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | g |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | R | R-coordinate of MH sampled location |
||
| real(kind=rp), | intent(in) | :: | R0 | R-coordinate of center of 2D Gaussian |
||
| real(kind=rp), | intent(in) | :: | sigR | Variance of first dimension of 2D Gaussian |
||
| real(kind=rp), | intent(in) | :: | Z | Z-coordinate of MH sampled location |
||
| real(kind=rp), | intent(in) | :: | Z0 | Z-coordinate of center of 2D Gaussian |
||
| real(kind=rp), | intent(in) | :: | sigZ | Variance of second dimension of 2D Gaussian |
||
| real(kind=rp), | intent(in) | :: | theta | Angle of counter-clockwise rotation (in radians), of 2D Gaussian distribution relative to R,Z |
Argument of exponential comprising 2D Gaussian distribution
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | psi | |||
| real(kind=rp), | intent(in) | :: | psi_max |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| real(kind=rp), | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | g | ||
| real(kind=rp), | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | eta | ||
| real(kind=rp), | intent(out) | :: | go | |||
| real(kind=rp), | intent(out) | :: | etao |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | z | |||
| real(kind=rp), | intent(out) | :: | P |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| real(kind=rp), | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | g | ||
| real(kind=rp), | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | eta | ||
| real(kind=rp), | intent(out) | :: | go | |||
| real(kind=rp), | intent(out) | :: | etao |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| type(SPECIES), | intent(inout) | :: | spp |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| type(SPECIES), | intent(inout) | :: | spp | |||
| type(FIELDS), | intent(in) | :: | F |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(inout) | :: | params | |||
| type(SPECIES), | intent(inout) | :: | spp | |||
| type(FIELDS), | intent(in) | :: | F |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(inout) | :: | params | |||
| type(SPECIES), | intent(inout) | :: | spp | |||
| type(FIELDS), | intent(in) | :: | F |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |
MCMC and MH algorithm perfomred on single MPI process to sample distribution function fRE_H
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | |||
| type(SPECIES), | intent(inout) | :: | spp |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | Core KORC simulation parameters. |
||
| type(SPECIES), | intent(inout) | :: | spp | An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation. |
||
| type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(inout) | :: | params | Core KORC simulation parameters. |
||
| type(SPECIES), | intent(inout) | :: | spp | An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation. |
||
| type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(inout) | :: | params | Core KORC simulation parameters. |
||
| type(SPECIES), | intent(inout) | :: | spp | An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation. |
||
| type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |