Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "continuum.h"
#include "trace.h"
#include "save.h"
#include "radius.h"
#include "generic_state.h"
#include "mole.h"
#include "species.h"
#include "lines.h"
#include "lines_service.h"
Classes | |
class | band_cont |
class | pseudo_cont |
class | bands_file |
class | band_emission |
class | species_band |
Typedefs | |
typedef vector< species_band > ::iterator | sb_itor |
Enumerations | |
enum | intenType { UNSET = 0, INWARD = 1, OUTWARD = 2, TOTAL = 3 } |
Functions | |
STATIC string | getIntenTypeStr (const int ipContType) |
STATIC void | getPseudoIndex (const string &speciesLabel, vector< pseudo_cont >::iterator &this_it) |
STATIC long | getAdjPseudoIndex (const string &speciesLabel) |
STATIC void | getPseudoWlRange (const string &speciesLabel, double &wlLo, double &wlHi, long &nBins) |
STATIC void | PseudoContCreate (long ips) |
void | SpeciesPseudoContCreate () |
void | SpeciesPseudoContAccum () |
STATIC long | resolveSpecType (const char *saveSpec) |
void | SaveSpeciesPseudoCont (const long ipPun, const string &speciesLabel) |
STATIC void | findBandsFile (const string &filename, vector< bands_file >::iterator &this_it) |
STATIC void | addBandsFile (const string &filename) |
STATIC sb_itor | findSpecBand (const string &filename, const string &speciesLabel) |
STATIC bool | specBandsExists (const string &filename, const string &speciesLabel) |
void | addUniqueSpeciesBand (const string &filename, const string &speciesLabel) |
void | SpeciesBandsCreate () |
void | SpeciesBandsAccum () |
void | SaveSpeciesBands (const long ipPun, const string &speciesLabel, const string &fileBands, const bool lgEmergent) |
Variables | |
t_pseudo_cont | pseudoContDef |
static vector< pseudo_cont > | PseudoCont |
static vector< bands_file > | Bands |
static vector< species_band > | SpecBands |
typedef vector<species_band>::iterator sb_itor |
enum intenType |
STATIC void addBandsFile | ( | const string & | filename | ) |
References Bands, DEBUG_ENTRY, findBandsFile(), bands_file::load(), and bands_file::setup().
Referenced by SpeciesBandsCreate().
void addUniqueSpeciesBand | ( | const string & | filename, |
const string & | speciesLabel | ||
) |
addUniqueSpeciesBand - add unique combination of species and bands file to list
Note that this command requires that the atomic data be read in.
[in] | filename | name of bands file |
[in[ | speciesLabel species whose emission to accumulate |
References DEBUG_ENTRY, SpecBands, and specBandsExists().
Referenced by SpeciesBandsCreate().
STATIC void findBandsFile | ( | const string & | filename, |
vector< bands_file >::iterator & | this_it | ||
) |
References Bands, and DEBUG_ENTRY.
Referenced by addBandsFile(), and SpeciesBandsCreate().
References DEBUG_ENTRY, and SpecBands.
Referenced by SaveSpeciesBands(), and specBandsExists().
STATIC long getAdjPseudoIndex | ( | const string & | speciesLabel | ) |
References DEBUG_ENTRY, save, and t_save::setPseudoCont.
Referenced by getPseudoWlRange().
STATIC string getIntenTypeStr | ( | const int | ipContType | ) |
References DEBUG_ENTRY, INWARD, OUTWARD, TOTAL, TotalInsanity(), and UNSET.
Referenced by SaveSpeciesPseudoCont().
STATIC void getPseudoIndex | ( | const string & | speciesLabel, |
vector< pseudo_cont >::iterator & | this_it | ||
) |
References DEBUG_ENTRY, and PseudoCont.
Referenced by SaveSpeciesPseudoCont().
STATIC void getPseudoWlRange | ( | const string & | speciesLabel, |
double & | wlLo, | ||
double & | wlHi, | ||
long & | nBins | ||
) |
References DEBUG_ENTRY, getAdjPseudoIndex(), t_pseudo_cont::nBins, save, t_save::setPseudoCont, t_pseudo_cont::wlHi, and t_pseudo_cont::wlLo.
Referenced by PseudoContCreate().
STATIC void PseudoContCreate | ( | long | ips | ) |
References t_save::contSaveSpeciesLabel, DEBUG_ENTRY, getPseudoWlRange(), PseudoCont, and save.
Referenced by SpeciesPseudoContCreate().
STATIC long resolveSpecType | ( | const char * | saveSpec | ) |
References DEBUG_ENTRY, INWARD, OUTWARD, TOTAL, and UNSET.
Referenced by SaveSpeciesPseudoCont().
void SaveSpeciesBands | ( | const long | ipPun, |
const string & | speciesLabel, | ||
const string & | fileBands, | ||
const bool | lgEmergent | ||
) |
SaveSpeciesBands - save species bands emission
ipPun | [in] save file index |
speciesLabel | [in] species emission to be stored |
fileBands | [in] file that holds the bands' definitions |
lgEmergent | [in] report emergent emission; intrinsic by default |
References ASSERT, cdEXIT, t_radius::Conv2PrtInten, DEBUG_ENTRY, EXIT_FAILURE, t_LineSave::findline(), findSpecBand(), fprintf(), ioQQQ, SaveParams::ipPnunit, t_save::lgSaveHeader(), t_LineSave::lines, LineSave, t_save::params, radius, save, t_save::SaveHeaderDone(), and SpecBands.
Referenced by SaveDo().
void SaveSpeciesPseudoCont | ( | const long | ipPun, |
const string & | speciesLabel | ||
) |
SaveSpeciesPseudoCont - save species pseudo-continuum
ipPun | save file index |
speciesLabel | species emission to be stored |
References cdEXIT, t_save::chSaveArgs, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), getIntenTypeStr(), getPseudoIndex(), INWARD, ioQQQ, SaveParams::ipPnunit, t_save::lgSaveHeader(), OUTWARD, t_save::params, PseudoCont, t_save::punarg, resolveSpecType(), save, t_save::SaveHeaderDone(), TOTAL, and TotalInsanity().
Referenced by SaveDo().
STATIC bool specBandsExists | ( | const string & | filename, |
const string & | speciesLabel | ||
) |
References DEBUG_ENTRY, findSpecBand(), and SpecBands.
Referenced by addUniqueSpeciesBand().
void SpeciesBandsAccum | ( | ) |
SpeciesBandsAccum - accumulate emission in species bands
References DEBUG_ENTRY, linadd(), SpecBands, and StuffComment().
Referenced by lines().
void SpeciesBandsCreate | ( | ) |
SpeciesBandsCreate - initialize requested species bands files
References addBandsFile(), addUniqueSpeciesBand(), DEBUG_ENTRY, findBandsFile(), isSpeciesActive(), and SpecBands.
Referenced by cloudy().
void SpeciesPseudoContAccum | ( | ) |
SpeciesPseudoContAccum - accumulate pseudo-continua
References DEBUG_ENTRY, t_radius::dVeffAper, t_LineSave::ipass, LineSave, nzone, PseudoCont, and radius.
Referenced by lines().
void SpeciesPseudoContCreate | ( | ) |
SpeciesPseudoContCreate - initialize requested pseudo-continua
References t_save::contSaveSpeciesLabel, DEBUG_ENTRY, PseudoCont, PseudoContCreate(), and save.
Referenced by cloudy().
|
static |
Bands – list of bands files specified with 'save species bands' commands
Referenced by addBandsFile(), and findBandsFile().
|
static |
Referenced by getPseudoIndex(), PseudoContCreate(), SaveSpeciesPseudoCont(), SpeciesPseudoContAccum(), and SpeciesPseudoContCreate().
t_pseudo_cont pseudoContDef |
Referenced by InitDefaultsPreparse().
|
static |
Referenced by addUniqueSpeciesBand(), findSpecBand(), SaveSpeciesBands(), specBandsExists(), SpeciesBandsAccum(), and SpeciesBandsCreate().