Cloudy Data Archive|
Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "module.h"

Go to the source code of this file.
Classes | |
| struct | t_pressure |
Functions | |
| void | PresTotCurrent (void) |
| Evaluates the current total pressure and related physical quantities in the simulation zone. | |
| double | PressureRadiationLine (const TransitionProxy &t, realnum DopplerWidth) |
Variables | |
| t_pressure | pressure |
| double PressureRadiationLine | ( | const TransitionProxy & | t, |
| realnum | DopplerWidth ) |
PressureRadiationLine calculate radiation pressure due to a particular line
References ASSERT, DEBUG_ENTRY, TransitionProxy::Emis(), TransitionProxy::EnergyErg(), TransitionProxy::EnergyWN(), TransitionProxy::Hi(), EmissionProxy::ipFine(), TransitionProxy::Lo(), MIN2, EmissionProxy::opacity(), EmissionProxy::PopOpc(), POW4, rfield, RT_LineWidth(), SMALLFLOAT, and EmissionProxy::VoigtLineCen().
Referenced by diatomics::H2_RadPress(), PresTotCurrent(), and PrtLinePres().

| void PresTotCurrent | ( | void | ) |
Evaluates the current total pressure and related physical quantities in the simulation zone.
PressureTotal determine the gas and line radiation pressures for current conditions, this sets the variable pressure.PresTotlCurr
This function computes the total pressure at the current zone, including contributions from gas, ram, turbulent, magnetic, and radiation (line and continuum) pressures. It also updates related quantities such as radiative acceleration, enthalpy density, and tracks the dominant contributors to the radiation pressure. The function manages evaluation frequency based on simulation state and flags, and ensures physical consistency of the results.
The function is central to the equation of state calculations in the simulation and is called once per zone.
References ASSERT, broken(), cdEXIT, chLineLbl(), conv, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, dense, diatoms, DoppVel, DynaFlux(), dynamics, EXIT_FAILURE, fixit, fnzone, fprintf(), GetDopplerWidth(), t_ADfA::getEthresh(), Heavy, HFLines, hydro, Singleton< t_ADfA >::Inst(), ioQQQ, ipH1s, ipH2p, ipH_LIKE, ipHE_LIKE, ipHYDROGEN, iso_ctrl, iso_sp, iteration, lgElemsConserved(), LIMELM, magnetic, Magnetic_evaluate(), MAX2, MIN2, NISO, nSpecies, nWindLine, nzone, opac, phycon, POW2, pressure, PressureRadiationLine(), radius, rfield, RT_line_driving(), RT_LineWidth(), SDIV(), ShowMe(), SMALLFLOAT, SumDensities(), TauLine2, TempChange(), TorF(), trace, and wind.
Referenced by ConvBase(), ConvInitSolution(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolHeatError(), IterStart(), map_do(), and PressureChange().

|
extern |
Referenced by advection_set_default(), cdPressure_last(), ConvFail(), ConvInitSolution(), ConvPresTempEdenIoniz(), CoolEvaluate(), t_dynamics::dCooldT(), DynaIonize(), DynaIterEnd(), DynaPrtZone(), GravitationalPressure(), highen(), InitDefaultsPreparse(), InitSimPostparse(), iter_end_check(), IterRestart(), IterStart(), lgCheckMonitors(), logPressureState(), ParseCommands(), ParseConstant(), ParseDont(), ParseDynaWind(), ParseGravity(), PressureChange(), pressureZone(), PresTotCurrent(), prt_smooth_predictions(), PrtComment(), PrtFinal(), PrtLinePres(), PrtZone(), radius_first(), radius_increment(), radius_next(), RT_LineWidth(), SaveDo(), PresMode::set(), stepDensity(), and zoneDensity().