/home66/gary/public_html/cloudy/c10_branch/source/iter_startend.cpp File Reference

#include "cddefines.h"
#include "cddrive.h"
#include "physconst.h"
#include "iso.h"
#include "taulines.h"
#include "hydrogenic.h"
#include "struc.h"
#include "dynamics.h"
#include "prt.h"
#include "hyperfine.h"
#include "dense.h"
#include "magnetic.h"
#include "continuum.h"
#include "geometry.h"
#include "h2.h"
#include "he.h"
#include "grains.h"
#include "atomfeii.h"
#include "pressure.h"
#include "stopcalc.h"
#include "conv.h"
#include "mean.h"
#include "ca.h"
#include "thermal.h"
#include "atoms.h"
#include "wind.h"
#include "opacity.h"
#include "timesc.h"
#include "trace.h"
#include "colden.h"
#include "secondaries.h"
#include "hmi.h"
#include "radius.h"
#include "phycon.h"
#include "called.h"
#include "mole.h"
#include "rfield.h"
#include "ionbal.h"
#include "atmdat.h"
#include "lines.h"
#include "molcol.h"
#include "input.h"
#include "rt.h"
#include "iterations.h"
#include "cosmology.h"
Include dependency graph for iter_startend.cpp:

Go to the source code of this file.

Functions

void IterStart (void)
void IterRestart (void)
void IterEnd (void)

Variables

static double h2plus_heat_save
static double HeatH2Dish_used_save
static double HeatH2Dexc_used_save
static double hmihet_save
static double hmitot_save
static double H2_Solomon_dissoc_rate_used_H2g_save
static double deriv_HeatH2Dexc_used_save
static double H2_Solomon_dissoc_rate_used_H2s_save
static double H2_H2g_to_H2s_rate_used_save
static double H2_photodissoc_used_H2s_save
static double H2_photodissoc_used_H2g_save
static double UV_Cont_rel2_Draine_DB96_face
static double UV_Cont_rel2_Draine_DB96_depth
static double UV_Cont_rel2_Habing_TH85_face
static double ** saveMoleSource
static double ** saveMoleSink
static realnum *** SaveMoleChTrRate
static realnum xIonFsave [LIMELM+3][LIMELM+1]
static double HeatSave [LIMELM][LIMELM]
static realnum supsav [LIMELM][LIMELM]
static realnum p2nit
static realnum d5200r
static double drSave
static double drNextSave
static long int IonLowSave [LIMELM]
static long int IonHighSave [LIMELM]
static bool lgHNSAV = false
static double *** HOpacRatSav
static realnum H_sum_in_CO_save
static realnum hmsav [N_H_MOLEC]
static double ortho_save
static double para_save
static double *** hnsav
static double edsav
static realnum xMolFracsSave [LIMELM]
static realnum gas_phase_save [LIMELM]

Function Documentation

void IterEnd ( void   ) 
void IterRestart ( void   ) 

IterRestart, reset values of many variables at start of iteration

Definition at line 843 of file iter_startend.cpp.

References abund, Wind::AccelAver, Wind::AccelMax, Wind::acldr, t_opac::albedo, t_rfield::anu, ASSERT, atoms, t_hmi::BiggestH2, called, t_input::chTitle, CMB_TEMP, t_continuum::cn1216, t_continuum::cn4861, t_colden::colden, colden, t_colden::coldenH2_ov_vel, COmole, t_ionbal::CompRecoilHeatRate, t_ionbal::CompRecoilHeatRateSave, t_ionbal::CompRecoilIonRate, t_ionbal::CompRecoilIonRateSave, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConInterOut, t_iso::ConOpacRatio, t_rfield::ConOTS_local_OTS_rate, t_rfield::ConOTS_local_photons, t_rfield::ConRefIncid, t_thermal::ConstTemp, continuum, t_rfield::convoc, cosmology, t_secondaries::csupra, d5200r, t_atoms::d5200r, DEBUG_ENTRY, dense, t_hmi::deriv_HeatH2Dexc_used, deriv_HeatH2Dexc_used_save, t_rfield::DiffuseEscape, t_geometry::DirectionalCosin, t_radius::drad, t_radius::drad_mid_zone, t_radius::drNext, drNextSave, drSave, DynaIterEnd(), dynamics, e2(), t_opac::E2TauAbsFace, t_opac::E2TauAbsOut, t_dense::eden, t_dense::EdenHCorr, t_dense::EdenTrue, edsav, t_rfield::EnergyBremsThin, t_opac::ExpmTau, t_opac::ExpZone, t_rfield::extin_mag_B_extended, t_rfield::extin_mag_B_point, t_rfield::extin_mag_V_extended, t_rfield::extin_mag_V_point, FeIIReset(), t_rfield::flux, t_rfield::flux_beam_const, t_rfield::flux_beam_const_save, t_rfield::flux_beam_time, t_rfield::flux_isotropic, t_rfield::flux_isotropic_save, t_rfield::flux_time_beam_save, t_thermal::FreeFreeTotHeat, t_dense::gas_phase, gas_phase_save, geometry, t_radius::glbdst, GrainRestartIter(), h2, t_hmi::H2_H2g_to_H2s_rate_used, H2_H2g_to_H2s_rate_used_save, t_hmi::H2_photodissoc_used_H2g, H2_photodissoc_used_H2g_save, t_hmi::H2_photodissoc_used_H2s, H2_photodissoc_used_H2s_save, H2_Reset(), t_hmi::H2_Solomon_dissoc_rate_used_H2g, H2_Solomon_dissoc_rate_used_H2g_save, t_hmi::H2_Solomon_dissoc_rate_used_H2s, H2_Solomon_dissoc_rate_used_H2s_save, t_hmi::H2_total, t_hmi::h2plus_heat, h2plus_heat_save, t_dense::H_sum_in_CO, H_sum_in_CO_save, t_colden::He123S, t_secondaries::HeatEfficPrimary, t_hmi::HeatH2Dexc_used, HeatH2Dexc_used_save, t_hmi::HeatH2Dish_used, HeatH2Dish_used_save, t_thermal::heating, HeatSave, t_secondaries::hetsav, molecule::hevcol, molecule::hevmol, molecule::hevmol_save, hmi, t_hmi::hmihet, hmihet_save, t_hmi::hmitot, hmitot_save, t_hmi::Hmolec, hmsav, hnsav, HOpacRatSav, input, t_pressure::IntegRhoGravity, ionbal, t_dense::IonHigh, IonHighSave, t_dense::IonLow, IonLowSave, ioQQQ, t_rfield::ipEnergyBremsThin, ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipMH2g, ipMH2s, isnan, iso, iteration, lgAbort, t_dynamics::lgAdvection, t_cosmology::lgDo, t_radius::lgDrMinUsed, t_dense::lgElmtOn, t_trace::lgNeBug, t_pressure::lgPradCap, t_pressure::lgPradDen, t_pressure::lgSonicPoint, t_pressure::lgStrongDLimbo, t_called::lgTalk, t_thermal::lgTemperatureConstant, t_thermal::lgTemperatureConstantCommandParsed, t_trace::lgTrace, t_trace::lgTrOvrd, t_thermal::lgUnstable, t_rfield::lgUSphON, Wind::lgVelPos, LIMELM, Magnetic_reinit(), MAX2, mole, N_H_MOLEC, NCOLD, NISO, t_trace::npsbug, t_trace::nTrConvg, t_mole::num_comole_calc, t_iso::numLevels_max, t_thermal::nUnstable, t_rfield::nupper, t_trace::nznbug, t_rfield::OccNumbBremsCont, t_rfield::OccNumbContEmitOut, t_rfield::OccNumbDiffCont, t_rfield::OccNumbIncidCont, t_opac::OldOpacSave, opac, t_opac::opacity_abs, t_opac::opacity_abs_savzon1, t_opac::opacity_sct, t_opac::opacity_sct_savzon1, t_h2::ortho_density, ortho_save, t_rfield::otscon, t_rfield::otslin, t_rfield::otssav, t_rfield::outlin, t_rfield::outlin_noplot, p2nit, t_atoms::p2nit, t_h2::para_density, para_save, t_pressure::pbeta, t_pressure::pinzon, pow(), t_pressure::PresInteg, t_pressure::PresIntegElecThin, pressure, t_pressure::RadBetaMax, radius, t_cosmology::redshift_current, t_cosmology::redshift_start, t_rfield::reflin, rfield, t_pressure::RhoGravity, t_pressure::RhoGravity_dark, t_pressure::RhoGravity_external, t_pressure::RhoGravity_self, RT_OTS_Update(), t_secondaries::savefi, SaveMoleChTrRate, saveMoleSink, saveMoleSource, t_secondaries::SecIon2PrimaryErg, secondaries, sexp(), t_mole::sink, SMALLFLOAT, t_abund::solar, t_mole::source, StatesElemNEW, t_opac::stimax, StopCalc, t_rfield::SummedCon, t_rfield::SummedDif, t_rfield::SummedDifSave, supsav, t_continuum::sv1216, t_continuum::sv4861, t_opac::TauAbsFace, t_opac::TauAbsTotal, TE1RYD, t_StopCalc::TeFloor, thermal, t_rfield::time_continuum_scale, t_opac::tmn, t_continuum::TotalLumin, t_continuum::totlsv, trace, t_rfield::trans_coef_total, t_rfield::trans_coef_zone, UV_Cont_rel2_Draine_DB96_depth, t_hmi::UV_Cont_rel2_Draine_DB96_depth, UV_Cont_rel2_Draine_DB96_face, t_hmi::UV_Cont_rel2_Draine_DB96_face, UV_Cont_rel2_Habing_TH85_face, t_hmi::UV_Cont_rel2_Habing_TH85_face, wind, Wind::windv, Wind::windv0, t_secondaries::x12sav, t_secondaries::x12tot, t_dense::xIonDense, xIonFsave, t_mole::xMoleChTrRate, t_dense::xMolecules, molecule::xMoleFracMax, and xMolFracsSave.

Referenced by cloudy().

Here is the call graph for this function:

void IterStart ( void   ) 

IterStart, set and save values of many variables at start of iteration

Definition at line 89 of file iter_startend.cpp.

References Wind::AccelAver, Wind::acldr, t_timesc::AgeCOMoleDest, t_colden::ajmmin, ASSERT, atmdat, atoms, t_timesc::BigCOMoleForm, BIGFLOAT, BOLTZMANN, t_colden::C1Colden, t_colden::C1Pops, t_colden::C2Colden, t_colden::C2Pops, t_colden::C3Colden, t_colden::C3Pops, called, cdEXIT, cdLine(), t_tag_LineSv::chALab, t_LineSave::chNormLab, t_StopCalc::chReasonStop, t_StopCalc::chStopLabel1, t_StopCalc::chStopLabel2, t_hydro::cintot, co, t_co::codfrc, t_co::codtot, t_colden::colden, colden, t_colden::coldenH2_ov_vel, COmole, t_ionbal::CompRecoilHeatRate, t_ionbal::CompRecoilHeatRateSave, t_ionbal::CompRecoilIonRate, t_ionbal::CompRecoilIonRateSave, t_rfield::comtot, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConInterOut, t_iso::ConOpacRatio, t_rfield::ConOTS_local_OTS_rate, t_rfield::ConOTS_local_photons, conv, t_hmi::CoolH2DexcMax, t_thermal::CoolHeatMax, t_hyperfine::cooling_max, t_dynamics::CoolMax, t_species::CoolTotal, t_secondaries::csupra, t_thermal::ctot, t_atoms::d5200r, d5200r, dBaseLines, t_conv::dCmHdT, DEBUG_ENTRY, dense, t_hmi::deriv_HeatH2Dexc_used, deriv_HeatH2Dexc_used_save, t_rfield::DiffuseEscape, t_geometry::DirectionalCosin, t_colden::dlnenCp, t_colden::dlnenHep, t_colden::dlnenHepp, t_colden::dlnenp, t_radius::dr_max_last_iter, t_radius::dr_min_last_iter, t_radius::drad, t_radius::drad_x_fillfac, t_radius::drNext, drNextSave, drSave, DynaIterStart(), dynamics, e2(), t_opac::E2TauAbsFace, t_dense::eden, t_dense::EdenMax, t_dense::EdenMin, edsav, transition::Emis, t_tag_LineSv::emslin, t_rfield::EnergyBremsThin, t_opac::ExpmTau, t_opac::ExpZone, t_rfield::extin_mag_B_extended, t_rfield::extin_mag_B_point, t_rfield::extin_mag_V_extended, t_rfield::extin_mag_V_point, t_conv::failmx, t_hydro::fbul, t_he::frac_he0dest_23S, t_he::frac_he0dest_23S_photo, t_hydro::FracInd, t_thermal::FreeFreeTotHeat, t_dense::gas_phase, gas_phase_save, t_thermal::GBarMax, geometry, GrainStartIter(), t_colden::H0_21cm_lower, t_colden::H0_21cm_upper, t_colden::H0_ov_Tspin, h2, t_hmi::H2_H2g_to_H2s_rate_used, H2_H2g_to_H2s_rate_used_save, t_hmi::H2_photodissoc_used_H2g, H2_photodissoc_used_H2g_save, t_hmi::H2_photodissoc_used_H2s, H2_photodissoc_used_H2s_save, t_hmi::H2_Solomon_dissoc_rate_used_H2g, H2_Solomon_dissoc_rate_used_H2g_save, t_hmi::H2_Solomon_dissoc_rate_used_H2s, H2_Solomon_dissoc_rate_used_H2s_save, t_hmi::h2dfrc, t_hmi::h2dtot, t_hmi::h2line_cool_frac, t_hmi::h2plus_heat, h2plus_heat_save, t_hmi::h2pmax, t_dense::H_sum_in_CO, H_sum_in_CO_save, t_atmdat::HCharCoolMax, t_atmdat::HCharHeatMax, t_hydro::HCollIonMax, he, t_colden::He123S, t_secondaries::HeatEfficPrimary, t_hmi::HeatH2Dexc_used, HeatH2Dexc_used_save, t_hmi::HeatH2DexcMax, t_hmi::HeatH2Dish_used, HeatH2Dish_used_save, t_thermal::heating, t_thermal::HeatLineMax, t_dynamics::HeatMax, HeatSave, t_secondaries::hetsav, molecule::hevcol, molecule::hevmol, molecule::hevmol_save, t_atmdat::HIonFracMax, hmi, t_hmi::hmihet, hmihet_save, t_hmi::hmitot, hmitot_save, t_hmi::Hmolec, hmsav, hnsav, HOpacRatSav, HS_NZ, hydro, hyperfine, t_ionbal::ifail, t_ionbal::ihthn, t_ionbal::ilt, t_ionbal::ilthn, t_ionbal::iltln, Singleton< t_fe2ovr_la >::Inst(), ionbal, t_dense::IonHigh, IonHighSave, t_dense::IonLow, IonLowSave, ioQQQ, t_LineSave::ipass, t_rfield::ipEnergyBremsThin, ipH2p, ipH_LIKE, ipHYDROGEN, t_LineSave::ipNormWavL, ipRecNetEsc, ipRecRad, t_StopCalc::ipStopLin1, t_StopCalc::ipStopLin2, iso, iteration, iterations, t_iterations::itermx, t_iterations::IterPrnt, lgAbort, t_dynamics::lgAdvection, t_opac::lgCaseB, t_dense::lgElmtOn, t_atmdat::lgHCaseBOK, t_hydro::lgHiPop2, lgHNSAV, t_iterations::lgLastIt, t_rt::lgMaserCapHit, t_rt::lgMaserSetDR, t_LineSave::lgNormSet, t_trace::lgOptcBug, t_pressure::lgPradCap, t_pressure::lgPradDen, t_prt::lgPrtLastIt, t_prt::lgPrtStart, t_pressure::lgSonicPoint, t_pressure::lgStrongDLimbo, t_called::lgTalk, t_called::lgTalkForcedOff, t_called::lgTalkSave, t_trace::lgTrace, t_thermal::lgUnstable, t_geometry::lgZoneTrp, LIMELM, lines(), linesAdded2, LineSave, LineSv, LineSvSortWL, MALLOC, mean, t_mean::MeanZero(), molcol(), mole, N_H_MOLEC, N_OI_LEVELS, t_hydro::nbul, NCOLD, t_hydro::ndclev, t_conv::nGrainFail, t_conv::nIonFail, NISO, nLevel1, t_hydro::nLyaHot, t_conv::nNeFail, t_atoms::nNegOI, t_conv::nPopFail, t_conv::nPreFail, t_geometry::nprint, nSpecies, t_StopCalc::nstpl, t_LineSave::nsum, t_LineSave::nsumAllocated, t_conv::nTeFail, t_conv::nTotalFailures, t_mole::num_comole_calc, t_species::numLevels_local, t_species::numLevels_max, t_iso::numLevels_max, t_thermal::nUnstable, t_rfield::nupper, t_he::nzone, t_colden::O1Colden, t_colden::O1Pops, t_colden::OH_ov_Tspin, opac, t_opac::opacity_abs, t_opac::opacity_abs_savzon1, t_opac::opacity_sct, t_opac::opacity_sct_savzon1, t_h2::ortho_colden, t_h2::ortho_density, ortho_save, t_rfield::otscon, t_rfield::otslin, t_rfield::otssav, t_rfield::outlin, t_rfield::outlin_noplot, t_atoms::p2nit, p2nit, t_h2::para_colden, t_h2::para_density, para_save, t_pressure::pbeta, t_dense::pden, t_emission::Pesc, phycon, t_pressure::pinzon, t_hydro::pop2mx, t_iso::PopLTE, t_atoms::popoi, t_thermal::power, t_pressure::PresInteg, t_pressure::PresIntegElecThin, pressure, PresTotCurrent(), prt, t_rfield::qtot, t_pressure::RadBetaMax, radius, t_iso::RadRecomb, t_iso::RecomInducRate, rfield, t_colden::rjnmin, rt, t_secondaries::savefi, SaveMoleChTrRate, saveMoleSink, saveMoleSource, SDIV(), t_secondaries::SecHIonMax, t_secondaries::SecIon2PrimaryErg, secondaries, sexp(), t_colden::Si2Colden, t_colden::Si2Pops, t_mole::sink, t_iso::SmallA, t_timesc::sound, t_mole::source, Species, StatesElemNEW, StopCalc, t_StopCalc::StopLineWl1, t_StopCalc::StopLineWl2, t_tag_LineSv::SumLine, t_rfield::SummedDif, t_rfield::SummedDifSave, supsav, t_opac::TauAbsFace, t_emission::TauIn, TauLines, t_opac::taumin, t_opac::TauScatFace, t_emission::TauTot, t_timesc::tcmptn, t_phycon::te, thermal, t_thermal::thist, 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::time_therm_long, t_timesc::TimeH21cm, timesc, t_thermal::tlowst, t_hydro::TLyaMax, t_colden::tmas, t_thermal::totcol, t_colden::TotMassColl, trace, Transitions, t_iso::TwoNu_induc_dn_max, t_hmi::UV_Cont_rel2_Draine_DB96_depth, UV_Cont_rel2_Draine_DB96_depth, t_hmi::UV_Cont_rel2_Draine_DB96_face, UV_Cont_rel2_Draine_DB96_face, t_hmi::UV_Cont_rel2_Habing_TH85_face, UV_Cont_rel2_Habing_TH85_face, t_tag_LineSv::wavelength, t_LineSave::WavLNorm, wind, t_colden::wmas, t_secondaries::x12sav, t_secondaries::x12tot, t_dense::xIonDense, xIonFsave, t_dense::xMassTotal, t_mole::xMoleChTrRate, t_dense::xMolecules, xMolFracsSave, and t_fe2ovr_la::zero_opacity().

Referenced by cloudy().

Here is the call graph for this function:


Variable Documentation

realnum d5200r [static]

Definition at line 64 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double deriv_HeatH2Dexc_used_save [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double drNextSave [static]

Definition at line 66 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double drSave [static]

Definition at line 66 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double edsav [static]

Definition at line 82 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 85 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double h2plus_heat_save [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 77 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double HeatH2Dexc_used_save [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double HeatH2Dish_used_save [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double HeatSave[LIMELM][LIMELM] [static]

Definition at line 63 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double hmihet_save [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double hmitot_save [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

realnum hmsav[N_H_MOLEC] [static]

Definition at line 79 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double*** hnsav [static]

Definition at line 82 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double*** HOpacRatSav [static]

Definition at line 76 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

long int IonHighSave[LIMELM] [static]

Definition at line 69 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

long int IonLowSave[LIMELM] [static]

Definition at line 69 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

bool lgHNSAV = false [static]

Definition at line 74 of file iter_startend.cpp.

Referenced by IterStart().

double ortho_save [static]

Definition at line 81 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

realnum p2nit [static]

Definition at line 64 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double para_save [static]

Definition at line 81 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 59 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double ** saveMoleSink [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

double ** saveMoleSource [static]

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 64 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 52 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

realnum xIonFsave[LIMELM+3][LIMELM+1] [static]

Definition at line 62 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

Definition at line 85 of file iter_startend.cpp.

Referenced by IterRestart(), and IterStart().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1