Fit Function: na_eex

Fit Function \[\sigma_{e}^{exc, Na} (E) = \frac{10^{-16}A_7}{E} \Bigg[\frac{E - \Delta E}{E} \Bigg]^{A_6} \Bigg[A_5 \ln\bigg( \frac{E}{\Delta E} \bigg) + \sum_{j=1}^{4} A_j \bigg( \frac{E}{\Delta E} \bigg) ^{-(j-1)} \Bigg]\]
Comments Python code requires NumPy imported as `np`.

Python

Arguments
namedescriptionunitstype(s)
E impact energy eV float, np.ndarray
A1 fit coefficient float
A2 fit coefficient float
A3 fit coefficient float
A4 fit coefficient float
A5 fit coefficient float
A6 fit coefficient float
A7 fit coefficient eV cm2 float
I ionization energy eV float
Return values
namedescriptionunitstype(s)
sigma cross section cm2 float, np.ndarray
Code
def na_eex(E, A1, A2, A3, A4, A5, A6, A7, I):
    """
    This function calculates electron impact excitation cross sections (in cm2) of 
    Na from [3s ... 4f] to [3p ... 5s]
    param E: requested electron-impact energy in eV
    type E: float, np.ndarray
    param Ai: fit coefficient 
    type Ai: float
    param I: ionization energy in eV
    type I: float
    """
    sigma =  (A7*1e-16)/E * ((E-I)/E)**A6 * (A1/(E/I)**0 + A2/(E/I)**1 + 
                                               A3/(E/I)**2 + A4/(E/I)**3 + A5*np.log(E/I))
    return sigma