cloudy trunk
Loading...
Searching...
No Matches
atmdat_char_tran.cpp File Reference
#include "cddefines.h"
#include "phycon.h"
#include "physconst.h"
#include "abund.h"
#include "dense.h"
#include "iso.h"
#include "thermal.h"
#include "mole.h"
#include "elementnames.h"
#include "heavy.h"
#include "trace.h"
#include "conv.h"
#include "atmdat.h"
#include "taulines.h"
Include dependency graph for atmdat_char_tran.cpp:

Go to the source code of this file.

Macros

#define FRAC   0.1

Functions

STATIC double HCTIon (long int ion, long int nelem)
STATIC double HCTRecom (long int ion, long int nelem)
STATIC void MakeHCTData (void)
void ChargTranEval (void)
double ChargTranSumHeat (void)
void ChargTranPun (FILE *ipPnunit, char *chSave)

Variables

static double CTIonData [LIMELM][4][8]
static double CTRecombData [LIMELM][4][7]
static bool lgCTDataDefined = false

Macro Definition Documentation

◆ FRAC

#define FRAC   0.1

Function Documentation

◆ ChargTranEval()

void ChargTranEval ( void )

atmdat fill in the CharExcIonOf[ipHYDROGEN] and Rec arrays with Kingdon's fitted CT with H,

Todo
1 update ct to Kimura et al. (1996)
Todo
1 above rate not intended for very low temperatures - find ref for low-T rate, probably is 1e-9 like above
Todo
0 these should be values at 1e5 K
Todo
2 not currently used - include as deexcitation process

Definition at line 44 of file atmdat_char_tran.cpp.

References atmdat, conv, DEBUG_ENTRY, fp_equal(), HCTIon(), HCTRecom(), HMRATE, ipALUMINIUM, ipARGON, ipCARBON, ipCHLORINE, ipHELIUM, ipHYDROGEN, ipIRON, ipLITHIUM, ipMAGNESIUM, ipMANGANESE, ipNEON, ipNICKEL, ipNITROGEN, ipOXYGEN, ipPHOSPHORUS, ipPOTASSIUM, ipSILICON, ipSODIUM, ipSULPHUR, ipTITANIUM, LIMELM, MIN2, mole_global, phycon, SDIV(), and sexp().

Referenced by ChargTranPun(), and ConvBase().

Here is the call graph for this function:

◆ ChargTranPun()

void ChargTranPun ( FILE * ipPnunit,
char * chSave )

save charge transfer rate coefficients

Parameters
ipPnunit
chSave

Definition at line 1729 of file atmdat_char_tran.cpp.

References abund, atmdat, cdEXIT, ChargTranEval(), DEBUG_ENTRY, dense, elementnames, EXIT_FAILURE, HCTIon(), HCTRecom(), Heavy, ioQQQ, ipHELIUM, ipHYDROGEN, LIMELM, phycon, and TempChange().

Referenced by SaveDo().

Here is the call graph for this function:

◆ ChargTranSumHeat()

double ChargTranSumHeat ( void )

sum up the charge transfer heating

Returns

Definition at line 569 of file atmdat_char_tran.cpp.

References ASSERT, atmdat, CTIonData, CTRecombData, DEBUG_ENTRY, dense, EN1EV, fixit(), FRAC, ioQQQ, ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipLITHIUM, iso_sp, lgCTDataDefined, LIMELM, MAX2, MIN2, and thermal.

Referenced by ConvBase().

Here is the call graph for this function:

◆ HCTIon()

STATIC double HCTIon ( long int ion,
long int nelem )

Definition at line 736 of file atmdat_char_tran.cpp.

References ASSERT, CTIonData, DEBUG_ENTRY, ioQQQ, lgCTDataDefined, LIMELM, MakeHCTData(), MAX2, MIN2, phycon, STATIC, and trace.

Referenced by ChargTranEval(), and ChargTranPun().

Here is the call graph for this function:

◆ HCTRecom()

STATIC double HCTRecom ( long int ion,
long int nelem )

Definition at line 806 of file atmdat_char_tran.cpp.

References ASSERT, atmdat, CTRecombData, DEBUG_ENTRY, ioQQQ, lgCTDataDefined, LIMELM, MakeHCTData(), MAX2, MIN2, phycon, sexp(), STATIC, and trace.

Referenced by ChargTranEval(), and ChargTranPun().

Here is the call graph for this function:

◆ MakeHCTData()

STATIC void MakeHCTData ( void )

Definition at line 898 of file atmdat_char_tran.cpp.

References CTIonData, CTRecombData, DEBUG_ENTRY, e2(), LIMELM, and STATIC.

Referenced by HCTIon(), and HCTRecom().

Here is the call graph for this function:

Variable Documentation

◆ CTIonData

double CTIonData[LIMELM][4][8]
static

Definition at line 37 of file atmdat_char_tran.cpp.

Referenced by ChargTranSumHeat(), HCTIon(), and MakeHCTData().

◆ CTRecombData

double CTRecombData[LIMELM][4][7]
static

Definition at line 38 of file atmdat_char_tran.cpp.

Referenced by ChargTranSumHeat(), HCTRecom(), and MakeHCTData().

◆ lgCTDataDefined

bool lgCTDataDefined = false
static

Definition at line 41 of file atmdat_char_tran.cpp.

Referenced by ChargTranSumHeat(), HCTIon(), and HCTRecom().