prt.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_prt

Functions

void PrtZone (void)
void PrtContinuum (void)
void PrtComment (void)
void PrtFinal (void)
void prt_wl (FILE *io, float wavelength)
void sprt_wl (char *chString, float wl)
void PrtHeader (void)
void prt_LineLabels (FILE *io)
void prtmet (void)
void prme (const char *chDoIt, EmLine *t)
void PrtMeanIon (char chType, bool lgDensity, FILE *)
double PrtLineSum (const char *chDo)
void PrtLinePres (void)
void PrtColumns (FILE *ioMEAN)
void PrtAllTau (void)

Variables

EXTERN struct t_prt prt


Function Documentation

void prme ( const char *  chDoIt,
EmLine t 
)

prme print heavy element line optical depths at end of calculation

Parameters:
chDoIt 
t 

Definition at line 105 of file prt_met.cpp.

References chLineLbl(), DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, NLIM, PrintEfmt(), prt, t_prt::PrtTauFnt, and EmLine::TauIn.

Referenced by H2_Prt_line_tau(), and prtmet().

Here is the call graph for this function:

void prt_LineLabels ( FILE *  io  ) 

prt_LineLabels punch all labels and wavelengths for emission line array

Parameters:
io 

Definition at line 306 of file prt.cpp.

References t_LineSave::chHoldComments, DEBUG_ENTRY, DEBUG_EXIT, LineSave, LineSv, t_LineSave::nsum, prt_wl(), wavelength, and t_tag_LineSv::wavelength.

Referenced by PunchDo().

Here is the call graph for this function:

void prt_wl ( FILE *  io,
float  wavelength 
)

void PrtAllTau ( void   ) 

void PrtColumns ( FILE *  ioMEAN  ) 

PrtColumns print column densities of all elements

Parameters:
ioMEAN this is stream used for io, is stdout when called by final, is punch unit when punch output generated

Definition at line 13 of file prt_columns.cpp.

References cdColm(), t_elementnames::chElementName, t_elementnames::chElementNameShort, DEBUG_ENTRY, DEBUG_EXIT, dense, elementnames, H2_Prt_column_density(), ipHYDROGEN, t_dense::lgElmtOn, LIMELM, MAX2, molcol(), NEXCIT_COL, nWindLine, SDIV(), and TotalInsanity().

Referenced by PrtFinal(), and PunchDo().

Here is the call graph for this function:

void PrtComment ( void   ) 

PrtComment analyze model, generating comments on its features

Todo:
2 extend to all iso and elem

Definition at line 78 of file prt_comment.cpp.

