Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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

◆ alloc()

void t_mole_local::alloc ( )

References LIMELM, sink, source, and xMoleChTrRate.

◆ chem_heat()

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, mole_reaction::rvector, and species.

Here is the call graph for this function:

◆ chName()

const char * t_mole_local::chName ( ) const
inlinevirtual

Implements module.

◆ comment()

void t_mole_local::comment ( t_warnings & )
inlinevirtual

Implements module.

◆ dissoc_rate()

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, chSpecies, 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, reaction_rks, and species.

Here is the call graph for this function:

◆ findrate()

double t_mole_local::findrate ( const char buf[]) const

◆ findrk()

double t_mole_local::findrk ( const char buf[]) const

References ASSERT, DEBUG_ENTRY, mole_reaction::index, isnan, mole_findrate_s(), and reaction_rks.

Here is the call graph for this function:

◆ set_ion_locations()

void t_mole_local::set_ion_locations ( )

References ASSERT, DEBUG_ENTRY, dense, deut, findspecieslocal(), molezone::location, mole_global, nuclide_list, and species.

Here is the call graph for this function:

◆ set_isotope_abundances()

void t_mole_local::set_isotope_abundances ( void )

References DEBUG_ENTRY, nuclide_list, NULL, and species.

◆ sink_rate() [1/2]

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:

◆ sink_rate() [2/2]

double t_mole_local::sink_rate ( const molecule *const sp,
const mole_reaction & rate ) const

◆ sink_rate_tot() [1/2]

double t_mole_local::sink_rate_tot ( const char chSpecies[]) const

References chSpecies, DEBUG_ENTRY, findspecies(), and sink_rate_tot().

Referenced by sink_rate_tot().

Here is the call graph for this function:

◆ sink_rate_tot() [2/2]

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:

◆ source_rate_tot() [1/2]

double t_mole_local::source_rate_tot ( const char chSpecies[]) const

References chSpecies, DEBUG_ENTRY, findspecies(), and source_rate_tot().

Referenced by source_rate_tot().

Here is the call graph for this function:

◆ source_rate_tot() [2/2]

◆ zero()

void t_mole_local::zero ( void )
virtual

Member Data Documentation

◆ elec

double t_mole_local::elec

total charge in molecules

◆ grain_area

double t_mole_local::grain_area

◆ grain_density

double t_mole_local::grain_density

◆ grain_saturation

double t_mole_local::grain_saturation

◆ old_reaction_rks

vector<double> t_mole_local::old_reaction_rks

Referenced by zero().

◆ old_zone

long t_mole_local::old_zone

◆ reaction_rks

vector<double> t_mole_local::reaction_rks

◆ sink

multi_arr<double,2> t_mole_local::sink

Referenced by alloc(), and zero().

◆ source

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(), and zero().

◆ species

◆ xMoleChTrRate

multi_arr<realnum,3> t_mole_local::xMoleChTrRate

Referenced by alloc(), and zero().


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