Cloudy
Spectral Synthesis Code for Astrophysics
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 "phycon.h"
#include "radius.h"
#include "struc.h"
#include "thermal.h"
#include "trace.h"
#include "iso.h"
#include "h2.h"
#include "mole.h"
#include "save.h"
Include dependency graph for dense.cpp:

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)
 

Function Documentation

◆ AbundChange()

bool AbundChange ( )

◆ 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

References conv, dense, deut, elementnames, findspecies(), fprintf(), ioQQQ, ipHYDROGEN, mole_print_species_reactions(), nuclide_list, nzone, phycon, 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 )

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

Referenced by ConvBase().

Here is the call graph for this function:

◆ ScaleAllDensities()

void ScaleAllDensities ( realnum factor)

References ASSERT, dense, deut, EdenChange(), fprintf(), 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 )

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)

References 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?

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

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

Here is the call graph for this function: