#include "cddefines.h"
#include "mole.h"
#include "mole_co_priv.h"
#include "hmi.h"
#include "conv.h"
#include "grainvar.h"
#include "phycon.h"
#include "physconst.h"
#include "doppvel.h"
#include "rfield.h"
#include "secondaries.h"
#include "ionbal.h"
#include "rt.h"
Go to the source code of this file.
Functions | |
STATIC void | newreact (const char label[], double(*fun)(struct COmole_rate_s *rate), double a, double b, double c) |
STATIC double | hmrate (struct COmole_rate_s *rate) |
STATIC double | constrate (struct COmole_rate_s *rate) |
STATIC double | th85rate (struct COmole_rate_s *rate) |
STATIC double | crnurate (struct COmole_rate_s *rate) |
STATIC double | co_lnu_c_o_lnu (struct COmole_rate_s *rate) |
STATIC double | ele_ion_ladder (struct COmole_rate_s *rate) |
STATIC double | vib_evap (struct COmole_rate_s *rate) |
STATIC double | th85rate_co (struct COmole_rate_s *rate) |
STATIC double | grn_abs (struct COmole_rate_s *rate) |
STATIC double | oh_c2h2_co_ch3 (struct COmole_rate_s *rate) |
STATIC double | h_hnc_hcn_h (struct COmole_rate_s *rate) |
void | CO_create_react (void) |
STATIC double | noneq_offset (struct COmole_rate_s *rate) |
Variables | |
struct t_coreactions | coreactions |
static bool | lgReactInitialized = false |
void CO_create_react | ( | void | ) |
CO_create_react build reaction structures
Definition at line 54 of file mole_co_reactions.cpp.
References ASSERT, co, co_lnu_c_o_lnu(), coreactions, crnurate(), DEBUG_ENTRY, ele_ion_ladder(), grn_abs(), gv, h_hnc_hcn_h(), hmi, hmrate(), GrainVar::lgDustOn(), t_co::lgFederman, t_mole::lgGrain_mole_deplete, t_hmi::lgLeiden_Keep_ipMH2s, t_co::lgProtElim, t_co::lgUMISTrates, t_coreactions::list, makeplist(), MALLOC, mole, mole_priv, t_coreactions::n, newreact(), oh_c2h2_co_ch3(), mole_priv_s::reactab, th85rate(), th85rate_co(), and vib_evap().
Referenced by InitSimPostparse().
STATIC double co_lnu_c_o_lnu | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1599 of file mole_co_reactions.cpp.
References DEBUG_ENTRY, ionbal, ipCARBON, ipOXYGEN, and t_ionbal::PhotoRate_Shell.
Referenced by CO_create_react().
STATIC double constrate | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1546 of file mole_co_reactions.cpp.
Referenced by newreact().
STATIC double crnurate | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1594 of file mole_co_reactions.cpp.
References t_secondaries::csupra, ipHYDROGEN, and secondaries.
Referenced by CO_create_react().
STATIC double ele_ion_ladder | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1620 of file mole_co_reactions.cpp.
References GrainVar::GrainChTrRate, gv, ionbal, molecule::nElec, molecule::nelem_hevmol, t_ionbal::RateIonizTot(), t_ionbal::RateRecomTot, and COmole_rate_s::reactants.
Referenced by CO_create_react().
STATIC double grn_abs | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1700 of file mole_co_reactions.cpp.
References GrainVar::bin, BOLTZMANN, DEBUG_ENTRY, fixit(), gv, molecule::mole_mass, phycon, PI, COmole_rate_s::reactants, and t_phycon::te.
Referenced by CO_create_react().
STATIC double h_hnc_hcn_h | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1769 of file mole_co_reactions.cpp.
References hmrate(), phycon, and t_phycon::te.
Referenced by CO_create_react().
STATIC double hmrate | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1492 of file mole_co_reactions.cpp.
References COmole_rate_s::b, COmole_rate_s::c, DEBUG_ENTRY, noneq_offset(), phycon, pow(), and t_phycon::te.
Referenced by CO_create_react(), h_hnc_hcn_h(), newreact(), and oh_c2h2_co_ch3().
STATIC void newreact | ( | const char | label[], | |
double(*)(struct COmole_rate_s *rate) | fun, | |||
double | a, | |||
double | b, | |||
double | c | |||
) |
Definition at line 1368 of file mole_co_reactions.cpp.
References COmole_rate_s::a, molecule::active, addentry(), COmole_rate_s::b, COmole_rate_s::c, cdEXIT, constrate(), coreactions, DEBUG_ENTRY, findspecies(), fixit(), COmole_rate_s::fun, hmrate(), COmole_rate_s::index, data_u::key, COmole_rate_s::label, MALLOC, MAXPRODUCTS, MAXREACTANTS, molecule::mole_mass, mole_priv, t_coreactions::n, COmole_rate_s::nproducts, COmole_rate_s::nrates, COmole_rate_s::nreactants, null_mole, data_u::p, COmole_rate_s::photon, COmole_rate_s::products, COmole_rate_s::rate_species, mole_priv_s::reactab, COmole_rate_s::reactants, COmole_rate_s::reduced_mass, and COmole_rate_s::rk.
Referenced by CO_create_react().
STATIC double noneq_offset | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1512 of file mole_co_reactions.cpp.
References BOLTZMANN, co, DEBUG_ENTRY, DoppVel, t_co::lgNeutrals, t_co::lgNonEquilChem, molecule::nElec, COmole_rate_s::nreactants, POW2, COmole_rate_s::reactants, COmole_rate_s::reduced_mass, and t_DoppVel::TurbVel.
Referenced by hmrate().
STATIC double oh_c2h2_co_ch3 | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1756 of file mole_co_reactions.cpp.
References hmrate(), phycon, and t_phycon::te.
Referenced by CO_create_react().
STATIC double th85rate | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1563 of file mole_co_reactions.cpp.
References COmole_rate_s::b, co, DEBUG_ENTRY, t_rfield::extin_mag_V_point, hmi, t_co::lgUMISTrates, rfield, COmole_rate_s::rk, t_hmi::UV_Cont_rel2_Habing_TH85_depth, and t_hmi::UV_Cont_rel2_Habing_TH85_face.
Referenced by CO_create_react(), and th85rate_co().
STATIC double th85rate_co | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1728 of file mole_co_reactions.cpp.
References ATOMIC_MASS_UNIT, esca0k2(), GetDopplerWidth(), molecule::hevcol, molecule::mole_mass, phycon, COmole_rate_s::reactants, t_phycon::sqrte, and th85rate().
Referenced by CO_create_react().
STATIC double vib_evap | ( | struct COmole_rate_s * | rate | ) |
Definition at line 1664 of file mole_co_reactions.cpp.
References COmole_rate_s::b, GrainVar::bin, conv, DEBUG_ENTRY, gv, iteration, molecule::mole_mass, t_conv::nTotalIoniz, phycon, PI, COmole_rate_s::reactants, sexp(), and t_phycon::sqrte.
Referenced by CO_create_react().
struct t_coreactions coreactions |
Definition at line 36 of file mole_co_reactions.cpp.
bool lgReactInitialized = false [static] |
Definition at line 52 of file mole_co_reactions.cpp.