Grids

Discretization grids for altitude, energy, and pitch angle.

Altitude

AURORA.AltitudeGridType
AltitudeGrid{FT, V<:AbstractVector{FT}} <: AbstractGrid

Altitude grid for the ionosphere simulation.

Fields

  • h: altitude values (m)
  • Δh: grid spacing (m)
  • n: number of grid points
  • bottom: 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).

source
AURORA.make_altitude_gridFunction
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 simulation
  • top_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]
source

Energy

AURORA.EnergyGridType
EnergyGrid{FT, V<:AbstractVector{FT}} <: AbstractGrid

Energy grid for electron transport.

Fields

  • E_edges: energy bin edges (eV), length n + 1
  • E_centers: energy bin centers (eV), length n
  • ΔE: energy bin widths (eV), length n
  • n: number of energy bins
  • E_max: requested maximum energy (eV)
source
AURORA.make_energy_gridFunction
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]
source

Pitch angle