Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

realnum GetAveVelocity ( realnum  massAMU)

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

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().

Here is the call graph for this function:

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, t_phycon::te, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, and tfidle().

Here is the call graph for this function: