#include "cddefines.h"
#include "abund.h"
#include "hmi.h"
#include "struc.h"
#include "trace.h"
#include "wind.h"
#include "phycon.h"
#include "thermal.h"
#include "dense.h"
#include "geometry.h"
#include "radius.h"
#include "mole.h"
#include "dynamics.h"
#include "pressure.h"
#include "colden.h"
#include "conv.h"
#include "cosmology.h"
#include "dark_matter.h"
Go to the source code of this file.
Functions | |
int | PressureChange (double dP_chng_factor) |
bool | lgConvPres (void) |
Variables | |
static double | pressure_change_factor |
bool lgConvPres | ( | void | ) |
returns true if pressure is converged
fp_equal( radius.depth, rsave ) &&
Definition at line 309 of file pressure_change.cpp.
References Wind::AccelGravity, Wind::AccelTotalOutward, ASSERT, cdEXIT, t_dense::cfirst, t_dense::chDenseLaw, t_colden::colden, colden, conv, cosmology, t_dense::csecnd, dark, DEBUG_ENTRY, t_dense::den0, dense, dense_fabden(), dense_parametric_wind(), dense_tabden(), t_dense::DensityPower, t_radius::depth, t_radius::drad, DynaPresChngFactor(), Wind::emdot, fixit(), t_dense::flcPhase, t_dense::flong, t_dense::gas_phase, GetDensity(), t_radius::glbden, t_radius::glbdst, t_radius::glbpow, t_radius::glbrad, t_pressure::gravity_symmetry, t_pressure::IntegRhoGravity, ioQQQ, ipCOL_HTOT, ipHYDROGEN, Wind::lgBallistic(), t_pressure::lgContRadPresOn, t_conv::lgConvPres, t_dense::lgDenFlucRadius, Wind::lgDisk, t_cosmology::lgDo, t_dark_matter::lgNFW_Set, Wind::lgStatic(), t_trace::lgTrace, Wind::lgVelPos, t_trace::lgWind, nzone, pow(), POW2, t_pressure::PresInteg, t_pressure::PresPowerlaw, pressure, pressure_change_factor, t_conv::PressureErrorAllowed, t_pressure::PresTotlCorrect, t_pressure::PresTotlCurr, t_pressure::PresTotlInit, t_radius::r1r0sq, t_radius::Radius, radius, t_cosmology::redshift_current, t_radius::rinner, t_dense::rscale, ShowMe(), struc, TorF(), TotalInsanity(), trace, wind, Wind::windv, and t_struc::windv.
Referenced by PressureChange().
int PressureChange | ( | double | dP_chng_factor | ) |
PressureChange evaluate the current pressure, and change needed to get it to PresTotlInit, return value is true is density was changed, false if no changes were necessary
dP_chng_factor | this is change factor, 1 at first, becomes smaller as oscillations occur |
Definition at line 35 of file pressure_change.cpp.
References abund, AbundancesTable(), ASSERT, t_dense::cfirst, t_colden::colden, colden, COmole, conv, t_dense::csecnd, DEBUG_ENTRY, dense, t_radius::depth, t_dense::eden, t_geometry::FillFac, t_dense::flcPhase, t_dense::flong, t_dense::gas_phase, geometry, t_hmi::H2_total, molecule::hevmol, t_conv::hist_pres_correct, t_conv::hist_pres_current, t_conv::hist_pres_density, t_conv::hist_pres_nzone, hmi, t_hmi::Hmolec, ioQQQ, ipCOL_HTOT, ipHELIUM, ipHYDROGEN, ipLITHIUM, isnan, t_abund::lgAbTaON, t_abund::lgAbunTabl, lgConvPres(), t_conv::lgConvPres, t_dense::lgDenFlucOn, t_dense::lgDenFlucRadius, t_trace::lgNeBug, t_trace::lgTrace, LIMELM, MAX2, MIN2, mole, N_H_MOLEC, t_mole::num_comole_calc, nzone, phycon, t_pressure::pinzon, t_pressure::pres_radiation_lines_curr, t_pressure::PresGasCurr, t_pressure::PresInteg, t_pressure::PresRamCurr, pressure, pressure_change_factor, PresTotCurrent(), t_pressure::PresTotlCorrect, t_pressure::PresTotlCurr, t_pressure::PresTotlInit, t_radius::Radius, radius, t_phycon::te, TempChange(), TorF(), trace, wind, Wind::windv, t_dense::xIonDense, t_dense::xMassDensity, and t_dense::xMolecules.
Referenced by ConvPresTempEdenIoniz().
double pressure_change_factor [static] |
Definition at line 30 of file pressure_change.cpp.
Referenced by lgConvPres(), and PressureChange().