Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
conv_base.cpp File Reference
#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 "hmi.h"
#include "pressure.h"
#include "taulines.h"
#include "rt.h"
#include "grains.h"
#include "atmdat.h"
#include "ionbal.h"
#include "ion_trim.h"
#include "opacity.h"
#include "cooling.h"
#include "thermal.h"
#include "iso.h"
#include "conv.h"
#include "h2.h"
#include "deuterium.h"
#include "mole.h"
#include "rfield.h"
#include "dense.h"
#include "grid.h"
#include "random_crash.h"
Include dependency graph for conv_base.cpp:

Functions

STATIC bool lgNetEdenSrcSmall (void)
 
void UpdateUTAs (void)
 
void ConvBase (long loopi)
 

Function Documentation

◆ ConvBase()

void 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

Parameters
loopithis 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
Todo
0 PvH prefers test against err/10

References ASSERT, atmdat, atmdat_3body(), ChargTranEval(), ChargTranSumHeat(), conv, CoolEvaluate(), CoolSave(), DEBUG_ENTRY, molezone::den, dense, deut, diatoms, DumpLine(), DynaIonize(), dynamics, eden_sum(), elementnames, findspecies(), findspecieslocal(), fnzone, fp_equal(), fprintf(), GrainDrive(), grid, gv, HeatSum(), HeatZero(), highen(), hmi, ion_recom_calculate(), ion_trim(), ion_trim2(), ion_trim_from_set(), ion_trim_validate(), ion_widen(), ion_wrapper(), ionbal, ioQQQ, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipOXYGEN, iso_collapsed_update(), iso_multiplet_opacities(), iso_renorm(), iso_solve(), iso_sp, iso_update_rates(), iteration, lgConvBaseHeatTest, lgElemsConserved(), lgNetEdenSrcSmall(), lgStatesConserved(), LIMELM, MAX2, MIN2, mole, mole_dominant_rates(), mole_drive(), mole_global, mole_save(), mole_update_sources(), t_atmdat::NCX, NISO, NULL, nzone, opac, OpacityAddTotal(), phycon, PresTotCurrent(), RandomCrash(), rfield, RT_line_all_escape(), RT_OTS(), RT_OTS_PrtRate(), RT_OTS_Update(), save, SaveHeat(), SDIV(), SecIoniz(), secondaries, SetDeuteriumIonization(), SMALLFLOAT, thermal, TorF(), trace, UpdateUTAs(), x0, x1, and x2.

Referenced by ConvInitSolution(), ConvIoniz(), and ion_recombAGN().

Here is the call graph for this function:

◆ lgNetEdenSrcSmall()

STATIC bool lgNetEdenSrcSmall ( void )

References conv, DEBUG_ENTRY, dense, findspecies(), fixit, fprintf(), gv, molecule::index, ionbal, ioQQQ, LIMELM, mole, nzone, SDIV(), and STATIC.

Referenced by ConvBase().

Here is the call graph for this function:

◆ UpdateUTAs()

void UpdateUTAs ( void )

References conv, DEBUG_ENTRY, dense, fprintf(), ionbal, ioQQQ, LIMELM, and UTALines.

Referenced by ConvBase().

Here is the call graph for this function: