Grids
Discretization grids for altitude, energy, and pitch angle.
Altitude
AURORA.AltitudeGrid — Type
AltitudeGrid{FT, V<:AbstractVector{FT}} <: AbstractGridAltitude grid for the ionosphere simulation.
Fields
h: altitude values (m)Δh: grid spacing (m)n: number of grid pointsbottom: bottom altitude (km)top: top altitude (km)
Constructor
AltitudeGrid(bottom, top; dz_max=25)Create an altitude grid from bottom to top (in km), with maximum grid spacing dz_max (km).
AURORA.make_altitude_grid — Function
make_altitude_grid(bottom_altitude, top_altitude; dz_max=25)Create an altitude grid based on the altitude limits given as input. It uses constant steps of 150m for altitudes below 100km, and a non-linear grid above 100km.
Calling
h_atm = make_altitude_grid(bottom_altitude, top_altitude; max_dz=25)
Arguments
bottom_altitude: altitude, in km, for the bottom of the simulationtop_altitude: altitude, in km, for the top of the simulation
Keyword Arguments
dz_max = 25: maximum step size, in km. Relevant for high altitudes where the numbers can get large.
Outputs
h_atm: altitude (m). Vector [nZ]
Energy
AURORA.EnergyGrid — Type
EnergyGrid{FT, V<:AbstractVector{FT}} <: AbstractGridEnergy grid for electron transport.
Fields
E_edges: energy bin edges (eV), lengthn + 1E_centers: energy bin centers (eV), lengthnΔE: energy bin widths (eV), lengthnn: number of energy binsE_max: requested maximum energy (eV)
AURORA.make_energy_grid — Function
make_energy_grid(E_max)Create an energy grid based on the maximum energy E_max given as input.
Calling
E_edges, E_centers, ΔE = make_energy_grid(E_max)
Inputs
E_max: upper limit for the energy grid (in eV)
Outputs
E_edges: energy bin edges (eV). Vector [nE + 1]E_centers: energy bin centers (eV). Vector [nE]ΔE: energy bin widths (eV). Vector [nE]
Pitch angle
AURORA.PitchAngleGrid — Type
PitchAngleGrid{FT, V<:AbstractVector{FT}} <: AbstractGridPitch-angle grid for electron beams.