cloudy
trunk
|
#include "cddefines.h"
#include "phycon.h"
#include "elementnames.h"
#include "atmdat.h"
#include "atmdat_adfa.h"
#include "iso.h"
#include "ionbal.h"
#include "save.h"
#include "freebound.h"
#include "dense.h"
Go to the source code of this file.
Functions | |
STATIC double | CollisSuppres (long int atomic_number, long int ionic_charge, double eden, double T) |
STATIC double | Badnell_DR_rate_eval (int nAtomicNumberCScale, int n_core_e_before_recomb) |
STATIC double | Badnell_RR_rate_eval (int nAtomicNumberCScale, int n_core_e_before_recomb) |
void | Badnell_rec_init (void) |
void | ion_recom_calculate (void) |
Variables | |
static const int | MAX_FIT_PAR_DR = 9 |
static double *** | DRFitParPart1 |
static double *** | DRFitParPart2 |
static int ** | nDRFitPar |
static const int | MAX_FIT_PAR_RR = 6 |
static double *** | RRFitPar |
static bool ** | lgDRBadnellDefined |
static bool ** | lgDRBadnellDefinedPart2 |
static bool ** | lgRRBadnellDefined |
static bool ** | lgDR_BadWeb_exist |
static bool | lgMustMallocRec =true |
static double | RecNoise [LIMELM] |
static double | DR_Badnell_rate_coef_mean_ion [LIMELM] |
static char | chDRDataSource [LIMELM][LIMELM][10] |
static char | chRRDataSource [LIMELM][LIMELM][10] |
STATIC double Badnell_DR_rate_eval | ( | int | nAtomicNumberCScale, |
int | n_core_e_before_recomb | ||
) |
Badnell_DR_rate_eval This code is written by Terry Yun, 2005 It interpolates the rate coefficients in a given temperature. It receives atomic number on Physics scale, with H = 1, and the number of core electrons before recombination, and returns the rate coefficient* It returns '-2': initial <= final init < 0 or init >302 or final < 0 or final > 302 '-1': the transition is not defined '99': unknown invalid entries
z_val | atomic number on C scale - He is 1 |
n_val | number of core electrons before capture of free electron |
Definition at line 393 of file ion_recomb_Badnell.cpp.
References ASSERT, chDRDataSource, DEBUG_ENTRY, DRFitParPart1, DRFitParPart2, ipIRON, lgDRBadnellDefined, LIMELM, nDRFitPar, phycon, sexp(), t_phycon::te, and t_phycon::te32.
Referenced by Badnell_rec_init(), and ion_recom_calculate().
void Badnell_rec_init | ( | void | ) |
Badnell_rec_init This code is written by Terry Yun, 2005 * It reads rate coefficient fits into 3D arrays and output array.out for testing * The testing can be commented out
Definition at line 595 of file ion_recomb_Badnell.cpp.
References ASSERT, Badnell_DR_rate_eval(), Badnell_RR_rate_eval(), cdEXIT, DEBUG_ENTRY, dense, freeBound::DielecRecombVsTemp, DR_Badnell_rate_coef_mean_ion, DRFitParPart1, DRFitParPart2, EXIT_FAILURE, exp10(), t_iso_sp::fb, FFmtRead(), fprintf(), t_ionbal::guess_noise, INPUT_LINE_LENGTH, ionbal, ioQQQ, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, L_, lgDR_BadWeb_exist, lgDRBadnellDefined, lgDRBadnellDefinedPart2, t_dense::lgElmtOn, lgMustMallocRec, lgRRBadnellDefined, LIMELM, MALLOC, MAX2, MAX_FIT_PAR_DR, MAX_FIT_PAR_RR, N, t_iso_sp::n_HighestResolved_max, t_iso_sp::nCollapsed_max, nDRFitPar, NISO, nMatch(), NUM_DR_TEMPS, t_iso_sp::numLevels_max, open_data(), pow3(), t_iso_sp::QuantumNumbers2Index, RandGauss(), read_whole_line(), RecNoise, RRFitPar, S, S_, strchr_s(), TorF(), and TotalInsanity().
Referenced by cloudy(), and ParseCompile().
STATIC double Badnell_RR_rate_eval | ( | int | nAtomicNumberCScale, |
int | n_core_e_before_recomb | ||
) |
Badnell_RR_rate_eval
z_val | atomic number on C scale - He - 1 |
n_val | number of core electrons before capture of free electron |
Definition at line 504 of file ion_recomb_Badnell.cpp.
References ASSERT, chRRDataSource, DEBUG_ENTRY, ipIRON, lgRRBadnellDefined, LIMELM, phycon, RRFitPar, and t_phycon::te.
Referenced by Badnell_rec_init(), and ion_recom_calculate().
STATIC double CollisSuppres | ( | long int | atomic_number, |
long int | ionic_charge, | ||
double | eden, | ||
double | T | ||
) |
Definition at line 58 of file ion_recomb_Badnell.cpp.
References ASSERT, DEBUG_ENTRY, erfc(), fprintf(), ioQQQ, pow2(), powi(), and TotalInsanity().
Referenced by ion_recom_calculate().
void ion_recom_calculate | ( | void | ) |
ion_recom_calculate called by conv_base to calculate radiative and dielectronic
recombination rate coefficients
Definition at line 1335 of file ion_recomb_Badnell.cpp.
References ASSERT, atmdat_dielrec_fe(), Badnell_DR_rate_eval(), Badnell_RR_rate_eval(), chDRDataSource, t_elementnames::chElementNameShort, chRRDataSource, CollisSuppres(), DEBUG_ENTRY, dense, t_ionbal::DR_Badnell_rate_coef, DR_Badnell_rate_coef_mean_ion, t_ionbal::DR_Badnell_suppress_fact, t_ionbal::DR_mean_scale, t_dense::eden, elementnames, fp_equal(), fprintf(), Singleton< t_ADfA >::Inst(), ionbal, ioQQQ, ipHELIUM, ipHYDROGEN, ipIRON, t_save::ipSDSFile, lgDR_BadWeb_exist, t_ionbal::lgDRsup, t_ionbal::lgRecom_Badnell_print, t_save::lgSDSOn, LIMELM, MIN2, phycon, powpq(), t_ADfA::rad_rec(), RecNoise, t_ionbal::RR_Badnell_rate_coef, t_ionbal::RR_rate_coef_used, t_ionbal::RR_Verner_rate_coef, save, sexp(), t_phycon::te, and t_phycon::te_eV.
Referenced by ConvBase().
Definition at line 42 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and ion_recom_calculate().
Definition at line 43 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_RR_rate_eval(), and ion_recom_calculate().
|
static |
Definition at line 39 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), and ion_recom_calculate().
|
static |
Definition at line 26 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
|
static |
Definition at line 27 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
|
static |
Definition at line 34 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), and ion_recom_calculate().
|
static |
Definition at line 34 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
|
static |
Definition at line 34 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init().
|
static |
Definition at line 38 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init().
|
static |
Definition at line 34 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), and Badnell_RR_rate_eval().
|
static |
Definition at line 25 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init().
|
static |
Definition at line 30 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init().
|
static |
Definition at line 28 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
|
static |
Definition at line 39 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), and ion_recom_calculate().
|
static |
Definition at line 31 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), and Badnell_RR_rate_eval().