Code |
def h_eex_janev_12(E, A1, A2, A3, A4, A5, A6, A7, A8, A9, I):
"""
This function calculates electron impact excitation cross sections (in cm2) of
H n=1 to n=2
param E: requested electron-impact energy in eV
type E: np.ndarray
param Ai: fit coefficient
type Ai: float
param I: threshold energy in eV
type I: float
"""
sigma = (5.984e-16/E)*(A1/(E/I)**0 + A2/(E/I)**1 + A3/(E/I)**2 +
A4/(E/I)**3 + A5/(E/I)**4 + A6*np.log(E/I))
ind_below = np.where(E < 12.23)
for ind in ind_below[0]:
if E[ind] < 11.56:
sigma[ind] = 1e-16*(A8 + A9*(E[ind]-I))
else:
sigma[ind] = A7
return sigma |