cloudy
trunk
|
#include "cddefines.h"
#include "dynamics.h"
#include "trace.h"
#include "elementnames.h"
#include "punch.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"
Go to the source code of this file.
Macros | |
#define | LOOP_ION_LIMIT 10 |
Functions | |
STATIC bool | lgIonizConverg (long int nelem, double delta, bool lgPrint) |
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 139 of file conv_base.cpp.
References ASSERT, atmdat_3body(), atmdat_DielSupres(), t_conv::BadConvIoniz, t_thermal::char_tran_cool, t_thermal::char_tran_heat, ChargTranEval(), ChargTranSumHeat(), t_conv::chConvIoniz, t_elementnames::chElementSym, t_punch::chHashString, t_hmi::chLab, co, CO_drive(), CO_update_rks(), CO_update_species_cache(), t_transition::Coll, COmole, t_co::comole_eden, molecule::comole_save, conv, CoolEvaluate(), t_collision::cs, t_secondaries::csupra, t_thermal::ctot, DEBUG_ENTRY, dense, DumpLine(), DynaIonize(), dynamics, t_dense::eden, eden_sum(), t_conv::EdenErrorAllowed, t_dense::EdenTrue, elementnames, t_transition::Emis, fixit(), fnzone, fp_equal(), t_dense::gas_phase, GrainDrive(), gv, t_hmi::H2_total, t_conv::HeatCoolRelErrorAllowed, HeatSum(), HeatZero(), molecule::hevmol, t_transition::Hi, highen(), hmi, hmole_reactions(), t_hmi::Hmolec, t_thermal::htot, ion_recom_calculate(), ion_trim(), IonAlumi(), IonArgon(), ionbal, IonBeryl(), IonBoron(), IonCalci(), IonCarbo(), IonChlor(), IonChrom(), IonCobal(), IonCoppe(), IonFluor(), IonHelium(), t_dense::IonHigh, IonIron(), IonLithi(), t_dense::IonLow, IonMagne(), IonManga(), IonNeon(), IonNicke(), IonNitro(), IonOxyge(), IonPhosi(), IonPotas(), IonScand(), IonSilic(), IonSodiu(), t_quantumState::IonStg, IonSulph(), IonTitan(), IonVanad(), IonZinc(), ioQQQ, t_punch::ipDRout, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipMHm, t_punch::ipTraceConvergeBase, iso_solve(), iteration, molecule::label, lgAbort, t_dynamics::lgAdvection, t_conv::lgConvIoniz, t_dense::lgElmtOn, t_ionbal::lgInnerShellLine_on, lgIonizConverg(), t_rfield::lgIonizReevaluate, t_conv::lgIonStageTrimed, t_rfield::lgOpacityReevaluate, t_opac::lgOpacStatic, t_conv::lgOscilOTS, t_trace::lgOTSBug, t_opac::lgRedoStatic, t_conv::lgSearch, t_dense::lgSetIoniz, t_thermal::lgTemperatureConstant, t_trace::lgTrace, t_punch::lgTraceConvergeBase, t_punch::lgTraceConvergeBaseHash, LIMELM, t_conv::limPres2Ioniz, LOOP_ION_LIMIT, MAX2, mole, N_H_MOLEC, t_quantumState::nelem, molecule::nelem_hevmol, NISO, t_co::nitro_dissoc_rate, t_conv::nPres2Ioniz, t_conv::nTotalIoniz, t_StopCalc::nTotalIonizStop, t_trace::nTrConvg, t_mole::num_comole_calc, nUTA, nzone, opac, t_opac::opacity_abs, OpacityAddTotal(), t_emission::ots, phycon, PresTotCurrent(), t_emission::pump, punch, rfield, RT_line_all(), RT_OTS(), RT_OTS_PrtRate(), RT_OTS_Update(), SDIV(), t_secondaries::sec2total, secondaries, t_dense::SetIoniz, SMALLFLOAT, StatesElem, StopCalc, TauLines, t_phycon::te, t_thermal::te_update, thermal, TorF(), t_gv::TotalEden, trace, Transitions, t_ionbal::UTA_heat_rate, t_ionbal::UTA_ionize_rate, UTALines, t_dense::xIonDense, and t_dense::xMolecules.
Referenced by ConvInitSolution(), ConvIoniz(), and ion_recombAGN().
STATIC bool lgIonizConverg | ( | long int | nelem, |
double | delta, | ||
bool | lgPrint | ||
) |
Definition at line 34 of file conv_base.cpp.
References ASSERT, t_conv::BadConvIoniz, conv, DEBUG_ENTRY, dense, t_dense::gas_phase, ioQQQ, t_dense::lgElmtOn, LIMELM, MAX2, t_conv::nPres2Ioniz, TorF(), and t_dense::xIonDense.
Referenced by ConvBase().