cloudy trunk
Loading...
Searching...
No Matches
ion_recomb_Badnell.cpp File Reference
#include "cddefines.h"
#include "phycon.h"
#include "elementnames.h"
#include "atmdat.h"
#include "iso.h"
#include "ionbal.h"
#include "dense.h"
#include "taulines.h"
Include dependency graph for ion_recomb_Badnell.cpp:

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]

Function Documentation

◆ Badnell_DR_rate_eval()

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                         
Parameters
z_valatomic number on C scale - He is 1
n_valnumber of core electrons before capture of free electron

Definition at line 258 of file ion_recomb_Badnell.cpp.

References ASSERT, chDRDataSource, DEBUG_ENTRY, DRFitParPart1, DRFitParPart2, ipIRON, lgDRBadnellDefined, LIMELM, nDRFitPar, phycon, sexp(), and STATIC.

Referenced by Badnell_rec_init(), and ion_recom_calculate().

Here is the call graph for this function:

◆ Badnell_rec_init()

void Badnell_rec_init ( void )

◆ Badnell_RR_rate_eval()

STATIC double Badnell_RR_rate_eval ( int nAtomicNumberCScale,
int n_core_e_before_recomb )

Badnell_RR_rate_eval

Parameters
z_valatomic number on C scale - He - 1
n_valnumber of core electrons before capture of free electron

Definition at line 371 of file ion_recomb_Badnell.cpp.

References ASSERT, chRRDataSource, DEBUG_ENTRY, ipIRON, lgRRBadnellDefined, LIMELM, phycon, RRFitPar, and STATIC.

Referenced by Badnell_rec_init(), and ion_recom_calculate().

◆ CollisSuppres()

STATIC double CollisSuppres ( long int atomic_number,
long int ionic_charge,
double eden,
double T )

Definition at line 57 of file ion_recomb_Badnell.cpp.

References ASSERT, DEBUG_ENTRY, EVDEGK, LN_TWO, pow2(), pow3(), and STATIC.

Referenced by ion_recom_calculate().

Here is the call graph for this function:

◆ 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 1202 of file ion_recomb_Badnell.cpp.

References ASSERT, atmdat_dielrec_fe(), Badnell_DR_rate_eval(), Badnell_RR_rate_eval(), cdEXIT, chDRDataSource, chRRDataSource, CollisSuppres(), DEBUG_ENTRY, dense, DR_Badnell_rate_coef_mean_ion, elementnames, EXIT_SUCCESS, fp_equal(), Singleton< t_ADfA >::Inst(), ionbal, ioQQQ, ipHYDROGEN, ipIRON, ipLITHIUM, lgDR_BadWeb_exist, LIMELM, MIN2, phycon, pow3(), t_ADfA::rad_rec(), RecNoise, and sexp().

Referenced by ConvBase().

Here is the call graph for this function:

Variable Documentation

◆ chDRDataSource

char chDRDataSource[LIMELM][LIMELM][10]
static

Definition at line 41 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and ion_recom_calculate().

◆ chRRDataSource

char chRRDataSource[LIMELM][LIMELM][10]
static

Definition at line 42 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_RR_rate_eval(), and ion_recom_calculate().

◆ DR_Badnell_rate_coef_mean_ion

double DR_Badnell_rate_coef_mean_ion[LIMELM]
static

Definition at line 39 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init(), and ion_recom_calculate().

◆ DRFitParPart1

double*** DRFitParPart1
static

Definition at line 25 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().

◆ DRFitParPart2

double*** DRFitParPart2
static

Definition at line 26 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().

◆ lgDR_BadWeb_exist

bool ** lgDR_BadWeb_exist
static

Definition at line 36 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init(), and ion_recom_calculate().

◆ lgDRBadnellDefined

bool** lgDRBadnellDefined
static

Definition at line 33 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().

◆ lgDRBadnellDefinedPart2

bool ** lgDRBadnellDefinedPart2
static

Definition at line 34 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

◆ lgMustMallocRec

bool lgMustMallocRec =true
static

Definition at line 37 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

◆ lgRRBadnellDefined

bool ** lgRRBadnellDefined
static

Definition at line 35 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init(), and Badnell_RR_rate_eval().

◆ MAX_FIT_PAR_DR

const int MAX_FIT_PAR_DR = 9
static

Definition at line 24 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

◆ MAX_FIT_PAR_RR

const int MAX_FIT_PAR_RR = 6
static

Definition at line 29 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init().

◆ nDRFitPar

int** nDRFitPar
static

Definition at line 27 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_DR_rate_eval(), and Badnell_rec_init().

◆ RecNoise

double RecNoise[LIMELM]
static

Definition at line 38 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init(), and ion_recom_calculate().

◆ RRFitPar

double*** RRFitPar
static

Definition at line 30 of file ion_recomb_Badnell.cpp.

Referenced by Badnell_rec_init(), and Badnell_RR_rate_eval().