References abund, AgeCheck(), t_colden::ajmmin, t_rfield::anu, ASSERT, atmdat, atoms, badprt(), bangin(), t_hmi::BiggestH2, t_gv::bin, broke, C12O16Rotate, C13O16Rotate, ca, t_ca::Ca2RmLya, t_iso::CaseBCheck, caunin(), cdEXIT(), cdLine(), t_thermal::chCoolHeatMax, t_dense::chDenseLaw, GrainBin::chDstLab, t_elementnames::chElementName, t_elementnames::chElementNameShort, t_elementnames::chElementSym, chkCaHeps(), chLineLbl(), t_conv::chNotConverged, t_reason::chReason, t_warnings::chRgcln, t_rfield::cinrat, t_hydro::cintot, co, t_co::COCoolBigFrac, t_co::codfrc, t_co::codtot, t_colden::colden, colden, COmole, t_ionbal::CompHeating_Max, t_rfield::comtot, t_thermal::ConstTemp, continuum, conv, t_hmi::CoolH2DexcMax, t_thermal::CoolHeatMax, t_hyperfine::cooling_max, t_dynamics::CoolMax, t_hextra::cryden, t_gv::dclmax, DEBUG_ENTRY, DEBUG_EXIT, t_struc::DenMass, dense, t_radius::depth, t_DoppVel::DispScale, DoppVel, t_gv::dphmax, dynamics, t_struc::ednstr, elementnames, t_wind::emdot, EmisLines, t_hydro::fbul, t_geometry::FillFac, t_he::frac_he0dest_23S, t_he::frac_he0dest_23S_photo, t_hydro::FracInd, t_thermal::FreeFreeTotHeat, fudgec, t_iso::gamnc, t_dense::gas_phase, t_struc::GasPressure, t_thermal::GBarMax, geometry, t_gv::GrnElecDonateMax, t_gv::GrnElecHoldMax, gv, h2, t_hmi::h2dfrc, t_hmi::h2dtot, t_hmi::h2line_cool_frac, t_hmi::h2pmax, t_atmdat::HCharCoolMax, t_atmdat::HCharHeatMax, t_hydro::HCollIonMax, he, t_hmi::HeatH2DexcMax, t_thermal::HeatLineMax, t_dynamics::HeatMax, helike, hextra, t_atmdat::HIonFracMax, hmi, t_hmi::hmitot, hydro, hyperfine, t_ionbal::ifail, input, INPUT_LINE_LENGTH, ionbal, ioQQQ, ipCARBON, ipCOL_H0, ipCOL_H2p, ipCOL_Hp, ipH1s, ipH2p, ipH_LIKE, ipHE_LIKE, t_thermal::ipHeatlmax, ipHELIUM, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_thermal::ipMaxExtra, ipOXYGEN, iso, iteration, iterations, t_iterations::itermx, molecule::label, t_thermal::levlmax, t_abund::lgAbnSolar, lgAbort, t_conv::lgAutoIt, t_magnetic::lgB, t_conv::lgBadStop, t_input::lgBracketFound, t_broke::lgBroke, t_opac::lgCaseB, t_broke::lgCheckit, t_rfield::lgCMB_set, t_co::lgCOCoolCaped, t_rfield::lgComUndr, t_continuum::lgCon0, t_continuum::lgCoStarInterpolationCaution, t_helike::lgCritDensLMix, t_secondaries::lgCSetOn, t_abund::lgDepln, t_radius::lgDR2Big, t_radius::lgdR2Small, t_radius::lgDrMinUsed, t_gv::lgDustOn, t_dense::lgEdenBad, t_thermal::lgEdnGTcm, t_mole::lgElem_in_chemistry, t_dense::lgElmtOn, t_broke::lgFixit, t_rfield::lgGamrOK, t_co::lgH2Ozer, t_rfield::lgHabing, t_atmdat::lgHCaseBOK, t_rfield::lgHionRad, t_hydro::lgHiPop2, t_rfield::lgHPhtOK, t_iterations::lgIterAgain, t_iterations::lgLastIt, t_iso::lgLevelsEverLowered, t_iso::lgLevelsLowered, t_map::lgMapDone, t_map::lgMapOK, t_rfield::lgMMok, t_gv::lgNegGrnDrg, t_rfield::lgOcc1Hi, t_opac::lgOpacNeg, GrainBin::lgPAHsInIonizedRegion, t_phycon::lgPhysOK, t_rfield::lgPlasNu, t_punch::lgPunContinuum, t_dynamics::lgRecom, t_version::lgRelease, t_input::lgSetNoBuffering, t_geometry::lgStatic, t_dynamics::lgStatic, t_geometry::lgStaticNoIt, lgTestCodeCalled, t_trace::lgTrace, t_thermal::lgTSetOn, t_input::lgUnderscoreFound, t_wind::lgWindOK, t_rfield::lgXRayOK, t_geometry::lgZoneSet, t_geometry::lgZoneTrp, LIMELM, magnetic, map, MAX2, MIN2, mole, t_iso::n_HighestResolved_local, t_version::nBetaVer, t_gv::nBin, t_hydro::nbul, t_iso::nCollapsed_local, nCORotate, t_hydro::ndclev, molecule::nelem_hevmol, t_rfield::nflux, t_fudgec::nfudge, NISO, nLevel1, t_hydro::nLyaHot, t_atoms::nNegOI, notein(), t_iso::nTopOff, t_mole::num_comole_calc, t_iso::numLevels_local, t_thermal::nUnstable, t_dense::nzEdenBad, t_struc::nzlim, t_he::nzone, nzone, t_hydro::nZTLaMax, t_rfield::occ1nu, t_rfield::occmax, t_rfield::occmnu, opac, outsum(), oxy, phycon, t_rfield::plsfrqmax, t_oxy::poiii2Max, t_oxy::poiii3Max, t_oxy::poimax, t_hydro::pop2mx, t_thermal::power, punch, GrainBin::QHeatFailures, t_radius::r1r0sq, t_oxy::r4363Max, t_oxy::r5007Max, radius, reason, t_h2::renorm_max, t_h2::renorm_min, rfield, t_radius::rinner, t_colden::rjnmin, RYDLAM, t_secondaries::SecHIonMax, secondaries, ShowMe(), SOLAR_MASS, t_opac::stimax, StopCalc, struc, t_opac::TauAbsGeo, EmLine::TauIn, TauLine2, TauLines, t_rfield::tbr4nu, t_rfield::tbrmax, t_rfield::tbrmnu, t_timesc::tcmptn, GrainBin::TeGrainMax, t_hydro::TeLyaMax, TEND, t_StopCalc::tend, t_phycon::TEnerDen, t_struc::testr, thermal, t_thermal::thist, t_opac::thmin, t_timesc::time_therm_long, t_timesc::TimeErode, timesc, t_hydro::TLyaMax, t_gv::TotalDustHeat, TotalInsanity(), t_continuum::TotalLumin, t_thermal::totcol, totlin(), trace, GrainBin::Tsublimat, t_hextra::TurbHeat, t_DoppVel::TurbVel, t_iso::TwoNu_induc_dn_max, t_rfield::uh, version, warnin(), warnings, wcnint(), wind, t_wind::windv, t_wind::windv0, t_thermal::wlCoolHeatMax, t_atoms::xMg2Max, and molecule::xMoleFracMax.

