|
Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"#include "phycon.h"#include "abund.h"#include "dense.h"#include "iso.h"#include "thermal.h"#include "elementnames.h"#include "heavy.h"#include "trace.h"#include "conv.h"#include "atmdat.h"#include "ion_trim.h"#include "mole.h"#include "parser.h"
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 |
| #define FRAC 0.1 |
Referenced by ChargTranSumHeat(), and diatomics::H2_LevelPops().
| void ChargTranEval | ( | void | ) |
atmdat fill in the CharExcIonOf[ipHYDROGEN] and Rec arrays with Kingdon's fitted CT with H,
References t_phycon::alnte, atmdat, t_atmdat::CharExcIonOf, t_atmdat::CharExcRecTo, conv, DEBUG_ENTRY, fp_equal(), t_atmdat::HCharExcRecTo_N0_2D, HCTIon(), HCTRecom(), hmrate4(), ipALUMINIUM, ipARGON, ipCARBON, ipCHLORINE, ipHELIUM, ipHYDROGEN, ipIRON, ipLITHIUM, ipMAGNESIUM, ipMANGANESE, ipNEON, ipNICKEL, ipNITROGEN, ipOXYGEN, ipPHOSPHORUS, ipPOTASSIUM, ipSILICON, ipSODIUM, ipSULPHUR, ipTITANIUM, t_atmdat::lgCTOn, t_mole_global::lgLeidenHack, LIMELM, MIN2, mole_global, t_conv::nTotalIoniz, phycon, pow(), SDIV(), sexp(), t_phycon::sqrte, t_phycon::te, t_phycon::te01, t_phycon::te03, t_phycon::te05, t_phycon::te10, t_phycon::te20, t_phycon::te30, t_phycon::te_eV, and t_phycon::tesqrd.
Referenced by ChargTranPun(), and ConvBase().

| void ChargTranPun | ( | FILE * | ipPnunit, |
| char * | chSave | ||
| ) |
save charge transfer rate coefficients
| ipPnunit | |
| chSave |
References abund, ASSERT, atmdat, cdEXIT, t_atmdat::CharExcIonOf, t_atmdat::CharExcRecTo, ChargTranEval(), t_elementnames::chElementSym, t_elementnames::chIonStage, DEBUG_ENTRY, dense, elementnames, EXIT_FAILURE, fprintf(), HCTIon(), HCTRecom(), Heavy, ion_trim_untrim(), t_dense::IonHigh, t_dense::IonLow, ioQQQ, ipHELIUM, ipHYDROGEN, t_abund::lgAGN, LIMELM, phycon, t_phycon::te, TempChange(), and t_Heavy::Valence_IP_Ryd.
Referenced by SaveDo().

| double ChargTranSumHeat | ( | void | ) |
sum up the charge transfer heating
References ASSERT, atmdat, t_atmdat::CharExcIonOf, t_atmdat::CharExcRecTo, CTIonData, CTRecombData, DEBUG_ENTRY, dense, fixit, fprintf(), FRAC, t_atmdat::HCharCoolMax, t_atmdat::HCharHeatMax, t_atmdat::HCharHeatOn, t_thermal::htot, ioQQQ, ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipLITHIUM, iso_sp, lgCTDataDefined, LIMELM, MAX2, MIN2, t_iso_sp::st, thermal, and t_dense::xIonDense.
Referenced by ConvBase().

| STATIC double HCTIon | ( | long int | ion, |
| long int | nelem | ||
| ) |
References ASSERT, CTIonData, DEBUG_ENTRY, fprintf(), ioQQQ, lgCTDataDefined, t_trace::lgTrace, LIMELM, MakeHCTData(), MAX2, MIN2, phycon, pow(), t_phycon::te, and trace.
Referenced by ChargTranEval(), and ChargTranPun().

| STATIC double HCTRecom | ( | long int | ion, |
| long int | nelem | ||
| ) |
References ASSERT, atmdat, CTRecombData, DEBUG_ENTRY, fprintf(), t_atmdat::HCTAlex, ioQQQ, lgCTDataDefined, t_trace::lgTrace, LIMELM, MakeHCTData(), MAX2, MIN2, phycon, pow(), sexp(), t_phycon::te, and trace.
Referenced by ChargTranEval(), and ChargTranPun().

| STATIC void MakeHCTData | ( | void | ) |
References DataParser::checkEOD(), DataParser::checkEOL(), DataParser::checkMagic(), CTIonData, CTRecombData, DEBUG_ENTRY, ES_NONE, DataParser::getline(), DataParser::getToken(), ipHYDROGEN, LIMELM, and DataParser::open().
Referenced by HCTIon(), and HCTRecom().

|
static |
Referenced by ChargTranSumHeat(), HCTIon(), and MakeHCTData().
|
static |
Referenced by ChargTranSumHeat(), HCTRecom(), and MakeHCTData().
|
static |
Referenced by ChargTranSumHeat(), HCTIon(), and HCTRecom().