cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
species.cpp File Reference
#include "cddefines.h"
#include "species.h"
#include "taulines.h"
#include "input.h"
#include "dense.h"
#include "atmdat.h"
#include "elementnames.h"
#include "version.h"
#include "save.h"
#include "mole.h"
#include "service.h"
#include "parse_species.h"
#include "prt.h"
Include dependency graph for species.cpp:

Go to the source code of this file.

Macros

#define DEBUGSTATE   false
 

Functions

STATIC void states_popfill (void)
 
STATIC void states_nelemfill (void)
 
STATIC void database_prep (int)
 
STATIC void trim_levels (long)
 
STATIC void set_fractionation (species *sp)
 
STATIC void states_propprint (void)
 
void database_readin (void)
 
void parsespect (char *chLabel, long &nelem, long &IonStg)
 
string makeChemical (long nelem, long ion)
 
void makeChemical (char *chLabelChemical, long nelem, long ion)
 
STATIC void spectral_to_chemical (char *chLabelChemical, char *chLabel, long &nelem, long &IonStg)
 
void spectral_to_chemical (char *chLabelChemical, char *chLabel)
 
void chemical_to_spectral (const string chLabelChem, string &chLabelSpec)
 

Macro Definition Documentation

#define DEBUGSTATE   false

Definition at line 41 of file species.cpp.

Referenced by database_readin(), and trim_levels().

Function Documentation

void chemical_to_spectral ( const string  chLabelChem,
string &  chLabelSpec 
)

Definition at line 983 of file species.cpp.

References DEBUG_ENTRY, and isElementSym().

Referenced by SaveAllSpeciesLabelsLevels(), SaveSpeciesLines(), and species_bands::setup().

Here is the call graph for this function:

STATIC void database_prep ( int  intSpIndex)
void database_readin ( void  )
string makeChemical ( long  nelem,
long  ion 
)
void makeChemical ( char *  chLabelChemical,
long  nelem,
long  ion 
)

Definition at line 947 of file species.cpp.

References CHARS_SPECIES, DEBUG_ENTRY, and makeChemical().

Here is the call graph for this function:

void parsespect ( char *  chLabel,
long &  nelem,
long &  IonStg 
)

Definition at line 900 of file species.cpp.

References t_elementnames::chElementSym, DEBUG_ENTRY, elementnames, and LIMELM.

Referenced by setProperties(), and spectral_to_chemical().

STATIC void set_fractionation ( species sp)

Definition at line 855 of file species.cpp.

References species::chLabel, DEBUG_ENTRY, fixit, species::fracIsotopologue, and species::fracType.

Referenced by database_readin().

STATIC void spectral_to_chemical ( char *  chLabelChemical,
char *  chLabel,
long &  nelem,
long &  IonStg 
)
void spectral_to_chemical ( char *  chLabelChemical,
char *  chLabel 
)

Definition at line 975 of file species.cpp.

References DEBUG_ENTRY, and spectral_to_chemical().

Here is the call graph for this function:

STATIC void states_nelemfill ( void  )
STATIC void states_popfill ( void  )

Definition at line 886 of file species.cpp.

References dBaseSpecies, dBaseStates, DEBUG_ENTRY, and nSpecies.

Referenced by database_readin().

STATIC void states_propprint ( void  )

Definition at line 1121 of file species.cpp.

References dBaseSpecies, dBaseStates, DEBUG_ENTRY, energy(), and nSpecies.

Referenced by database_readin().

Here is the call graph for this function:

STATIC void trim_levels ( long  ipSpecies)

trim_levels: Trim the highest energy levels until there is a transition out of the highest level with an Aul value that is not the default. The default value of 1e-30 is used when no Aul is given in the database.

Definition at line 798 of file species.cpp.

References atmdat, t_atmdat::aulThreshold, cdEXIT, dBaseSpecies, dBaseStates, dBaseTrans, DEBUG_ENTRY, DEBUGSTATE, EXIT_FAILURE, fprintf(), ioQQQ, ipdBaseTrans, t_atmdat::lgChiantiPrint, t_atmdat::lgLamdaPrint, and t_atmdat::lgStoutPrint.

Referenced by database_readin().

Here is the call graph for this function: