cloudy
trunk
|
#include <lines.h>
Public Member Functions | |
TransitionProxy | getTransition () |
char | chSumTyp () const |
const char * | chALab () const |
const char * | chCLab () const |
bool | isBlend () const |
char | LineType () const |
void | addComponent (const char *species, const double wavelength) |
void | addComponentID (long id) |
void | makeBlend (const char *species, const double wavelength, const double width) |
const TransitionProxy | getComponent (long ind) |
double | SumLine (int i) const |
void | SumLineAdd (int i, double val) |
void | SumLineAccum (double cumulative_factor) |
void | SumLineZero () |
void | SumLineZeroAccum () |
void | SumLineThin () |
double | emslin (int i) const |
void | emslinZero () |
void | emslinSet (int i, double v) |
void | emslinThin () |
realnum | wavelength () const |
string | chComment () const |
void | init (long index, char chSumTyp, const char *chComment, const char *label, const TransitionProxy &tr) |
void | prt (FILE *fp) const |
string | label () const |
string | biglabel () const |
bool | isCat (const char *s) const |
bool | isSeparator () const |
bool | isUnit () const |
bool | isUnitD () const |
bool | isInward () const |
bool | isInwardTotal () const |
bool | isInwardContinuum () const |
bool | isCollisional () const |
bool | isPump () const |
bool | isHeat () const |
bool | isCaseA () const |
bool | isCaseB () const |
bool | isNInu () const |
bool | isNFnu () const |
bool | isPhoPlus () const |
bool | isPcon () const |
bool | isQH () const |
void | checkEmergent (const long ipEmType) const |
Private Types | |
enum | { DEFAULT, SEPARATOR, UNIT, UNITD, INWARD, INWARDTOTAL, INWARDCONTINUUM, COLLISIONAL, PUMP, HEAT, CASEA, CASEB, NINU, NFNU, PHOPLUS, PCON, QH } |
Private Member Functions | |
void | chALabSet (const char *that) |
Private Attributes | |
long | m_index |
char | m_chSumTyp |
char | m_chALab [NCHLAB] |
char | m_chCLab [NCHLAB] |
double | m_SumLine [4] |
double | m_emslin [2] |
string | m_chComment |
vector< long > | m_component |
TransitionProxy | m_tr |
enum LinSv:: { ... } | m_type |
this struc is different from above since only pointer here, will be malloced to form a large array after number of lines is counted. these are the main line save arrays
|
private |
void LinSv::addComponent | ( | const char * | species, |
const double | wavelength | ||
) |
Definition at line 194 of file lines.cpp.
References addComponentID(), cdEXIT, EXIT_FAILURE, t_LineSave::findline(), fprintf(), ioQQQ, t_LineSave::ipass, and wlAirVac().
Referenced by lines(), and lines_molecules().
void LinSv::addComponentID | ( | long | id | ) |
Definition at line 178 of file lines.cpp.
References t_LineSave::lines, m_chComment, and m_component.
Referenced by addComponent(), and makeBlend().
string LinSv::biglabel | ( | ) | const |
Definition at line 53 of file lines.cpp.
References TransitionProxy::associated(), DEBUG_ENTRY, TransitionProxy::Hi(), label(), TransitionProxy::Lo(), and m_tr.
|
inline |
|
private |
|
inline |
string LinSv::chComment | ( | ) | const |
comment describing the line
Definition at line 258 of file lines.cpp.
References m_chComment.
Referenced by init().
|
inline |
Definition at line 402 of file lines.h.
References ASSERT, fp_equal(), isBlend(), m_chSumTyp, m_index, m_SumLine, and t_LineSave::wavelength().
|
inline |
one char saying whether heat 'h', cooling 'c', information, 'i'
Definition at line 182 of file lines.h.
References m_chSumTyp.
Referenced by init().
|
inline |
the emissivity, per unit vol, for current conditions,
Definition at line 279 of file lines.h.
References isBlend(), t_LineSave::lines, m_component, and m_emslin.
Referenced by cdEmis().
|
inline |
|
inline |
Definition at line 316 of file lines.h.
References isBlend(), m_chSumTyp, and m_emslin.
|
inline |
|
inline |
Definition at line 215 of file lines.h.
References t_LineSave::lines, and m_component.
Referenced by lines().
|
inline |
Return the TransitionProxy so that transition data can be extracted (col_str, Aul, etc.)
Definition at line 176 of file lines.h.
References m_tr.
void LinSv::init | ( | long | index, |
char | chSumTyp, | ||
const char * | chComment, | ||
const char * | label, | ||
const TransitionProxy & | tr | ||
) |
Definition at line 90 of file lines.cpp.
References ASSERT, TransitionProxy::associated(), CASEA, CASEB, chALabSet(), chComment(), chSumTyp(), COLLISIONAL, DEBUG_ENTRY, DEFAULT, emslinZero(), HEAT, INWARD, INWARDCONTINUUM, INWARDTOTAL, isCat(), m_chComment, m_chSumTyp, m_index, m_tr, m_type, NFNU, NINU, PCON, PHOPLUS, PUMP, QH, SEPARATOR, SumLineZero(), UNIT, and UNITD.
|
inline |
integrated intensity of the line, [0] is intrinsic, [1] emergent [2] is intrinsic, [3] emergent
Definition at line 203 of file lines.h.
References m_component.
Referenced by checkEmergent(), emslin(), emslinSet(), emslinThin(), emslinZero(), SumLine(), SumLineAccum(), SumLineAdd(), SumLineThin(), SumLineZero(), and SumLineZeroAccum().
|
inline |
|
inline |
bool LinSv::isCat | ( | const char * | s | ) | const |
Definition at line 69 of file lines.cpp.
References chALab(), and DEBUG_ENTRY.
Referenced by init().
|
inline |
Definition at line 361 of file lines.h.
References COLLISIONAL, and m_type.
|
inline |
|
inline |
|
inline |
Definition at line 357 of file lines.h.
References INWARDCONTINUUM, and m_type.
|
inline |
Definition at line 353 of file lines.h.
References INWARDTOTAL, and m_type.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
string LinSv::label | ( | ) | const |
Definition at line 41 of file lines.cpp.
References chALab(), DEBUG_ENTRY, NCHLAB, sprt_wl(), and wavelength().
Referenced by biglabel(), and prt().
|
inline |
Definition at line 207 of file lines.h.
References m_chSumTyp.
void LinSv::makeBlend | ( | const char * | species, |
const double | wavelength, | ||
const double | width | ||
) |
Definition at line 210 of file lines.cpp.
References addComponentID(), caps(), cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), INPUT_LINE_LENGTH, ioQQQ, t_LineSave::ipass, t_LineSave::lines, NCHLAB, t_LineSave::nsum, t_LineSave::wavelength(), and wlAirVac().
Referenced by lines().
void LinSv::prt | ( | FILE * | fp | ) | const |
Definition at line 35 of file lines.cpp.
References DEBUG_ENTRY, fprintf(), and label().
|
inline |
Definition at line 223 of file lines.h.
References isBlend(), t_LineSave::lines, m_component, and m_SumLine.
|
inline |
|
inline |
|
inline |
Definition at line 272 of file lines.h.
References isBlend(), m_chSumTyp, and m_SumLine.
|
inline |
|
inline |
|
inline |
the wavelength of the line
Definition at line 323 of file lines.h.
References m_index, and t_LineSave::wavelength().
Referenced by label(), and wavelength_compare().
|
private |
Definition at line 160 of file lines.h.
Referenced by chALab(), and chALabSet().
|
private |
Definition at line 161 of file lines.h.
Referenced by chALabSet(), and chCLab().
|
private |
Definition at line 165 of file lines.h.
Referenced by addComponentID(), chComment(), and init().
|
private |
Definition at line 159 of file lines.h.
Referenced by checkEmergent(), chSumTyp(), emslinThin(), init(), LineType(), and SumLineThin().
|
private |
Definition at line 166 of file lines.h.
Referenced by addComponentID(), emslin(), getComponent(), isBlend(), and SumLine().
|
private |
the emissivity, per unit vol, for current conditions,
Definition at line 164 of file lines.h.
Referenced by emslin(), emslinSet(), emslinThin(), and emslinZero().
|
private |
Definition at line 158 of file lines.h.
Referenced by checkEmergent(), init(), and wavelength().
|
private |
Definition at line 162 of file lines.h.
Referenced by checkEmergent(), SumLine(), SumLineAccum(), SumLineAdd(), SumLineThin(), SumLineZero(), and SumLineZeroAccum().
|
private |
Definition at line 167 of file lines.h.
Referenced by biglabel(), getTransition(), and init().
enum { ... } LinSv::m_type |
Referenced by init(), isCaseA(), isCaseB(), isCollisional(), isHeat(), isInward(), isInwardContinuum(), isInwardTotal(), isNFnu(), isNInu(), isPcon(), isPhoPlus(), isPump(), isQH(), isSeparator(), isUnit(), and isUnitD().