| cloudy
    trunk
    | 
#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"
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) | 
| #define DEBUGSTATE false | 
Definition at line 41 of file species.cpp.
Referenced by database_readin(), and trim_levels().
| void chemical_to_spectral | ( | const string | chLabelChem, | 
| string & | chLabelSpec | ||
| ) | 
Definition at line 981 of file species.cpp.
References DEBUG_ENTRY, and isElementSym().
Referenced by species_bands::insert(), SaveAllSpeciesLabelsLevels(), and SaveSpeciesLines().

| STATIC void database_prep | ( | int | intSpIndex | ) | 
Definition at line 1142 of file species.cpp.
References atmdat, BIGFLOAT, dBaseSpecies, dBaseStates, dBaseTrans, DEBUG_ENTRY, ipCRD, ipCRDW, ipIRON, ipPRD, t_atmdat::ipSpecIon, and SMALLFLOAT.
Referenced by database_readin().
| void database_readin | ( | void | ) | 
Definition at line 42 of file species.cpp.
References AllTransitions, AS_LOCAL_ONLY_TRY, ASSERT, atmdat, atmdat_CHIANTI_readin(), atmdat_LAMDA_readin(), atmdat_STOUT_readin(), AtmolCollRateCoeff, AtmolCollSplines, cdEXIT, CHARS_SPECIES, t_atmdat::chCloudyChiantiFile, t_atmdat::chdBaseSources, t_input::chDelimiter, check_data(), t_elementnames::chElementSym, t_atmdat::chLamdaFile, t_atmdat::chStoutFile, t_atmdat::chVersion, database_prep(), dBaseSpecies, dBaseStates, dBaseTrans, DEBUG_ENTRY, DEBUGSTATE, elementnames, EXIT_FAILURE, FFmtRead(), FILENAME_PATH_LENGTH_2, findspecies(), fixit, fprintf(), input, Singleton< t_version >::Inst(), ioQQQ, ipdBaseTrans, ipNCOLLIDER, t_save::ipSDSFile, t_atmdat::iVersionLength, t_atmdat::lgCalpgmOn, t_atmdat::lgChiantiOn, t_atmdat::lgdBaseSourceExists, t_atmdat::lgLamdaOn, t_save::lgSDSOn, t_atmdat::lgStoutOn, LIMELM, nSpecies, null_mole, open_data(), read_whole_line(), save, set_fractionation(), speciesCheck(), states_nelemfill(), states_popfill(), states_propprint(), StoutCollData, TotalInsanity(), toupper(), trim_levels(), trimTrailingWhiteSpace(), and uncaps().
Referenced by atmdat_readin().

| string makeChemical | ( | long | nelem, | 
| long | ion | ||
| ) | 
Definition at line 928 of file species.cpp.
References t_elementnames::chElementSym, DEBUG_ENTRY, and elementnames.
Referenced by InitCoreloadPostparse(), iso_allocate(), makeChemical(), ParseSave(), save_opacity(), setProperties(), and spectral_to_chemical().
| void makeChemical | ( | char * | chLabelChemical, | 
| long | nelem, | ||
| long | ion | ||
| ) | 
Definition at line 945 of file species.cpp.
References CHARS_SPECIES, DEBUG_ENTRY, and makeChemical().

| void parsespect | ( | char * | chLabel, | 
| long & | nelem, | ||
| long & | IonStg | ||
| ) | 
Definition at line 899 of file species.cpp.
References t_elementnames::chElementSym, DEBUG_ENTRY, elementnames, and LIMELM.
Referenced by setProperties(), and spectral_to_chemical().
Definition at line 854 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 | ||
| ) | 
Definition at line 952 of file species.cpp.
References ASSERT, cdEXIT, t_elementnames::chElementSym, DEBUG_ENTRY, elementnames, EXIT_FAILURE, fprintf(), ioQQQ, LIMELM, makeChemical(), NISO, and parsespect().
Referenced by atmdat_CHIANTI_readin(), atmdat_STOUT_readin(), spectral_to_chemical(), and states_nelemfill().

| void spectral_to_chemical | ( | char * | chLabelChemical, | 
| char * | chLabel | ||
| ) | 
Definition at line 973 of file species.cpp.
References DEBUG_ENTRY, and spectral_to_chemical().

| STATIC void states_nelemfill | ( | void | ) | 
Definition at line 1032 of file species.cpp.
References atmdat, t_dense::AtomicWeight, CHARS_SPECIES, dBaseSpecies, dBaseStates, dBaseTrans, DEBUG_ENTRY, dense, findspecies(), fixit, fprintf(), molecule::index, ioQQQ, ipHYDROGEN, t_atmdat::ipSpecIon, t_atmdat::lgChiantiHybrid, t_dense::lgElmtOn, t_dense::lgIonChiantiOn, t_dense::lgIonStoutOn, t_atmdat::lgStoutHybrid, t_prt::matrix, t_dense::maxWN, mole, nSpecies, null_mole, prt, t_prt_matrix::species, t_mole_local::species, spectral_to_chemical(), and TotalInsanity().
Referenced by database_readin().

| STATIC void states_popfill | ( | void | ) | 
Definition at line 885 of file species.cpp.
References dBaseSpecies, dBaseStates, DEBUG_ENTRY, and nSpecies.
Referenced by database_readin().
| STATIC void states_propprint | ( | void | ) | 
Definition at line 1119 of file species.cpp.
References dBaseSpecies, dBaseStates, DEBUG_ENTRY, energy(), and nSpecies.
Referenced by database_readin().

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

 1.8.5
 1.8.5