Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dense.h File Reference
#include "global.h"
#include "module.h"
#include "depth_table.h"
Include dependency graph for dense.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  t_dense
 

Functions

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

Variables

t_dense dense
 

Function Documentation

double dense_fabden ( double  radius,
double  depth 
)

dense_fabden called by dlaw command, returns density for any density law

Parameters
radius
depth

References dense, t_dense::DensityLaw, exp10(), t_rfield::lgUSphON, pow(), rfield, and t_rfield::rstrom.

Referenced by ParseCommands(), radius_next(), and zoneDensity().

Here is the call graph for this function:

double dense_parametric_wind ( double  rad)

References dense, density(), t_dense::DensityLaw, MIN2, pow(), pow2(), radius, t_radius::rinner, and t_dense::wmole.

Referenced by ParseCommands(), radius_next(), and zoneDensity().

Here is the call graph for this function:

bool lgElemsConserved ( )
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 t_elementnames::chElementSym, conv, dense, deut, elementnames, findspecies(), fprintf(), t_deuterium::gas_phase, t_dense::gas_phase, t_conv::GasPhaseAbundErrorAllowed, ioQQQ, ipHYDROGEN, t_dense::lgElmtOn, mole_print_species_reactions(), nuclide_list, nzone, phycon, SMALLFLOAT, t_phycon::te, 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().

Here is the call graph for this function:

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

References dense, deut, ipHYDROGEN, iso_renorm(), t_deuterium::lgElmtOn, NISO, ScaleDensitiesDeuterium(), and t_dense::xIonDense.

Referenced by AbundChange(), and ScaleAllDensities().

Here is the call graph for this function:

realnum scalingZoneDensity ( long  i)

References t_struc::DenMass, t_struc::hden, and struc.

Referenced by DynaNewStep(), and DynaSaveLast().

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

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().

Here is the call graph for this function:

Variable Documentation

t_dense dense

Referenced by AbundancesPrt(), AbundancesSet(), AbundChange(), AgeCheck(), AGN_Hemis(), atmdat_3body(), atom_level2(), Badnell_rec_init(), t_gaunt::brems_sum_ions(), cdColm(), cdEDEN_last(), ChargTranPun(), ChargTranSumHeat(), check_co_ion_converge(), ChemImportance(), clean_up(), collision_strength_VF01(), conorm(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvIterCheck(), ConvPresTempEdenIoniz(), ConvRate2CS(), ConvTempEdenIoniz(), CoolDima(), CoolEvaluate(), CoolH2_GA08(), CoolHyperfine(), CS_l_mixing_PS64(), CS_l_mixing_PS64_expI(), dBaseAbund(), dBaseTrim(), dense_fabden(), dense_parametric_wind(), DoSatelliteLines(), DumpLine(), DynaCreateArrays(), DynaFlux(), DynaIonize(), DynaNewStep(), DynaPrtZone(), DynaPunchTimeDep(), DynaSaveLast(), DynaStartZone(), eden_sum(), EdenChange(), EdenError(), ElectronFractions(), emit_frac(), fill_array(), find_solution(), fndstr(), GammaPrtRate(), GammaPrtShells(), get_total_abundance_ions(), GetHelikeCollisionStrength(), GetLineRec(), 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(), H_Einstein_A(), HeatSum(), highen(), HomogeneousSource(), hydro_vs_coll_str(), HydroLevel(), HyperfineCreate(), ColliderList::init(), init_struc(), InitCoreloadPostparse(), InitDefaultsPreparse(), InitSimPostparse(), ion_collis(), ion_CX(), ion_photo(), ion_recom_calculate(), ion_recomb(), ion_recombAGN(), ion_solver(), ion_trim(), ion_trim2(), ion_trim_from_set(), ion_trim_init(), ion_trim_invalidate(), ion_trim_small(), ion_trim_untrim(), ion_trim_validate(), ion_widen(), ion_wrapper(), IonHelium(), IonHydro(), IonNelem(), iso_allocate(), iso_assign_quantum_numbers(), iso_charge_transfer_update(), iso_collapsed_update(), iso_collide(), iso_continuum_lower(), iso_cool(), iso_create(), iso_departure_coefficients(), iso_get_collision_strength(), iso_ionize_recombine(), iso_level(), iso_multiplet_opacities(), iso_multiplet_opacities_one(), iso_rad_rec_cooling_discrete(), iso_radiative_recomb(), iso_recomb_alloc(), 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(), lgStatesConserved(), lgTrivialSolution(), LineConvRate2CS(), lines(), lines_continuum(), lines_general(), lines_grains(), lines_helium(), lines_hydro(), lines_iron_Ka(), 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(), my_Integrand_VF01_E< P >::my_Integrand_VF01_E(), OpacityAdd1Element(), OpacityAddTotal(), OpacityCreateAll(), OpacityValenceRescale(), setCollRate::operator()(), t_hydro_tbl::p_RM(), pah1_fun(), pah2_fun(), pah3_fun(), parse_species_label(), ParseAbundances(), ParseCommands(), ParseCompile(), ParseConstant(), ParseDLaw(), ParseDynaWind(), ParseEden(), ParseElement(), ParseFluc(), ParseGlobule(), ParseHDEN(), ParseSet(), ParseTLaw(), PressureChange(), PresTotCurrent(), PrintRates(), prt_smooth_predictions(), prt_trans_opc_debug(), PrtAllTau(), PrtColumns(), PrtComment(), PrtFinal(), PrtHeader(), PrtHydroTrace1a(), PrtLinePres(), PrtMeanIon(), prtmet(), PrtZone(), radius_first(), radius_increment(), radius_next(), t_ionbal::RateIonizTot(), reduced_amu(), renorm_solution(), rfield_opac_alloc(), ritoa(), RT_continuum(), RT_DestProb(), RT_diffuse(), RT_iso_integrate_RRC(), RT_line_all(), RT_line_all_escape(), 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(), RTesc_lya(), SanityCheckBegin(), Save_Line_RT(), save_opacity(), SaveDo(), SaveHeat(), SaveLineData(), SaveLineStuff(), SaveSpecial(), SaveSpeciesLines(), ScaleAllDensities(), ScaleIonDensities(), scalingDensity(), SecIoniz(), PresMode::set(), t_mole_local::set_ion_locations(), GroupMap::setup(), setXtraRatesFe2(), setXtraRatesO1(), states_nelemfill(), store_new_densities(), SumDensities(), tfidle(), UpdateRecomZ0(), UpdateUTAs(), t_mesh::ValidateEdges(), t_dense::zero(), zoneDensity(), and ZoneStart().