/home66/gary/public_html/cloudy/c13_branch/source/mole_species.cpp File Reference

#include "cdstd.h"
#include <cctype>
#include <string.h>
#include <algorithm>
#include <stdlib.h>
#include "cddefines.h"
#include "colden.h"
#include "conv.h"
#include "deuterium.h"
#include "doppvel.h"
#include "elementnames.h"
#include "h2.h"
#include "iso.h"
#include "phycon.h"
#include "physconst.h"
#include "mole.h"
#include "mole_priv.h"
#include "hmi.h"
#include "radius.h"
#include "rfield.h"
#include "rt.h"
#include "secondaries.h"
#include "dense.h"
#include "ionbal.h"
#include "grainvar.h"
#include "timesc.h"
#include "taulines.h"
#include "trace.h"
#include <functional>
Include dependency graph for mole_species.cpp:

Go to the source code of this file.

Namespaces

namespace  mole_priv

Enumerations

enum  spectype { MOLECULE, OTHER }

Functions

STATIC void read_species_file (string filename, bool lgCreateIsotopologues=true)
STATIC void newelement (const char label[], int ipion)
STATIC void newisotope (const count_ptr< chem_element > &el, int massNumberA, realnum mass_amu, double frac)
STATIC realnum MeanMassOfElement (const count_ptr< chem_element > &el)
STATIC moleculenewspecies (const char label[], enum spectype type, enum mole_state state, realnum form_enthalpy)
STATIC moleculenewspecies (const char label[], enum spectype type, enum mole_state state, realnum form_enthalpy, bool lgCreateIsotopologues)
STATIC count_ptr< chem_atomfindatom (const char buf[])
STATIC bool isactive (const molecule &mol)
STATIC bool ispassive (const molecule &mol)
STATIC void ReadIsotopeFractions (const vector< bool > &lgResolveNelem)
void mole_make_list ()
void create_isotopologues_one (ChemAtomList &atoms, vector< int > &numAtoms, string atom_old, string atom_new, string embellishments, vector< string > &newLabels)
bool parse_species_label (const char label[], ChemAtomList &atomsLeftToRight, vector< int > &numAtoms, string &embellishments)
bool parse_species_label (const char label[], ChemAtomList &atomsLeftToRight, vector< int > &numAtoms, string &embellishments, bool &lgExcit, int &charge, bool &lgGas_Phase)
bool lgDifferByExcitation (const molecule &mol1, const molecule &mol2)
moleculefindspecies (const char buf[])
molezonefindspecieslocal (const char buf[])
void mole_update_species_cache (void)
realnum mole_return_cached_species (void)
void total_molecule_deut (realnum &total_f)
void total_molecule_elems (realnum total[LIMELM])
void total_network_elems (double total[LIMELM])
realnum total_molecules (void)
realnum total_molecules_gasphase (void)
void mole_make_groups (void)

Variables

moleculenull_mole
molezonenull_molezone
chem_elementnull_element
chem_atomnull_atom
vector< count_ptr< chem_element > > element_list
ChemAtomList unresolved_atom_list
ChemAtomList atom_list
molecule ** groupspecies

Enumeration Type Documentation

enum spectype
Enumerator:
MOLECULE 
OTHER 

Definition at line 39 of file mole_species.cpp.


Function Documentation

void create_isotopologues_one ( ChemAtomList atoms,
vector< int > &  numAtoms,
string  atom_old,
string  atom_new,
string  embellishments,
vector< string > &  newLabels 
)

Definition at line 361 of file mole_species.cpp.

References ASSERT, and fixit().

Referenced by mole_generate_isotopologue_reactions(), and newspecies().

Here is the call graph for this function:

STATIC count_ptr< chem_atom > findatom ( const char  buf[]  ) 

Definition at line 825 of file mole_species.cpp.

References mole_priv::atomtab, and DEBUG_ENTRY.

Referenced by parse_species_label().

molecule* findspecies ( const char  buf[]  ) 
molezone* findspecieslocal ( const char  buf[]  ) 
STATIC bool isactive ( const molecule mol  ) 

Definition at line 765 of file mole_species.cpp.

References DEBUG_ENTRY, MOLE_ACTIVE, and molecule::state.

Referenced by mole_make_list().

STATIC bool ispassive ( const molecule mol  ) 

Definition at line 770 of file mole_species.cpp.

References DEBUG_ENTRY, MOLE_PASSIVE, and molecule::state.

Referenced by mole_make_list().

bool lgDifferByExcitation ( const molecule mol1,
const molecule mol2 
)

Definition at line 777 of file mole_species.cpp.

References molecule::label.

Referenced by register_reaction_vectors().

STATIC realnum MeanMassOfElement ( const count_ptr< chem_element > &  el  ) 

Definition at line 489 of file mole_species.cpp.

References ASSERT, t_dense::AtomicWeight, DEBUG_ENTRY, dense, and fp_equal().

Referenced by t_mole_global::make_species().

Here is the call graph for this function:

void mole_make_groups ( void   ) 
void mole_make_list ( void   ) 
realnum mole_return_cached_species ( void   ) 
void mole_update_species_cache ( void   ) 
STATIC void newelement ( const char  label[],
int  ipion 
)

Definition at line 435 of file mole_species.cpp.

References auto_vec< T >::data(), DEBUG_ENTRY, element_list, and mole_priv::elemtab.

Referenced by t_mole_global::make_species().

Here is the call graph for this function:

STATIC void newisotope ( const count_ptr< chem_element > &  el,
int  massNumberA,
realnum  mass_amu,
double  frac 
)

Definition at line 461 of file mole_species.cpp.

References ASSERT, atom_list, mole_priv::atomtab, DEBUG_ENTRY, count_ptr< T >::get_ptr(), LIMELM, and unresolved_atom_list.

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

Here is the call graph for this function:

STATIC molecule * newspecies ( const char  label[],
enum spectype  type,
enum mole_state  state,
realnum  form_enthalpy,
bool  lgCreateIsotopologues 
)
STATIC molecule * newspecies ( const char  label[],
enum spectype  type,
enum mole_state  state,
realnum  form_enthalpy 
)

Definition at line 508 of file mole_species.cpp.

Referenced by t_mole_global::make_species(), newspecies(), and read_species_file().

bool parse_species_label ( const char  label[],
ChemAtomList atomsLeftToRight,
vector< int > &  numAtoms,
string &  embellishments,
bool &  lgExcit,
int &  charge,
bool &  lgGas_Phase 
)

Definition at line 659 of file mole_species.cpp.

References ASSERT, CHARS_ISOTOPE_SYM, CHARS_SPECIES, dense, findatom(), count_ptr< T >::get_ptr(), ioQQQ, t_dense::lgElmtOn, t_trace::lgTraceMole, and trace.

Here is the call graph for this function:

bool parse_species_label ( const char  label[],
ChemAtomList atomsLeftToRight,
vector< int > &  numAtoms,
string &  embellishments 
)

Definition at line 652 of file mole_species.cpp.

References parse_species_label().

Referenced by mole_generate_isotopologue_reactions(), newspecies(), and parse_species_label().

Here is the call graph for this function:

STATIC void read_species_file ( string  filename,
bool  lgCreateIsotopologues = true 
)

Definition at line 333 of file mole_species.cpp.

References ASSERT, DEBUG_ENTRY, mode_r, MOLE_ACTIVE, MOLECULE, newspecies(), and open_data().

Referenced by t_mole_global::make_species().

Here is the call graph for this function:

STATIC void ReadIsotopeFractions ( const vector< bool > &  lgResolveNelem  ) 

Definition at line 103 of file mole_species.cpp.

References ASSERT, DEBUG_ENTRY, element_list, FFmtRead(), fixit(), INPUT_LINE_LENGTH, ipCARBON, newisotope(), open_data(), and read_whole_line().

Referenced by t_mole_global::make_species().

Here is the call graph for this function:

void total_molecule_deut ( realnum total_f  ) 
void total_molecule_elems ( realnum  total[LIMELM]  ) 
realnum total_molecules ( void   ) 
realnum total_molecules_gasphase ( void   ) 
void total_network_elems ( double  total[LIMELM]  ) 

Variable Documentation

Definition at line 68 of file mole_species.cpp.

Referenced by t_mole_global::make_species(), newelement(), and ReadIsotopeFractions().

Definition at line 67 of file mole_species.cpp.

Referenced by molcol().

Definition at line 66 of file mole_species.cpp.

Definition at line 65 of file mole_species.cpp.

Referenced by dBase_solve(), SaveSpecies(), and SaveSpeciesOne().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1