#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 dependency graph for temp_change.cpp:
Go to the source code of this file.
Defines | |
#define | chLine_LENGTH 1000 |
Functions | |
STATIC void | tauff (void) |
STATIC void | velset (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) |
Variables | |
static long | lgGffNotFilled = true |
const long | N_TE_GFF = 21 |
const long | N_PHOTON_GFF = 145 |
static realnum *** | GauntFF |
static realnum ** | GauntFF_T |
static realnum | TeGFF [N_TE_GFF] |
static realnum | PhoGFF [N_PHOTON_GFF] |
#define chLine_LENGTH 1000 |
STATIC void FillGFF | ( | void | ) |
Definition at line 590 of file temp_change.cpp.
References cdEXIT, chLine_LENGTH, cont_gaunt_calc(), DEBUG_ENTRY, FFmtRead(), GauntFF, GauntFF_T, INPUT_LINE_LENGTH, ioQQQ, t_rfield::lgCompileGauntFF, t_trace::lgTrace, MALLOC, N_PHOTON_GFF, N_TE_GFF, open_data(), PhoGFF, read_whole_line(), rfield, TeGFF, and trace.
Here is the call graph for this function:
STATIC realnum InterpolateGff | ( | long | charge, | |
double | ERyd | |||
) |
Definition at line 869 of file temp_change.cpp.
References t_phycon::alogte, ASSERT, cdEXIT, DEBUG_ENTRY, ioQQQ, phycon, and TeGFF.
STATIC int LinterpTable | ( | realnum ** | t, | |
realnum * | v, | |||
long int | lta, | |||
long int | ltb, | |||
realnum | x, | |||
realnum * | a, | |||
long int * | pipx | |||
) |
Definition at line 988 of file temp_change.cpp.
References ASSERT, DEBUG_ENTRY, and fhunt().
Here is the call graph for this function:
STATIC void tauff | ( | void | ) |
Definition at line 453 of file temp_change.cpp.
References t_rfield::anu, DEBUG_ENTRY, dense, t_dense::eden, t_rfield::EnergyBremsThin, t_rfield::ipEnergyBremsThin, t_rfield::ipPlasma, lgOpacMalloced, t_rfield::lgPlasNu, MAX2, t_rfield::nflux, opac, t_rfield::plsfrq, t_rfield::plsfrqmax, rfield, t_opac::TauAbsGeo, and t_rfield::widflx.
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 106 of file temp_change.cpp.
References DEBUG_ENTRY, ioQQQ, phycon, t_phycon::te, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, and tfidle().
Here is the call graph for this function:
void TempChange | ( | double | TempNew, | |
bool | lgForceUpdate | |||
) |
TempChange change kinetic temperature, calls tfidle
Definition at line 52 of file temp_change.cpp.
Referenced by AGN_He1_CS(), AGN_Hemis(), ConvInitSolution(), ConvTempEdenIoniz(), CoolEvaluate(), CoolHeatError(), dgaunt(), ion_recombAGN(), IonCarbo(), iso_recomb_check(), ParseConstant(), ParseTLaw(), and PresTotCurrent().
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, DEBUG_ENTRY, dense, t_dense::eden, EVDEGK, fp_equal(), t_thermal::halfte, ioQQQ, LIMELM, phycon, POW2, t_phycon::sqlogz, t_phycon::sqrte, T1CM, t_phycon::te, TE1RYD, t_phycon::te32, 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(), and t_thermal::tsq1.
Referenced by TempChange().
Here is the call graph for this function:
STATIC void velset | ( | void | ) |
Definition at line 523 of file temp_change.cpp.
References ATOMIC_MASS_UNIT, t_dense::AtomicWeight, t_DoppVel::AveVel, BOLTZMANN, DEBUG_ENTRY, dense, t_radius::depth, t_DoppVel::DispScale, t_DoppVel::doppler, DoppVel, phycon, PI, POW2, radius, sexp(), t_phycon::te, t_DoppVel::TurbVel, wind, and t_wind::windv0.
Here is the call graph for this function:
long lgGffNotFilled = true [static] |
Definition at line 39 of file temp_change.cpp.
const long N_PHOTON_GFF = 145 |
const long N_TE_GFF = 21 |
realnum PhoGFF[N_PHOTON_GFF] [static] |