Calculate the flux of trapped particles at a specific location and time. This is just a function version of the class method from radbelt_type.
Note
This routine is not efficient at all since it will reload all the files every time it is called.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(3) | :: | v | ||
real(kind=wp), | intent(in) | :: | year |
decimal year for which geomagnetic field is to be calculated (e.g.:1995.5 for day 185 of 1995) |
||
real(kind=wp), | intent(in) | :: | e |
minimum energy |
||
integer, | intent(in) | :: | imname |
which method to use:
|
The flux of particles above the given energy, in units of cm^-2 s^-1.
function get_flux_c(v, year, e, imname) result(flux) real(wp), dimension(3), intent(in) :: v real(wp), intent(in) :: year !! decimal year for which geomagnetic field is to !! be calculated (e.g.:1995.5 for day 185 of 1995) real(wp), intent(in) :: e !! minimum energy integer, intent(in) :: imname !! which method to use: !! !! * 1 -- particle species: electrons, solar activity: min !! * 2 -- particle species: electrons, solar activity: max !! * 3 -- particle species: protons, solar activity: min !! * 4 -- particle species: protons, solar activity: max real(wp) :: flux !! The flux of particles above the given energy, in units of cm^-2 s^-1. type(radbelt_type) :: radbelt flux = radbelt%get_flux(v, year, e, imname) end function get_flux_c