Skip to content
Projects

opencr.kinetics.eedf

Electron energy distribution functions.

An EEDF is given as the energy probability function F0(eps) in eV^-3/2, normalised by int eps^1/2 F0 deps = 1 (the convention of BOLSIG+ and of plasmacoll.solve_eedf), so that eps^1/2 F0 is the probability density of the energy. Rate coefficients are k = (2 e / m_e)^1/2 int eps sigma F0 deps.

  • Maxwellian: F0 = 2 / sqrt(pi) T^-3/2 exp(-eps / T).
  • Generalized: F0 ~ exp(-(eps / eps0)^x), Maxwellian for x = 1 and Druyvesteyn for x = 2, at a given mean energy.
  • TabulatedEEDF: any distribution on an energy grid, for example from a probe or from plasmacoll’s two-term Boltzmann solver (TabulatedEEDF.from_boltzmann).

OpenCR does not compute EEDFs; they are inputs (see the guide “The CR model”). Their energies and temperatures take an astropy Quantity or a string such as "3 eV" or "30000 K" as well as a number in eV (see plasmacoll.units).

Classes

NameDescription
EEDFBase class: a normalised electron energy probability function.
GeneralizedF0 = c exp(-(eps / eps0)^shape) with the given mean energy.
MaxwellianA Maxwellian at temperature (kT in eV, or a quantity).
TabulatedEEDFA distribution tabulated on an energy grid, normalised on construction.

EEDFclass#

class EEDF

Base class: a normalised electron energy probability function.

Numerics

normalisation

∫0∞ε1/2F0(ε) dε=1,F0 in eV−3/2\int_0^\infty \varepsilon^{1/2} F_0(\varepsilon)\, d\varepsilon = 1, \qquad F_0 \ \text{in eV}^{-3/2}

mean

⟨ε⟩=∫0∞ε3/2F0 dε,Teff=23⟨ε⟩\langle\varepsilon\rangle = \int_0^\infty \varepsilon^{3/2} F_0\, d\varepsilon, \qquad T_{\mathrm{eff}} = \tfrac23 \langle\varepsilon\rangle

rate

k=2eme∫0∞ε σ(ε) F0(ε) dεk = \sqrt{\frac{2e}{m_e}} \int_0^\infty \varepsilon\,\sigma(\varepsilon)\,F_0(\varepsilon)\,d\varepsilon

grid

ε∈{0}∪geomspace(10−4εmax⁡, εmax⁡),εmax⁡=60 Teff\varepsilon \in \{0\} \cup \mathrm{geomspace}\big(10^{-4}\varepsilon_{\max},\ \varepsilon_{\max}\big), \qquad \varepsilon_{\max} = 60\, T_{\mathrm{eff}}

Assumptions:

  • the EEDF is an input: OpenCR does not compute it
  • the rate integral is plasmacoll.eedf_rate_coefficient: trapezoid on the union of the EEDF grid, the table energies and the threshold, each interval refined 4 times, ln⁡F0\ln F_0 linear between points, F0=0F_0 = 0 beyond the grid
  • only the electron cross-section rates (and their Klein-Rosseland inverses) see a non-Maxwellian EEDF; every other rate uses TeffT_{\mathrm{eff}}

References:

effective_temperatureproperty#

effective_temperature: float

2/3 <eps> in eV, the temperature of a Maxwellian of the same mean energy.

is_maxwellianproperty#

is_maxwellian: bool

Whether the distribution is exactly Maxwellian.

mean_energyproperty#

mean_energy: float

<eps> = int eps^3/2 F0 deps in eV.

eepfmethod#

def eepf(energy: np.ndarray) -> np.ndarray

Return F0 in eV^-3/2 at energy (eV).

gridmethod#

def grid(num: int = 2000) -> np.ndarray

Return an energy grid (eV) that resolves the distribution and its tail.

tabulatemethod#

def tabulate(num: int = 2000) -> TabulatedEEDF

Return the distribution on grid.

Generalizedclassdataclass#

class Generalized(mean: float = unit_field('eV'), shape: float = 2.0)

Bases: EEDF

F0 = c exp(-(eps / eps0)^shape) with the given mean energy.

shape = 1 is a Maxwellian, shape = 2 a Druyvesteyn distribution (elastic collisions with a constant cross section in a field). With eps0 = <eps> Gamma(3/(2x)) / Gamma(5/(2x)) and c = x / (eps0^3/2 Gamma(3/(2x))). The mean energy is in eV (or a quantity).

Numerics

eepf

F0(ε)=c e−(ε/ε0)x,ε0=⟨ε⟩ Γ(3/2x)Γ(5/2x),c=xε03/2 Γ(3/2x)F_0(\varepsilon) = c\, e^{-(\varepsilon/\varepsilon_0)^x}, \qquad \varepsilon_0 = \langle\varepsilon\rangle\,\frac{\Gamma(3/2x)}{\Gamma(5/2x)}, \qquad c = \frac{x}{\varepsilon_0^{3/2}\,\Gamma(3/2x)}

grid

εmax⁡=ε0 601/x\varepsilon_{\max} = \varepsilon_0\, 60^{1/x}

Assumptions:

  • x=1x = 1 Maxwellian, x=2x = 2 Druyvesteyn (elastic collisions with a constant cross section in a field)
  • normalised with the mean ⟨ε⟩\langle\varepsilon\rangle given

meanattributeclass attributeinstance attribute#

mean: float = unit_field('eV')

shapeattributeclass attributeinstance attribute#

shape: float = 2.0

is_maxwellianproperty#

is_maxwellian: bool

Whether shape is 1.

mean_energyproperty#

mean_energy: float

The mean energy.

eepfmethod#

def eepf(energy: np.ndarray) -> np.ndarray

Return F0 at energy.

gridmethod#

def grid(num: int = 2000) -> np.ndarray

A grid to where (eps/eps0)^x reaches 60.

Inherited from opencr.kinetics.eedf.EEDF

effective_temperatureproperty#

effective_temperature: float

2/3 <eps> in eV, the temperature of a Maxwellian of the same mean energy.

tabulatemethod#

def tabulate(num: int = 2000) -> TabulatedEEDF

Return the distribution on grid.

Maxwellianclassdataclass#

class Maxwellian(temperature: float = unit_field('eV'))

Bases: EEDF

A Maxwellian at temperature (kT in eV, or a quantity).

Numerics

eepf

F0(ε)=2π T−3/2 e−ε/TF_0(\varepsilon) = \frac{2}{\sqrt\pi}\, T^{-3/2}\, e^{-\varepsilon/T}

mean

⟨ε⟩=32T\langle\varepsilon\rangle = \tfrac32 T

Assumptions:

  • detected by is_maxwellian: the rates then take the closed-form Maxwellian path

temperatureattributeclass attributeinstance attribute#

temperature: float = unit_field('eV')

is_maxwellianproperty#

is_maxwellian: bool

True.

mean_energyproperty#

mean_energy: float

3/2 T.

eepfmethod#

def eepf(energy: np.ndarray) -> np.ndarray

Return 2 / sqrt(pi) T^-3/2 exp(-eps / T).

Inherited from opencr.kinetics.eedf.EEDF

effective_temperatureproperty#

effective_temperature: float

2/3 <eps> in eV, the temperature of a Maxwellian of the same mean energy.

gridmethod#

def grid(num: int = 2000) -> np.ndarray

Return an energy grid (eV) that resolves the distribution and its tail.

tabulatemethod#

def tabulate(num: int = 2000) -> TabulatedEEDF

Return the distribution on grid.

TabulatedEEDFclass#

class TabulatedEEDF(energy: np.ndarray, eepf: np.ndarray)

Bases: EEDF

A distribution tabulated on an energy grid, normalised on construction.

Between the points log F0 is interpolated linearly (F0 where it is zero); beyond the last point F0 is zero.

Parameters

NameTypeDescription
energynp.ndarrayThe grid in eV (or a quantity), increasing, >= 0.
eepfnp.ndarrayF0 at energy, non-negative, in any normalisation.

Numerics

normalisation

F0←F0∑i12(εi1/2F0,i+εi+11/2F0,i+1)(εi+1−εi)F_0 \leftarrow \frac{F_0}{\sum_i \tfrac12 \big(\varepsilon_i^{1/2} F_{0,i} + \varepsilon_{i+1}^{1/2} F_{0,i+1}\big)(\varepsilon_{i+1} - \varepsilon_i)}

interpolation

ln⁡F0 linear between the points (F0 itself next to a zero),F0=0 beyond the last\ln F_0 \ \text{linear between the points} \ (F_0 \text{ itself next to a zero}), \qquad F_0 = 0 \ \text{beyond the last}

mean

⟨ε⟩=∑i12(εi3/2F0,i+εi+13/2F0,i+1)(εi+1−εi)\langle\varepsilon\rangle = \sum_i \tfrac12 \big(\varepsilon_i^{3/2} F_{0,i} + \varepsilon_{i+1}^{3/2} F_{0,i+1}\big)(\varepsilon_{i+1} - \varepsilon_i)

Assumptions:

  • any distribution on an energy grid: a probe, or plasmacoll’s two-term Boltzmann solver
  • normalised by the trapezoidal rule on construction

energyattributeinstance attribute#

energy = energy

valuesattributeinstance attribute#

values = eepf / norm

mean_energyproperty#

mean_energy: float

int eps^3/2 F0 deps on the table.

eepfmethod#

def eepf(energy: np.ndarray) -> np.ndarray

Return F0 at energy, interpolated.

from_boltzmannmethodclassmethod#

def from_boltzmann(solution: Any) -> TabulatedEEDF

Return the distribution of a plasmacoll.BoltzmannSolution.

gridmethod#

def grid(num: int = 2000) -> np.ndarray

The table’s own grid.

tabulatemethod#

def tabulate(num: int = 2000) -> TabulatedEEDF

Itself.

Inherited from opencr.kinetics.eedf.EEDF

effective_temperatureproperty#

effective_temperature: float

2/3 <eps> in eV, the temperature of a Maxwellian of the same mean energy.

is_maxwellianproperty#

is_maxwellian: bool

Whether the distribution is exactly Maxwellian.