Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
prt.h File Reference
#include "module.h"
#include "container_classes.h"
#include "lines.h"
Include dependency graph for prt.h:

Go to the source code of this file.

Classes

class  t_prt_matrix
 
struct  t_blend
 
struct  t_prt
 
struct  t_line_col
 

Functions

void PrtZone (void)
 
void PrtComment (void)
 
void PrtFinal (void)
 
void SetPrintLineCol ()
 
void prt_line_err (FILE *ioOUT, const LineID &lineid)
 
void prt_line_inlist (FILE *ioOUT, const char *label, t_wavl twav)
 
void PrtHeader (void)
 
void prt_LineLabels (FILE *io, bool lgPrintAll, bool lgPrintIndex)
 
void prtmet (void)
 
void PrtMeanIon (char chType, bool lgDensity, FILE *)
 
double PrtLineSum (void)
 
void PrtLinePres (FILE *ioPRESSURE)
 
void PrtColumns (FILE *ioMEAN)
 
void CloudyPrintReference ()
 
void DatabasePrintReference ()
 
void PrtAllTau (void)
 

Variables

const long NCOLMAX =132
 
t_prt prt
 
struct t_line_col prt_linecol
 

Function Documentation

◆ CloudyPrintReference()

void CloudyPrintReference ( )

CloudyPrintReference print preferred citation to Cloudy

References fprintf(), Singleton< t_version >::Inst(), ioQQQ, mode_r, open_data(), and SafeGetline().

Referenced by PrtHeader().

Here is the call graph for this function:

◆ DatabasePrintReference()

void DatabasePrintReference ( )

DatabasePrintReference print some database references

References atmdat, fprintf(), ioQQQ, mode_r, open_data(), and SafeGetline().

Referenced by PrtFinal(), and PrtHeader().

Here is the call graph for this function:

◆ prt_line_err()

void prt_line_err ( FILE * ioOUT,
const LineID & lineid )

prt_line_err produce an error message containing the line label and wavelength

Parameters
*ioOUToutput file handle
&lineidline identification

References LineID::chLabel(), fprintf(), t_wavl::prt_wl(), and LineID::twav().

Referenced by t_LineSave::findline(), IterStart(), lgCheckMonitors(), lines_table(), PrtLineSum(), and save_line().

Here is the call graph for this function:

◆ prt_line_inlist()

void prt_line_inlist ( FILE * ioOUT,
const char * label,
t_wavl twav )

References fprintf(), NCHLAB, and t_wavl::prt_wl().

Referenced by SaveDo().

Here is the call graph for this function:

◆ prt_LineLabels()

void prt_LineLabels ( FILE * io,
bool lgPrintAll,
bool lgPrintIndex )

prt_LineLabels save all labels and wavelengths for emission line array

Parameters
iofile handle to write output
lgPrintAllprint all if true, if false then do not print parts of transferred lines
lgPrintIndexprint the index of the line in the line stack

References ASSERT, DEBUG_ENTRY, fprintf(), and LineSave.

Referenced by SaveDo().

Here is the call graph for this function:

◆ PrtAllTau()

void PrtAllTau ( void )

PrtAllTau master routine controlling printout of optical depths at end of calculation

References ASSERT, column(), DEBUG_ENTRY, dense, elementnames, findspecieslocal(), fprintf(), geometry, ioQQQ, ipH1s, ipH2p, ipH2s, ipH3p, ipH3s, ipH4p, ipH4s, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHe2p3P2, ipHe2s1S, ipHe2s3S, ipHe3d3D, ipHe3p1P, ipHe3p3P, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, MAX2, opac, PrintE82(), PrintE93(), PrintEfmt, prt, and prtmet().

Referenced by PrtFinal().

Here is the call graph for this function:

◆ PrtColumns()

void PrtColumns ( FILE * ioMEAN)

PrtColumns print column densities of all elements in standard output

Parameters
ioMEANthis is stream used for io, is stdout when called by final, is save unit when save output generated

References ASSERT, cdColm(), column(), DEBUG_ENTRY, dense, elementnames, fprintf(), h2, ipHYDROGEN, LIMELM, matchGeneric(), MAX2, molcol(), NCHLAB, nWindLine, SDIV(), and TotalInsanity().

Referenced by PrtFinal().

Here is the call graph for this function:

◆ PrtComment()

◆ PrtFinal()

◆ PrtHeader()

void PrtHeader ( void )

PrtHeader print large block of incident continuum numbers at start, just after echoing input commands

References atmdat, called, CloudyPrintReference(), continuum, DatabasePrintReference(), DEBUG_ENTRY, dense, exp10(), fprintf(), ioQQQ, ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipoint(), iso_sp, MAX2, phycon, PrintE82(), PrintE93(), PrintEfmt, prt, radius, rfield, SMALLFLOAT, and thermal.

Referenced by cloudy().

Here is the call graph for this function:

◆ PrtLinePres()

void PrtLinePres ( FILE * ioPRESSURE)

PrtLinePres print line radiation pressures for current conditions output goes top openned file handle

Todo
1 make this and eval rad pressure same routine, with flag saying to print contributors - copy code from other routine - this code has been left behind

References ASSERT, chIonLbl(), dBaseSpecies, dBaseTrans, DEBUG_ENTRY, dense, diatoms, fprintf(), frac(), GetDopplerWidth(), HFLines, iso_ctrl, iso_sp, LIMELM, MIN2, NISO, nLine, nSpecies, nWindLine, pressure, PressureRadiationLine(), t_wavl::prt_wl(), SMALLFLOAT, spsort(), TauLine2, and THRESH.

Referenced by iter_end_check(), PrtZone(), and SaveDo().

Here is the call graph for this function:

◆ PrtLineSum()

double PrtLineSum ( void )

PrtLineSum parse print line sum command to enter set of lines into sum

Parameters
chDothe job to do, either " SUM" or "READ"

References cdEXIT, cdLine_ip(), DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, ipLine, lineids, LineSave, prt_line_err(), and radius.

Referenced by lines().

Here is the call graph for this function:

◆ PrtMeanIon()

void PrtMeanIon ( char chType,
bool lgDensity,
FILE * ioMEAN )

PrtMeanIon print mean ionization fractions for all elements, output will go to stream pointed to by argument
chTyp is either 'i' or 't' for mean ionization or temperature

Parameters
chType
lgDensitytrue include density, false do not

References DEBUG_ENTRY, dense, elementnames, fprintf(), geometry, ioQQQ, ipHELIUM, ipHYDROGEN, LIMELM, mean, MIN2, and TotalInsanity().

Referenced by PrtFinal(), and SaveDo().

Here is the call graph for this function:

◆ prtmet()

void prtmet ( void )

prtmet print all line optical depths at end of iteration

References dBaseTrans, DEBUG_ENTRY, dense, diatoms, ExtraLymanLinesJ05, ExtraLymanLinesJ15, fprintf(), HFLines, ioQQQ, ipExtraLymanLinesJ05, ipExtraLymanLinesJ15, ipH_LIKE, iso_ctrl, iso_sp, lgIsLymanLineResolved(), LIMELM, N_, NISO, nSpecies, nWindLine, prme(), prt, prt_header_cols(), TauLine2, trace, and UTALines.

Referenced by PrtAllTau(), and RT_tau_inc().

Here is the call graph for this function:

◆ PrtZone()

◆ SetPrintLineCol()

void SetPrintLineCol ( )

SetPrintLineCol set main line block & wl printing formats

References LineSave, NCHLAB, and prt_linecol.

Referenced by cloudy().

Variable Documentation

◆ NCOLMAX

const long NCOLMAX =132

Referenced by molcol(), prme(), and prt_header_cols().

◆ prt

◆ prt_linecol

struct t_line_col prt_linecol
extern