Referenced by cloudy().

Here is the call graph for this function:

void PrtContinuum ( void   ) 

PrtContinuum print information about continuum if requested with PRINT CONTINUUM command

Definition at line 15 of file prt_continuum.cpp.

References t_rfield::anu, cdEXIT(), t_rfield::ConInterOut, DEBUG_ENTRY, DEBUG_EXIT, t_rfield::flux, t_rfield::FluxSave, ioQQQ, t_opac::ipCKshell, ipH1s, ipH_LIKE, ipHYDROGEN, t_iso::ipIsoLevNIonCon, iso, t_prt::lgPrtCont, t_rfield::nflux, NFLUXSV, NXBD, opac, t_rfield::outlin, t_rfield::outlin_noplot, prt, t_radius::r1r0sq, radius, rfield, and t_rfield::widflx.

Referenced by PrtFinal().

Here is the call graph for this function:

void PrtFinal ( void   ) 

PrtFinal create final pages of printout, emission line intensities, etc

Definition at line 52 of file prt_final.cpp.

References t_wind::AccelAver, t_wind::acldr, t_colden::ajmmin, t_rfield::anu, ASSERT, atmdat, GrainBin::avdft, GrainBin::avDGRatio, GrainBin::avdpot, GrainBin::avdust, aver(), t_conv::AverEdenError, t_conv::AverHeatCoolError, t_conv::AverPressError, t_conv::BigEdenError, BIGFLOAT, t_conv::BigHeatCoolError, t_phycon::BigJumpCO, t_phycon::BigJumpH2, t_phycon::BigJumpne, t_phycon::BigJumpTe, t_conv::BigPressError, t_gv::bin, called, cap4(), caps(), cdB21cm(), cdExecTime(), cdEXIT(), cdLine(), cdTemp(), t_input::chCARDCAPS, t_input::chCardSav, t_dense::chDenseLaw, GrainBin::chDstLab, t_LineSave::chHoldComments, t_hydro::chHTopType, t_tag_LineSv::chSumTyp, t_input::chTitle, t_version::chVersion, t_colden::colden, colden, t_rfield::ConInterOut, conv, t_radius::Conv2PrtInten, t_geometry::covgeo, t_geometry::covrt, DEBUG_ENTRY, DEBUG_EXIT, dense, t_radius::depth_x_fillfac, t_radius::distance, t_colden::dlnenHep, t_colden::dlnenHepp, t_colden::dlnenp, EN1RYD, t_rfield::EnergyBremsThin, t_rfield::extin_mag_B_point, t_rfield::extin_mag_V_extended, t_rfield::extin_mag_V_point, t_geometry::FillFac, t_rfield::flux, t_thermal::FreeFreeTotHeat, t_dense::gas_phase, geometry, gett2(), gett2o3(), gv, t_colden::H0_ov_Tspin, H2_itrzn(), HFLines, hmi, hydro, input, ioQQQ, ipCOL_HTOT, ipH1s, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_LineSave::ipNormWavL, ipoint(), ipOXYGEN, t_rt::ipxry, iso, iteration, iterations, t_iterations::itermx, lgAbort, t_conv::lgBadStop, t_warnings::lgCautns, t_radius::lgCylnOn, t_gv::lgDustOn, t_dense::lgElmtOn, GrainBin::lgEverQHeat, t_prt::lgFaintOn, t_gv::lgGrainPhysicsOn, t_atmdat::lgHCaseBOK, t_hydro::lgHInducImp, t_iterations::lgIterAgain, t_iterations::lgLastIt, t_LineSave::lgLineEmergent, t_opac::lgOpacExist, t_radius::lgPredLumin, t_prt::lgPrintColumns, t_prt::lgPrintFluxEarth, t_prt::lgPrintTime, t_prt::lgPrnColl, t_prt::lgPrnDiff, t_prt::lgPrnHeat, t_prt::lgPrnInwd, t_prt::lgPrnPump, t_prt::lgPrtLineArray, t_prt::lgPrtLineEmergent, t_prt::lgPrtLineLog, t_prt::lgPrtShort, t_radius::lgRadiusKnown, t_prt::lgSortLineIntensity, t_prt::lgSortLines, t_prt::lgSortLineWavelength, t_geometry::lgSphere, t_prt::lgSurfaceBrightness, t_prt::lgSurfaceBrightness_SR, t_called::lgTalk, t_rfield::lgUSphON, t_warnings::lgWarngs, LineSave, LineSv, MALLOC, MAX2, MIN2, t_version::nBetaVer, t_gv::nBin, t_rfield::nflux, nMatch(), t_input::nSave, t_LineSave::nsum, t_iso::nTopOff, t_conv::nTotalIoniz, t_conv::nTotalIoniz_start, t_iso::numLevels_local, NWLH, NWLHE, nzone, t_oxy::o3br32, t_oxy::o3cs12, t_oxy::o3cs13, t_oxy::o3enro, t_oxy::o3ex23, t_colden::OH_ov_Tspin, opac, t_rfield::outlin, t_rfield::outlin_noplot, oxy, peimbt, phycon, PI, POW2, t_thermal::power, pressure, PrintE71(), PrintE82(), PrintE93(), PrintEfmt(), prt, prt_wl(), PrtAllTau(), PrtColumns(), PrtContinuum(), PrtMeanIon(), t_rfield::qhtot, t_radius::r1r0sq, t_pressure::RadBetaMax, radius, REPEAT_16, REPEAT_2, REPEAT_4, rfield, t_radius::rinner, t_colden::rjnmin, t_rfield::rstrom, rt, RYDLAM, t_LineSave::ScaleNormLine, SDIV(), sexp(), t_LineSave::sig_figs, SMALLDOUBLE, SMALLFLOAT, SOLAR_MASS, t_timesc::sound, spsort(), t_tag_LineSv::sumlin, t_peimbt::t2hstr, t_peimbt::t2hyox, t_peimbt::t2o3str, t_opac::TauAbsGeo, t_rt::tauxry, t_peimbt::tbac, t_peimbt::tbcthn, t_timesc::tcmptn, thermal, t_thermal::thist, t_timesc::time_therm_long, t_timesc::TimeErode, timesc, t_thermal::tlowst, t_colden::tmas, t_peimbt::tohyox, t_peimbt::toiiir, t_prt::TooFaint, TorF(), TotalInsanity(), t_thermal::totcol, totlin(), t_colden::TotMassColl, t_peimbt::tsqden, t_rfield::uh, t_rfield::uheii, t_hmi::UV_Cont_rel2_Draine_DB96_face, t_hmi::UV_Cont_rel2_Habing_TH85_face, version, warnings, t_tag_LineSv::wavelength, wavelength, WavlenErrorGet(), t_rfield::widflx, wind, t_prt::wlSort1, t_prt::wlSort2, t_colden::wmas, t_dense::wmole, t_dense::xMassDensity, and t_dense::xMassTotal.

Referenced by cloudy().

Here is the call graph for this function:

void PrtHeader ( void   ) 

void PrtLinePres ( void   ) 

PrtLinePres print line radiation pressures for current conditions

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

Definition at line 16 of file prt_linepres.cpp.

References ASSERT, C12O16Rotate, C13O16Rotate, chIonLbl(), DEBUG_ENTRY, DEBUG_EXIT, dense, EmisLines, EmLine::gLo, H2_RadPress(), HFLines, t_dense::IonHigh, ioQQQ, EmLine::ipCont, ipH1s, ipH_LIKE, ipHE_LIKE, iso, LIMELM, MIN2, nCORotate, nHFLines, NISO, nLevel1, NLINE, t_iso::numLevels_local, nWindLine, EmLine::PopLo, EmLine::PopOpc, powi(), t_pressure::pres_radiation_lines_curr, pressure, prt_wl(), RT_LineWidth(), SMALLFLOAT, spsort(), t_iso::stat, TauLine2, TauLines, THRESH, wl, and EmLine::WLAng.

Referenced by iter_end_check(), and PrtZone().

Here is the call graph for this function:

double PrtLineSum ( const char *  chDo  ) 

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

Parameters:
chDo the job to do, either " SUM" or "READ"

Definition at line 13 of file prt_linesum.cpp.

References caps(), cdEXIT(), cdLine(), cdLine_ip(), t_input::chCARDCAPS, t_radius::Conv2PrtInten, DEBUG_ENTRY, DEBUG_EXIT, FFmtRead(), input, INPUT_LINE_LENGTH, input_readarray(), ioQQQ, t_LineSave::ipass, LineSave, MALLOC, NRDSUM, nzone, radius, and wavelength.

Referenced by lines(), and ParsePrint().

Here is the call graph for this function:

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

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 
lgDensity true include density, false do not

Definition at line 11 of file prt_meanion.cpp.

References ASSERT, t_elementnames::chElementName, DEBUG_ENTRY, DEBUG_EXIT, dense, elementnames, geometry, ioQQQ, ipHELIUM, ipHYDROGEN, t_dense::lgElmtOn, t_geometry::lgGeoPP, LIMELM, MeanIonRadius(), MeanIonVolume(), and MIN2.

Referenced by PrtFinal(), and PunchDo().

Here is the call graph for this function:

void prtmet ( void   ) 

prtmet print all line optical depths at end of iteration

Definition at line 12 of file prt_met.cpp.

References C12O16Rotate, C13O16Rotate, DEBUG_ENTRY, DEBUG_EXIT, dense, EmisLines, H2_Prt_line_tau(), HFLines, ipH_LIKE, iso, t_dense::lgElmtOn, t_prt::lgPrtTau, LIMELM, nCORotate, nHFLines, NISO, nLevel1, t_iso::numLevels_local, nUTA, nWindLine, prme(), prt, TauLine2, TauLines, and UTALines.

Referenced by PrtAllTau(), and RT_tau_inc().

Here is the call graph for this function:

void PrtZone ( void   ) 

PrtZone print out individual zone results

Definition at line 42 of file prt_zone.cpp.

