cloudy
trunk
|
#include <atmdat_adfa.h>
Public Member Functions | |
void | set_version (phfit_version val) |
phfit_version | get_version () const |
realnum | ph1 (int i, int j, int k, int l) const |
realnum | sth (int i) const |
double | phfit (long int nz, long int ne, long int is, double e) |
double | hpfit (long int iz, long int n, double e) |
void | rec_lines (double t, realnum r[][NRECCOEFCNO]) |
double | rad_rec (long int iz, long int in, double t) |
double | H_rad_rec (long int iz, long int n, double t) |
double | coll_ion (long int iz, long int in, double t) |
double | coll_ion_wrapper (long int z, long int n, double t) |
double | coll_ion_hybrid (long int z, long int n, double t) |
realnum | h_coll_str (long ipLo, long ipHi, long ipTe) |
Protected Member Functions | |
t_ADfA () | |
Private Attributes | |
phfit_version | version |
long int | L [7] |
long int | NINN [30] |
long int | NTOT [30] |
realnum | PH1 [7][30][30][6] |
realnum | PH2 [30][30][7] |
realnum | PHH [NHYDRO_MAX_LEVEL][5] |
realnum | P [8][110] |
realnum | ST [9][405] |
realnum | rrec [30][30][2] |
realnum | rnew [30][30][4] |
realnum | fe [13][3] |
realnum | HRF [NHYDRO_MAX_LEVEL][9] |
realnum | STH [NHYDRO_MAX_LEVEL] |
double | CF [30][30][5] |
double | HCS [14][10][8] |
Friends | |
class | Singleton< t_ADfA > |
Additional Inherited Members | |
Static Public Member Functions inherited from Singleton< t_ADfA > | |
static t_ADfA & | Inst () |
Definition at line 10 of file atmdat_adfa.h.
|
protected |
constructor: read in all the ADfA data files
Definition at line 12 of file atmdat_adfa.cpp.
References ASSERT, cdEXIT, CF, DEBUG_ENTRY, EXIT_FAILURE, fe, fprintf(), HCS, HRF, ioQQQ, L, NHYDRO_MAX_LEVEL, NINN, NTOT, open_data(), P, PH1, PH2, PHFIT_UNDEF, PHH, rnew, rrec, ST, STH, and version.
double t_ADfA::coll_ion | ( | long int | iz, |
long int | in, | ||
double | t | ||
) |
coll_ion D Verner's routine to compute collisional ionization rate coefficients
iz | |
in | |
t |
Definition at line 766 of file atmdat_adfa.cpp.
References atmdat, CF, DEBUG_ENTRY, and t_atmdat::lgCollIonOn.
Referenced by coll_ion_hybrid(), and coll_ion_wrapper().
double t_ADfA::coll_ion_hybrid | ( | long int | z, |
long int | n, | ||
double | t | ||
) |
DereRatio ratio of Dere 2007 to Dima data, evaluated where ion is abundant
Definition at line 869 of file atmdat_adfa.cpp.
References ASSERT, coll_ion(), and DEBUG_ENTRY.
Referenced by coll_ion_wrapper().
double t_ADfA::coll_ion_wrapper | ( | long int | z, |
long int | n, | ||
double | t | ||
) |
Definition at line 805 of file atmdat_adfa.cpp.
References ASSERT, atmdat, t_atmdat::CIRCData, coll_ion(), coll_ion_hybrid(), DEBUG_ENTRY, t_atmdat::DIMA, fprintf(), t_atmdat::HYBRID, ioQQQ, LIMELM, and TotalInsanity().
Referenced by ContSetIntensity(), ion_collis(), and iso_collisional_ionization().
|
inline |
get_version which version of phfit data should be used?
Definition at line 53 of file atmdat_adfa.h.
References version.
Referenced by OpacityCreateAll().
realnum t_ADfA::h_coll_str | ( | long | ipLo, |
long | ipHi, | ||
long | ipTe | ||
) |
h_coll_str routine to grab H cross sections from Anderson et al. 2002.
ipLo | |
ipHi | |
ipTe |
Definition at line 921 of file atmdat_adfa.cpp.
References ASSERT, DEBUG_ENTRY, HCS, ipH_LIKE, ipHYDROGEN, and N_.
Referenced by HCSAR_interp().
double t_ADfA::H_rad_rec | ( | long int | iz, |
long int | n, | ||
double | t | ||
) |
H_rad_rec calculates state-specific recombination rates for H and H-like ions
iz | |
n | |
t |
Definition at line 706 of file atmdat_adfa.cpp.
References ASSERT, DEBUG_ENTRY, exp10(), HRF, NHYDRO_MAX_LEVEL, POW2, powi(), x1, and x2.
Referenced by iso_radiative_recomb(), iso_radrecomb_from_cross_section(), and iso_recomb_setup().
double t_ADfA::hpfit | ( | long int | iz, |
long int | n, | ||
double | e | ||
) |
hpfit state specific photoionization cross sections for model hydrogen atom
iz | |
n | |
e |
Definition at line 394 of file atmdat_adfa.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, MAX2, NHYDRO_MAX_LEVEL, ph1(), PHH, and POW2.
Referenced by Opacity_iso_photo_cs().
|
inline |
ph1 access elements of PH1 data block with parameters for photoionization cross section fits
i | |
j | |
k | |
l |
Definition at line 61 of file atmdat_adfa.h.
References PH1.
Referenced by ContCreatePointers(), hpfit(), ipShells(), iso_create(), OpacityCreate1Element(), PresTotCurrent(), and SaveDo().
double t_ADfA::phfit | ( | long int | nz, |
long int | ne, | ||
long int | is, | ||
double | e | ||
) |
phfit this subroutine calculates partial photoionization cross sections for all ionization stages of all atoms from H to Zn (Z=30)
nz | |
ne | |
is | |
e |
Definition at line 269 of file atmdat_adfa.cpp.
References ASSERT, DEBUG_ENTRY, L, NINN, nint(), NTOT, PH1, PH2, PHFIT95, POW2, and version.
Referenced by InitBinAugerData(), Opacity_iso_photo_cs(), OpacityCreate1Element(), OpacityCreateAll(), and pah1_fun().
double t_ADfA::rad_rec | ( | long int | iz, |
long int | in, | ||
double | t | ||
) |
rad_rec calculates rates of radiative recombination for all ions
iz | nuclear number on physics scale |
in | number of recombined electrons |
t | temperature K |
Definition at line 632 of file atmdat_adfa.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fe, fprintf(), ioQQQ, rnew, and rrec.
Referenced by ion_recom_calculate().
void t_ADfA::rec_lines | ( | double | t, |
realnum | r[][NRECCOEFCNO] | ||
) |
rec_lines effective recombination coefficients for lines of C, N, O, by D. Verner
t | |
r |
Definition at line 473 of file atmdat_adfa.cpp.
References a1, DEBUG_ENTRY, P, powpq(), and ST.
Referenced by lines(), and SaveLineData().
|
inline |
set_version set version of phfit data to be used
val |
Definition at line 50 of file atmdat_adfa.h.
References version.
Referenced by pah1_fun(), ParseSet(), and zero().
|
inline |
sth array of cross sections for photoionization of hydrogen at threshold, 0 is 1s, 1 is 2s, 2 is 2p, up to 400
i |
Definition at line 67 of file atmdat_adfa.h.
References STH.
Definition at line 12 of file atmdat_adfa.h.
|
private |
Definition at line 39 of file atmdat_adfa.h.
Referenced by coll_ion(), and t_ADfA().
|
private |
Definition at line 31 of file atmdat_adfa.h.
|
private |
array of EIE cross sections for hydrogen atom. For all E1 transitions nl - n'l', with n' < n <= 5
Definition at line 45 of file atmdat_adfa.h.
Referenced by h_coll_str(), and t_ADfA().
|
private |
Definition at line 33 of file atmdat_adfa.h.
Referenced by H_rad_rec(), and t_ADfA().
|
private |
Definition at line 18 of file atmdat_adfa.h.
|
private |
Definition at line 19 of file atmdat_adfa.h.
|
private |
Definition at line 20 of file atmdat_adfa.h.
|
private |
Definition at line 26 of file atmdat_adfa.h.
Referenced by rec_lines(), and t_ADfA().
|
private |
Definition at line 21 of file atmdat_adfa.h.
|
private |
Definition at line 22 of file atmdat_adfa.h.
|
private |
Definition at line 24 of file atmdat_adfa.h.
|
private |
Definition at line 30 of file atmdat_adfa.h.
|
private |
Definition at line 29 of file atmdat_adfa.h.
|
private |
Definition at line 27 of file atmdat_adfa.h.
Referenced by rec_lines(), and t_ADfA().
|
private |
array of cross sections for photoionization of hydrogen at threshold, 0 is 1s, 1 is 2s, 2 is 2p, up to 400
Definition at line 37 of file atmdat_adfa.h.
|
private |
Definition at line 16 of file atmdat_adfa.h.
Referenced by get_version(), phfit(), set_version(), and t_ADfA().