|
Cloudy
Spectral Synthesis Code for Astrophysics
|
#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 string &species, const double wavelength) |
| void | addComponent (const LineID &line) |
| void | addComponentID (long id) |
| void | makeBlend (const char *species, const double wavelength, const double width) |
| void | setBlendWavl () |
| 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 allocated to form a large array after number of lines is counted. these are the main line save arrays
|
private |
| void LinSv::addComponent | ( | const string & | species, |
| const double | wavelength | ||
| ) |
| void LinSv::addComponent | ( | const LineID & | line | ) |
References addComponentID(), cdEXIT, LineID::chLabel, EXIT_FAILURE, t_LineSave::findline(), fprintf(), ioQQQ, t_LineSave::ipass, t_LineSave::lines, and LineID::wave.

| void LinSv::addComponentID | ( | long | id | ) |
References cdEXIT, EXIT_FAILURE, fprintf(), ioQQQ, t_LineSave::ipass, t_LineSave::lines, m_chComment, and m_component.
Referenced by addComponent(), makeBlend(), and setup_multiplet().

| string LinSv::biglabel | ( | ) | const |
References TransitionProxy::associated(), DEBUG_ENTRY, TransitionProxy::Hi(), label(), TransitionProxy::Lo(), and m_tr.

|
inline |
|
private |
|
inline |
the four char string label for the line, all caps
References m_chCLab.
| string LinSv::chComment | ( | ) | const |
|
inline |
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'
References m_chSumTyp.
Referenced by init().
|
inline |
the emissivity, per unit vol, for current conditions,
References isBlend(), t_LineSave::lines, m_component, and m_emslin.
Referenced by cdEmis().

|
inline |
|
inline |
|
inline |
|
inline |
References t_LineSave::lines, and m_component.
|
inline |
Return the TransitionProxy so that transition data can be extracted (col_str, Aul, etc.)
References m_tr.
| void LinSv::init | ( | long | index, |
| char | chSumTyp, | ||
| const char * | chComment, | ||
| const char * | label, | ||
| const TransitionProxy & | tr | ||
| ) |
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
References m_component.
Referenced by checkEmergent(), emslin(), emslinSet(), emslinThin(), emslinZero(), setBlendWavl(), SumLine(), SumLineAccum(), SumLineAdd(), SumLineThin(), SumLineZero(), and SumLineZeroAccum().
| bool LinSv::isCat | ( | const char * | s | ) | const |
References chALab(), and DEBUG_ENTRY.
Referenced by init().

|
inline |
References COLLISIONAL, and m_type.
|
inline |
References INWARDCONTINUUM, and m_type.
|
inline |
References INWARDTOTAL, and m_type.
| string LinSv::label | ( | ) | const |
References chALab(), DEBUG_ENTRY, NCHLAB, sprt_wl(), and wavelength().
Referenced by biglabel(), and prt().

|
inline |
References m_chSumTyp.
| void LinSv::makeBlend | ( | const char * | species, |
| const double | wavelength, | ||
| const double | width | ||
| ) |
References addComponentID(), caps(), cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, t_LineSave::ipass, t_LineSave::lines, NCHLAB, t_LineSave::nsum, t_LineSave::wavelength(), and wlAirVac().

| void LinSv::prt | ( | FILE * | fp | ) | const |
| void LinSv::setBlendWavl | ( | ) |
References EmissionProxy::Aul(), TransitionProxy::Emis(), TransitionProxy::EnergyWN(), TransitionProxy::Hi(), t_LineSave::ipass, isBlend(), t_LineSave::lines, m_component, m_index, t_LineSave::resetWavelength(), and wn2ang().
Referenced by lines(), and setup_multiplet().

|
inline |
References isBlend(), t_LineSave::lines, m_component, and m_SumLine.

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
the wavelength of the line
References m_index, and t_LineSave::wavelength().
Referenced by label(), and wavelength_compare().

|
private |
Referenced by chALab(), and chALabSet().
|
private |
Referenced by chALabSet(), and chCLab().
|
private |
Referenced by addComponentID(), chComment(), and init().
|
private |
Referenced by checkEmergent(), chSumTyp(), emslinThin(), init(), LineType(), and SumLineThin().
|
private |
Referenced by addComponentID(), emslin(), getComponent(), isBlend(), setBlendWavl(), and SumLine().
|
private |
the emissivity, per unit vol, for current conditions,
Referenced by emslin(), emslinSet(), emslinThin(), and emslinZero().
|
private |
Referenced by checkEmergent(), init(), setBlendWavl(), and wavelength().
|
private |
Referenced by checkEmergent(), SumLine(), SumLineAccum(), SumLineAdd(), SumLineThin(), SumLineZero(), and SumLineZeroAccum().
|
private |
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().