References abund, t_wind::AccelCont, t_wind::AccelLine, t_wind::AccelPres, t_wind::AccelTot, t_wind::agrav, t_rfield::anu, ASSERT, GrainBin::AveDustZ, t_gv::bin, BOLTZMANN, called, GrainBin::chDstLab, t_elementnames::chElementName, t_rfield::cmcool, t_rfield::cmheat, t_colden::colden, colden, t_ionbal::CompRecoilHeatLocal, t_rfield::ConInterOut, conv, t_secondaries::csupra, DEBUG_ENTRY, DEBUG_EXIT, dense, t_iso::DepartCoef, t_radius::depth_mid_zone, t_radius::drad, GrainBin::dstpot, GrainBin::DustDftVel, dynamics, DynaPrtZone(), t_dense::eden, elementnames, EN1RYD, EVRYD, FeIIPrint(), t_geometry::FillFac, findspecies(), t_rfield::flux, t_wind::fmul, t_dense::gas_phase, GrainBin::GasHeatPhotoEl, geometry, gv, H2_Prt_Zone(), t_hmi::H2_total, t_hmi::h2dep, t_hmi::h2pdep, t_hmi::h3pdep, t_hydro::H_ion_frac_photo, t_thermal::heating, hmi, t_hmi::hmidep, t_hmi::Hmolec, t_thermal::htot, hydro, ionbal, t_dense::IonHigh, ioQQQ, ipALUMINIUM, ipBERYLLIUM, ipBORON, ipCARBON, ipCOL_H0, ipCOL_Hp, ipH1s, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHe2s1S, ipHe2s3S, ipHe3d1D, ipHe3d3D, ipHe3p1P, ipHe3p3P, ipHe3s1S, ipHe3s3S, ipHE_LIKE, ipHELIUM, ipHYDROGEN, t_iso::ipIsoLevNIonCon, ipLITHIUM, ipMH2p, ipMHeHp, ipMHm, ipNITROGEN, ipOXYGEN, iso, t_abund::lgAbTaON, t_dynamics::lgAdvection, t_dense::lgDenFlucOn, t_dense::lgElmtOn, t_gv::lgGrainPhysicsOn, t_prt::lgPrintHeating, t_iso::lgPrtDepartCoef, t_iso::lgPrtLevelPops, GrainBin::lgQHeat, t_called::lgTalk, t_thermal::lgUnstable, GrainBin::lgUseQHeat, LIMELM, magnetic, MAX2, N_H_MOLEC, t_gv::nBin, t_rfield::nflux, t_conv::nPres2Ioniz, t_hmi::nProton, t_trace::nTrConvg, t_iso::numPrintLevels, nzone, opac, t_rfield::outlin, t_rfield::outlin_noplot, t_pressure::pbeta, phycon, t_iso::Pop2Ion, t_pressure::pres_radiation_lines_curr, t_pressure::PresGasCurr, t_magnetic::pressure, pressure, PrintE93(), PrintEfmt(), prt, prt_H_like_DeparCoef(), prt_H_like_Pops(), prt_He_like_DeparCoef(), prt_He_like_Pops(), PrtLinePres(), t_radius::r1r0sq, radius, t_radius::Radius_mid_zone, rfield, SDIV(), secondaries, SPEEDLIGHT, t_opac::TauAbsGeo, t_phycon::te, GrainBin::tedust, t_hydro::TexcLya, thermal, trace, wind, t_wind::windv, and t_dense::xIonDense.

Referenced by ConvFail(), and iter_end_check().

Here is the call graph for this function:

void sprt_wl ( char *  chString,
float  wl 
)

sprt_wl write wavelength to string - must be kept parallel with prt_wl

Parameters:
*chString 
wl 

Definition at line 157 of file prt.cpp.

References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, LineSave, t_LineSave::sig_figs, and TotalInsanity().

Referenced by iter_end_check(), ParsePunch(), and punch_line().

Here is the call graph for this function:


Variable Documentation

EXTERN struct t_prt prt


Generated for cloudy by doxygen 1.5.9