Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_mole_local Class Reference

#include <mole.h>

Inheritance diagram for t_mole_local:
Collaboration diagram for t_mole_local:

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 molezonespecies
 
vector< double > reaction_rks
 
vector< double > old_reaction_rks
 
long old_zone
 

Member Function Documentation

void t_mole_local::alloc ( )
double t_mole_local::chem_heat ( void  ) const
Todo:
Once the H chem is merged with the C chem, then we will have the chemical heating rate for all reactions. This is only a subset and, thusfar, not actually used in getting the total heating. Tests with pdr_leiden_hack_f1.in show that this heating rate can be up to 10% of the total heating

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().

Here is the call graph for this function:

const char* t_mole_local::chName ( ) const
inlinevirtual

Implements module.

void t_mole_local::comment ( t_warnings )
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().

Here is the call graph for this function:

double t_mole_local::findrate ( const char  buf[]) const
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().

Here is the call graph for this function:

void t_mole_local::set_ion_locations ( )
void t_mole_local::set_isotope_abundances ( void  )
double t_mole_local::sink_rate ( const molecule *const  sp,
const mole_reaction rate 
) const
double t_mole_local::sink_rate ( const molecule *const  sp,
const char  buf[] 
) const

References mole_findrate_s(), and sink_rate().

Here is the call graph for this function:

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().

Here is the call graph for this function:

double t_mole_local::sink_rate_tot ( const molecule *const  sp) const

References DEBUG_ENTRY, mole_priv::reactab, and sink_rate().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void t_mole_local::zero ( void  )
virtual

Member Data Documentation

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
double t_mole_local::grain_density
double t_mole_local::grain_saturation
vector<double> t_mole_local::old_reaction_rks

Referenced by mole_rk_bigchange(), and zero().

long t_mole_local::old_zone
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().


The documentation for this class was generated from the following files: