cloudy trunk
Loading...
Searching...
No Matches
temp_change.cpp File Reference
#include "cddefines.h"
#include "physconst.h"
#include "conv.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.

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 realnumPhoGFF

Function Documentation

◆ fhunt()

STATIC void fhunt ( realnum * xx,
long int n,
realnum x,
long int * j )

Definition at line 1017 of file temp_change.cpp.

References STATIC.

Referenced by LinterpTable().

◆ FillGFF()

STATIC void FillGFF ( void )

◆ GetAveVelocity()

realnum GetAveVelocity ( realnum massAMU)

GetAveVelocity get the average particle velocity at current conditions for a given mass

Definition at line 530 of file temp_change.cpp.

References ATOMIC_MASS_UNIT, BOLTZMANN, DoppVel, fixit(), phycon, PI, POW2, radius, sexp(), and wind.

Referenced by GrainChrgTransferRates(), GrainCollHeating(), GrainElecEmis1(), GrainElecRecomb1(), and mole_h2_grain_form().

Here is the call graph for this function:

◆ GetDopplerWidth()

◆ InterpolateGff()

STATIC realnum InterpolateGff ( long charge,
double ERyd )

Definition at line 835 of file temp_change.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, GauntFF, ioQQQ, MAX4, MIN4, N_PHOTON_GFF, N_TE_GFF, PhoGFF, phycon, STATIC, and TeGFF.

Referenced by FillGFF().

◆ LinterpTable()

STATIC int LinterpTable ( realnum ** t,
realnum * v,
long int lta,
long int ltb,
realnum x,
realnum * a,
long int * pipx )

Definition at line 954 of file temp_change.cpp.

References ASSERT, DEBUG_ENTRY, fhunt(), and STATIC.

Referenced by tfidle().

Here is the call graph for this function:

◆ LinterpVector()

STATIC int LinterpVector ( realnum ** t,
realnum * v,
long lta,
long ltb,
realnum * yy,
long ny,
realnum ** a )

Definition at line 988 of file temp_change.cpp.

References ASSERT, DEBUG_ENTRY, and STATIC.

Referenced by tfidle().

◆ tauff()

STATIC void tauff ( void )

Definition at line 450 of file temp_change.cpp.

References conv, DEBUG_ENTRY, lgOpacMalloced, MAX2, opac, rfield, and STATIC.

Referenced by tfidle().

◆ TempChange() [1/2]

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 110 of file temp_change.cpp.

References DEBUG_ENTRY, ioQQQ, lgAbort, phycon, and tfidle().

Here is the call graph for this function:

◆ TempChange() [2/2]

◆ tfidle()

void tfidle ( bool lgForceUpdate)

tfidle update some temperature dependent variables

Parameters
lgForceUpdateoption to force update of all variables

Definition at line 150 of file temp_change.cpp.

References ASSERT, cdEXIT, COLL_CONST, DEBUG_ENTRY, dense, EVDEGK, EXIT_FAILURE, FillGFF(), fp_equal(), GauntFF, GauntFF_T, ioQQQ, ipH_LIKE, ipHYDROGEN, iso_sp, lgGffNotFilled, lgRfieldMalloced, LIMELM, LinterpTable(), LinterpVector(), MAX2, N_PHOTON_GFF, N_TE_GFF, PhoGFF, phycon, POW2, rfield, SEXP_LIMIT, T1CM, tauff(), TE1RYD, TeGFF, thermal, TorF(), TotalInsanity(), and trace.

Referenced by TempChange(), and TempChange().

Here is the call graph for this function:

Variable Documentation

◆ GauntFF

realnum*** GauntFF
static

Definition at line 42 of file temp_change.cpp.

Referenced by FillGFF(), InterpolateGff(), and tfidle().

◆ GauntFF_T

realnum** GauntFF_T
static

Definition at line 43 of file temp_change.cpp.

Referenced by FillGFF(), and tfidle().

◆ lgGffNotFilled

long lgGffNotFilled = true
static

Definition at line 38 of file temp_change.cpp.

Referenced by FillGFF(), and tfidle().

◆ N_PHOTON_GFF

long N_PHOTON_GFF
static

Definition at line 41 of file temp_change.cpp.

Referenced by FillGFF(), InterpolateGff(), and tfidle().

◆ N_TE_GFF

const long N_TE_GFF = 41

Definition at line 40 of file temp_change.cpp.

Referenced by FillGFF(), InterpolateGff(), and tfidle().

◆ PhoGFF

realnum* PhoGFF
static

Definition at line 47 of file temp_change.cpp.

Referenced by FillGFF(), InterpolateGff(), and tfidle().

◆ TeGFF

realnum TeGFF[N_TE_GFF]
static

Definition at line 45 of file temp_change.cpp.

Referenced by FillGFF(), InterpolateGff(), and tfidle().