cloudy trunk
Loading...
Searching...
No Matches
dense.cpp File Reference
#include "cddefines.h"
#include "dense.h"
#include "abund.h"
#include "colden.h"
#include "conv.h"
#include "dynamics.h"
#include "elementnames.h"
#include "deuterium.h"
#include "hmi.h"
#include "h2.h"
#include "mole.h"
#include "mole_priv.h"
#include "phycon.h"
#include "prt.h"
#include "radius.h"
#include "struc.h"
#include "thermal.h"
#include "trace.h"
Include dependency graph for dense.cpp:

Go to the source code of this file.

Functions

void ScaleAllDensities (realnum factor)
void ScaleIonDensities (const long nelem, const realnum factor)
bool lgElemsConserved (void)
void lgStatesConserved (long nelem, long ionStage, qList states, long numStates, realnum err_tol, long loop_ion)
void SumDensities (void)
bool AbundChange ()
realnum scalingDensity (void)
realnum scalingZoneDensity (long i)

Variables

t_dense dense

Function Documentation

◆ AbundChange()

bool AbundChange ( )

Definition at line 269 of file dense.cpp.

References abund, AbundancesTable(), ASSERT, colden, DEBUG_ENTRY, dense, dynamics, fixit(), ipCOL_HTOT, ipHYDROGEN, ipLITHIUM, LIMELM, mole, mole_global, nzone, phycon, radius, ScaleIonDensities(), and TempChange().

Referenced by ConvPresTempEdenIoniz().

Here is the call graph for this function:

◆ lgElemsConserved()

bool lgElemsConserved ( void )
Todo
2 this assert is not passed if error made much smaller. This error should be related to a check on convergence of the molecular networks and their sum rules, with a criteria used here and there

Definition at line 99 of file dense.cpp.

References atom_list, conv, dense, elementnames, findspecies(), ioQQQ, mole_print_species_reactions(), nzone, and SMALLFLOAT.

Referenced by cloudy(), ConvBase(), ion_wrapper(), IterRestart(), mole_return_cached_species(), mole_solve(), PresTotCurrent(), and ScaleAllDensities().

Here is the call graph for this function:

◆ lgStatesConserved()

void lgStatesConserved ( long nelem,
long ionStage,
qList states,
long numStates,
realnum err_tol,
long loop_ion )

Definition at line 160 of file dense.cpp.

References abund, conv, dense, INPUT_LINE_LENGTH, ioQQQ, nzone, SDIV(), and SMALLFLOAT.

Referenced by ConvBase().

Here is the call graph for this function:

◆ ScaleAllDensities()

void ScaleAllDensities ( realnum factor)

Definition at line 37 of file dense.cpp.

References ASSERT, dense, EdenChange(), h2, hmi, ioQQQ, ipHYDROGEN, lgElemsConserved(), LIMELM, mole, mole_global, ScaleIonDensities(), and trace.

Referenced by ConvPresTempEdenIoniz(), and PressureChange().

Here is the call graph for this function:

◆ ScaleIonDensities()

void ScaleIonDensities ( const long nelem,
const realnum factor )

Definition at line 70 of file dense.cpp.

References dense, deut, ipHYDROGEN, iso_renorm(), NISO, and ScaleDensitiesDeuterium().

Referenced by AbundChange(), and ScaleAllDensities().

Here is the call graph for this function:

◆ scalingDensity()

◆ scalingZoneDensity()

realnum scalingZoneDensity ( long i)

Definition at line 385 of file dense.cpp.

References ATOMIC_MASS_UNIT, and struc.

Referenced by DynaNewStep(), and DynaSaveLast().

◆ SumDensities()

void SumDensities ( void )
Todo
2 - should this include mass in grains?
Todo
2 - should this include mass in grain mantle ice deposits?

Definition at line 200 of file dense.cpp.

References ASSERT, ATOMIC_MASS_UNIT, BIGFLOAT, dense, ioQQQ, ipHYDROGEN, LIMELM, total_molecules_gasphase(), and TotalInsanity().

Referenced by AbundancesSet(), PresTotCurrent(), and RT_tau_init().

Here is the call graph for this function:

Variable Documentation

◆ dense

t_dense dense

Definition at line 24 of file dense.cpp.

Referenced by AbundancesPrt(), AbundancesSet(), AbundChange(), AgeCheck(), AGN_Hemis(), atmdat_3body(), atmdat_readin(), atom_level2(), atom_level3(), atom_levelN(), atom_oi_calc(), atom_pop2(), atom_pop3(), atom_pop5(), t_fe2ovr_la::atoms_fe2ovr(), AtomSeqBeryllium(), AtomSeqBoron(), Badnell_rec_init(), cdEDEN_last(), ChargTranPun(), ChargTranSumHeat(), check_co_ion_converge(), ChemImportance(), ColliderList::ColliderList(), collision_strength_VF01(), conorm(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvIterCheck(), ConvPresTempEdenIoniz(), ConvRate2CS(), ConvTempEdenIoniz(), CoolAlum(), CoolArgo(), CoolCalc(), CoolCarb(), CoolChlo(), CoolChro(), CoolDima(), CoolEvaluate(), CoolIron(), CoolMagn(), CoolNeon(), CoolNick(), CoolNitr(), CoolOxyg(), CoolPhos(), CoolScan(), CoolSili(), CoolSodi(), CoolSulf(), CS_l_mixing_PS64(), CS_l_mixing_VF01(), CS_ThermAve_PR78(), dBase_solve(), dense_fabden(), dense_parametric_wind(), dense_tabden(), DoSatelliteLines(), DumpLine(), DynaCreateArrays(), DynaFlux(), DynaIonize(), DynaNewStep(), DynaPrtZone(), DynaPunchTimeDep(), DynaSaveLast(), DynaStartZone(), eden_sum(), EdenChange(), EdenError(), emit_frac(), Fe2_cooling(), Fe3Lev14(), Fe4Lev12(), FeII_RT_Make(), FeII_RT_Out(), FeII_RT_TauInc(), FeIILevelPops(), FeIILyaPump(), FeIIPunchLineStuff(), FeIIPunPop(), FeIIRadPress(), FeIISumBand(), fill_array(), find_solution(), fndstr(), get_total_abundance_ions(), GetLineRec(), GetStandardHeLines(), GrainChargeTemp(), GrainChrgTransferRates(), GrainCollHeating(), GrainDrift(), GrainDrive(), GrainElecEmis1(), GrainElecRecomb1(), GrainMakeDiffuse(), GrainRateDr(), GrainsInit(), GrainTemperature(), GrainUpdateRadius1(), GravitationalPressure(), GrnStdDpth(), GrnVryDpth(), H21_cm_pops(), diatomics::H2_LevelPops(), diatomics::H2_PunchDo(), diatomics::H2_PunchLineStuff(), diatomics::H2_X_coll_rate_evaluate(), diatomics::H2_X_sink_and_source(), HeatSum(), highen(), HighestIonStage(), HomogeneousSource(), hydro_vs_coll_str(), HydroLevel(), HyperfineCreate(), ColliderList::init(), InitCoreload(), InitCoreloadPostparse(), InitDefaultsPreparse(), InitSimPostparse(), ion_collis(), ion_CX(), ion_photo(), ion_recom_calculate(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), ion_wrapper(), IonHelium(), IonHydro(), IonNelem(), iso_allocate(), iso_assign_quantum_numbers(), iso_charge_transfer_update(), iso_collapsed_bnl_set(), iso_collapsed_update(), iso_collide(), iso_continuum_lower(), iso_cool(), iso_create(), iso_departure_coefficients(), iso_ionize_recombine(), iso_level(), iso_recomb_malloc(), iso_recomb_setup(), iso_renorm(), iso_satellite(), iso_satellite_update(), iso_solve(), iso_state_lifetime(), iso_update_rates(), iso_zero(), iter_end_check(), IterRestart(), IterStart(), lgCheckMonitors(), lgConvEden(), lgElemsConserved(), lgNetEdenSrcSmall(), lgOH_ChargeTransferDominant(), lgStatesConserved(), lgTrivialSolution(), ligbar(), LineConvRate2CS(), lines(), lines_continuum(), lines_general(), lines_grains(), lines_helium(), lines_hydro(), lines_lv1_k_zn(), lines_lv1_li_ne(), lines_lv1_na_ar(), lines_molecules(), logPressureState(), Magnetic_evaluate(), t_mole_global::make_species(), MakeCS(), map_do(), t_mean::MeanInc(), t_mean::MeanIon(), MeanMassOfElement(), mie_read_form(), mie_read_opc(), mole_create_react(), mole_effects(), mole_eval_dynamic_balance(), mole_eval_sources(), diatomics::mole_H2_form(), mole_h2_grain_form(), mole_h_fixup(), mole_h_rate_diagnostics(), mole_h_reactions(), mole_ion_trim(), mole_return_cached_species(), mole_solve(), mole_update_limiting_reactants(), oi_cs(), oi_level_pops(), oi_othercs(), OpacityAdd1Element(), OpacityAddTotal(), OpacityCreateAll(), OpacityValenceRescale(), pah1_fun(), pah2_fun(), pah3_fun(), parse_species_label(), ParseCommands(), ParseCompile(), ParseConstant(), ParseDLaw(), ParseDynaWind(), ParseEden(), ParseElement(), ParseFluc(), ParseGlobule(), ParseHDEN(), ParseSet(), ParseTLaw(), pltopc(), PressureChange(), PresTotCurrent(), PrintRates(), prt_smooth_predictions(), PrtAllTau(), PrtColumns(), PrtComment(), PrtFinal(), PrtHeader(), PrtHydroTrace1a(), PrtLinePres(), PrtMeanIon(), prtmet(), PrtZone(), radius_first(), radius_increment(), radius_next(), t_ionbal::RateIonizTot(), rfield_opac_malloc(), ritoa(), RT_continuum(), RT_diffuse(), RT_iso_integrate_RRC(), RT_line_all(), RT_line_driving(), RT_line_electron_scatter(), RT_LineWidth(), RT_OTS(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_stark(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), S62_Therm_ave_coll_str(), SanityCheckBegin(), Save_Line_RT(), save_opacity(), SaveDo(), SaveHeat(), SaveLineData(), SaveLineStuff(), SaveSpecial(), ScaleAllDensities(), ScaleIonDensities(), scalingDensity(), PresMode::set(), SetDeuteriumIonization(), GroupMap::setup(), state_get_put(), states_nelemfill(), store_new_densities(), SumDensities(), tfidle(), UpdateRecomZ0(), UpdateUTAs(), zero(), zoneDensity(), and ZoneStart().