/home66/gary/public_html/cloudy/c10_branch/source/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, realnum wavelength)
void sprt_wl (char *chString, realnum wl)
void PrtHeader (void)
void prt_LineLabels (FILE *io, bool lgPrintAll)
void prtmet (void)
void prme (const char *chDoIt, transition *t)
void PrtMeanIon (char chType, bool lgDensity, FILE *)
double PrtLineSum (void)
void PrtLinePres (FILE *ioPRESSURE)
void PrtColumns (FILE *ioMEAN)
void DatabasePrintReference (void)
void PrtAllTau (void)

Variables

EXTERN struct t_prt prt

Function Documentation

void DatabasePrintReference ( void   ) 

DatabasePrintReference print some database references

Definition at line 46 of file prt_final.cpp.

References atmdat, t_atmdat::chVersion, DEBUG_ENTRY, h2, ioQQQ, t_atmdat::lgChiantiOn, t_h2::lgH2ON, and t_atmdat::lgLamdaOn.

Referenced by PrtFinal(), and PrtHeader().

void prme ( const char *  chDoIt,
transition t 
)

prme print heavy element line optical depths at end of calculation

Parameters:
chDoIt 
t 

Definition at line 90 of file prt_met.cpp.

References t_quantumState::chLabel, chLineLbl(), DEBUG_ENTRY, transition::Emis, transition::Hi, ioQQQ, transition::ipCont, PrintEfmt, prt, t_prt::PrtTauFnt, sprt_wl(), t_emission::TauIn, TotalInsanity(), and transition::WLAng.

Referenced by H2_Prt_line_tau(), and prtmet().

Here is the call graph for this function:

void prt_LineLabels ( FILE *  io,
bool  lgPrintAll 
)

prt_LineLabels save all labels and wavelengths for emission line array

Parameters:
io file handle to write output
lgPrintAll print all if true, if false then do not print parts of transferred lines

Definition at line 166 of file prt.cpp.

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

Referenced by SaveDo().

Here is the call graph for this function:

void prt_wl ( FILE *  io,
realnum  wavelength 
)

prt_wl write wavelength to io

Parameters:
*io 
wavelength 

Definition at line 11 of file prt.cpp.

References DEBUG_ENTRY, and sprt_wl().

Referenced by badprt(), cdLine(), cdPrtWL(), ContBandsCreate(), GetOptLineInt(), H2_PunchDo(), iso_radiative_recomb_effective(), lgCheckMonitors(), lines_helium(), lines_lv1_k_zn(), lines_setup(), lines_table(), optimize_func(), prt_LineLabels(), PrtFinal(), PrtLinePres(), Save1Line(), Save1LineData(), SaveDo(), and SaveResults1Line().

Here is the call graph for this function:

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 save unit when save output generated

Definition at line 13 of file prt_columns.cpp.

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

Referenced by PrtFinal(), and SaveDo().

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 64 of file prt_comment.cpp.

References abund, AgeCheck(), t_colden::ajmmin, t_rfield::anu, ASSERT, atmdat, atoms, bangin(), t_hmi::BiggestH2, GrainVar::bin, broke, ca, t_ca::Ca2RmLya, t_iso::CaseBCheck, caunin(), cdEXIT, cdLine(), t_thermal::chCoolHeatMax, t_dense::chDenseLaw, t_elementnames::chElementName, t_elementnames::chElementNameShort, t_elementnames::chElementSym, chkCaHeps(), chLineLbl(), t_conv::chNotConverged, t_StopCalc::chReasonStop, t_warnings::chRgcln, t_rfield::cinrat, t_hydro::cintot, co, 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, dBaseLines, GrainVar::dclmax, DEBUG_ENTRY, dense, t_radius::depth, DoppVel, GrainVar::dphmax, dynamics, t_dense::EdenMax, t_struc::ednstr, elementnames, Wind::emdot, transition::Emis, 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_thermal::GBarMax, geometry, GrainVar::GrnElecDonateMax, GrainVar::GrnElecHoldMax, gv, h2, t_hmi::h2dfrc, t_hmi::h2dtot, t_hmi::h2line_cool_frac, t_hmi::h2pmax, t_atmdat::HCharCoolMax, t_atmdat::HCharHeatMax, hcmap, t_hydro::HCollIonMax, he, t_hmi::HeatH2DexcMax, t_thermal::HeatLineMax, t_dynamics::HeatMax, hextra, HFLines, t_atmdat::HIonFracMax, hmi, t_hmi::hmitot, hydro, hyperfine, t_ionbal::ifail, input, INPUT_LINE_LENGTH, Singleton< t_version >::Inst(), 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, Wind::lgBallistic(), t_input::lgBracketFound, t_broke::lgBroke, t_broke::lgCheckit, t_rfield::lgCMB_set, t_rfield::lgComUndr, t_continuum::lgCon0, lgConserveEnergy(), t_continuum::lgCoStarInterpolationCaution, t_iso::lgCritDensLMix, t_abund::lgDepln, t_radius::lgDR2Big, t_radius::lgdR2Small, t_radius::lgDrMinUsed, GrainVar::lgDustOn(), t_dense::lgEdenBad, t_thermal::lgEdnGTcm, t_mole::lgElem_in_chemistry, t_dense::lgElmtOn, t_broke::lgFixit, t_fudgec::lgFudgeUsed, 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_hcmap::lgMapDone, t_hcmap::lgMapOK, t_rfield::lgMMok, GrainVar::lgNegGrnDrg, t_rfield::lgOcc1Hi, t_opac::lgOpacNeg, t_phycon::lgPhysOK, t_rfield::lgPlasNu, t_save::lgPunContinuum, t_dynamics::lgRecom, t_version::lgRelease, t_input::lgSetNoBuffering, t_geometry::lgStatic, Wind::lgStatic(), t_geometry::lgStaticNoIt, t_thermal::lgTemperatureConstant, lgTestCodeCalled, t_dynamics::lgTimeDependentStatic, t_trace::lgTrace, t_input::lgUnderscoreFound, Wind::lgWindOK, t_rfield::lgXRayOK, t_geometry::lgZoneSet, t_geometry::lgZoneTrp, LIMELM, magnetic, MAX2, MIN2, mole, t_iso::n_HighestResolved_local, t_hydro::nbul, t_iso::nCollapsed_local, t_hydro::ndclev, molecule::nelem_hevmol, t_rfield::nflux, t_fudgec::nfudge, NISO, nLevel1, t_hydro::nLyaHot, t_atoms::nNegOI, notein(), 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, oxy, phycon, t_rfield::plsfrqmax, t_oxy::poiii2Max, t_oxy::poiii3Max, t_oxy::poimax, t_hydro::pop2mx, pow(), t_thermal::power, t_radius::r1r0sq, t_oxy::r4363Max, t_oxy::r5007Max, radius, t_h2::renorm_max, t_h2::renorm_min, rfield, t_radius::rinner, t_colden::rjnmin, RYDLAM, save, SDIV(), t_secondaries::SecHIonMax, secondaries, ShowMe(), t_iso::SmallA, SMALLFLOAT, SOLAR_MASS, t_opac::stimax, StopCalc, struc, t_opac::TauAbsGeo, t_emission::TauIn, TauLine2, TauLines, t_rfield::tbr4nu, t_rfield::tbrmax, t_rfield::tbrmnu, t_timesc::tcmptn, t_hydro::TeLyaMax, t_phycon::TEMP_STOP_DEFAULT, t_StopCalc::TempLoStopZone, 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, GrainVar::TotalDustHeat, TotalInsanity(), t_thermal::totcol, trace, t_emission::tran, Transitions, t_DoppVel::TurbVel, t_iso::TwoNu_induc_dn_max, t_rfield::uh, warnin(), warnings, wcnint(), wind, Wind::windv, t_thermal::wlCoolHeatMax, t_atoms::xMg2Max, and molecule::xMoleFracMax.

Referenced by cloudy().

