Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "dense.h"
#include "hmi.h"
#include "thermal.h"
#include "iso.h"
#include "ion_trim.h"
#include "phycon.h"
#include "radius.h"
#include "secondaries.h"
#include "timesc.h"
#include "trace.h"
#include "co.h"
#include "h2.h"
#include "mole_priv.h"
#include "mole.h"
#include "freebound.h"
Functions | |
STATIC void | mole_effects (void) |
STATIC void | mole_h_rate_diagnostics (void) |
STATIC void | mole_update_limiting_reactants () |
void | mole_drive (void) |
void | mole_update_sources (void) |
Variables | |
static const double | MOLETOLER = 0.10 |
void mole_drive | ( | void | ) |
mole_drive main driver for chemical equilibrium routines
References DEBUG_ENTRY, mole_effects(), mole_ion_trim(), mole_solve(), mole_update_limiting_reactants(), mole_update_rks(), mole_update_species_cache(), and MOLETOLER.
Referenced by ConvBase().
STATIC void mole_effects | ( | void | ) |
References t_hmi::chH2_small_model_type, co, t_co::CODissHeat, DEBUG_ENTRY, molezone::den, dense, t_hmi::deriv_HeatH2Dexc_BD96, t_hmi::deriv_HeatH2Dexc_BHT90, t_hmi::deriv_HeatH2Dexc_ELWERT, t_hmi::deriv_HeatH2Dexc_TH85, t_dense::eden, exp10(), findnuclide(), t_mole_local::findrate(), findspecieslocal(), t_dense::gas_phase, h2, t_hmi::H2_rate_destroy, t_hmi::H2_Solomon_dissoc_rate_used_H2g, t_hmi::H2_Solomon_dissoc_rate_used_H2s, t_hmi::H2_total, t_hmi::H2_total_f, t_hmi::h2dep, t_hmi::h2pdep, t_hmi::h2plus_heat, t_hmi::h2plus_heatcoef, t_hmi::h3pdep, t_thermal::halfte, t_hmi::HD_total, t_hmi::HeatH2Dexc_BD96, t_hmi::HeatH2Dexc_BHT90, t_hmi::HeatH2Dexc_ELWERT, t_hmi::HeatH2Dexc_TH85, t_hmi::HeatH2Dish_BD96, t_hmi::HeatH2Dish_BHT90, t_hmi::HeatH2Dish_ELWERT, t_hmi::HeatH2Dish_TH85, hmi, t_hmi::hmidep, t_hmi::hmihet, t_hmi::HMinus_induc_rec_cooling, t_hmi::HMinus_photo_heat, ipHYDROGEN, MAX2, mole, mole_eval_sources(), mole_global, mole_h_rate_diagnostics(), t_mole_global::num_total, nzone, diatomics::ortho_density, diatomics::ortho_density_f, diatomics::para_density, diatomics::para_density_f, POW2, pow2(), t_radius::r1r0sq, radius, t_hmi::rel_pop_LTE_H2g, t_hmi::rel_pop_LTE_H2p, t_hmi::rel_pop_LTE_H3p, t_hmi::rel_pop_LTE_Hmin, SDIV(), secondaries, t_thermal::setHeating(), t_mole_local::sink_rate_tot(), SMALLFLOAT, t_mole_local::species, thermal, t_timesc::time_H2_Dest_here, t_timesc::time_H2_Form_here, timesc, TotalInsanity(), t_thermal::tsq1, t_hmi::UV_Cont_rel2_Draine_DB96_face, t_secondaries::x12tot, and t_dense::xIonDense.
Referenced by mole_drive().
STATIC void mole_h_rate_diagnostics | ( | void | ) |
total H2 creation rate, cm-3 s-1
References t_secondaries::csupra, molezone::den, dense, t_dense::eden, findnuclide(), t_mole_local::findrate(), findspecieslocal(), fnzone, fprintf(), frac_H2star_hminus(), h2, t_hmi::H2_forms_grains, t_hmi::H2_forms_hminus, t_hmi::H2_rate_destroy, t_hmi::H2_Solomon_dissoc_rate_used_H2g, t_hmi::H2_total, t_hmi::h2dep, t_hmi::h2pdep, t_hmi::H2star_forms_grains, t_hmi::H2star_forms_hminus, hmi, t_hmi::hmicol, t_hmi::hmidep, t_hmi::hmihet, t_hmi::HMinus_induc_rec_cooling, t_hmi::HMinus_induc_rec_rate, t_hmi::HMinus_photo_rate, ioQQQ, ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, t_dense::lgElmtOn, t_trace::lgTrace, t_trace::lgTraceMole, t_mole_global::list, mole, mole_global, nuclide_list, t_mole_global::num_calc, nzone, diatomics::photoionize_rate, phycon, t_hmi::rel_pop_LTE_H2g, t_hmi::rel_pop_LTE_H2s, t_hmi::rel_pop_LTE_Hmin, SDIV(), secondaries, t_mole_local::sink, SMALLFLOAT, molezone::snk, t_mole_local::source, t_mole_local::source_rate_tot(), t_mole_local::species, t_phycon::te, trace, and t_dense::xIonDense.
Referenced by mole_effects().
STATIC void mole_update_limiting_reactants | ( | ) |
References DEBUG_ENTRY, dense, chem_nuclide::el(), t_dense::gas_phase, t_dense::lgElmtOn, t_mole_global::list, mole, mole_global, null_nuclide, t_mole_global::num_calc, t_mole_local::species, and chem_element::Z.
Referenced by mole_drive().
void mole_update_sources | ( | void | ) |
References DEBUG_ENTRY, mole_eval_sources(), mole_global, mole_update_species_cache(), and t_mole_global::num_total.
Referenced by ConvBase().
|
static |
Referenced by mole_drive().