cloudy
trunk
|
#include <atmdat_gaunt.h>
Public Member Functions | |
double | gauntff (long Z, double Te, double anu) |
double | brems_cool (long ion, double Te) |
void | brems_rt (long ion, double Te, double abun, vector< double > &arr) |
void | brems_opac (long ion, double Te, double abun, double arr[]) |
void | brems_sum_ions (t_brems_den &sum) const |
Protected Member Functions | |
t_gaunt () | |
Private Member Functions | |
void | p_read_table (const char *fnam, long nelem) |
void | p_gauntff_vec_sub (long Z, double Te, const double anulog10[], long nmin, long nmax) |
void | p_gauntff_vec (long Z, double Te, const double anulog10[], long nflux) |
void | p_setup_brems (long ion, double Te) |
Private Attributes | |
size_t | p_np_gam2 |
size_t | p_np_u |
double | p_lg_gam2_min |
double | p_lg_gam2_max |
double | p_lg_u_min |
double | p_lg_u_max |
double | p_step |
vector< double > | p_lg_gam2 |
vector< double > | p_lg_u |
multi_arr< double, 4 > | p_gff |
vector< realnum, allocator_avx < realnum > > | p_vexp_arg |
t_gff | p_gff_ion [LIMELM+1] |
t_brems_sum | p_cache [LIMELM+1] |
t_brems_sum | p_hminus |
t_brems_vec | p_cache_vec [LIMELM+1] |
t_brems_vec | p_hminus_vec |
Friends | |
class | Singleton< t_gaunt > |
Additional Inherited Members | |
Static Public Member Functions inherited from Singleton< t_gaunt > | |
static t_gaunt & | Inst () |
Definition at line 45 of file atmdat_gaunt.h.
|
inlineprotected |
Definition at line 74 of file atmdat_gaunt.h.
double t_gaunt::brems_cool | ( | long | ion, |
double | Te | ||
) |
Definition at line 312 of file atmdat_gaunt.cpp.
References ASSERT, t_brems_sum::brems_sum, t_brems_vec::brems_vec, DEBUG_ENTRY, fp_equal(), t_rfield::ipEnergyBremsThin, t_rfield::ipMaxBolt, LIMELM, min(), t_rfield::nflux, t_brems_sum::nhi, t_brems_sum::nlo, p_cache, p_cache_vec, p_hminus, p_hminus_vec, p_setup_brems(), rfield, t_brems_sum::Te_used, and TotalInsanity().
Referenced by CoolEvaluate().
void t_gaunt::brems_opac | ( | long | ion, |
double | Te, | ||
double | abun, | ||
double | arr[] | ||
) |
Definition at line 394 of file atmdat_gaunt.cpp.
References t_mesh::anulog10ptr(), ASSERT, DEBUG_ENTRY, t_opac::iphmra, LIMELM, t_rfield::nflux, opac, t_opac::OpacStack, p_gauntff_vec(), p_gff_ion, pow2(), rfield, and TotalInsanity().
Referenced by OpacityAddTotal().
void t_gaunt::brems_rt | ( | long | ion, |
double | Te, | ||
double | abun, | ||
vector< double > & | arr | ||
) |
Definition at line 366 of file atmdat_gaunt.cpp.
References ASSERT, t_brems_vec::brems_vec, DEBUG_ENTRY, t_rfield::ipMaxBolt, LIMELM, min(), t_rfield::nflux, p_cache_vec, p_hminus_vec, p_setup_brems(), rfield, and TotalInsanity().
Referenced by RT_diffuse().
void t_gaunt::brems_sum_ions | ( | t_brems_den & | sum | ) | const |
Definition at line 418 of file atmdat_gaunt.cpp.
References ASSERT, DEBUG_ENTRY, molezone::den, t_brems_den::den_Hep, t_brems_den::den_Hepp, t_brems_den::den_Hm, t_brems_den::den_Hp, t_brems_den::den_ion, dense, findspecieslocal(), ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipLITHIUM, iso_sp, t_dense::lgElmtOn, LIMELM, t_mole_global::list, mole, mole_global, t_mole_global::num_calc, t_mole_local::species, t_iso_sp::st, and t_dense::xIonDense.
Referenced by CoolEvaluate(), OpacityAddTotal(), and RT_diffuse().
double t_gaunt::gauntff | ( | long | Z, |
double | Te, | ||
double | anu | ||
) |
Definition at line 135 of file atmdat_gaunt.cpp.
References ASSERT, DEBUG_ENTRY, gauntff_file, get_ptr(), lagrange(), LIMELM, max(), min(), N_GFF_INTERP, p_gff, p_lg_gam2, p_lg_gam2_max, p_lg_gam2_min, p_lg_u, p_lg_u_max, p_lg_u_min, p_np_gam2, p_np_u, p_read_table(), p_step, and pow2().
Referenced by CoolEvaluate(), dgaunt(), dgaunt_check(), SanityCheckGaunt(), and SaveGaunts().
|
private |
Definition at line 166 of file atmdat_gaunt.cpp.
References DEBUG_ENTRY, fp_equal(), gauntff_file, get_ptr(), t_gff::gff, t_gff::nflux_used, t_rfield::nflux_with_check, p_gauntff_vec_sub(), p_gff_ion, p_read_table(), p_vexp_arg, rfield, set_NaN(), and t_gff::Te_used.
Referenced by brems_opac(), and p_setup_brems().
|
private |
Definition at line 194 of file atmdat_gaunt.cpp.
References ASSERT, DEBUG_ENTRY, get_ptr(), t_gff::gff, LIMELM, max(), min(), N_GFF_INTERP, p_gff, p_gff_ion, p_lg_gam2, p_lg_gam2_max, p_lg_gam2_min, p_lg_u, p_lg_u_max, p_lg_u_min, p_np_gam2, p_np_u, p_step, p_vexp_arg, pow2(), and vexp().
Referenced by p_gauntff_vec().
|
private |
Definition at line 21 of file atmdat_gaunt.cpp.
References multi_arr< T, d, ALLOC, lgBC >::alloc(), ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fp_equal(), fprintf(), gaunt_magic, multi_arr< T, d, ALLOC, lgBC >::invalidate(), ioQQQ, isnan, LIMELM, mode_r, N_GFF_INTERP, open_data(), p_gff, p_lg_gam2, p_lg_gam2_max, p_lg_gam2_min, p_lg_u, p_lg_u_max, p_lg_u_min, p_np_gam2, p_np_u, p_step, and multi_arr< T, d, ALLOC, lgBC >::size().
Referenced by gauntff(), and p_gauntff_vec().
|
private |
Definition at line 261 of file atmdat_gaunt.cpp.
References t_mesh::anulog10ptr(), t_brems_vec::brems_vec, t_rfield::ContBoltz, DEBUG_ENTRY, fp_equal(), t_gff::gff, t_opac::iphmra, t_rfield::ipMaxBolt, LIMELM, min(), t_rfield::nflux, t_rfield::nflux_with_check, t_brems_vec::nhi, opac, t_opac::OpacStack, p_cache_vec, p_gauntff_vec(), p_gff_ion, p_hminus_vec, pow2(), rfield, t_brems_vec::Te_used, TotalInsanity(), and t_mesh::widflx().
Referenced by brems_cool(), and brems_rt().
Definition at line 47 of file atmdat_gaunt.h.
|
private |
Definition at line 64 of file atmdat_gaunt.h.
Referenced by brems_cool().
|
private |
Definition at line 66 of file atmdat_gaunt.h.
Referenced by brems_cool(), brems_rt(), and p_setup_brems().
|
private |
Definition at line 60 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
Definition at line 63 of file atmdat_gaunt.h.
Referenced by brems_opac(), p_gauntff_vec(), p_gauntff_vec_sub(), and p_setup_brems().
|
private |
Definition at line 65 of file atmdat_gaunt.h.
Referenced by brems_cool().
|
private |
Definition at line 67 of file atmdat_gaunt.h.
Referenced by brems_cool(), brems_rt(), and p_setup_brems().
|
private |
Definition at line 58 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 53 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 52 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 59 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 55 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 54 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 49 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 50 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 56 of file atmdat_gaunt.h.
Referenced by gauntff(), p_gauntff_vec_sub(), and p_read_table().
|
private |
Definition at line 61 of file atmdat_gaunt.h.
Referenced by p_gauntff_vec(), and p_gauntff_vec_sub().