Cloudy
Spectral Synthesis Code for Astrophysics
|
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 |
void CloudyPrintReference | ( | ) |
CloudyPrintReference print preferred citation to Cloudy
References fprintf(), Singleton< t_version >::Inst(), ioQQQ, mode_r, open_data(), and SafeGetline().
Referenced by PrtHeader().
void DatabasePrintReference | ( | ) |
DatabasePrintReference print some database references
References atmdat, fprintf(), ioQQQ, mode_r, open_data(), and SafeGetline().
Referenced by PrtFinal(), and PrtHeader().
void prt_line_err | ( | FILE * | ioOUT, |
const LineID & | lineid ) |
prt_line_err produce an error message containing the line label and wavelength
*ioOUT | output file handle |
&lineid | line 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().
void prt_line_inlist | ( | FILE * | ioOUT, |
const char * | label, | ||
t_wavl | twav ) |
References fprintf(), NCHLAB, and t_wavl::prt_wl().
Referenced by SaveDo().
void prt_LineLabels | ( | FILE * | io, |
bool | lgPrintAll, | ||
bool | lgPrintIndex ) |
prt_LineLabels save all labels and wavelengths for emission line array
io | file handle to write output |
lgPrintAll | print all if true, if false then do not print parts of transferred lines |
lgPrintIndex | print the index of the line in the line stack |
References ASSERT, DEBUG_ENTRY, fprintf(), and LineSave.
Referenced by SaveDo().
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().
void PrtColumns | ( | FILE * | ioMEAN | ) |
PrtColumns print column densities of all elements in standard output
ioMEAN | this 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().
void PrtComment | ( | void | ) |
PrtComment analyze model, generating comments on its features
References abund, AgeCheck(), ASSERT, atmdat, atoms, bangin(), ca, called, caunin(), cdCautions(), cdEXIT, cdLine(), cdNotes(), cdReasonGeo(), cdSurprises(), cdWarnings(), chkCaHeps(), chLineLbl(), co, colden, column(), ConserveEnergy(), continuum, conv, cpu, DEBUG_ENTRY, dense, DEPTH_OFFSET, DF_SUBLIMATION, DoppVel, dynamics, elementnames, EXIT_FAILURE, exp10(), ExtraLymanLinesJ05, ExtraLymanLinesJ15, findspecieslocal(), FndLineHt(), fprintf(), fudgec, geometry, gv, h2, Hbeta_WavLen, hcmap, he, hextra, HFLines, hmi, hydro, hyperfine, two_photon::induc_dn_max, input, INPUT_LINE_LENGTH, Singleton< module_list >::Inst(), Singleton< t_version >::Inst(), ioPrnErr, ioQQQ, ipCARBON, ipCOL_HTOT, ipH1s, ipH2p, ipH2s, ipH3p, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipOXYGEN, iso_ctrl, iso_sp, iteration, iterations, lgPrnErr, lgTestCodeCalled, LIMELM, LineSave, module_list::m_l, magnetic, MIN2, mole, mole_global, NISO, notein(), NULL, nWindLine, nzone, opac, oxy, phycon, powi(), pressure, prt_smooth_predictions(), radius, rfield, rgcin(), rt, save, SDIV(), secondaries, ShowMe(), SMALLFLOAT, StopCalc, struc, TauLine2, thermal, timesc, TotalInsanity(), trace, warnin(), warnings, and wind.
Referenced by cloudy().
void PrtFinal | ( | void | ) |
PrtFinal create final pages of printout, emission line intensities, etc
References ASSERT, atmdat, called, cap4(), cdB21cm(), cdExecTime(), cdEXIT, cdLine(), cdTemp(), t_version::chVersion, colden, conv, DatabasePrintReference(), DEBUG_ENTRY, dense, EXIT_FAILURE, exp10(), fp_equal(), fprintf(), geometry, gett2(), gett2o3(), gv, h2, Hbeta_WavLen, HFLines, hmi, hydro, input, Singleton< t_version >::Inst(), ioQQQ, ipCOL_HTOT, ipH1s, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipoint(), ipOXYGEN, iso_sp, iteration, iterations, LineSave, mean, min(), nzone, opac, peimbt, phycon, POW2, pressure, PrintCenterLine(), PrintE71(), PrintE82(), PrintE93(), PrintEfmt, PrintRatio(), PrintSpectrum(), prt, PrtAllTau(), PrtColumns(), PrtMeanIon(), radius, rfield, rt, safe_div(), SDIV(), sexp(), SMALLFLOAT, test_cdTemp_molecules(), thermal, timesc, TorF(), TotalInsanity(), totlin(), warnings, WavlenErrorGet(), and wind.
Referenced by cloudy().
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().
void PrtLinePres | ( | FILE * | ioPRESSURE | ) |
PrtLinePres print line radiation pressures for current conditions output goes top openned file handle
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().
double PrtLineSum | ( | void | ) |
PrtLineSum parse print line sum command to enter set of lines into sum
chDo | the 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().
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
chType | |
lgDensity | true 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().
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().
void PrtZone | ( | void | ) |
PrtZone print out individual zone results
References abund, ASSERT, called, column(), conv, DEBUG_ENTRY, dense, deut, diatoms, dynamics, DynaPrtZone(), elementnames, findnuclide(), findspecieslocal(), fixit, fprintf(), geometry, gv, hmi, hydro, ionbal, ioQQQ, ipALUMINIUM, ipBERYLLIUM, ipBORON, ipCARBON, ipH1s, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHe2s1S, ipHe2s3S, ipHe3d1D, ipHe3d3D, ipHe3p1P, ipHe3p3P, ipHe3s1S, ipHe3s3S, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipLITHIUM, ipNITROGEN, ipOXYGEN, iso_ctrl, iso_prt_pops(), iso_sp, LIMELM, magnetic, MAX2, mole, mole_global, NISO, nzone, opac, phycon, powpq(), pressure, PrintE93(), PrintEfmt, prt, PrtLinePres(), radius, rfield, SDIV(), secondaries, thermal, trace, and wind.
Referenced by ConvFail(), and iter_end_check().
void SetPrintLineCol | ( | ) |
SetPrintLineCol set main line block & wl printing formats
References LineSave, NCHLAB, and prt_linecol.
Referenced by cloudy().
const long NCOLMAX =132 |
Referenced by molcol(), prme(), and prt_header_cols().
|
extern |
Referenced by AgeCheck(), cdDrive(), cdMain(), cdRead(), t_cpu_i::check_data, cloudy(), conorm(), ContBandsCreate(), ContSetIntensity(), database_readin(), grid_do(), gridXspec(), diatomics::H2_Reset(), InitDefaultsPreparse(), ion_solver(), ipLineEnergy(), iso_allocate(), iso_level(), iter_end_check(), IterStart(), lgCheckMonitors(), lines(), lines_continuum(), lines_helium(), lines_hydro(), newreact(), Atom_LevelN::operator()(), optimize_do(), t_wavl::p_convertWvl(), ParseCommands(), ParseDont(), ParsePrint(), ParseSave(), ParseSet(), PrintRates(), PrintSpectrum(), prme(), PrtAllTau(), PrtFinal(), PrtHeader(), prtmet(), PrtZone(), RT_line_one_tau_reset(), SaveDo(), t_wavl::sprt_wl(), states_nelemfill(), and writeCloudyDetails().
|
extern |
Referenced by PrintSpectrum(), prme(), prt_header_cols(), SetPrintLineCol(), and StuffComment().