punch_do.cpp File Reference

#include "cddefines.h"
#include "cddrive.h"
#include "physconst.h"
#include "mean.h"
#include "taulines.h"
#include "struc.h"
#include "iso.h"
#include "mole.h"
#include "hyperfine.h"
#include "rt.h"
#include "lines_service.h"
#include "doppvel.h"
#include "dense.h"
#include "h2.h"
#include "magnetic.h"
#include "hydrogenic.h"
#include "secondaries.h"
#include "grainvar.h"
#include "lines.h"
#include "dynamics.h"
#include "colden.h"
#include "continuum.h"
#include "ionbal.h"
#include "yield.h"
#include "prt.h"
#include "iterations.h"
#include "heavy.h"
#include "conv.h"
#include "geometry.h"
#include "called.h"
#include "helike.h"
#include "opacity.h"
#include "rfield.h"
#include "phycon.h"
#include "timesc.h"
#include "radius.h"
#include "atomfeii.h"
#include "assertresults.h"
#include "thermal.h"
#include "wind.h"
#include "hmi.h"
#include "pressure.h"
#include "elementnames.h"
#include "ipoint.h"
#include "gammas.h"
#include "atmdat.h"
#include "map.h"
#include "input.h"
#include "punch.h"
#include "optimize.h"
#include "grid.h"

Go to the source code of this file.

Functions

static void PunResults1Line (FILE *ioPUN, const char *chLab, float wl, double xInten, const char *chFunction)
static void PunchGaunts (FILE *ioPUN)
static void punResults (FILE *ioPUN)
static void PunchLineStuff (FILE *ioPUN, const char *chJob, float xLimit)
static void AGN_Hemis (FILE *ioPUN)
static void PunchNewContinuum (FILE *ioPUN, long ipCon)
static void PunLineIntensity (FILE *ioPUN)
void PunchDo (const char *chTime)
void pun1Line (EmLine *t, FILE *ioPUN, float xLimit, long index, double abundance)

Variables

char * chDummy
static bool lgPopsFirstCall
static bool lgPunchOpticalDepths
static const int LINEWIDTH = 6
static const int NENR_GAUNT = 37
static const int NTE_GAUNT = 21


Function Documentation

static void AGN_Hemis ( FILE *  ioPUN  )  [static]

void pun1Line ( EmLine t,
FILE *  io,
float  xLimit,
long  index,
double  population 
)

void PunchDo ( const char *  chTime  ) 

PunchDo produce punch output during calculation

Parameters:
chTime chTime is null terminated 4 char string, either "MIDL" or "LAST"

Todo:
2 introduce units option for wavelength and include area for intensity to make luminosity

Todo:
2 possible to grab input lines to say what each parameter is? As in "PARAM1 is HDEN"?

Definition at line 102 of file punch_do.cpp.

