Source code for tardis.plasma.electron_energy_distribution.base
from dataclasses import dataclass
from astropy import units as u
[docs]
@dataclass
class ElectronEnergyDistribution:
"""Electron energy distribution.
energy : Quantity
Electron energies in ergs.
"""
energy: u.Quantity
[docs]
@dataclass
class ThermalElectronEnergyDistribution(ElectronEnergyDistribution):
"""Thermal electron temperature and density distribution.
temperature : Quantity
Electron temperatures in Kelvin.
number_density : Quantity
Electron number densities in g/cm^3.
"""
temperature: u.Quantity
number_density: u.Quantity