Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
lines.h File Reference
#include <cstdio>
#include "module.h"
#include "transition.h"
#include "atmdat_adfa.h"
Include dependency graph for lines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LineID
 
struct  t_LineSave
 
class  LinSv
 

Functions

void lines (void)
 
void lines_general (void)
 
void lines_hydro (void)
 
void LineStackCreate (void)
 
void lines_grains (void)
 
void lines_setup (void)
 
void lines_continuum (void)
 
void lines_molecules (void)
 
void lines_helium (void)
 
void lines_lv1_li_ne (void)
 
void lines_lv1_k_zn (void)
 
long int StuffComment (const char *chComment)
 
int lines_table ()
 
void clear_lines_table ()
 
void cdEmis (const LinSv *line, double *emiss, bool lgEmergent)
 

Variables

static const int NHOLDCOMMENTS = 100
 
const t_wavl Hbeta_WavLen
 
t_LineSave LineSave
 

Function Documentation

◆ cdEmis()

void cdEmis ( const LinSv * line,
double * emiss,
bool lgEmergent )

References DEBUG_ENTRY, and LinSv::emslin().

Here is the call graph for this function:

◆ clear_lines_table()

void clear_lines_table ( )

clear the name of the table read by the table lines command.

References chLINE_LIST.

Referenced by InitDefaultsPreparse().

◆ lines()

void lines ( void )

lines main routine to put emission line intensities into line stack

References LinSv::addComponent(), atmdat, EmissionProxy::Aul(), cdEXIT, cdLine(), chIonLbl(), TransitionProxy::Coll(), colliders, CollisionProxy::ColUL(), dBaseSpecies, dBaseTrans, DEBUG_ENTRY, dense, TransitionProxy::Emis(), emit_frac(), energy(), t_yield::energy(), EXIT_FAILURE, exp10(), extraLymanJ_comment_tran_levels(), ExtraLymanLinesHeLike, ExtraLymanLinesJ05, ExtraLymanLinesJ15, fixit, fprintf(), GetLineRec(), getTransition(), HFLines, TransitionProxy::Hi(), hydro, hyperfine, Singleton< t_ADfA >::Inst(), Singleton< t_yield >::Inst(), t_yield::ion(), ionbal, ioQQQ, ipCALCIUM, ipCARBON, ipExtraLymanLinesHeLike, ipExtraLymanLinesJ05, ipExtraLymanLinesJ15, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, ipNITROGEN, ipoint(), ipOXYGEN, iso_ctrl, iso_Max_Emitting_Level(), iso_satellite_update(), iso_sp, iteration, lgIsLymanLineResolved(), LIMELM, linadd(), lindst(), lines_continuum(), lines_general(), lines_grains(), lines_helium(), lines_hydro(), lines_iron_Ka(), lines_molecules(), LineSave, makeChemical(), matchGeneric(), MAX2, mole, N_, t_yield::nelem(), NISO, t_yield::nlines(), NRECCOEFCNO, t_yield::nshell(), nSpecies, nWindLine, oxy, parsespect(), phycon, PntForLine(), qStateProxy::Pop(), pow(), POW2, prt, PrtLineSum(), PutLine(), radius, t_ADfA::rec_lines(), rfield, rt, S, safe_div(), SDIV(), LinSv::setBlendWavl(), ShowMe(), SMALLFLOAT, SpeciesBandsAccum(), SpeciesPseudoContAccum(), StuffComment(), t_air(), t_vac(), TauLine2, thermal, TotalInsanity(), trace, UTALines, EmissionProxy::xObsIntensity(), and t_yield::yield().

Referenced by cloudy(), LineStackCreate(), parse_save_colden(), and ParseLineList().

◆ lines_continuum()

void lines_continuum ( void )

enter all continua

Todo
2 this block of lines should have nInu, InwT, InwC like main vector of continuum points

References chIonLbl(), continuum, CoolHeavy, DEBUG_ENTRY, dense, emergent_line(), flux_correct_isotropic(), fprintf(), geometry, Heavy, Singleton< t_PredCont >::Inst(), ioQQQ, ipH2p, ipH2s, ipH3d, ipH3p, ipH3s, ipH_LIKE, ipHYDROGEN, ipRecEsc, ipRecRad, iso_sp, LIMELM, linadd(), lindst(), LineSave, MAX2, NISO, nzone, opac, phycon, prt, radius, rfield, SDIV(), t_PredCont::set_offset(), sexp(), t_PredCont::size(), StuffComment(), t_vac(), and wn2angVac().

Referenced by lines().

Here is the call graph for this function:

◆ lines_general()

void lines_general ( void )

◆ lines_grains()

void lines_grains ( void )

information about grains

References DEBUG_ENTRY, dense, gv, linadd(), MAX2, radius, safe_div(), SDIV(), StuffComment(), t_vac(), and thermal.

Referenced by lines().

Here is the call graph for this function:

◆ lines_helium()

◆ lines_hydro()

◆ lines_lv1_k_zn()

void lines_lv1_k_zn ( void )

lines_lv1_k_zn place lines of elements potassium and heavier into lines storage stack

◆ lines_lv1_li_ne()

void lines_lv1_li_ne ( void )

lines_lv1_li_ne place lines of elements lithium through neon into lines storage stack

◆ lines_molecules()

void lines_molecules ( void )

enter all molecules into emission line stack

References co, CoolHeavy, DEBUG_ENTRY, dense, diatoms, findspecieslocal(), h2, hmi, ipHELIUM, ipHYDROGEN, linadd(), MAX2, mole, phycon, radius, safe_div(), StuffComment(), t_vac(), and thermal.

Referenced by lines().

Here is the call graph for this function:

◆ lines_setup()

void lines_setup ( void )

lines_setup convert level 1 and level 2 line parameters and pointers into internal form used by code

References ASSERT, DEBUG_ENTRY, HFLines, ipCRD, ipPRD, LIMELM, nWindLine, opac, POW2, TauLine2, UTALines, and wn2angVac().

Referenced by atmdat_readin().

Here is the call graph for this function:

◆ lines_table()

int lines_table ( )

lines_table invoked by table lines command, check if we can find all lines in a given list returns 0 if ok, n is n lines not found

References cdGetLineList(), chLINE_LIST, DEBUG_ENTRY, fprintf(), ioQQQ, lineids, LineSave, and prt_line_err().

Referenced by lgCheckMonitors().

Here is the call graph for this function:

◆ LineStackCreate()

void LineStackCreate ( void )

create vectors to save line intensities

References ASSERT, TransitionProxy::chLabel(), DEBUG_ENTRY, fprintf(), ioQQQ, lines(), LineSave, rfield, and trace.

Referenced by cloudy().

Here is the call graph for this function:

◆ StuffComment()

long int StuffComment ( const char * chComment)

routine to stuff comments into the stack of comments, return is index to this comment

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, LineSave, NHOLDCOMMENTS, and prt_linecol.

Referenced by lines(), lines_continuum(), lines_general(), lines_grains(), lines_helium(), lines_hydro(), lines_molecules(), and SpeciesBandsAccum().

Here is the call graph for this function:

Variable Documentation

◆ Hbeta_WavLen

◆ LineSave

◆ NHOLDCOMMENTS

const int NHOLDCOMMENTS = 100
static

Referenced by StuffComment().