Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
generic_state.h File Reference
#include "quantumstate.h"
Include dependency graph for generic_state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  genericState
 

Functions

double column (const genericState &)
 
double density (const genericState &)
 
double depart (const genericState &)
 
double energy (const genericState &)
 
double levels (const genericState &)
 
void extractLevels (const string &chLabel, string &species, long &nLevelLo, long &nLevelHi, bool &lgLevels)
 
const molezonegetLevelsGeneric (const string &chLabel, bool lgValidate, vector< long > &LevelList)
 
vector< genericStatematchGeneric (const string &chLabel, bool lgValidate)
 
genericState getSpeciesGeneric (const string &speciesLabel)
 

Function Documentation

double depart ( const genericState )

References qStateConstProxy::associated(), qStateConstProxy::DepartCoef(), NULL, genericState::q, genericState::sp, and genericState::val.

Referenced by dBase_solve(), and SaveSpecies().

Here is the call graph for this function:

void extractLevels ( const string &  chLabel,
string &  species,
long &  nLevelLo,
long &  nLevelHi,
bool &  lgLevels 
)

extractLevels – parse string to extract species, low and high levels from, e.g., "Cu+13[1:100]"

Parameters
[in]chLabelinput species & levels string
[out]speciesoutput species string
[out]nLevelLolow level index
[out]nLevelHihigh level index
[out]lgLevelsboolean, true if levels given

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, and levels().

Referenced by getLevelsGeneric().

Here is the call graph for this function:

const molezone* getLevelsGeneric ( const string &  chLabel,
bool  lgValidate,
vector< long > &  LevelList 
)

getLevelsGeneric – get the requested species levels

Parameters
[in]chLabelspecies label
[in]lgValidateflag to report errors in the level request
[out]LevelListlist of species levels

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, extractLevels(), findspecieslocal(), fprintf(), IGNORE_LEVEL, ioQQQ, molezone::levels, null_molezone, and qList::size().

Referenced by lgCheckMonitors(), matchGeneric(), and t_prt_matrix::resolveLevels().

Here is the call graph for this function:

genericState getSpeciesGeneric ( const string &  speciesLabel)

getSpeciesGeneric - acquire the species matching the input string

Parameters
[in]speciesLabelinput species string
Returns
species reference to requested species

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, and matchGeneric().

Referenced by SaveSpeciesOptDep(), pseudo_cont::setup(), and band_emission::setup().

Here is the call graph for this function:

double levels ( const genericState )

References molezone::levels, NULL, qList::size(), genericState::sp, and genericState::val.

Referenced by extractLevels(), diatomics::H2_ReadEnergies(), ParseElement(), and SaveSpecies().

Here is the call graph for this function:

vector<genericState> matchGeneric ( const string &  chLabel,
bool  lgValidate 
)

matchGeneric – get a list of all species that match request

Parameters
[in]chLabelspecies label
[in]lgValidateflag to report errors in the level request
Returns
list of genericState species

References DEBUG_ENTRY, t_radius::depth_mid_zone, dynamics, t_rfield::extin_mag_V_extended, t_rfield::extin_mag_V_point, getLevelsGeneric(), IGNORE_LEVEL, molezone::levels, t_mole_global::list, mole, mole_global, null_molezone, phycon, radius, rfield, t_mole_local::species, t_phycon::te, and t_dynamics::time_elapsed.

Referenced by cdColm(), getSpeciesGeneric(), lines(), PrtColumns(), SaveDo(), and SaveSpecies().

Here is the call graph for this function: