Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <lines.h>
Public Member Functions | |
const char * | chName () const |
void | zero () |
void | comment (t_warnings &) |
long | findline (const LineID &line) |
void | clear () |
void | resize (long nlines) |
void | setSortWL () |
void | init (long index, char chSumTyp, const char *chComment, const char *label, bool lgAdd, t_wavl wavelength, const TransitionProxy &tr) |
realnum | wavlVac (long index) const |
t_wavl | twav (long index) const |
void | resetWavlVac (long index, realnum wl) |
![]() | |
module () | |
virtual | ~module () |
Public Attributes | |
long int | nsum |
long int | nComment |
long int | ipass |
string | chHoldComments [NHOLDCOMMENTS] |
LineID | NormLine |
long int | ipNormLine |
double | ScaleNormLine |
long int | sig_figs |
int | wl_length |
realnum | RecCoefCNO [4][NRECCOEFCNO] |
vector< LinSv > | lines |
vector< realnum > | m_wavelength |
vector< size_t > | SortWL |
bool | lgIsoContSubSignif |
Static Public Attributes | |
static const long | sig_figs_max = 6 |
this struc is different from following since they are only pointer here, will be allocated to form a large array after number of lines is counted, but this is the final form
|
inlinevirtual |
Implements module.
|
inline |
References lines, and m_wavelength.
|
inlinevirtual |
Implements module.
long t_LineSave::findline | ( | const LineID & | line | ) |
References ASSERT, BIGFLOAT, caps(), cdEXIT, LineID::chLabel(), DEBUG_ENTRY, LineID::ELo(), EXIT_FAILURE, fp_equal(), fprintf(), LineID::indHi(), LineID::indLo(), ioQQQ, ipass, lines, LineSave, NCHLAB, nsum, prt_line_err(), SortWL, t_wavl::sprt_wl(), LineID::str(), TotalInsanity(), trimTrailingWhiteSpace(), LineID::twav(), wavelength_compare_realnum(), WavlenErrorGet(), LineID::wavlVac(), and wavlVac().
void t_LineSave::init | ( | long | index, |
char | chSumTyp, | ||
const char * | chComment, | ||
const char * | label, | ||
bool | lgAdd, | ||
t_wavl | wavelength, | ||
const TransitionProxy & | tr ) |
References lines, m_wavelength, and wavelength.
|
inline |
References m_wavelength.
|
inline |
References lines, and m_wavelength.
void t_LineSave::setSortWL | ( | ) |
References DEBUG_ENTRY, nsum, SortWL, and wavelength_compare().
|
inline |
|
inline |
References m_wavelength.
Referenced by findline(), and twav().
|
virtual |
Implements module.
References DEBUG_ENTRY, Hbeta_WavLen, ipNormLine, NormLine, ScaleNormLine, sig_figs, and sig_figs_max.
string t_LineSave::chHoldComments[NHOLDCOMMENTS] |
holds comment strings associated with various blocks of output lines
long int t_LineSave::ipass |
there are three types of calls to lines() ipass = -1, first call, only count number off lines ipass = 0, second pass, save labels and wavelengths ipass = 1, integrate intensity
Referenced by findline().
long int t_LineSave::ipNormLine |
array index for emission line on normalize command
Referenced by zero().
bool t_LineSave::lgIsoContSubSignif |
vector<LinSv> t_LineSave::lines |
number of lines allocated in emission line stack must not change between iterations or grid points
Referenced by clear(), findline(), init(), and resize().
vector<realnum> t_LineSave::m_wavelength |
Referenced by clear(), init(), resetWavlVac(), resize(), and wavlVac().
long int t_LineSave::nComment |
index to number of comments printed within the block of lines
long int t_LineSave::nsum |
number of emission lines in main stack nsum is current index, to last line entered in the array linadd increments nsum before doing anything else
Referenced by findline(), and setSortWL().
realnum t_LineSave::RecCoefCNO[4][NRECCOEFCNO] |
save rec coefficient data for recombination lines of C, N, O
double t_LineSave::ScaleNormLine |
ScaleNormLine is the scale factor for its appearance
Referenced by zero().
long int t_LineSave::sig_figs |
number of significant figures for lines this affects all aspects of reading and writing lines
Referenced by zero().
|
static |
Referenced by zero().
vector<size_t> t_LineSave::SortWL |
Referenced by findline(), and setSortWL().
int t_LineSave::wl_length |
length of string wl not including units typically, sig_figs+2 (dot & unit)