h_hex_janev_2n
Fit Function | \[\sigma_{ex}^{2\rightarrow n > 5}(E) =10^{-16}A_1A_7 \Bigg[\frac{e^{-\frac{A_2}{E}}\ln(1+A_3E)}{E} + \frac{A_4e^{-A_5E}}{E^{A_6}}\Bigg]\] |
Comments | Python code requires NumPy imported as `np`. |
Arguments |
|
||||||||||||||||||||||||||||||||||||
Return values |
|
||||||||||||||||||||||||||||||||||||
Code | def h_hex_janev_2n(E, A1, A2, A3, A4, A5, A6, A7): """ This function calculates proton impact excitation cross sections (in cm2) of H n=2 to n>5 and n=3 to n>6 and for He+2 of H n=2 to n>5 and n=3 to n>6 param E: requested impact energy in keV/u type E: float, np.ndarray param Ai: fit coefficient type Ai: float """ sigma = 1e-16 * A1 * A7 * (np.exp(-A2/E) * np.log(1 + A3*E) / E + A4*np.exp(-A5*E)/E**A6) return sigma |