ion_recomb_Badnell.cpp File Reference

#include "cddefines.h"
#include "phycon.h"
#include "path.h"
#include "elementnames.h"
#include "atmdat.h"
#include "ionbal.h"
#include "dense.h"

Include dependency graph for ion_recomb_Badnell.cpp:

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 Documentation

#define DR2SMALL   1e-15

Referenced by ion_recom_calculate().


Function Documentation

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                         
  
Parameters:
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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

double Badnell_RR_rate_eval ( int  z_val,
int  n_val 
)

Badnell_RR_rate_eval

Parameters:
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   ) 


Variable Documentation

const int ATOMIC_NUM_BIG = 55 [static]

Definition at line 25 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

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().

Definition at line 30 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().

Definition at line 31 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

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]

Definition at line 23 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

const int MAX_FIT_PAR_RR = 6 [static]

Definition at line 34 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

const int NELECTRONS = 12 [static]

Definition at line 27 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

Definition at line 32 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().


Generated for cloudy by doxygen 1.5.9