Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
species_pseudo_cont.cpp File Reference
#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"
Include dependency graph for species_pseudo_cont.cpp:

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_contPseudoCont
 
static vector< bands_fileBands
 
static vector< species_bandSpecBands
 

Typedef Documentation

◆ sb_itor

Enumeration Type Documentation

◆ intenType

enum intenType
Enumerator
UNSET 
INWARD 
OUTWARD 
TOTAL 

Function Documentation

◆ addBandsFile()

STATIC void addBandsFile ( const string & filename)

References Bands, DEBUG_ENTRY, findBandsFile(), bands_file::load(), bands_file::setup(), and STATIC.

Referenced by SpeciesBandsCreate().

Here is the call graph for this function:

◆ addUniqueSpeciesBand()

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.

Parameters
[in]filenamename of bands file
[in[speciesLabel species whose emission to accumulate

References DEBUG_ENTRY, SpecBands, and specBandsExists().

Referenced by ParseSave(), and SpeciesBandsCreate().

Here is the call graph for this function:

◆ findBandsFile()

STATIC void findBandsFile ( const string & filename,
vector< bands_file >::iterator & this_it )

References Bands, DEBUG_ENTRY, and STATIC.

Referenced by addBandsFile(), and SpeciesBandsCreate().

◆ findSpecBand()

STATIC sb_itor findSpecBand ( const string & filename,
const string & speciesLabel )

References DEBUG_ENTRY, SpecBands, and STATIC.

Referenced by SaveSpeciesBands(), and specBandsExists().

◆ getAdjPseudoIndex()

STATIC long getAdjPseudoIndex ( const string & speciesLabel)

References DEBUG_ENTRY, save, and STATIC.

Referenced by getPseudoWlRange().

◆ getIntenTypeStr()

STATIC string getIntenTypeStr ( const int ipContType)

References DEBUG_ENTRY, INWARD, OUTWARD, STATIC, TOTAL, TotalInsanity(), and UNSET.

Referenced by SaveSpeciesPseudoCont().

Here is the call graph for this function:

◆ getPseudoIndex()

STATIC void getPseudoIndex ( const string & speciesLabel,
vector< pseudo_cont >::iterator & this_it )

References DEBUG_ENTRY, PseudoCont, and STATIC.

Referenced by SaveSpeciesPseudoCont().

◆ getPseudoWlRange()

STATIC void getPseudoWlRange ( const string & speciesLabel,
double & wlLo,
double & wlHi,
long & nBins )

References DEBUG_ENTRY, getAdjPseudoIndex(), pseudoContDef, save, and STATIC.

Referenced by PseudoContCreate().

Here is the call graph for this function:

◆ PseudoContCreate()

STATIC void PseudoContCreate ( long ips)

References DEBUG_ENTRY, getPseudoWlRange(), PseudoCont, save, and STATIC.

Referenced by SpeciesPseudoContCreate().

Here is the call graph for this function:

◆ resolveSpecType()

STATIC long resolveSpecType ( const char * saveSpec)

References DEBUG_ENTRY, INWARD, OUTWARD, STATIC, TOTAL, and UNSET.

Referenced by SaveSpeciesPseudoCont().

◆ SaveSpeciesBands()

void SaveSpeciesBands ( const long ipPun,
const string & speciesLabel,
const string & fileBands,
const bool lgEmergent )

SaveSpeciesBands - save species bands emission

Parameters
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, DEBUG_ENTRY, EXIT_FAILURE, findSpecBand(), fprintf(), ioQQQ, ipPun, LineSave, radius, save, and SpecBands.

Referenced by SaveDo().

Here is the call graph for this function:

◆ SaveSpeciesPseudoCont()

void SaveSpeciesPseudoCont ( const long ipPun,
const string & speciesLabel )

SaveSpeciesPseudoCont - save species pseudo-continuum

Parameters
ipPunsave file index
speciesLabelspecies emission to be stored

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), getIntenTypeStr(), getPseudoIndex(), INWARD, ioQQQ, ipPun, OUTWARD, PseudoCont, resolveSpecType(), save, TOTAL, and TotalInsanity().

Referenced by SaveDo().

Here is the call graph for this function:

◆ specBandsExists()

STATIC bool specBandsExists ( const string & filename,
const string & speciesLabel )

References DEBUG_ENTRY, findSpecBand(), SpecBands, and STATIC.

Referenced by addUniqueSpeciesBand().

Here is the call graph for this function:

◆ SpeciesBandsAccum()

void SpeciesBandsAccum ( )

SpeciesBandsAccum - accumulate emission in species bands

References DEBUG_ENTRY, linadd(), SpecBands, StuffComment(), and t_vac().

Referenced by lines().

Here is the call graph for this function:

◆ SpeciesBandsCreate()

void SpeciesBandsCreate ( )

SpeciesBandsCreate - initialize requested species bands files

References addBandsFile(), addUniqueSpeciesBand(), DEBUG_ENTRY, findBandsFile(), isSpeciesActive(), and SpecBands.

Referenced by cloudy().

Here is the call graph for this function:

◆ SpeciesPseudoContAccum()

void SpeciesPseudoContAccum ( )

SpeciesPseudoContAccum - accumulate pseudo-continua

References DEBUG_ENTRY, LineSave, nzone, PseudoCont, and radius.

Referenced by lines().

◆ SpeciesPseudoContCreate()

void SpeciesPseudoContCreate ( )

SpeciesPseudoContCreate - initialize requested pseudo-continua

References DEBUG_ENTRY, PseudoCont, PseudoContCreate(), and save.

Referenced by cloudy().

Here is the call graph for this function:

Variable Documentation

◆ Bands

vector<bands_file> Bands
static

Bands – list of bands files specified with 'save species bands' commands

Referenced by addBandsFile(), and findBandsFile().

◆ PseudoCont

◆ pseudoContDef

t_pseudo_cont pseudoContDef

◆ SpecBands