Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
molecule Class Reference

#include <mole.h>

Public Types

typedef map< const shared_ptr< chem_nuclide >, int, element_pointer_value_lessnNucsMap
 

Public Member Functions

bool isIsotopicTotalSpecies () const
 
int n_nuclei (void) const
 
int nElement (int nelem)
 
bool isMonatomic (void) const
 
bool isMolecule () const
 
class molezonelocal (void) const
 
chem_nuclideheavyAtom (void)
 
int compare (const molecule &mol2) const
 

Public Attributes

string parentLabel
 
int parentIndex
 
bool isEnabled
 
string label
 
nNucsMap nNuclide
 
int charge
 
bool lgExcit
 
bool lgGas_Phase
 
realnum form_enthalpy
 
realnum mole_mass
 
enum mole_state state
 
int index
 
int groupnum
 
int n_react
 

Member Typedef Documentation

◆ nNucsMap

typedef map<const shared_ptr<chem_nuclide>, int, element_pointer_value_less> molecule::nNucsMap

Member Function Documentation

◆ compare()

int molecule::compare ( const molecule & mol2) const
inline

References ASSERT, label, and nNuclide.

◆ heavyAtom()

chem_nuclide * molecule::heavyAtom ( void )
inline

References nNuclide, and null_nuclide.

◆ isIsotopicTotalSpecies()

bool molecule::isIsotopicTotalSpecies ( ) const
inline

References parentLabel.

◆ isMolecule()

bool molecule::isMolecule ( ) const
inline

isMolecule – Tell if a species is a molecule, that is, if it is composed of more than one nuclei.

Returns
true, if one nucleus in species; false, otherwise

References nNuclide.

Referenced by isMolecule(), and isSpecies().

◆ isMonatomic()

bool molecule::isMonatomic ( void ) const
inline

isMonatomic – Tell if a species is composed of only one atom

Returns
true, if one nucleus in species; false, otherwise total number of nuclei

References nNuclide.

Referenced by t_mole_local::dissoc_rate(), isSpecies(), and mole_make_list().

◆ local()

molezone * molecule::local ( void ) const
inline

number of reactions that involve this molecule

References index, mole, and null_molezone.

Referenced by CoolHeatError().

◆ n_nuclei()

int molecule::n_nuclei ( void ) const
inline

Solid or gas phase? total number of nuclei

References nNuclide.

◆ nElement()

int molecule::nElement ( int nelem)
inline

References nNuclide.

Member Data Documentation

◆ charge

int molecule::charge

number of each nuclide in molecule

Referenced by t_mole_global::make_species(), mole_eval_sources(), and mole_make_list().

◆ form_enthalpy

realnum molecule::form_enthalpy

◆ groupnum

int molecule::groupnum

◆ index

◆ isEnabled

bool molecule::isEnabled

Referenced by parse_reaction().

◆ label

◆ lgExcit

bool molecule::lgExcit

Charge on species/number of e- liberated by formation

◆ lgGas_Phase

bool molecule::lgGas_Phase

Is species excited (e.g. H2*)

Referenced by mole_make_list().

◆ mole_mass

realnum molecule::mole_mass

formation enthalpy for the molecule (at 0K), in units of KJ/mol

Referenced by t_mole_global::make_species(), and mole_partition_function().

◆ n_react

int molecule::n_react

◆ nNuclide

◆ parentIndex

int molecule::parentIndex

◆ parentLabel

string molecule::parentLabel

◆ state

enum mole_state molecule::state

Mass of molecule

Referenced by isactive(), and ispassive().


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