/home66/gary/public_html/cloudy/c08_branch/source/init.h File Reference

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

Go to the source code of this file.

Functions

void InitCoreload (void)
void InitDefaultsPreparse (void)
void InitCoreloadPostparse (void)
void InitSimPostparse (void)
void zero (void)


Function Documentation

void InitCoreload ( void   ) 

one time initialization of core load, called from cdDrive, this sets minimum set of values needed for the code to start - called after input lines have been read in and checked for VARY or GRID - so known whether single or multiple sims will be run

Todo:
3 these should be const since cannot change, are flags

Definition at line 125 of file init_coreload.cpp.

References t_hextra::background_density, t_hextra::background_rate, t_iso::chISO, chOptimFileName, t_Heavy::chShell, t_extinc::cnst_col2optdepth, t_extinc::cnst_power, DEBUG_ENTRY, dense, t_dense::density_low_limit, extinc, grid, H2_init_coreload(), hcmap, Heavy, hextra, ionbal, ipCARBON, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, ipMAGNESIUM, ipNEON, ipNITROGEN, ipOXYGEN, ipSILICON, ipSULPHUR, iso, iso_update_num_levels(), t_dense::lgElmtOn, t_grid::lgGridDone, lgLinesAdded, t_hcmap::lgMapBeingDone, t_hcmap::lgMapDone, t_hcmap::lgMapOK, t_dense::lgSetIoniz, lgStatesAdded, t_grid::lgStrictRepeat, LIMELM, linesAdded, max_num_levels, mole, t_iso::n_HighestResolved_max, t_iso::nCollapsed_max, t_ionbal::nCompRecoilElec, t_mole::nH2_trace_final, t_mole::nH2_trace_full, t_mole::nH2_trace_iterations, t_mole::nH2_trace_matrix, NISO, t_hcmap::nmap, t_hcmap::nMapAlloc, nSimThisCoreload, t_iso::numLevels_malloc, t_iso::numLevels_max, t_iso::numPrintLevels, PunchFilesInit(), SMALLFLOAT, and statesAdded.

Referenced by cdDrive().

Here is the call graph for this function:

void InitCoreloadPostparse ( void   ) 

initialization after parser, called one time per core load create space needed for code to operate

Definition at line 11 of file init_coreload_postparse.cpp.

References assertresults, DEBUG_ENTRY, t_assertresults::nSumErrorCaseAssert, and t_assertresults::SumErrorCaseAssert.

Referenced by cloudy().

void InitDefaultsPreparse ( void   ) 

initialize values that are changed in the parser. Called just before parser, will be called one time per core load

Definition at line 38 of file init_defaults_preparse.cpp.

References abund, t_dense::AbundanceLimit, t_wind::AccelAver, t_wind::AccelCont, t_wind::AccelGravity, t_wind::AccelLine, t_wind::AccelMax, t_wind::AccelPres, t_wind::AccelTot, t_wind::acldr, t_emission::Aul, t_StopCalc::AV_extended, t_StopCalc::AV_point, t_dense::chDenseLaw, t_punch::chFilenamePrefix, t_punch::chHashString, t_optimize::chOptRtn, t_plotCom::chPType, t_StopCalc::col_H0_ov_Tspin, t_StopCalc::col_h2, t_StopCalc::col_h2_nut, t_StopCalc::col_monoxco, t_StopCalc::colnut, t_StopCalc::colpls, COLUMN_INIT, t_wind::comass, t_thermal::ConstGrainTemp, t_thermal::ConstTemp, t_punch::cp_npun, t_hextra::cr_energydensity, t_hextra::crpowr, t_hextra::crtemp, t_hextra::cryden, t_hextra::cryden_ov_background, t_emission::damp, t_emission::dampXvel, DEBUG_ENTRY, dense, t_wind::DiskRadius, DummyEmis, t_wind::emdot, EmLineZero(), t_extinc::excolm, t_extinc::exleak, t_extinc::exlow, extinc, t_dense::flcPhase, t_dense::flong, t_wind::fmul, t_fudgec::fudgea, fudgec, t_emission::gf, h2, hcmap, t_StopCalc::HColStop, hextra, t_optimize::ioOptim, t_emission::ipFine, ipH_LIKE, ipHYDROGEN, ipOXYGEN, t_abund::ipSolar, t_StopCalc::iptnu, t_emission::iRedisFun, t_hextra::lg_CR_B_equipartition, t_punch::lg_separate_iterations, t_abund::lgAbnSolar, t_abund::lgAbTaON, t_abund::lgAbunTabl, t_dense::lgAsChoose, t_trace::lgBug2nu, t_trace::lgCalBug, t_trace::lgCarBug, t_mole::lgColl_deexec_Calc, t_mole::lgColl_dissoc_coll, t_mole::lgColl_gbar, t_trace::lgComBug, t_trace::lgConBug, t_pressure::lgContRadPresOn, t_trace::lgCoolTr, t_dense::lgDenFlucOn, t_dense::lgDenFlucRadius, t_dense::lgDenseInitConstant, t_prt::lgDiffuseInward, t_prt::lgDiffuseOutward, t_wind::lgDisk, t_trace::lgDrBug, t_punch::lgDRHash, t_punch::lgDRPLst, t_trace::lgDrv_cdLine, t_trace::lgDustBug, t_trace::lgESOURCE, t_prt::lgFaintOn, t_trace::lgFeBug, t_punch::lgFLUSH, t_prt::lgFntSet, t_fudgec::lgFudgeUsed, t_mole::lgH2_grain_deexcitation, t_h2::lgH2_H_coll_07, t_mole::lgH2_He_ORNL, t_mole::lgH2_NOISE, t_mole::lgH2_NOISECOSMIC, t_mole::lgH2_ortho_para_coll_on, t_punch::lgHashEndIter, t_trace::lgHBug, t_trace::lgHeatBug, t_trace::lgHeavyBug, t_trace::lgHeBug, t_hextra::lgHextraDensity, t_hextra::lgHextraDepth, t_trace::lgIsoTraceFull, t_trace::lgNeBug, t_trace::lgNeonBug, t_noexec::lgNoExec, t_prt::lgOnlyHead, t_prt::lgOnlyZone, t_trace::lgOpacBug, t_trace::lgOptcBug, t_optimize::lgOptCol, t_optimize::lgOptCont, t_optimize::lgOptimFlow, t_optimize::lgOptimize, t_optimize::lgOptLin, t_optimize::lgOptLum, t_optimize::lgOptTemp, t_trace::lgOTSBug, t_optimize::lgParallel, t_plotCom::lgPlotON, t_plotCom::lgPltTrace, t_trace::lgPointBug, t_thermal::lgPredNextTe, t_pressure::lgPres_magnetic_ON, t_pressure::lgPres_radiation_ON, t_pressure::lgPres_ram_ON, t_pressure::lgPressureInitialSpecified, t_prt::lgPrintColumns, t_prt::lgPrintFluxEarth, t_prt::lgPrintHeating, t_prt::lgPrintTime, t_prt::lgPrnAges, t_prt::lgPrnColl, t_prt::lgPrnDiff, t_prt::lgPrnHeat, t_prt::lgPrnInwd, t_prt::lgPrnLineCell, t_prt::lgPrnPump, t_prt::lgPrtArry, t_prt::lgPrtCont, t_prt::lgPrtContIndices, t_prt::lgPrtLastIt, t_prt::lgPrtLineArray, t_prt::lgPrtLineEmergent, t_prt::lgPrtLineLog, t_prt::lgPrtMaser, t_prt::lgPrtShort, t_prt::lgPrtStart, t_prt::lgPrtTau, t_trace::lgPtrace, t_punch::lgPunchEveryZone, t_punch::lgPunContinuum, t_trace::lgSecIon, t_prt::lgSortLines, t_prt::lgSourceReflected, t_prt::lgSourceTransmitted, t_rt::lgStarkON, t_StopCalc::lgStop21cm, t_prt::lgSurfaceBrightness, t_prt::lgSurfaceBrightness_SR, t_thermal::lgTeBD96, t_thermal::lgTeHigh, t_thermal::lgTemperatureConstant, t_thermal::lgTemperatureConstantCommandParsed, t_thermal::lgTeSN99, t_thermal::lgTLaw, t_trace::lgTr8446, t_trace::lgTr_CO_Mole, t_trace::lgTr_H2_Mole, t_trace::lgTrace, t_trace::lgTrace3Bod, t_punch::lgTraceConvergeBaseHash, t_trace::lgTrDiff, t_trace::lgTrGant, t_trace::lgTrLevN, t_trace::lgTrLine, t_optimize::lgTrOpt, t_trace::lgTrOvrd, t_hextra::lgTurbHeatVaryTime, t_wind::lgVelPos, t_trace::lgWind, t_wind::lgWindOK, LIMELM, LIMPUN, LINE_CONT_SHIELD_FEDERMAN, t_hcmap::MapZone, mole, t_optimize::ncobs, t_punch::ncPunchSkip, NDPLOT, t_h2::nElecLevelOutput, t_emission::next, NFUDGC, t_fudgec::nfudge, t_mole::nH2_TRACE, NISO, t_optimize::nIterOptim, t_rt::nLineContShield, t_optimize::nlobs, t_hcmap::nMapStep, noexec, t_prt::nPrnLineCell, t_trace::npsbug, t_abund::npSolar, t_punch::npunch, t_punch::nPunchEveryZone, t_optimize::nRangeSet, t_prt::nstart, t_StopCalc::nstpl, t_optimize::nTempObs, t_StopCalc::nTotalIonizStop, t_trace::nTrConvg, t_prt::nzdump, t_trace::nznbug, t_emission::opacity, t_optimize::OptGlobalErr, t_optimize::optier, optimize, t_optimize::optint, phycon, plotCom, pressure, t_pressure::PressureInitialSpecified, prt, t_prt::PrtTauFnt, punch, t_punch::PunchLWidth, t_hcmap::RangeMap, rt, t_abund::ScaleElement, t_abund::solar, t_abund::SolarSave, SPEEDLIGHT, StopCalc, t_StopCalc::StopDepleteFrac, t_StopCalc::StopElecDensity, t_StopCalc::StopElecFrac, t_StopCalc::StopH2MoleFrac, t_StopCalc::StopHPlusFrac, t_StopCalc::StopVelocity, t_StopCalc::T2High, t_StopCalc::tauend, t_StopCalc::taunu, t_StopCalc::TeFloor, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_STOP_DEFAULT, t_StopCalc::tend, thermal, t_prt::TooFaint, trace, t_emission::tran, t_hextra::TurbHeat, t_punch::WeakHeatCool, wind, t_wind::windv, t_wind::windv0, and t_StopCalc::xMass.

Referenced by cloudy(), and grid_do().

Here is the call graph for this function:

void InitSimPostparse ( void   ) 

initialize values at start of simulation, called after parser, sets initial or zero values at start of each sim in grid

Definition at line 20 of file init_sim_postparse.cpp.

References t_wind::AccelGravity, CO_create_react(), CO_Init(), CO_zero(), t_wind::comass, DEBUG_ENTRY, t_wind::DiskRadius, GRAV_CONST, Heavy, ioQQQ, ipHYDROGEN, t_wind::lgDisk, t_trace::lgTrace, t_thermal::lgUnstable, t_trace::lgWind, LIMELM, t_thermal::nUnstable, POW2, radius, t_radius::Radius, SOLAR_MASS, thermal, t_thermal::thist, t_thermal::tlowst, TorF(), trace, wind, and t_Heavy::xLyaHeavy.

Referenced by cloudy().

Here is the call graph for this function:

void zero ( void   ) 

zero actively zero out or initialize variables needed for model calculation this is the old one and should be removed - its vars moved into those above

Todo:
2 change this to CS_new

Todo:
2 should iso.ipLyaRedist[ipHE_LIKE] use ipLY_A as does H-like?

Todo:
2 file opacities are disabled for now - reinstate this when arrays settle down

option to set proton elimination rates to zero >>refer CO chemistry Huntress, W. T., 1977, ApJS, 33, 495 By default, this is false - changed with set chemistry command

option to not include neutrals in the non-equilibrium scheme >> refer Federman, S. R. & Zsargo, J. 2003, ApJ, 589, 319 By default, this is false - changed with set chemistry command

HeatH2Dexc_used is heating due to collisional deexcitation of vib-excited H2 actually used

