#include "cddefines.h"
#include "physconst.h"
#include "opacity.h"
#include "iso.h"
#include "dense.h"
#include "phycon.h"
#include "stopcalc.h"
#include "continuum.h"
#include "trace.h"
#include "rfield.h"
#include "doppvel.h"
#include "radius.h"
#include "wind.h"
#include "thermal.h"
#include "conv.h"
Go to the source code of this file.
Defines | |
#define | chLine_LENGTH 1000 |
Functions | |
STATIC void | tauff (void) |
STATIC void | FillGFF (void) |
STATIC realnum | InterpolateGff (long charge, double ERyd) |
STATIC int | LinterpTable (realnum **t, realnum *v, long int lta, long int ltb, realnum x, realnum *a, long int *pipx) |
STATIC int | LinterpVector (realnum **t, realnum *v, long lta, long ltb, realnum *yy, long ny, realnum **a) |
STATIC void | fhunt (realnum *xx, long int n, realnum x, long int *j) |
STATIC void | tfidle (bool lgForceUpdate) |
void | TempChange (double TempNew, bool lgForceUpdate) |
void | TempChange (double TempNew) |
realnum | GetDopplerWidth (realnum massAMU) |
realnum | GetAveVelocity (realnum massAMU) |
Variables | |
static long | lgGffNotFilled = true |
const long | N_TE_GFF = 41 |
static long | N_PHOTON_GFF |
static realnum *** | GauntFF |
static realnum ** | GauntFF_T |
static realnum | TeGFF [N_TE_GFF] |
static realnum * | PhoGFF |
#define chLine_LENGTH 1000 |
Definition at line 1034 of file temp_change.cpp.
Referenced by LinterpTable().
STATIC void FillGFF | ( | void | ) |
Definition at line 576 of file temp_change.cpp.
References t_phycon::alogte, AS_LOCAL_ONLY, cdEXIT, chLine_LENGTH, cont_gaunt_calc(), DEBUG_ENTRY, t_rfield::egamry, t_rfield::emm, FFmtRead(), GauntFF, GauntFF_T, INPUT_LINE_LENGTH, InterpolateGff(), ioQQQ, t_rfield::lgCompileGauntFF, lgGffNotFilled, t_trace::lgTrace, LIMELM, MALLOC, N_PHOTON_GFF, N_TE_GFF, open_data(), PhoGFF, phycon, pow(), read_whole_line(), rfield, t_phycon::te, TE1RYD, TeGFF, and trace.
Referenced by tfidle().
GetAveVelocity get the average particle velocity at current conditions for a given mass
Definition at line 547 of file temp_change.cpp.
References ATOMIC_MASS_UNIT, BOLTZMANN, t_radius::depth, t_DoppVel::DispScale, DoppVel, fixit(), Wind::lgBallistic(), Wind::lgStatic(), phycon, PI, POW2, radius, sexp(), t_phycon::te, t_DoppVel::TurbVel, wind, and Wind::windv0.
Referenced by GrainChrgTransferRates(), GrainCollHeating(), GrainElecEmis1(), GrainElecRecomb1(), and hmole_step().
GetDopplerWidth get the doppler width at current conditions for a given mass
Definition at line 516 of file temp_change.cpp.
References ASSERT, ATOMIC_MASS_UNIT, BOLTZMANN, 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 atom_oi_calc(), t_fe2ovr_la::atoms_fe2ovr(), CoolCalc(), CoolDima(), CoolEvaluate(), FeII_RT_Make(), FeII_RT_TauInc(), FeIILyaPump(), FeIIPunchLineStuff(), FeIIRadPress(), H2_PunchLineStuff(), H2_RadPress(), H2_RT_tau_inc(), H2_RTMake(), hmole_reactions(), PresTotCurrent(), PrtLinePres(), radius_increment(), RT_line_all(), RT_tau_inc(), RT_tau_init(), SaveLineStuff(), and th85rate_co().
STATIC realnum InterpolateGff | ( | long | charge, | |
double | ERyd | |||
) |
Definition at line 852 of file temp_change.cpp.
References t_phycon::alogte, ASSERT, cdEXIT, DEBUG_ENTRY, GauntFF, ioQQQ, MAX4, MIN4, N_PHOTON_GFF, N_TE_GFF, PhoGFF, phycon, and TeGFF.
Referenced by FillGFF().
STATIC int LinterpTable | ( | realnum ** | t, | |
realnum * | v, | |||
long int | lta, | |||
long int | ltb, | |||
realnum | x, | |||
realnum * | a, | |||
long int * | pipx | |||
) |
Definition at line 971 of file temp_change.cpp.
References ASSERT, DEBUG_ENTRY, and fhunt().
Referenced by tfidle().
STATIC int LinterpVector | ( | realnum ** | t, | |
realnum * | v, | |||
long | lta, | |||
long | ltb, | |||
realnum * | yy, | |||
long | ny, | |||
realnum ** | a | |||
) |
Definition at line 1005 of file temp_change.cpp.
References ASSERT, and DEBUG_ENTRY.
Referenced by tfidle().
STATIC void tauff | ( | void | ) |
Definition at line 442 of file temp_change.cpp.
References t_rfield::anu, DEBUG_ENTRY, dense, t_dense::eden, ELECTRON_MASS, ELEM_CHARGE_ESU, t_rfield::EnergyBremsThin, FR1RYD, t_rfield::ipEnergyBremsThin, t_rfield::ipPlasma, lgOpacMalloced, t_rfield::lgPlasNu, MAX2, t_rfield::nflux, nzone, t_rfield::nZonePlsFrqEval, opac, PI, t_rfield::plsfrq, t_rfield::plsfrqmax, rfield, t_opac::TauAbsGeo, and t_rfield::widflx.
Referenced by tfidle().
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 104 of file temp_change.cpp.
References DEBUG_ENTRY, ioQQQ, lgAbort, phycon, t_phycon::te, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, and tfidle().
void TempChange | ( | double | TempNew, | |
bool | lgForceUpdate | |||
) |
TempChange change kinetic temperature, calls tfidle
Definition at line 50 of file temp_change.cpp.
References t_thermal::ConstTemp, DEBUG_ENTRY, ioQQQ, lgAbort, t_thermal::lgTemperatureConstant, phycon, StopCalc, t_phycon::te, t_StopCalc::TeFloor, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, tfidle(), and thermal.
Referenced by AGN_He1_CS(), AGN_Hemis(), ChargTranPun(), ConvInitSolution(), ConvTempEdenIoniz(), CoolEvaluate(), CoolHeatError(), CoolOxyg(), dgaunt(), ion_recombAGN(), IonCarbo(), iso_recomb_check(), iter_end_check(), map_do(), ParseConstant(), ParseTLaw(), PressureChange(), PresTotCurrent(), radius_increment(), RT_tau_init(), SaveDo(), SaveLineData(), zero(), and ZoneStart().
void tfidle | ( | bool | lgForceUpdate | ) |
tfidle update some temperature dependent variables
lgForceUpdate | option to force update of all variables |
Definition at line 143 of file temp_change.cpp.
References t_phycon::alnte, t_phycon::alogte, t_rfield::anu, t_rfield::anulog, ASSERT, cdEXIT, t_dense::cdsqte, COLL_CONST, t_rfield::ContBoltz, DEBUG_ENTRY, dense, t_dense::eden, t_dense::EdenHCorr, t_dense::edensqte, EVDEGK, FillGFF(), fp_equal(), GauntFF, GauntFF_T, t_rfield::gff, t_thermal::halfte, t_dense::HCorrFac, t_dense::IonHigh, ioQQQ, ipH_LIKE, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_rfield::ipMaxBolt, iso, lgGffNotFilled, lgRfieldMalloced, t_trace::lgTrace, t_trace::lgTrGant, LIMELM, LinterpTable(), LinterpVector(), MAX2, N_PHOTON_GFF, N_TE_GFF, t_rfield::nflux, t_rfield::nupper, PhoGFF, phycon, pow(), POW2, rfield, SEXP_LIMIT, t_phycon::sqlogz, t_phycon::sqrte, t_dense::SqrtEden, T1CM, 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, TE1RYD, 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, TeGFF, t_phycon::teinv, t_phycon::telogn, t_phycon::tesqrd, thermal, TorF(), TotalInsanity(), trace, t_thermal::tsq1, and t_dense::xIonDense.
Referenced by TempChange().
Definition at line 41 of file temp_change.cpp.
Referenced by FillGFF(), InterpolateGff(), and tfidle().
Definition at line 42 of file temp_change.cpp.
long lgGffNotFilled = true [static] |
Definition at line 37 of file temp_change.cpp.
long N_PHOTON_GFF [static] |
Definition at line 40 of file temp_change.cpp.
Referenced by FillGFF(), InterpolateGff(), and tfidle().
const long N_TE_GFF = 41 |
Definition at line 39 of file temp_change.cpp.
Referenced by FillGFF(), InterpolateGff(), and tfidle().
Definition at line 46 of file temp_change.cpp.
Referenced by FillGFF(), InterpolateGff(), and tfidle().
Definition at line 44 of file temp_change.cpp.
Referenced by FillGFF(), InterpolateGff(), and tfidle().