#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, DEBUG_EXIT, E, ele_ion_ladder(), grn_abs(), gv, h_hnc_hcn_h(), hmi, hmrate(), t_gv::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 cloudy().
static double co_lnu_c_o_lnu | ( | struct COmole_rate_s * | rate | ) | [static] |
Definition at line 1610 of file mole_co_reactions.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ionbal, ipCARBON, ipOXYGEN, and t_ionbal::PhotoRate_Shell.
Referenced by CO_create_react().
static double constrate | ( | struct COmole_rate_s * | rate | ) | [static] |
static double crnurate | ( | struct COmole_rate_s * | rate | ) | [static] |
Definition at line 1605 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 | ) | [static] |
Definition at line 1633 of file mole_co_reactions.cpp.
References t_gv::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 | ) | [static] |
Definition at line 1716 of file mole_co_reactions.cpp.
References t_gv::bin, BOLTZMANN, GrainBin::cnv_H_pCM3, DEBUG_ENTRY, fixit(), gv, GrainBin::IntArea, molecule::mole_mass, t_gv::nBin, 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 | ) | [static] |
Definition at line 1788 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 | ) | [static] |
Definition at line 1497 of file mole_co_reactions.cpp.
References COmole_rate_s::b, COmole_rate_s::c, DEBUG_ENTRY, DEBUG_EXIT, noneq_offset(), phycon, 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 | |||
) | [static] |
Definition at line 1372 of file mole_co_reactions.cpp.
References COmole_rate_s::a, molecule::active, addentry(), COmole_rate_s::b, COmole_rate_s::c, constrate(), coreactions, DEBUG_ENTRY, DEBUG_EXIT, 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, and COmole_rate_s::reduced_mass.
Referenced by CO_create_react().
static double noneq_offset | ( | struct COmole_rate_s * | rate | ) | [static] |
Definition at line 1519 of file mole_co_reactions.cpp.
References BOLTZMANN, co, DEBUG_ENTRY, DEBUG_EXIT, 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 | ) | [static] |
Definition at line 1775 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 | ) | [static] |
Definition at line 1572 of file mole_co_reactions.cpp.
References COmole_rate_s::b, co, DEBUG_ENTRY, DEBUG_EXIT, 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 | ) | [static] |
Definition at line 1747 of file mole_co_reactions.cpp.
References t_DoppVel::doppler, DoppVel, esca0k2(), molecule::hevcol, LIMELM, phycon, COmole_rate_s::reactants, t_phycon::sqrte, and th85rate().
Referenced by CO_create_react().
static double vib_evap | ( | struct COmole_rate_s * | rate | ) | [static] |
Definition at line 1677 of file mole_co_reactions.cpp.
References COmole_rate_s::b, t_gv::bin, conv, DEBUG_ENTRY, gv, iteration, molecule::mole_mass, t_gv::nBin, t_conv::nTotalIoniz, phycon, PI, COmole_rate_s::reactants, sexp(), t_phycon::sqrte, and GrainBin::tedust.
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.