#include "cddefines.h"
#include "phycon.h"
#include "path.h"
#include "elementnames.h"
#include "atmdat.h"
#include "ionbal.h"
#include "dense.h"
Go to the source code of this file.
Defines | |
#define | DR2SMALL 1e-15 |
Functions | |
void | ion_recom_calculate (void) |
void | Badnell_rec_init (void) |
double | Badnell_DR_rate_eval (int n_atomic_number, int n_core_e_before_recomb) |
double | Badnell_RR_rate_eval (int n_atomic_number, int n_core_e_before_recomb) |
Variables | |
static const int | MAX_FIT_PAR_DR = 9 |
static const int | ATOMIC_NUM_BIG = 55 |
static const int | NELECTRONS = 12 |
static double | C [ATOMIC_NUM_BIG][NELECTRONS][MAX_FIT_PAR_DR] |
static double | E [ATOMIC_NUM_BIG][NELECTRONS][MAX_FIT_PAR_DR] |
static int | defn_C [ATOMIC_NUM_BIG][NELECTRONS] |
static int | defn_E [ATOMIC_NUM_BIG][NELECTRONS] |
static int | nn_counter [ATOMIC_NUM_BIG][NELECTRONS] |
static const int | MAX_FIT_PAR_RR = 6 |
static double | par [ATOMIC_NUM_BIG][NELECTRONS][MAX_FIT_PAR_RR] |
static int | defn [ATOMIC_NUM_BIG][NELECTRONS] |
#define DR2SMALL 1e-15 |
Referenced by ion_recom_calculate().
double Badnell_DR_rate_eval | ( | int | z_val, | |
int | n_val | |||
) |
Badnell_DR_rate_eval This code is written by Terry Yun, 2005 It interpolates the rate coefficients in a given temperature. It receives ATOMIC_NUM_BIG, NELECTRONS values, temperature 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 physics scale - He - 2 | |
n_val | number of core electrons before capture of free electron |
Definition at line 736 of file ion_recomb_Badnell.cpp.
References ASSERT, C, DEBUG_ENTRY, DEBUG_EXIT, defn_C, E, nn_counter, 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 344 of file ion_recomb_Badnell.cpp.
References ASSERT, ATOMIC_NUM_BIG, Badnell_DR_rate_eval(), Badnell_RR_rate_eval(), C, cdEXIT(), chDataPath, DEBUG_ENTRY, DEBUG_EXIT, defn, defn_C, defn_E, E, FILENAME_PATH_LENGTH_2, INPUT_LINE_LENGTH, ioQQQ, ipHYDROGEN, lgDataPathSet, LIMELM, MAX_FIT_PAR_DR, MAX_FIT_PAR_RR, NELECTRONS, nn_counter, par, and path_not_set().
Referenced by atmdat_readin().
double Badnell_RR_rate_eval | ( | int | z_val, | |
int | n_val | |||
) |
Badnell_RR_rate_eval
z_val | atomic number on physics scale - He - 2 | |
n_val | number of core electrons before capture of free electron |
Definition at line 871 of file ion_recomb_Badnell.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, defn, par, phycon, and t_phycon::te.
Referenced by Badnell_rec_init(), and 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 46 of file ion_recomb_Badnell.cpp.
References Badnell_DR_rate_eval(), Badnell_RR_rate_eval(), cdEXIT(), t_elementnames::chElementNameShort, DEBUG_ENTRY, DEBUG_EXIT, DR2SMALL, t_ionbal::DR_Badnell_rate_coef, t_ionbal::DR_Badnell_rate_coef_mean_ion, t_ionbal::DR_S_scale, elementnames, Singleton< t_ADfA >::Inst(), ionbal, ioQQQ, ipHYDROGEN, ipIRON, ipOXYGEN, ipSULPHUR, t_ionbal::lgDR_Badnell_rate_coef_exist, t_ionbal::lgRecom_Badnell_print, t_ionbal::lgRR_Badnell_rate_coef_exist, LIMELM, MAX2, t_ionbal::nDR_S_guess, phycon, POW2, t_ADfA::rad_rec(), t_ionbal::RR_Badnell_rate_coef, t_ionbal::RR_Verner_rate_coef, SDIV(), sexp(), t_phycon::te, t_phycon::te32, t_phycon::te_eV, and TotalInsanity().
Referenced by ConvBase().
const int ATOMIC_NUM_BIG = 55 [static] |
double C[ATOMIC_NUM_BIG][NELECTRONS][MAX_FIT_PAR_DR] [static] |
Definition at line 28 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), Badnell_rec_init(), and Hydcs123().
int defn[ATOMIC_NUM_BIG][NELECTRONS] [static] |
Definition at line 36 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), and Badnell_RR_rate_eval().
int defn_C[ATOMIC_NUM_BIG][NELECTRONS] [static] |
Definition at line 30 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
int defn_E[ATOMIC_NUM_BIG][NELECTRONS] [static] |
double E[ATOMIC_NUM_BIG][NELECTRONS][MAX_FIT_PAR_DR] [static] |
Definition at line 29 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
const int MAX_FIT_PAR_DR = 9 [static] |
const int MAX_FIT_PAR_RR = 6 [static] |
const int NELECTRONS = 12 [static] |
int nn_counter[ATOMIC_NUM_BIG][NELECTRONS] [static] |
Definition at line 32 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().
double par[ATOMIC_NUM_BIG][NELECTRONS][MAX_FIT_PAR_RR] [static] |
Definition at line 35 of file ion_recomb_Badnell.cpp.
Referenced by Badnell_rec_init(), Badnell_RR_rate_eval(), CompileAtmosphereCoStar(), H2_He_coll_init(), lgCompileAtmosphere(), RauchInitializeSub(), and SearchModel().