References t_wind::AccelCont, t_wind::AccelLine, t_wind::AccelTot, t_timesc::AgeCOMoleDest, AGN_He1_CS(), AGN_Hemis(), t_opac::albedo, t_rfield::anu, t_rfield::anu2, t_rfield::AnuOrg, AnuUnit(), ASSERT, GrainBin::asym, EmLine::Aul, GrainBin::AveDustZ, GrainBin::AvRadius, t_gv::bin, BOLTZMANN, t_colden::C1Pops, t_colden::C2Pops, called, cdColm(), cdExecTime(), cdEXIT(), cdLine(), t_tag_LineSv::chALab, ChargTranPun(), t_rfield::chContLabel, GrainBin::chDstLab, chDummy, t_elementnames::chElementSym, t_punch::chHashString, chLabel, t_rfield::chLineLabel, t_punch::chLineListLabel, t_punch::chPunch, t_punch::chPunchArgs, t_Heavy::chShell, t_tag_LineSv::chSumTyp, t_thermal::ClGrid, CO_findrk(), CO_punch_mol(), t_colden::colden, colden, t_iso::ColIoniz, EmLine::ColUL, t_rfield::comdn, COmole, t_rfield::comup, t_rfield::ConEmitLocal, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConInterOut, t_rfield::ConRefIncid, conv, t_radius::Conv2PrtInten, t_dynamics::Cool, EmLine::cool, CoolPunch(), t_geometry::covgeo, t_secondaries::csupra, t_thermal::ctot, EmLine::damp, DEBUG_ENTRY, DEBUG_EXIT, dense, t_radius::depth, t_radius::depth_mid_zone, DoppVel, t_radius::drad, t_gv::dstab, GrainBin::dstab1, GrainBin::dstAbund, GrainBin::dstpot, t_gv::dstsc, GrainBin::DustDftVel, dynamics, DynaPunch(), DynaPunchTimeDep(), t_dense::eden, t_dense::EdenHCorr, t_dense::EdenTrue, elementnames, EmisLines, EN1RYD, t_phycon::EnergyBinding, t_phycon::EnergyExcitation, t_phycon::EnergyIonization, EmLine::EnergyWN, t_magnetic::EnthalpyDensity, t_phycon::EnthalpyDensity, EVRYD, t_rfield::extin_mag_V_extended, t_rfield::extin_mag_V_point, FeII_Cont, FeIIPunchColden(), FeIIPunchLevels(), FeIIPunchLines(), FeIIPunchOpticalDepth(), FeIIPunDepart(), FeIIPunPop(), t_geometry::FillFac, findspecies(), t_rfield::fine_anu, t_rfield::fine_opac_zone, t_rfield::fine_opt_depth, t_rfield::flux, t_rfield::FluxSave, t_wind::fmul, GammaPrt(), t_iso::gamnc, t_dense::gas_phase, t_gv::GasCoolColl, GrainBin::GasHeatPhotoEl, geometry, t_gv::GraphiteEmission, grid, gv, t_colden::H0_21cm_lower, t_colden::H0_21cm_upper, t_colden::H0_ov_Tspin, h2, H2_PunchDo(), t_hmi::H2_Solomon_dissoc_rate_used_H2g, t_hmi::H2_total, t_dynamics::Heat, t_hmi::HeatH2Dexc_used, t_hmi::HeatH2Dish_used, t_thermal::heating, HeatPunch(), Heavy, molecule::hevmol, HFLines, t_conv::hist_pres_correct, t_conv::hist_pres_current, t_conv::hist_pres_density, t_conv::hist_pres_npres, t_conv::hist_temp_cool, t_conv::hist_temp_heat, t_conv::hist_temp_ntemp, t_conv::hist_temp_temp, hmi, t_hmi::Hmolec, t_thermal::HtGrid, t_thermal::htot, HydroRecCool(), hyperfine, Singleton< t_ADfA >::Inst(), Singleton< T >::Inst(), GrainBin::IntArea, t_grid::interpParameters, ion_recombAGN(), ionbal, ioQQQ, ipALUMINIUM, ipCARBON, ipCOL_elec, ipCOL_H0, ipCOL_H2g, ipCOL_H2s, ipCOL_H3p, ipCOL_Hp, ipCOL_HTOT, t_punch::ipConPun, EmLine::ipCont, t_opac::ipElement, ipFineCont(), ipH1s, ipH2p, ipH2s, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, t_iso::ipIsoLevNIonCon, ipMAGNESIUM, t_rfield::ipMaxBolt, ipMH2g, ipMH2p, ipMH2s, ipMH3p, ipMHm, ipoint(), t_iso::ipOpac, ipOXYGEN, t_punch::ipPnunit, ipRecEsc, ipRecNetEsc, ipRecRad, ipSILICON, ipSODIUM, ipSULPHUR, ipT146, ipT157, ipT370, ipT610, ipT63, t_rfield::ipV_filter, iso, iteration, iterations, t_punch::lg_separate_iterations, lgCheckAsserts(), t_conv::lgConvPres, t_conv::lgConvTemp, t_dense::lgElmtOn, t_punch::lgFLUSH, t_grid::lgGrid, t_grid::lgGridDone, t_h2::lgH2ON, t_punch::lgHashEndIter, t_iterations::lgLastIt, t_LineSave::lgLineEmergent, t_punch::lgLinEvery, t_map::lgMapBeingDone, t_map::lgMapDone, t_grid::lgOutputTypeOn, t_punch::lgPunchEveryZone, t_punch::lgPunLstIter, t_geometry::lgSphere, t_dynamics::lgStatic, t_called::lgTalk, t_DoppVel::lgTurb_pressure, LIMELM, t_rfield::line_count, LineSave, LineSv, t_punch::LinEvery, magnetic, map, map_do(), t_map::MapZone, MAX2, MIN2, mole, N_H_MOLEC, t_gv::nBin, t_punch::ncPunchSkip, nFeIIConBins, t_rfield::nfine, t_rfield::nflux, NGRID, t_grid::nintparm, t_punch::nLineList, t_conv::nPres2Ioniz, t_punch::npunch, t_punch::nPunchEveryZone, t_Heavy::nsShells, t_LineSave::nsum, t_mole::num_comole_calc, NUM_OUTPUT_TYPES, t_iso::numLevels_local, t_rfield::nupper, nzone, t_thermal::nZonGrid, t_colden::O1Pops, OccupationNumberLine(), opac, t_opac::opacity_abs, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, t_dense::pden, EmLine::Pdest, EmLine::Pelec_esc, EmLine::Pesc, pfeii(), t_ADfA::ph1(), t_ionbal::PhotoRate_Shell, phycon, t_pressure::pinzon, plankf(), t_iso::Pop2Ion, POW2, t_pressure::pres_radiation_lines_curr, t_pressure::PresGasCurr, t_pressure::PresInteg, t_pressure::PresRamCurr, t_magnetic::pressure, pressure, t_pressure::PresTotlCorrect, t_pressure::PresTotlCurr, t_pressure::PresTotlInit, t_pressure::PresTurbCurr, prt_LineLabels(), prt_wl(), PrtColumns(), PrtMeanIon(), EmLine::pump, t_punch::punarg, punch, punch_average(), punch_colden(), punch_line(), Punch_Line_RT(), punch_opacity(), punchFITSfile(), PunchGaunts(), PunchLineData(), PunchLineStuff(), t_punch::PunchLWidth, PunchNewContinuum(), PunchSpecial(), PunLineIntensity(), punResults(), GrainBin::pure_sc1, t_radius::r1r0sq, radius, t_radius::Radius_mid_zone, t_iso::RadRec_caseB, t_iso::RadRecomb, t_dynamics::Rate, GrainBin::rate_h2_form_grains_used, t_gv::rate_h2_form_grains_used_total, t_ionbal::RateIonizTot, t_ionbal::RateRecomTot, t_rfield::reflin, rfield, SDIV(), secondaries, sexp(), ShowMe(), t_gv::SilicateEmission, SMALLFLOAT, t_timesc::sound_speed_adiabatic, t_dynamics::Source, struc, t_opac::TauAbsFace, t_opac::TauAbsGeo, EmLine::TauCon, EmLine::TauIn, TauLines, t_opac::TauScatFace, EmLine::TauTot, t_phycon::te, t_phycon::te03, t_phycon::te10, t_phycon::te70, GrainBin::tedust, t_thermal::TeGrid, t_phycon::TeInit, t_phycon::telogn, t_phycon::TeProp, t_struc::testr, TexcLine(), tfidle(), thermal, t_dynamics::time_elapsed, t_timesc::time_H2_Dest_here, timesc, TorF(), t_gv::TotalEden, TotalInsanity(), t_rfield::TotDiff2Pht, t_grid::totNumModels, t_rfield::trans_coef_total, t_hyperfine::Tspin21cm, t_DoppVel::TurbVel, t_hmi::UV_Cont_rel2_Draine_DB96_depth, t_hmi::UV_Cont_rel2_Habing_TH85_depth, t_tag_LineSv::wavelength, t_rfield::widflx, wind, t_wind::windv, t_punch::wlLineList, t_secondaries::x12tot, t_dense::xIonDense, and t_dense::xMassDensity.

Referenced by cloudy().

static void PunchGaunts ( FILE *  ioPUN  )  [static]

Definition at line 3645 of file punch_do.cpp.

References t_phycon::alogte, cont_gaunt_calc(), DEBUG_ENTRY, DEBUG_EXIT, LIMELM, NENR_GAUNT, NTE_GAUNT, phycon, t_phycon::te, TE1RYD, and z.

Referenced by PunchDo().

Here is the call graph for this function:

static void PunchLineStuff ( FILE *  ioPUN,
const char *  chJob,
float  xLimit 
) [static]

static void PunchNewContinuum ( FILE *  ioPUN,
long  ipCon 
) [static]

Todo:
2 - NB - if continuum resolution changed the lines WILL NOT WORK

Definition at line 3266 of file punch_do.cpp.

References t_rfield::anu, t_rfield::AnuOrg, AnuUnit(), ASSERT, cdSPEC(), t_punch::cp_range_max, t_punch::cp_range_min, t_punch::cp_resolving_power, ipoint(), MALLOC, MAX2, MIN2, t_rfield::nflux, punch, rfield, RYDLAM, and t_rfield::widflx.

Referenced by PunchDo().

Here is the call graph for this function:

static void PunLineIntensity ( FILE *  ioPUN  )  [static]

static void punResults ( FILE *  ioPUN  )  [static]

static void PunResults1Line ( FILE *  ioPUN,
const char *  chLab,
float  wl,
double  xInten,
const char *  chFunction 
) [static]

Definition at line 3551 of file punch_do.cpp.

References cdEXIT(), t_punch::chPunRltType, DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, LINEWIDTH, prt_wl(), punch, and wavelength.

Referenced by PunLineIntensity(), and punResults().

Here is the call graph for this function:


Variable Documentation

char* chDummy

Definition at line 100 of file punch_do.cpp.

Referenced by PunchDo().

bool lgPopsFirstCall [static]

Definition at line 3070 of file punch_do.cpp.

Referenced by pun1Line(), and PunchLineStuff().

bool lgPunchOpticalDepths [static]

Definition at line 3070 of file punch_do.cpp.

Referenced by pun1Line(), and PunchLineStuff().

const int LINEWIDTH = 6 [static]

Definition at line 3547 of file punch_do.cpp.

Referenced by PunResults1Line().

const int NENR_GAUNT = 37 [static]

Definition at line 3641 of file punch_do.cpp.

Referenced by PunchGaunts().

const int NTE_GAUNT = 21 [static]

Definition at line 3642 of file punch_do.cpp.

Referenced by PunchGaunts().


Generated for cloudy by doxygen 1.5.9