| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(AVALANCHE_PDF_PARAMS), | private | :: | aval_params | ||||
| real(kind=rp), | private, | parameter | :: | minmax_buffer_size | = | 10.0_rp |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rp), | public | :: | max_pitch_angle | Maximum pitch angle of sampled PDF in degrees |
|||
| real(kind=rp), | public | :: | min_pitch_angle | Minimum pitch angle of sampled PDF in degrees |
|||
| real(kind=rp), | public | :: | min_energy | Minimum energy of sampled PDF in MeV |
|||
| real(kind=rp), | public | :: | max_energy | Maximum energy of sampled PDF in MeV |
|||
| real(kind=rp), | public | :: | min_p | Minimum momentum of sampled PDF |
|||
| real(kind=rp), | public | :: | max_p | Maximum momentum of sampled PDF |
|||
| real(kind=rp), | public | :: | ne | Background electron density in m^-3 |
|||
| real(kind=rp), | public | :: | Zeff | Effective atomic number of ions |
|||
| real(kind=rp), | public | :: | Ec | Critical electric field in V/m |
|||
| real(kind=rp), | public | :: | Epar | Parallel electric field in V/m |
|||
| real(kind=rp), | public | :: | Ebar | Epar/Ec |
|||
| real(kind=rp), | public | :: | Te | Background electron temperature in eV |
|||
| real(kind=rp), | public | :: | lD | Debye length |
|||
| real(kind=rp), | public | :: | bmin | Maximum approach radius |
|||
| real(kind=rp), | public | :: | CoulombLog | Coulomb Logarithm |
|||
| real(kind=rp), | public | :: | Tau | Collisional time |
|||
| real(kind=rp), | public | :: | dth | Variance of sampling normal variate for pitch angle |
|||
| real(kind=rp), | public | :: | dp | Variance of sampling normal variate for momentum |
|||
| real(kind=rp), | public | :: | dR | Variance of sampling normal variate for R location |
|||
| real(kind=rp), | public | :: | dZ | Variance of sampling normal variate for Z location |
|||
| real(kind=rp), | public | :: | fo | ||||
| real(kind=rp), | public | :: | alpha | ||||
| real(kind=rp), | public | :: | cz | ||||
| real(kind=rp), | public | :: | C1 | ||||
| real(kind=rp), | public | :: | C2 |
| 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) | :: | p |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | x | |||
| real(kind=rp), | intent(in) | :: | p |
Calculates value of argument of 2D Gaussian spatial distribution with with counter-clockwise rotation.
| 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
Compares argument psi to chosen psi_max, returning step function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | psi | |||
| real(kind=rp), | intent(in) | :: | psi_max |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rp), | intent(in) | :: | mean | |||
| real(kind=rp), | intent(in) | :: | sigma |
| 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(PROFILES), | intent(in) | :: | P | |||
| 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 | |||
| 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 |
Updates the avalanche parameters aval_params% at each step in the MCMC after the profiles are interpolated at the sampled R,Z location.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params | Core KORC simulation parameters. |
||
| type(PARTICLES), | intent(in) | :: | prtcls | An instance of PARTICLES containing the variables of a given species. Call to this subroutine generally passes spp%vars. |
| 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(PROFILES), | intent(in) | :: | P | An instance of the KORC derived type PROFILES. |
||
| type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(KORC_PARAMS), | intent(in) | :: | params |