Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
temp_change.cpp File Reference
#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"
Include dependency graph for temp_change.cpp:

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)
 

Function Documentation

◆ GetAveVelocity()

realnum GetAveVelocity ( realnum massAMU)

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

References DEBUG_ENTRY, DoppVel, fixit, phycon, 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()

◆ tauff()

STATIC void tauff ( )

References conv, DEBUG_ENTRY, lgOpacAllocated, 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

References DEBUG_ENTRY, fprintf(), ioQQQ, 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

References DEBUG_ENTRY, dense, fp_equal(), fprintf(), ioQQQ, ipHYDROGEN, lgRfieldAllocated, LIMELM, phycon, pow(), POW2, rfield, tauff(), thermal, TotalInsanity(), vexp(), and vexpm1().

Referenced by TempChange(), and TempChange().

Here is the call graph for this function: