cloudy
trunk
|
#include <mole.h>
Public Member Functions | |
void | alloc () |
void | zero () |
void | comment (t_warnings &) |
const char * | chName () const |
void | set_ion_locations () |
void | set_isotope_abundances (void) |
double | sink_rate_tot (const char chSpecies[]) const |
double | sink_rate_tot (const molecule *const sp) const |
double | sink_rate (const molecule *const sp, const mole_reaction &rate) const |
double | sink_rate (const molecule *const sp, const char buf[]) const |
double | source_rate_tot (const char chSpecies[]) const |
double | source_rate_tot (const molecule *const sp) const |
double | dissoc_rate (const char chSpecies[]) const |
double | chem_heat (void) const |
double | findrk (const char buf[]) const |
double | findrate (const char buf[]) const |
Public Member Functions inherited from module | |
module () | |
virtual | ~module () |
Data Fields | |
double | grain_area |
double | grain_density |
double | grain_saturation |
double | elec |
double ** | source |
double ** | sink |
realnum *** | xMoleChTrRate |
valarray< class molezone > | species |
vector< double > | reaction_rks |
vector< double > | old_reaction_rks |
long | old_zone |
void t_mole_local::alloc | ( | ) |
Definition at line 91 of file mole.cpp.
References LIMELM, MALLOC, sink, source, and xMoleChTrRate.
Referenced by allocate().
double t_mole_local::chem_heat | ( | void | ) | const |
Definition at line 4359 of file mole_reactions.cpp.
References DEBUG_ENTRY, findspecies(), molecule::form_enthalpy, fprintf(), mole_reaction::index, molecule::index, ioQQQ, mole_reaction::label, mole_reaction::nproducts, mole_reaction::nreactants, nzone, mole_reaction::products, mole_priv::reactab, mole_reaction::reactants, reaction_rks, and mole_reaction::rvector.
Referenced by CoolEvaluate().
|
inlinevirtual |
|
inlinevirtual |
double t_mole_local::dissoc_rate | ( | const char | chSpecies[] | ) | const |
returns the photodissociation rate per unit volume [cm^-3 s^-1] producing monatomic species chSpecies. Excludes photoionizations of other monatomic species, e.g. N-,PHOTON=>N,e-
returns the photodissociation rate per unit volume [cm^-3 s^-1] of species chSpecies
Definition at line 4243 of file mole_reactions.cpp.
References ASSERT, DEBUG_ENTRY, findspecies(), mole_reaction::index, molecule::index, molecule::isMonatomic(), molecule::nNuclide, mole_reaction::nproducts, mole_reaction::nreactants, null_mole, mole_reaction::products, mole_priv::reactab, mole_reaction::reactants, and reaction_rks.
Referenced by lines().
double t_mole_local::findrate | ( | const char | buf[] | ) | const |
Definition at line 4162 of file mole_reactions.cpp.
References DEBUG_ENTRY, mole_reaction::index, molecule::index, mole_findrate_s(), mole_reaction::nreactants, mole_reaction::reactants, and reaction_rks.
Referenced by lines_molecules(), mole_effects(), and mole_h_rate_diagnostics().
double t_mole_local::findrk | ( | const char | buf[] | ) | const |
Definition at line 4148 of file mole_reactions.cpp.
References ASSERT, DEBUG_ENTRY, mole_reaction::index, isnan, mole_findrate_s(), and reaction_rks.
Referenced by diatomics::mole_H2_form(), and SaveDo().
void t_mole_local::set_ion_locations | ( | ) |
Definition at line 1021 of file mole_species.cpp.
References ASSERT, DEBUG_ENTRY, dense, deut, findspecieslocal(), t_dense::ionMole, t_deuterium::lgElmtOn, molezone::location, mole_global, nuclide_list, t_mole_global::num_total, t_deuterium::xIonDense, and t_dense::xIonDense.
Referenced by InitSimPostparse().
void t_mole_local::set_isotope_abundances | ( | void | ) |
Definition at line 989 of file mole_species.cpp.
References DEBUG_ENTRY, and nuclide_list.
Referenced by mole_update_species_cache(), and GroupMap::updateMolecules().
double t_mole_local::sink_rate | ( | const molecule *const | sp, |
const mole_reaction & | rate | ||
) | const |
Definition at line 4214 of file mole_reactions.cpp.
References mole_reaction::a, DEBUG_ENTRY, molecule::index, mole_reaction::nreactants, mole_reaction::reactants, mole_reaction::rk(), mole_reaction::rvector, and mole_reaction::rvector_excit.
Referenced by sink_rate(), and sink_rate_tot().
double t_mole_local::sink_rate | ( | const molecule *const | sp, |
const char | buf[] | ||
) | const |
Definition at line 4208 of file mole_reactions.cpp.
References mole_findrate_s(), and sink_rate().
double t_mole_local::sink_rate_tot | ( | const char | chSpecies[] | ) | const |
Definition at line 4184 of file mole_reactions.cpp.
References DEBUG_ENTRY, and findspecies().
Referenced by diatomics::H2_X_sink_and_source(), and mole_effects().
double t_mole_local::sink_rate_tot | ( | const molecule *const | sp | ) | const |
Definition at line 4193 of file mole_reactions.cpp.
References DEBUG_ENTRY, mole_priv::reactab, and sink_rate().
double t_mole_local::source_rate_tot | ( | const char | chSpecies[] | ) | const |
Definition at line 4320 of file mole_reactions.cpp.
References DEBUG_ENTRY, and findspecies().
Referenced by diatomics::H2_X_sink_and_source(), and mole_h_rate_diagnostics().
double t_mole_local::source_rate_tot | ( | const molecule *const | sp | ) | const |
Definition at line 4329 of file mole_reactions.cpp.
References mole_reaction::a, DEBUG_ENTRY, molecule::index, mole_reaction::nproducts, mole_reaction::nreactants, mole_reaction::products, mole_reaction::pvector, mole_reaction::pvector_excit, mole_priv::reactab, mole_reaction::reactants, and mole_reaction::rk().
|
virtual |
Implements module.
Definition at line 119 of file mole.cpp.
References LIMELM, t_mole_global::num_calc, old_reaction_rks, reaction_rks, sink, source, and xMoleChTrRate.
double t_mole_local::elec |
total charge in molecules
Definition at line 460 of file mole.h.
Referenced by ConvBase(), eden_sum(), t_mole_global::init(), and mole_return_cached_species().
double t_mole_local::grain_area |
Definition at line 457 of file mole.h.
Referenced by InitSimPostparse(), and mole_update_species_cache().
double t_mole_local::grain_density |
Definition at line 457 of file mole.h.
Referenced by mole_update_species_cache().
double t_mole_local::grain_saturation |
Definition at line 457 of file mole.h.
Referenced by mole_update_species_cache().
vector<double> t_mole_local::old_reaction_rks |
Definition at line 471 of file mole.h.
Referenced by mole_rk_bigchange(), and zero().
long t_mole_local::old_zone |
Definition at line 472 of file mole.h.
Referenced by mole_create_react(), and mole_rk_bigchange().
vector<double> t_mole_local::reaction_rks |
Definition at line 470 of file mole.h.
Referenced by chem_heat(), dissoc_rate(), findrate(), findrk(), mole_create_react(), mole_dominant_rates(), mole_eval_balance(), mole_eval_sources(), mole_print_species_reactions(), mole_rk_bigchange(), mole_save(), mole_update_rks(), and zero().
double ** t_mole_local::sink |
Definition at line 464 of file mole.h.
Referenced by alloc(), fill_ext_src_and_snk(), find_solution(), HomogeneousSource(), iso_level(), IterRestart(), IterStart(), mole_eval_sources(), mole_h_rate_diagnostics(), mole_solve(), PrintRates(), and zero().
double** t_mole_local::source |
these are source and sink terms for the ionization ladder, for chemical processes that remove and add species
Definition at line 464 of file mole.h.
Referenced by alloc(), fill_ext_src_and_snk(), find_solution(), iso_level(), IterRestart(), IterStart(), mole_eval_sources(), mole_h_rate_diagnostics(), mole_solve(), PrintRates(), and zero().
valarray<class molezone> t_mole_local::species |
Definition at line 468 of file mole.h.
Referenced by AbundChange(), t_gaunt::brems_sum_ions(), ChemImportance(), ConvBase(), ConvIterCheck(), DynaStartZone(), eden_sum(), ElectronFractions(), findspecieslocal(), findspecieslocal_validate(), funjac(), diatomics::H2_LevelPops(), diatomics::H2_PunchDo(), diatomics::init(), t_mole_global::init(), iso_allocate(), iter_end_check(), IterRestart(), IterStart(), lgNetEdenSrcSmall(), lgNucleiConserved(), molecule::local(), matchGeneric(), molcol(), mole_dominant_rates(), mole_effects(), mole_eval_balance(), mole_eval_dynamic_balance(), mole_eval_sources(), mole_h_fixup(), mole_h_rate_diagnostics(), mole_print_species_reactions(), mole_return_cached_species(), mole_save(), mole_solve(), mole_update_limiting_reactants(), mole_update_species_cache(), PrtComment(), PrtZone(), radius_increment(), radius_next(), RT_tau_reset(), SaveDo(), SaveSpecies(), ScaleAllDensities(), GroupMap::setup(), states_nelemfill(), total_molecule_deut(), total_molecule_elems(), total_molecules(), total_molecules_gasphase(), and GroupMap::updateMolecules().
realnum*** t_mole_local::xMoleChTrRate |
Definition at line 466 of file mole.h.
Referenced by alloc(), fill_array(), iso_level(), IterRestart(), IterStart(), mole_eval_sources(), PrintRates(), and zero().