Cloudy
Spectral Synthesis Code for Astrophysics
|
#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 () |
Public Attributes | |
double | grain_area |
double | grain_density |
double | grain_saturation |
double | elec |
multi_arr< double, 2 > | source |
multi_arr< double, 2 > | sink |
multi_arr< realnum, 3 > | xMoleChTrRate |
valarray< class molezone > | species |
vector< double > | reaction_rks |
vector< double > | old_reaction_rks |
long | old_zone |
void t_mole_local::alloc | ( | ) |
References multi_arr< T, d, ALLOC, lgBC >::alloc(), multi_arr< T, d, ALLOC, lgBC >::clone(), LIMELM, multi_arr< T, d, ALLOC, lgBC >::reserve(), sink, source, and xMoleChTrRate.
Referenced by zero().
double t_mole_local::chem_heat | ( | void | ) | const |
References DEBUG_ENTRY, findspecies(), molecule::form_enthalpy, fprintf(), mole_reaction::index, molecule::index, ioQQQ, mole_reaction::label, mole_reaction::nproducts, mole_reaction::nreactants, NULL, nzone, mole_reaction::products, mole_priv::reactab, mole_reaction::reactants, reaction_rks, and mole_reaction::rvector.
Referenced by CoolEvaluate().
|
inlinevirtual |
Implements module.
|
inlinevirtual |
Implements module.
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
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 |
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 |
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 | ( | ) |
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 | ) |
References DEBUG_ENTRY, nuclide_list, and NULL.
Referenced by mole_update_species_cache(), and GroupMap::updateMolecules().
double t_mole_local::sink_rate | ( | const molecule *const | sp, |
const mole_reaction & | rate | ||
) | const |
References mole_reaction::a, DEBUG_ENTRY, molecule::index, mole_reaction::nreactants, NULL, 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 |
double t_mole_local::sink_rate_tot | ( | const char | chSpecies[] | ) | const |
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 |
References DEBUG_ENTRY, mole_priv::reactab, and sink_rate().
double t_mole_local::source_rate_tot | ( | const char | chSpecies[] | ) | const |
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 |
References mole_reaction::a, DEBUG_ENTRY, molecule::index, mole_reaction::nproducts, mole_reaction::nreactants, NULL, mole_reaction::products, mole_reaction::pvector, mole_reaction::pvector_excit, mole_priv::reactab, mole_reaction::reactants, and mole_reaction::rk().
|
virtual |
Implements module.
References t_mole_global::num_calc, old_reaction_rks, reaction_rks, sink, source, and xMoleChTrRate.
double t_mole_local::elec |
total charge in molecules
Referenced by ConvBase(), eden_sum(), t_mole_global::init(), and mole_return_cached_species().
double t_mole_local::grain_area |
Referenced by InitSimPostparse(), and mole_update_species_cache().
double t_mole_local::grain_density |
Referenced by mole_update_species_cache().
double t_mole_local::grain_saturation |
Referenced by mole_update_species_cache().
vector<double> t_mole_local::old_reaction_rks |
Referenced by mole_rk_bigchange(), and zero().
long t_mole_local::old_zone |
Referenced by mole_create_react(), and mole_rk_bigchange().
vector<double> t_mole_local::reaction_rks |
multi_arr<double,2> t_mole_local::sink |
multi_arr<double,2> t_mole_local::source |
these are source and sink terms for the ionization ladder, for chemical processes that remove and add species
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 |
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(), isSpeciesActive(), 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(), species_gasphase_density(), states_nelemfill(), total_molecule_deut(), total_molecule_elems(), total_molecules(), total_molecules_gasphase(), and GroupMap::updateMolecules().
Referenced by alloc(), fill_array(), iso_level(), IterRestart(), IterStart(), mole_eval_sources(), PrintRates(), and zero().