these are derivative wrt temp for collisional processes within X

the Solomon process rate H2 dissociates into X continuum - actually used

set_NaN( hmi.H2_Solomon_dissoc_rate_used );

H2 + hnu => 2H from TH85

H2 + hnu => 2H actually used

Definition at line 61 of file zero.cpp.

References AbundancesZero(), t_geometry::AngleIllumRadian, t_conv::autocv, t_conv::AverEdenError, t_conv::AverHeatCoolError, t_conv::AverPressError, t_timesc::BigCOMoleForm, t_conv::BigEdenError, t_conv::BigHeatCoolError, t_conv::BigPressError, t_CoolHeavy::brems_cool_h, t_CoolHeavy::brems_cool_net, carb, t_LineSave::chNormLab, t_conv::chSolverEden, t_conv::chSolverTemp, t_iso::chTypeAtomSet, t_iso::chTypeAtomUsed, t_hydro::cintot, t_timesc::CloudAgeSet, co, t_co::COCoolBigFrac, t_co::codfrc, t_co::CODissHeat, t_co::codtot, t_CoolHeavy::colmet, continuum, conv, CoolHeavy, t_geometry::covgeo, t_geometry::covrt, DEBUG_ENTRY, t_geometry::DirectionalCosin, t_conv::EdenErrorAllowed, t_continuum::EnergyKshell, FeIIZero(), t_geometry::FillFac, t_geometry::filpow, t_geometry::fiscal, geometry, H2_Init(), t_hydro::HCollIonMax, t_conv::HeatCoolRelErrorAllowed, hmole_init(), hydro, hyperfine, t_geometry::iEmissPower, Singleton< T >::Inst(), ionbal, ipH_LIKE, ipHYDROGEN, t_LineSave::ipNormWavL, iso, t_iterations::iter_malloc, iteration, iterations, t_iterations::itermx, t_iterations::IterPrnt, lgAbort, t_conv::lgAutoIt, t_co::lgCOCoolCaped, t_continuum::lgCon0, t_conv::lgConvEden, t_iterations::lgConverge_set, t_conv::lgConvPres, t_conv::lgConvTemp, t_continuum::lgCoStarInterpolationCaution, t_geometry::lgEndDflt, lgFirstCall, t_CoolHeavy::lgFreeOn, t_state::lgGet_state, t_hydro::lgHiPop2, t_conv::lgLevel2_Cool_Imp, t_conv::lgLevel2_OTS_Imp, t_LineSave::lgLineEmergent, t_hyperfine::lgLya_pump_21cm, t_conv::lgMap, t_co::lgNoCOMole, t_LineSave::lgNormSet, t_NumDeriv::lgNumDeriv, t_state::lgPut_state, t_hydro::lgReevalRecom, t_geometry::lgSphere, t_state::lgState_print, t_geometry::lgStatic, t_geometry::lgStaticNoIt, t_ionbal::lgTrimhiOn, t_geometry::lgZoneSet, t_geometry::lgZoneTrp, LIMELM, t_conv::LimFail, LineSave, Magnetic_init(), MALLOC, t_geometry::nend, t_geometry::nEndDflt, NISO, t_conv::nPres2Ioniz, t_geometry::nprint, t_LineSave::nsum, t_conv::nTotalIoniz, NumDeriv, oxy, t_oxy::p1401, t_oxy::p1666, t_carb::p1909, t_carb::p2326, peimbt, PHFIT96, t_hydro::pop2mx, radius, t_continuum::ResolutionScaleFactor, t_radius::router, t_LineSave::ScaleNormLine, t_LineSave::sig_figs, t_timesc::sound_speed_isothermal, state, t_timesc::time_H2_Dest_here, t_timesc::time_H2_Dest_longest, t_timesc::time_H2_Form_here, t_timesc::time_H2_Form_longest, t_timesc::TimeH21cm, timesc, t_ionbal::trimhi, t_ionbal::trimlo, t_peimbt::tsqden, t_LineSave::WavLNorm, and wcnint().

Referenced by cdInit(), hypho(), and optimize_func().

Here is the call graph for this function:


Generated on Mon Feb 16 12:07:30 2009 for cloudy by  doxygen 1.4.7