cloudy
trunk
|
#include "cddefines.h"
#include "conv.h"
#include "opacity.h"
#include "dense.h"
#include "phycon.h"
#include "stopcalc.h"
#include "trace.h"
#include "rfield.h"
#include "doppvel.h"
#include "radius.h"
#include "wind.h"
#include "thermal.h"
#include "vectorize.h"
#include "taulines.h"
Go to the source code of this file.
Functions | |
STATIC void | tauff () |
STATIC void | tfidle (bool lgForceUpdate) |
void | TempChange (double TempNew, bool lgForceUpdate) |
void | TempChange (double TempNew) |
realnum | GetDopplerWidth (realnum massAMU) |
realnum | GetAveVelocity (realnum massAMU) |
GetAveVelocity get the average particle velocity at current conditions for a given mass
Definition at line 407 of file temp_change.cpp.
References DEBUG_ENTRY, t_radius::depth, t_DoppVel::DispScale, DoppVel, fixit, Wind::lgBallistic(), Wind::lgStatic(), phycon, POW2, radius, sexp(), t_phycon::te, t_DoppVel::TurbVel, wind, and Wind::windv0.
Referenced by GrainChrgTransferRates(), GrainCollHeating(), GrainElecEmis1(), GrainElecRecomb1(), and mole_h2_grain_form().
GetDopplerWidth get the doppler width at current conditions for a given mass
Definition at line 376 of file temp_change.cpp.
References ASSERT, t_radius::depth, t_DoppVel::DispScale, DoppVel, Wind::lgBallistic(), Wind::lgStatic(), phycon, POW2, radius, sexp(), t_phycon::te, t_DoppVel::TurbVel, wind, and Wind::windv0.
Referenced by CoolDima(), CoolHyperfine(), diatomics::H2_PunchLineStuff(), diatomics::H2_RadPress(), diatomics::H2_RT_tau_inc(), diatomics::H2_RTMake(), iso_multiplet_opacities_one(), mole_h_reactions(), PresTotCurrent(), PrtLinePres(), radius_increment(), RT_line_all(), RT_line_all_escape(), RT_tau_inc(), RT_tau_init(), SaveLineStuff(), setXtraRatesFe2(), and setXtraRatesO1().
STATIC void tauff | ( | ) |
Definition at line 327 of file temp_change.cpp.
References t_mesh::anu(), conv, DEBUG_ENTRY, t_rfield::EnergyBremsThin, t_rfield::ipEnergyBremsThin, lgOpacMalloced, MAX2, t_rfield::nflux, t_conv::nTotalIoniz, opac, t_rfield::plsfrq, rfield, t_opac::TauAbsGeo, and t_mesh::widflx().
Referenced by tfidle().
void TempChange | ( | double | TempNew, |
bool | lgForceUpdate | ||
) |
TempChange change kinetic temperature, calls tfidle
Definition at line 32 of file temp_change.cpp.
References t_thermal::ConstTemp, conv, dBaseSpecies, DEBUG_ENTRY, fprintf(), ioQQQ, lgAbort, t_conv::lgSearch, t_thermal::lgTemperatureConstant, t_trace::lgTrace, nSpecies, t_conv::nTotalIoniz, t_trace::nTrConvg, phycon, StopCalc, t_phycon::te, t_StopCalc::TeFloor, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, tfidle(), thermal, and trace.
Referenced by AbundChange(), AGN_He1_CS(), AGN_Hemis(), ChargTranPun(), ContSetIntensity(), ConvInitSolution(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolEvaluate(), CoolHeatError(), ion_recombAGN(), iter_end_check(), map_do(), ParseConstant(), PressureChange(), PresTotCurrent(), radius_increment(), RT_tau_init(), SaveDo(), SaveLineData(), zero(), and ZoneStart().
void TempChange | ( | double | TempNew | ) |
TempChange change kinetic temperature, calls tfidle but does not update extensive variables or check for temperature floor, intended for use by routines that are sanity checks rather than real calculation
Definition at line 111 of file temp_change.cpp.
References DEBUG_ENTRY, fprintf(), ioQQQ, lgAbort, phycon, t_phycon::te, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, and tfidle().
void tfidle | ( | bool | lgForceUpdate | ) |
tfidle update some temperature dependent variables
lgForceUpdate | option to force update of all variables |
Definition at line 151 of file temp_change.cpp.
References t_phycon::alnte, t_phycon::alogte, t_mesh::anu(), t_mesh::anumin(), t_dense::cdsqte, t_rfield::ContBoltz, t_rfield::ContBoltzAvg, t_rfield::ContBoltzHelp1, t_rfield::ContBoltzHelp2, DEBUG_ENTRY, dense, t_dense::eden, t_dense::EdenHCorr, t_dense::EdenHCorr_f, t_dense::edensqte, fp_equal(), fprintf(), get_ptr(), t_thermal::halfte, t_dense::HCorrFac, ioQQQ, ipHYDROGEN, t_rfield::ipMaxBolt, t_mesh::lgMeshSetUp(), lgRfieldMalloced, LIMELM, t_rfield::nflux_with_check, phycon, POW2, rfield, t_phycon::sqlogz, t_phycon::sqrte, t_dense::SqrtEden, tauff(), t_phycon::te, t_phycon::te0001, t_phycon::te0002, t_phycon::te0003, t_phycon::te0004, t_phycon::te0005, t_phycon::te0007, t_phycon::te001, t_phycon::te002, t_phycon::te003, t_phycon::te004, t_phycon::te005, t_phycon::te007, t_phycon::te01, t_phycon::te02, t_phycon::te03, t_phycon::te04, t_phycon::te05, t_phycon::te07, t_phycon::te10, t_phycon::te20, t_phycon::te30, t_phycon::te32, t_phycon::te40, t_phycon::te70, t_phycon::te90, t_phycon::te_eV, t_phycon::te_ryd, t_thermal::te_update, t_phycon::te_wn, t_phycon::teinv, t_phycon::telogn, t_phycon::tesqrd, thermal, TotalInsanity(), t_thermal::tsq1, vexp(), t_rfield::vexp_arg, vexpm1(), t_mesh::widflx(), and t_dense::xIonDense.
Referenced by TempChange().