#include "cddefines.h"
#include "dynamics.h"
#include "trace.h"
#include "elementnames.h"
#include "save.h"
#include "phycon.h"
#include "secondaries.h"
#include "stopcalc.h"
#include "grainvar.h"
#include "highen.h"
#include "dense.h"
#include "hmi.h"
#include "rfield.h"
#include "pressure.h"
#include "taulines.h"
#include "rt.h"
#include "grains.h"
#include "atmdat.h"
#include "ionbal.h"
#include "opacity.h"
#include "cooling.h"
#include "thermal.h"
#include "mole.h"
#include "iso.h"
#include "conv.h"
#include "h2.h"
#include "deuterium.h"
Go to the source code of this file.
Defines | |
#define | LOOP_ION_LIMIT 10 |
Functions | |
STATIC bool | lgNetEdenSrcSmall (void) |
void | UpdateUTAs (void) |
int | ConvBase (long loopi) |
#define LOOP_ION_LIMIT 10 |
Referenced by ConvBase().
int ConvBase | ( | long | loopi | ) |
ConvBase main routine to drive ionization solution for all species, find total opacity called by ConvIoniz/ lgConverg check whether ionization of element nelem has converged
loopi | this tells how many times ConvBase has been called by ConvIoniz while trying to converge electron density == 0 on first call - allows logic in ConvBase to check for ots oscillations |
Definition at line 163 of file conv_base.cpp.
References ASSERT, atmdat_3body(), t_thermal::char_tran_cool, t_thermal::char_tran_heat, ChargTranEval(), ChargTranSumHeat(), t_conv::chConvIoniz(), t_save::chHashString, conv, CONV_BASE_ACCELS, CONV_BASE_CALLS, CONV_BASE_LOOPS, CoolEvaluate(), t_secondaries::csupra, t_thermal::ctot, DEBUG_ENTRY, molezone::den, dense, deut, diatoms, DumpLine(), DynaIonize(), dynamics, t_dense::eden, eden_sum(), t_conv::EdenErrorAllowed, t_dense::EdenTrue, t_mole_local::elec, findspecieslocal(), fixit(), fnzone, fp_equal(), t_dense::gas_phase, GrainDrive(), gv, t_hmi::H2_total, t_conv::HeatCoolRelErrorAllowed, HeatSum(), HeatZero(), highen(), hmi, t_thermal::htot, t_conv::incrementCounter(), INPUT_LINE_LENGTH, ion_recom_calculate(), ion_trim(), ion_wrapper(), t_dense::IonHigh, t_conv::IonizErrorAllowed, t_dense::IonLow, ioQQQ, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipNICKEL, t_save::ipTraceConvergeBase, iso_collapsed_update(), iso_renorm(), iso_sp, iso_update_rates(), iteration, lgAbort, t_dynamics::lgAdvection, t_conv::lgConvIoniz(), lgElemsConserved(), t_deuterium::lgElmtOn, t_dense::lgElmtOn, t_conv::lgFirstSweepThisZone, GrainVar::lgGrainElectrons, t_rfield::lgIonizReevaluate, t_conv::lgIonStageTrimed, lgNetEdenSrcSmall(), t_rfield::lgOpacityReevaluate, t_opac::lgOpacStatic, t_conv::lgOscilOTS, t_trace::lgOTSBug, t_opac::lgRedoStatic, t_conv::lgSearch, t_dense::lgSetIoniz, lgStatesConserved(), t_thermal::lgTemperatureConstant, t_trace::lgTrace, t_save::lgTraceConvergeBase, t_save::lgTraceConvergeBaseHash, t_conv::lgUpdateCouplings, t_conv::limPres2Ioniz, t_mole_global::list, LOOP_ION_LIMIT, MAX2, mole, mole_drive(), mole_global, mole_update_sources(), NISO, t_conv::nPres2Ioniz, t_conv::nTotalIoniz, t_StopCalc::nTotalIonizStop, t_trace::nTrConvg, t_mole_global::num_calc, nzone, opac, t_opac::opacity_abs, OpacityAddTotal(), phycon, PresTotCurrent(), t_conv::resetConvIoniz(), rfield, RT_line_all(), RT_OTS(), RT_OTS_PrtRate(), RT_OTS_Update(), save, SDIV(), t_secondaries::sec2total, secondaries, t_conv::setConvIonizFail(), SetDeuteriumIonization(), t_dense::SetIoniz, SMALLFLOAT, t_mole_local::species, t_iso_sp::st, StopCalc, TauLines, t_phycon::te, t_thermal::te_update, thermal, TorF(), GrainVar::TotalEden, trace, UpdateUTAs(), x0, x1, x2, t_deuterium::xIonDense, t_dense::xIonDense, and t_dense::xNucleiTotal.
Referenced by ConvInitSolution(), ConvIoniz(), and ion_recombAGN().
STATIC bool lgNetEdenSrcSmall | ( | void | ) |
Definition at line 1096 of file conv_base.cpp.
References conv, DEBUG_ENTRY, dense, t_dense::EdenTrue, t_ionbal::elecsnk, t_ionbal::elecsrc, findspecies(), fixit(), GrainVar::GrainChTrRate, gv, molecule::index, ionbal, ioQQQ, GrainVar::lgDustOn(), t_dense::lgElmtOn, t_conv::lgSearch, mole, nzone, SDIV(), t_conv::setConvIonizFail(), t_mole_local::species, and t_dense::xIonDense.
Referenced by ConvBase().
void UpdateUTAs | ( | void | ) |
Definition at line 1049 of file conv_base.cpp.
References conv, DEBUG_ENTRY, dense, TransitionList::Emis(), ionbal, ioQQQ, t_conv::lgFirstSweepThisZone, t_ionbal::lgInnerShellLine_on, nUTA, t_ionbal::UTA_heat_rate, t_ionbal::UTA_ionize_rate, UTALines, and t_dense::xIonDense.
Referenced by ConvBase().