|
Cloudy
Spectral Synthesis Code for Astrophysics
|

Go to the source code of this file.
Classes | |
| class | species |
| struct | t_pseudo_cont |
Functions | |
| void | db_basename_to_spectral (const string &chBasename, string &chElement, char *chSpecLabel) |
| void | parsespect (const char *chLabel, long &nelem, long &IonStg) |
| string | makeChemical (long nelem, long ion) |
| void | makeChemical (char *chLabelChemical, long nelem, long ion) |
| void | spectral_to_chemical (char *chLabelSpec, const char *chLabelChem) |
| void | spectral_to_chemical (string &chLabelSpec, const char *chLabelChem) |
| bool | parse_chemical (const string &chLabelChem, string &chElemMol, long &spCharge) |
| void | chemical_to_spectral (const string &chLabelChem, string &chLabelSpec) |
| bool | isSpeciesActive (const string &chSpecLabel) |
| bool | isAtomicIonValid (const long element_index, const long spCharge) |
| bool | isBareNucleus (const long element_index, const long spCharge) |
Variables | |
| t_pseudo_cont | pseudoContDef |
| void chemical_to_spectral | ( | const string & | chLabelChem, |
| string & | chLabelSpec ) |
chemical_to_spectral - Convert a chemical label to spectral.
| chLabelChem[in] | Chemical label, e.g., "C+" |
| chLabelSpec[out] | Spectral label, e.g., "C 2" |
References DEBUG_ENTRY, elem_symbol_to_index(), isAtomicIonValid(), isBareNucleus(), isElementSym(), and parse_chemical().
Referenced by SaveAllSpeciesLabelsLevels(), SaveSpeciesLines(), and band_emission::setup().

| void db_basename_to_spectral | ( | const string & | chBasename, |
| string & | chElement, | ||
| char * | chSpecLabel ) |
db_basename_to_spectral - Convert the species basename in Stout or Chianti to a spectral label.
| chBasename[in] | File basename, e.g., "c_2" |
| chElement[out] | Extracted element name, e.g., "C" |
| chSpecLabel[out] | Spectral label, e.g., "C 2" |
References ASSERT, DEBUG_ENTRY, toupper(), and uncaps().
Referenced by database_readin().

| bool isAtomicIonValid | ( | const long | element_index, |
| const long | spCharge ) |
isAtomicIonValid - Tell if an atomic ion is has a charge consistent with its atomic number.
| element_index[in] | Zero-offset index for element; 0 for H, 29 for Zn |
| spCharge[in] | Species charge |
References ASSERT, and DEBUG_ENTRY.
Referenced by cdTemp(), and chemical_to_spectral().
| bool isBareNucleus | ( | const long | element_index, |
| const long | spCharge ) |
isBareNucleus - Tell if the given ion is a bare nucleus.
| element_index[in] | Zero-offset index for element; 0 for H, 29 for Zn |
| spCharge[in] | Species charge |
References ASSERT, and DEBUG_ENTRY.
Referenced by chemical_to_spectral().
| bool isSpeciesActive | ( | const string & | chSpecLabel | ) |
isSpeciesActive - Tell if the species is enabled
An atomic/ionic species may be inactive if the relevant element is disabled. Likewise, a molecular species may be inactive if one of its constituents elements is disabled. This function reports on the given species. If not found, the result is false.
| chLabelChem | [in] Chemical label, e.g., "C+2", or "HCl" |
References DEBUG_ENTRY, mole, mole_global, and NULL.
Referenced by SpeciesBandsCreate().
| void makeChemical | ( | char * | chLabelChemical, |
| long | nelem, | ||
| long | ion ) |
References CHARS_SPECIES, DEBUG_ENTRY, and makeChemical().

| string makeChemical | ( | long | nelem, |
| long | ion ) |
References DEBUG_ENTRY, and elementnames.
Referenced by InitCoreloadPostparse(), iso_allocate(), iso_level(), makeChemical(), Atom_LevelN::operator()(), ParseSave(), save_opacity(), setProperties(), and spectral_to_chemical().
| bool parse_chemical | ( | const string & | chLabelChem, |
| string & | chElemMol, | ||
| long & | spCharge ) |
parse_chemical - Parse the element and charge of a chemical label.
| chLabelChem[in] | Chemical label, e.g., "C+2", or "HCl" |
| chElemMol[out] | Element or molecule, e.g., "C", or "HCl" |
| spCharge[out] | Species charge, e.g., 2, or 0 |
References DEBUG_ENTRY, fprintf(), and ioQQQ.
Referenced by cdTemp(), and chemical_to_spectral().

| void parsespect | ( | const char * | chLabel, |
| long & | nelem, | ||
| long & | IonStg ) |
References DEBUG_ENTRY, elementnames, and LIMELM.
Referenced by Atom_LevelN::operator()(), setProperties(), and spectral_to_chemical().
| void spectral_to_chemical | ( | char * | chLabelSpec, |
| const char * | chLabelChem ) |
spectral_to_chemical - Convert a spectral label to chemical.
| chLabelSpec[in] | Spectral label, e.g., "C 2" |
| chLabelChem[out] | Chemical label, e.g., "C+" |
References DEBUG_ENTRY, and spectral_to_chemical().

| void spectral_to_chemical | ( | string & | chLabelSpec, |
| const char * | chLabelChem ) |
spectral_to_chemical - Convert a spectral label to chemical.
| chLabelSpec[in] | Spectral label, e.g., "C 2" |
| chLabelChem[out] | Chemical label, e.g., "C+" |
References DEBUG_ENTRY, NCHLAB, and spectral_to_chemical().

|
extern |
Referenced by getPseudoWlRange(), and InitDefaultsPreparse().