cloudy
trunk
|
#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"
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) |
bool AbundChange | ( | ) |
Definition at line 300 of file dense.cpp.
References abund, AbundancesTable(), ASSERT, t_dense::cfirst, colden, t_colden::colden, t_dense::csecnd, DEBUG_ENTRY, dense, t_radius::depth, dynamics, fixit, t_dense::flcPhase, t_dense::flong, t_dense::gas_phase, ipCOL_HTOT, ipHYDROGEN, ipLITHIUM, t_abund::lgAbTaON, t_abund::lgAbunTabl, t_dynamics::lgAdvection, t_dense::lgDenFlucOn, t_dense::lgDenFlucRadius, t_dense::lgElmtOn, LIMELM, mole, mole_global, t_mole_global::num_total, nzone, phycon, radius, t_radius::Radius, ScaleIonDensities(), t_dense::SetGasPhaseDensity(), t_mole_local::species, t_phycon::te, TempChange(), and t_dense::xIonDense.
Referenced by ConvPresTempEdenIoniz().
bool lgElemsConserved | ( | void | ) |
Definition at line 119 of file dense.cpp.
References t_elementnames::chElementSym, conv, dense, deut, elementnames, findspecies(), fprintf(), t_deuterium::gas_phase, t_dense::gas_phase, t_conv::GasPhaseAbundErrorAllowed, ioQQQ, t_dense::lgElmtOn, mole_print_species_reactions(), nuclide_list, nzone, SMALLFLOAT, t_deuterium::xIonDense, t_dense::xIonDense, t_deuterium::xMolecules(), and t_dense::xMolecules().
Referenced by cloudy(), ConvBase(), ion_wrapper(), IterRestart(), mole_return_cached_species(), mole_solve(), PresTotCurrent(), and ScaleAllDensities().
void lgStatesConserved | ( | long | nelem, |
long | ionStage, | ||
qList | states, | ||
long | numStates, | ||
realnum | err_tol, | ||
long | loop_ion | ||
) |
Definition at line 195 of file dense.cpp.
References abund, conv, dense, t_dense::eden, t_conv::EdenErrorAllowed, fprintf(), INPUT_LINE_LENGTH, ioQQQ, t_conv::lgConvIoniz(), t_dense::lgElmtOn, nzone, SDIV(), t_conv::setConvIonizFail(), SMALLFLOAT, and t_dense::xIonDense.
Referenced by ConvBase().
void ScaleAllDensities | ( | realnum | factor | ) |
Definition at line 56 of file dense.cpp.
References ASSERT, dense, deut, t_dense::eden, EdenChange(), fprintf(), t_dense::gas_phase, h2, t_hmi::H2_total, hmi, ioQQQ, ipHYDROGEN, lgElemsConserved(), t_dense::lgElmtOn, t_trace::lgNeBug, t_trace::lgTrace, LIMELM, mole, mole_global, t_mole_global::num_total, diatomics::ortho_density, diatomics::para_density, ScaleIonDensities(), t_dense::SetGasPhaseDensity(), t_mole_local::species, trace, t_deuterium::updateXMolecules(), and t_dense::updateXMolecules().
Referenced by ConvPresTempEdenIoniz(), and PressureChange().
void ScaleIonDensities | ( | const long | nelem, |
const realnum | factor | ||
) |
Definition at line 90 of file dense.cpp.
References dense, deut, ipHYDROGEN, iso_renorm(), t_deuterium::lgElmtOn, NISO, ScaleDensitiesDeuterium(), and t_dense::xIonDense.
Referenced by AbundChange(), and ScaleAllDensities().
realnum scalingDensity | ( | void | ) |
Definition at line 409 of file dense.cpp.
References dense, t_dense::gas_phase, ipHYDROGEN, and t_dense::xMassDensity.
Referenced by ConvPresTempEdenIoniz(), t_dynamics::Cool(), CoolEvaluate(), DynaIonize(), DynaIterEnd(), DynaPrtZone(), DynaPunchTimeDep(), DynaSave(), DynaStartZone(), t_dynamics::Heat(), lgTestPressureConvergence(), limitedDensityScaling(), PressureChange(), stepDensity(), and zoneDensity().
realnum scalingZoneDensity | ( | long | i | ) |
Definition at line 416 of file dense.cpp.
References t_struc::DenMass, t_struc::hden, and struc.
Referenced by DynaNewStep(), and DynaSaveLast().
void SumDensities | ( | void | ) |
Definition at line 235 of file dense.cpp.
References ASSERT, t_dense::AtomicWeight, BIGFLOAT, dense, t_dense::eden, fprintf(), t_dense::gas_phase, ioQQQ, ipHYDROGEN, t_dense::lgElmtOn, LIMELM, t_dense::pden, total_molecules_gasphase(), TotalInsanity(), t_dense::wmole, t_dense::xIonDense, t_dense::xMassDensity, t_dense::xMassDensity0, and t_dense::xNucleiTotal.
Referenced by AbundancesSet(), PresTotCurrent(), and RT_tau_init().