Go to the source code of this file.
Data Structures | |
class | transition |
Functions | |
void | PutLine (const transition *t, const char *chComment) |
void | PutLine (const transition *t, const char *chComment, const char *chLabel) |
double | TexcLine (const transition *t) |
void | DumpLine (const transition *t) |
double | emit_frac (const transition *t) |
void | chIonLbl (char *, const transition *t) |
char * | chLineLbl (const transition *t) |
void | PutCS (double cs, transition *t) |
void | GenerateTransitionConfiguration (const transition *t, char *chComment) |
double | OccupationNumberLine (const transition *t) |
void | PutExtra (double Extra) |
void | LineConvRate2CS (transition *t, realnum rate) |
bool | lgTauGood (transition *t) |
void | MakeCS (transition *t) |
emission * | AddLine2Stack (bool lgRadiativeTrans) |
emission * | AddLine2Stack (realnum Aul, transition *trans) |
emission* AddLine2Stack | ( | realnum | Aul, | |
transition * | trans | |||
) |
Definition at line 45 of file species.cpp.
References t_emission::Aul, cdEXIT, dBaseLines, DEBUG_ENTRY, ioQQQ, linesAdded2, MAX_NUM_LINES, and t_emission::tran.
emission* AddLine2Stack | ( | bool | lgRadiativeTrans | ) |
AddLine2Stack add generic emission line to GenericLines and return pointer to that state.
Definition at line 999 of file lines_service.cpp.
References ASSERT, currentLine, DEBUG_ENTRY, DummyEmis, EmLineJunk(), EmLineZero(), GenericLines, lastLine, lgLinesAdded, linesAdded, and t_emission::next.
Referenced by atmdat_CHIANTI_readin(), atmdat_LAMDA_readin(), atmdat_readin(), FeIICreate(), H2_ReadTransprob(), HyperfineCreate(), InitTransition(), iso_allocate(), and iso_create().
void chIonLbl | ( | char * | , | |
const transition * | t | |||
) |
generate null terminated line label from contents of line trans array
*t |
Definition at line 198 of file transition.cpp.
References ASSERT, t_elementnames::chElementNameShort, t_elementnames::chElementSym, t_elementnames::chIonStage, t_quantumState::chLabel, DEBUG_ENTRY, elementnames, transition::Hi, t_quantumState::IonStg, LIMELM, and t_quantumState::nelem.
Referenced by atom_level2(), atom_level3(), AtomSeqBeryllium(), ContCreatePointers(), lines_continuum(), lines_helium(), lines_hydro(), lines_setup(), PrtLinePres(), PutLine_base(), and Save1LineData().
char* chLineLbl | ( | const transition * | t | ) |
chLineLbl use information in line transfer arrays to generate a line label
this label is null terminated
*t |
Definition at line 244 of file transition.cpp.
References ASSERT, t_elementnames::chElementSym, t_elementnames::chIonStage, t_quantumState::chLabel, DEBUG_ENTRY, elementnames, transition::Hi, t_quantumState::IonStg, t_species::lgMolecular, t_quantumState::nelem, t_quantumState::sp, and transition::WLAng.
Referenced by atom_level3(), ContCreatePointers(), DumpLine(), PresTotCurrent(), prme(), PrtComment(), radius_next(), RT_line_one_tau_reset(), Save1Line(), Save_Line_RT(), and SaveHeat().
void DumpLine | ( | const transition * | t | ) |
DumpLine print various information about an emission line vector, used in debugging
*t |
Definition at line 103 of file transition.cpp.
References t_opac::albedo, ASSERT, t_emission::Aul, chLineLbl(), t_collision::col_str, transition::Coll, t_collision::cool, DEBUG_ENTRY, dense, t_dense::eden, transition::Emis, t_collision::heat, transition::Hi, ioQQQ, transition::ipCont, transition::Lo, opac, t_opac::opacity_abs, t_emission::ots, t_emission::Pdest, t_emission::Pelec_esc, t_emission::Pesc, phycon, t_quantumState::Pop, t_emission::PopOpc, t_emission::pump, t_emission::TauIn, t_emission::TauTot, t_phycon::te, and TexcLine().
Referenced by ConvBase(), CoolCarb(), CoolIron(), CoolNitr(), CoolOxyg(), CoolSili(), CoolSulf(), CoolSum(), FeIIRadPress(), FindNeg(), RT_diffuse(), RT_line_all(), and RT_line_escape().
double emit_frac | ( | const transition * | t | ) |
returns fraction of populations the produce emission
*t |
Definition at line 87 of file transition.cpp.
References ASSERT, t_emission::Aul, t_dense::cdsqte, t_collision::col_str, transition::Coll, DEBUG_ENTRY, dense, transition::Emis, transition::ipCont, t_emission::Pdest, t_emission::Pelec_esc, and t_emission::Pesc.
Referenced by lines_lv1_li_ne(), and lines_lv1_na_ar().
void GenerateTransitionConfiguration | ( | const transition * | t, | |
char * | chComment | |||
) |
GenerateTransitionConfiguration - given transition *t, writes a label t->Lo->chConfig - t->Hi->chConfig (i.e., 2^3S - 2^3P)
t | *chComment |
Definition at line 349 of file transition.cpp.
References t_quantumState::chConfig, transition::Hi, and transition::Lo.
Referenced by lines_hydro().
bool lgTauGood | ( | transition * | t | ) | [inline] |
lgTauGood returns true is we have good (positive) outward optical depths not true if we have overrun optical depth scale from previous iteration
*t |
Definition at line 143 of file transition.h.
References transition::Emis, iteration, t_emission::TauIn, and t_emission::TauTot.
Referenced by RT_line_all(), and RT_line_one().
void LineConvRate2CS | ( | transition * | t, | |
realnum | rate | |||
) |
convert down coll rate back into electron cs in case other parts of code need this for reference
*t | - line struct collision strength is stored in t->cs | |
rate | - deexcitation rate, units s-1 |
Definition at line 543 of file transition.cpp.
References ASSERT, t_dense::cdsqte, t_collision::col_str, transition::Coll, DEBUG_ENTRY, dense, t_quantumState::g, and transition::Hi.
Referenced by CoolChlo(), CoolIron(), CoolNick(), CoolSili(), and CoolSulf().
void MakeCS | ( | transition * | t | ) |
MakeCS compute collision strength by g-bar approximations
*t |
Definition at line 635 of file transition.cpp.
References t_collision::col_str, transition::Coll, DEBUG_ENTRY, dense, transition::Emis, transition::EnergyK, transition::EnergyWN, gbar0(), gbar1(), t_emission::gf, transition::Hi, t_quantumState::IonStg, t_quantumState::nelem, WAVNRYD, and t_dense::xIonDense.
Referenced by CoolAlum(), CoolCalc(), CoolIron(), CoolMagn(), and CoolSili().
double OccupationNumberLine | ( | const transition * | t | ) |
OccupationNumberLine - derive the photon occupation number at line center for any line
*t |
Definition at line 145 of file transition.cpp.
References ASSERT, DEBUG_ENTRY, transition::Emis, t_quantumState::g, transition::Hi, transition::ipCont, transition::Lo, t_emission::Pesc, t_quantumState::Pop, t_emission::PopOpc, and SMALLFLOAT.
Referenced by H21_cm_pops(), and SaveDo().
void PutCS | ( | double | cs, | |
transition * | t | |||
) |
PutCS enter a collision strength into an individual line struc
cs | ||
*t | the line struc |
Definition at line 336 of file transition.cpp.
References ASSERT, t_collision::col_str, transition::Coll, and DEBUG_ENTRY.
Referenced by CoolAlum(), CoolArgo(), CoolCalc(), CoolCarb(), CoolChlo(), CoolChro(), CoolCoba(), CoolDima(), CoolEvaluate(), CoolFluo(), CoolIron(), CoolMagn(), CoolMang(), CoolNeon(), CoolNick(), CoolNitr(), CoolOxyg(), CoolPhos(), CoolPota(), CoolScan(), CoolSili(), CoolSodi(), CoolSulf(), CoolTita(), CoolVana(), CoolZinc(), Fe2_cooling(), Fe7Lev8(), and oi_level_pops().
void PutExtra | ( | double | Extra | ) |
PutExtra enter and 'extra' intensity source for some line
Extra |
Definition at line 487 of file transition.cpp.
References DEBUG_ENTRY, and ExtraInten.
Referenced by lines(), lines_lv1_k_zn(), lines_lv1_li_ne(), and lines_lv1_na_ar().
void PutLine | ( | const transition * | t, | |
const char * | chComment, | |||
const char * | chLabel | |||
) |
PutLine enter local line intensity into the intensity stack for eventual printout
*t | transition structure for line | |
*chComment | a description of the line | |
*chLabel | the line label |
Definition at line 468 of file transition.cpp.
References DEBUG_ENTRY, and PutLine_base().
Referenced by DoSatelliteLines(), H2_LinesAdd(), lines(), lines_helium(), lines_hydro(), lines_lv1_k_zn(), lines_lv1_li_ne(), and lines_lv1_na_ar().
void PutLine | ( | const transition * | t, | |
const char * | chComment | |||
) |
enter lines into the line storage array, called once per zone for each line
xInten | xInten - local emissivity per unit vol, no fill fac | |
wavelength | lam integer wavelength | |
*chLab | string label for ion | |
chInfo | character type of entry for line - 'c' cooling, 'h' heating, 'i' info only, 'r' recom line | |
*chComment | string explaining line PutLine enter local line intensity into the intensity stack for eventual printout | |
*t | transition structure for line | |
*chComment | a description of the line |
Definition at line 476 of file transition.cpp.
References DEBUG_ENTRY, and PutLine_base().
double TexcLine | ( | const transition * | t | ) |
TexcLine derive excitation temperature of line from contents of line array
*t |
Definition at line 172 of file transition.cpp.
References DEBUG_ENTRY, transition::EnergyK, t_quantumState::g, transition::Hi, transition::Lo, t_quantumState::Pop, and SMALLFLOAT.
Referenced by DumpLine(), H21_cm_pops(), radius_increment(), and SaveDo().