Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
cooling.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CoolZero (void)
 
void CoolAdd (const char *chLabel, realnum xlambda, double cool)
 
void CoolSum (double *total)
 
void CoolEvaluate (double *tot)
 
void coolpr (FILE *io, const char *chLabel, realnum lambda, double ratio, const char *chJOB)
 
void HeatSum (void)
 
void SecIoniz (void)
 
void HeatZero (void)
 
void CoolDima (void)
 

Variables

const bool lgConvBaseHeatTest =false
 

Function Documentation

◆ CoolAdd()

void CoolAdd ( const char * chLabel,
realnum xlambda,
double cool )

CoolAdd add coolants to the cooling stack, called in evaluation of cooling function

Parameters
*chLabel
xlambda
cool

References ASSERT, DEBUG_ENTRY, MAX2, NCOLNT, NCOLNT_LAB_LEN, and thermal.

Referenced by atom_level2(), CoolEvaluate(), dBase_solve(), and iso_cool().

◆ CoolDima()

void CoolDima ( void )

◆ CoolEvaluate()

◆ coolpr()

void coolpr ( FILE * io,
const char * chLabel,
realnum lambda,
double ratio,
const char * chJOB )

coolpr stores coolants before block printed, when printing cooling agents

Parameters
*iothe label for the coolant
*chLabel
lambdathe wavelength
ratiothe ratio of this coolant, to total cooling, may be negative
*chJOBwhich job, either ZERO, DOIT, or DONE

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, MIN2, NCOLNT_LAB_LEN, NCOLSAV, and ShowMe().

Referenced by dmpary(), fndstr(), and map_do().

Here is the call graph for this function:

◆ CoolSum()

void CoolSum ( double * total)

CoolSum total cooling from all entries into cooling stack

References dBaseTrans, DEBUG_ENTRY, DumpLine(), fprintf(), ioQQQ, NISO, nSpecies, nWindLine, TauLine2, and thermal.

Referenced by CoolEvaluate().

Here is the call graph for this function:

◆ CoolZero()

void CoolZero ( void )

CoolZero set cooling and heating stack to zero

References DEBUG_ENTRY, ionbal, LIMELM, NCOLNT, and thermal.

Referenced by CoolEvaluate(), and t_thermal::zero().

◆ HeatSum()

void HeatSum ( void )

HeatSum evaluate all heating agents to determine total heating for this zone, called at end of ionize

Todo
1 add part of hard heat to secondaries

References ASSERT, called, cdEXIT, conv, CoolHeavy, DEBUG_ENTRY, molezone::den, dense, diatoms, ElectronFractions(), EXIT_FAILURE, FAINT_HEAT, findspecieslocal(), fixit, fprintf(), gv, Heavy, hmi, ionbal, ioQQQ, ipCARBON, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipOXYGEN, iso_sp, lgConvBaseHeatTest, LIMELM, MAX2, MIN2, NISO, nzone, phycon, PRT_DERIV, rfield, save, SecIoniz(), secondaries, ShowMe(), thermal, and trace.

Referenced by ConvBase(), and ConvEdenIoniz().

Here is the call graph for this function:

◆ HeatZero()

void HeatZero ( void )

HeatZero zeroes out the heating array, called at start of ionize

References DEBUG_ENTRY, LIMELM, and thermal.

Referenced by ConvBase(), and t_thermal::zero().

◆ SecIoniz()

void SecIoniz ( void )
Todo
2 find correct high-energy limit for these

References ASSERT, DEBUG_ENTRY, molezone::den, dense, ElectronFractions(), findspecieslocal(), fixit, fprintf(), Heavy, ionbal, ioQQQ, ipCARBON, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipOXYGEN, iso_sp, LIMELM, MAX2, MIN2, NISO, pow(), SDIV(), secondaries, SMALLFLOAT, and trace.

Referenced by ConvBase(), and HeatSum().

Here is the call graph for this function:

Variable Documentation

◆ lgConvBaseHeatTest

const bool lgConvBaseHeatTest =false

Referenced by ConvBase(), ConvEdenIoniz(), and HeatSum().