Here is the call graph for this function:

void PrtContinuum ( void   ) 
void PrtFinal ( void   ) 

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

Definition at line 112 of file prt_final.cpp.

References Wind::AccelAver, Wind::acldr, t_colden::ajmmin, t_rfield::anu, AS1RAD, ASSERT, atmdat, 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, GrainVar::bin, called, cap4(), caps(), cdB21cm(), cdExecTime(), cdEXIT, cdLine(), cdTemp(), t_input::chCardSav, t_dense::chDenseLaw, 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::covaper, t_geometry::covgeo, DatabasePrintReference(), DEBUG_ENTRY, dense, t_radius::depth_x_fillfac, t_radius::distance, t_colden::dlnenCp, t_colden::dlnenHep, t_colden::dlnenHepp, t_colden::dlnenp, dynamics, 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, fp_equal(), t_thermal::FreeFreeTotHeat, t_dense::gas_phase, geometry, gett2(), gett2o3(), gv, t_colden::H0_ov_Tspin, H2_itrzn(), HFLines, hmi, hydro, t_geometry::iEmissPower, input, INPUT_LINE_LENGTH, Singleton< t_version >::Inst(), 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, GrainVar::lgDustOn(), t_dense::lgElmtOn, t_prt::lgFaintOn, t_geometry::lgGeoPP, GrainVar::lgGrainPhysicsOn, t_atmdat::lgHCaseBOK, t_hydro::lgHInducImp, t_iterations::lgIterAgain, t_iterations::lgLastIt, t_radius::lgPredLumin, t_prt::lgPrintColumns, t_prt::lgPrintFluxEarth, t_prt::lgPrintLineCumulative, t_prt::lgPrintTime, t_prt::lgPrnColl, t_prt::lgPrnDiff, t_prt::lgPrnHeat, t_prt::lgPrnInwd, t_prt::lgPrnPump, t_prt::lgPrtLineArray, t_prt::lgPrtLineLog, t_prt::lgPrtShort, t_radius::lgRadiusKnown, t_geometry::lgSizeSet, 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, mean, min(), MIN2, t_dynamics::n_initial_relax, t_rfield::nflux, nMatch(), t_input::nSave, t_LineSave::nsum, t_conv::nTotalIoniz, t_conv::nTotalIoniz_start, t_iso::numLevels_local, 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, pow(), POW2, t_thermal::power, pressure, PrintCenterLine(), PrintE71(), PrintE82(), PrintE93(), PrintEfmt, PrintRatio(), prt, prt_wl(), PrtAllTau(), PrtColumns(), PrtContinuum(), PrtMeanIon(), t_rfield::qhtot, t_radius::r1r0sq, t_pressure::RadBetaMax, t_radius::Radius, radius, 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::SumLine, t_peimbt::t2hstr, t_peimbt::t2hyox, t_peimbt::t2o3str, t_opac::TauAbsGeo, t_rt::tauxry, t_peimbt::tbac, t_peimbt::tbcthn, t_timesc::tcmptn, t_mean::TempEdenMean, t_mean::TempIonEdenMean, t_mean::TempIonMean, t_mean::TempMean, 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, warnings, t_tag_LineSv::wavelength, wavelength, WavlenErrorGet(), t_rfield::widflx, wind, t_prt::wlSort1, t_prt::wlSort2, t_colden::wmas, t_dense::wmole, t_mean::xIonMean, t_dense::xMassDensity, and t_dense::xMassTotal.

Referenced by cloudy().

Here is the call graph for this function:

void PrtHeader ( void   ) 
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

Definition at line 15 of file prt_linepres.cpp.

References ASSERT, t_dense::AtomicWeight, chIonLbl(), dBaseLines, DEBUG_ENTRY, dense, GetDopplerWidth(), H2_RadPress(), HFLines, transition::Hi, t_dense::IonHigh, iso, LIMELM, linesAdded2, MIN2, t_iso::nCollapsed_local, t_quantumState::nelem, nHFLines, NISO, nLevel1, NLINE, t_iso::numLevels_local, nWindLine, t_pressure::pres_radiation_lines_curr, pressure, PressureRadiationLine(), prt_wl(), t_iso::SmallA, SMALLFLOAT, spsort(), TauLine2, TauLines, THRESH, t_emission::tran, Transitions, wl, and transition::WLAng.

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

Here is the call graph for this function:

double PrtLineSum ( void   ) 

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 95 of file prt_linesum.cpp.

References cdEXIT, cdLine(), cdLine_ip(), chSMLab, t_radius::Conv2PrtInten, DEBUG_ENTRY, ioQQQ, t_LineSave::ipass, ipLine, LineSave, nlsum, nzone, pow(), radius, and wavelength.

Referenced by lines().

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 t_elementnames::chElementName, DEBUG_ENTRY, dense, elementnames, geometry, ioQQQ, ipHELIUM, ipHYDROGEN, t_dense::lgElmtOn, t_geometry::lgGeoPP, LIMELM, mean, t_mean::MeanIon(), MIN2, and TotalInsanity().

Referenced by PrtFinal(), and SaveDo().

Here is the call graph for this function:

void prtmet ( void   ) 

prtmet print all line optical depths at end of iteration

Definition at line 13 of file prt_met.cpp.

References dBaseLines, DEBUG_ENTRY, dense, H2_Prt_line_tau(), HFLines, transition::Hi, ioQQQ, ipH_LIKE, iso, t_dense::lgElmtOn, t_prt::lgPrtTau, LIMELM, linesAdded2, t_quantumState::nelem, nHFLines, NISO, nLevel1, t_iso::numLevels_local, nUTA, nWindLine, prme(), prt, TauLine2, TauLines, Transitions, 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 36 of file prt_zone.cpp.

References abund, Wind::AccelCont, Wind::AccelGravity, Wind::AccelLine, Wind::AccelTotalOutward, ASSERT, GrainVar::bin, BOLTZMANN, called, t_elementnames::chElementName, t_rfield::cmcool, t_rfield::cmheat, t_colden::colden, colden, t_ionbal::CompRecoilHeatLocal, conv, t_secondaries::csupra, DEBUG_ENTRY, dense, t_iso::DepartCoef, t_radius::depth_mid_zone, t_radius::drad, dynamics, DynaPrtZone(), t_dense::eden, elementnames, t_rfield::EnergyDiffCont, t_rfield::EnergyIncidCont, EVRYD, FeIIPrint(), t_geometry::FillFac, findspecies(), Wind::fmul, t_dense::gas_phase, 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, iso_prt_pops(), t_abund::lgAbTaON, t_dynamics::lgAdvection, t_dense::lgDenFlucOn, t_dense::lgElmtOn, GrainVar::lgGrainPhysicsOn, t_prt::lgPrintHeating, t_iso::lgPrtDepartCoef, t_iso::lgPrtLevelPops, Wind::lgStatic(), t_called::lgTalk, t_thermal::lgUnstable, LIMELM, magnetic, MAX2, N_H_MOLEC, NISO, t_conv::nPres2Ioniz, t_hmi::nProton, t_trace::nTrConvg, nzone, opac, t_pressure::pbeta, phycon, pow(), t_pressure::pres_radiation_lines_curr, t_pressure::PresGasCurr, t_magnetic::pressure, pressure, t_pressure::PresTotlCurr, PrintE93(), PrintEfmt, prt, PrtLinePres(), radius, t_radius::Radius_mid_zone, rfield, SDIV(), secondaries, SPEEDLIGHT, StatesElemNEW, t_opac::TauAbsGeo, t_phycon::te, t_hydro::TexcLya, thermal, trace, wind, 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,
realnum  wl 
)

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

Parameters:
*chString 
wl 

Definition at line 23 of file prt.cpp.

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

Referenced by iter_end_check(), lines_continuum(), parse_save_line(), ParseSave(), prme(), and prt_wl().

Here is the call graph for this function:


Variable Documentation

EXTERN struct t_prt prt
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1