Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
generic_state.cpp File Reference
#include "cddefines.h"
#include "generic_state.h"
#include "dynamics.h"
#include "mole.h"
#include "phycon.h"
#include "radius.h"
#include "rfield.h"
#include "species.h"
Include dependency graph for generic_state.cpp:

Functions

double column (const genericState &gs)
 
double density (const genericState &gs)
 
double depart (const genericState &gs)
 
double energy (const genericState &gs)
 
double levels (const genericState &gs)
 
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)
 

Variables

static const long IGNORE_LEVEL = -1
 

Function Documentation

◆ column()

◆ density()

◆ depart()

double depart ( const genericState & gs)

◆ energy()

◆ extractLevels()

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:

◆ getLevelsGeneric()

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:

◆ getSpeciesGeneric()

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(), band_emission::setup(), and pseudo_cont::setup().

Here is the call graph for this function:

◆ levels()

double levels ( const genericState & gs)

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:

◆ matchGeneric()

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, dynamics, getLevelsGeneric(), IGNORE_LEVEL, molezone::levels, mole, mole_global, null_molezone, phycon, radius, and rfield.

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

Here is the call graph for this function:

Variable Documentation

◆ IGNORE_LEVEL

const long IGNORE_LEVEL = -1
static

Referenced by getLevelsGeneric(), and matchGeneric().