Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pressure_total.cpp File Reference
#include "cddefines.h"
#include "taulines.h"
#include "opacity.h"
#include "hydrogenic.h"
#include "conv.h"
#include "iso.h"
#include "wind.h"
#include "magnetic.h"
#include "phycon.h"
#include "thermal.h"
#include "h2.h"
#include "dense.h"
#include "dynamics.h"
#include "trace.h"
#include "rt.h"
#include "pressure.h"
#include "radius.h"
#include "rfield.h"
#include "doppvel.h"
#include "rt_escprob.h"
Include dependency graph for pressure_total.cpp:

Functions

void PresTotCurrent ()
 

Function Documentation

void PresTotCurrent ( void  )

PressureTotal determine the gas and line radiation pressures for current conditions, this sets the variable pressure.PresTotlCurr

Todo:
2 this is the total binding energy of the molecules, and is negative, the energy need to get back to free atoms never set and only appears in print statements
Todo:
0 add this press term due to cosmic rays - hextra.cr_energydensity
Todo:
0 code has variable magnetic energydensity and pressure, which are equal, as they must be - del one or the other

References Wind::AccelCont, Wind::AccelElectron, Wind::AccelGravity, Wind::AccelLine, Wind::AccelTotalOutward, t_mesh::anu(), ASSERT, t_dense::AtomicWeight, broken(), cdEXIT, t_dense::chDenseLaw, chLineLbl(), t_pressure::chLineRadPres, Wind::comass, t_rfield::ConInterOut, conv, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, dense, t_radius::depth, diatoms, Wind::DiskRadius, DoppVel, t_radius::drad, DynaFlux(), dynamics, t_dense::eden, t_phycon::EnergyBinding, TransitionProxy::EnergyErg(), t_phycon::EnergyExcitation, t_phycon::EnergyIonization, t_magnetic::EnthalpyDensity, t_phycon::EnthalpyDensity, EXIT_FAILURE, fixit, t_rfield::flux, Wind::fmul, fnzone, fprintf(), fudge(), GetDopplerWidth(), t_ADfA::getEthresh(), Heavy, t_DoppVel::Heiles_Troland_F, HFLines, t_hydro::HLineWidth, hydro, Singleton< t_ADfA >::Inst(), t_dense::IonHigh, t_dense::IonLow, t_opac::iopcom, ioQQQ, ipH1s, ipH2p, ipH_LIKE, ipHE_LIKE, ipHYDROGEN, t_pressure::ipPradMax_line, t_pressure::ipPradMax_nzone, iso_ctrl, iso_sp, iteration, Wind::lgBallistic(), t_rfield::lgDoLineTrans, lgElemsConserved(), t_dynamics::lgISO, t_pressure::lgLineRadPresOn, t_dynamics::lgMETALS, t_pressure::lgPradCap, t_pressure::lgPres_magnetic_ON, t_pressure::lgPres_radiation_ON, t_pressure::lgPres_ram_ON, t_conv::lgSearch, Wind::lgStatic(), t_dynamics::lgTimeDependentStatic, t_trace::lgTrace, t_DoppVel::lgTurb_pressure, LIMELM, magnetic, Magnetic_evaluate(), MAX2, MIN2, t_iso_sp::nCollapsed_local, t_rfield::nflux, NISO, nSpecies, t_Heavy::nsShells, t_conv::nTotalIoniz, t_iso_sp::numLevels_local, nWindLine, nzone, opac, t_opac::opacity_abs, t_opac::opacity_sct, t_opac::OpacStack, t_rfield::outlin, t_rfield::outlin_noplot, t_pressure::pbeta, t_dense::pden, phycon, POW2, t_pressure::pres_radiation_lines_curr, t_pressure::PresGasCurr, t_pressure::PresMax, t_pressure::PresRamCurr, pressure, t_magnetic::pressure, t_conv::PressureErrorAllowed, PressureRadiationLine(), t_pressure::PresTotlCurr, t_pressure::PresTotlError, t_pressure::PresTurbCurr, t_pressure::RadBetaMax, radius, t_radius::Radius, rfield, RT_line_driving(), RT_LineWidth(), SDIV(), ShowMe(), TransitionList::size(), t_isoCTRL::SmallA, SMALLFLOAT, t_iso_sp::st, SumDensities(), TauLine2, t_phycon::te, TempChange(), TorF(), trace, t_iso_sp::trans(), t_DoppVel::TurbVel, wind, Wind::windv, t_dense::xIonDense, and t_dense::xMassDensity.

Referenced by ConvBase(), ConvInitSolution(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolHeatError(), IterStart(), map_do(), and PressureChange().

Here is the call graph for this function: