Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "hmi.h"
#include "thermal.h"
#include "colden.h"
#include "pressure.h"
#include "dense.h"
#include "trace.h"
#include "phycon.h"
#include "conv.h"
#include "physconst.h"
#include "iter_track.h"
#include "radius.h"
Functions | |
STATIC bool | lgConvTemp (const iter_track &TeTrack) |
STATIC double | CoolHeatError (double temp) |
STATIC void | DumpCoolStack (double thres) |
STATIC void | DumpHeatStack (double thres) |
void | ConvTempEdenIoniz () |
void ConvTempEdenIoniz | ( | ) |
ConvTempEdenIoniz determine temperature, called by ConPresTempEdenIoniz, calls ConvEdenIoniz to get electron density and ionization
References iter_track::add(), iter_track::bracket_width(), t_conv::chSolverTemp, iter_track::clear(), colden, t_colden::colden, conv, ConvEdenIoniz(), CoolHeatError(), t_thermal::ctot, t_conv::dCmHdT, DEBUG_ENTRY, dense, t_radius::depth, fp_equal(), fprintf(), t_dense::gas_phase, t_hmi::H2_total, hmi, t_thermal::htot, iter_track::init_bracket(), ioQQQ, ipCOL_HTOT, ipHYDROGEN, lgConvTemp(), t_conv::lgConvTemp, t_thermal::lgTeBD96, t_thermal::lgTemperatureConstant, t_thermal::lgTeSN99, t_thermal::lgTeTLaw, t_thermal::lgTLaw, t_trace::lgTrace, t_thermal::lgUnstable, max(), min(), iter_track::next_val(), t_trace::nTrConvg, phycon, POW4, PresTotCurrent(), iter_track::print_history(), radius, t_radius::Radius, safe_div(), iter_track::set_tol(), ShowMe(), t_conv::sigma_dCmHdT, t_thermal::SigmaBD96, sign(), t_thermal::T0BD96, t_thermal::T0SN99, DepthTable::tabval(), t_phycon::te, t_phycon::TEMP_LIMIT_LOW, TempChange(), thermal, t_thermal::tlaw, TorF(), TotalInsanity(), and trace.
Referenced by ConvInitSolution(), ConvPresTempEdenIoniz(), and PressureChange().
STATIC double CoolHeatError | ( | double | temp | ) |
References conv, ConvEdenIoniz(), t_thermal::ctot, molezone::dbase, DEBUG_ENTRY, DumpCoolStack(), DumpHeatStack(), findspecies(), fprintf(), t_conv::HeatCoolRelErrorAllowed, t_conv::hist_temp_cool, t_conv::hist_temp_heat, t_conv::hist_temp_nzone, t_conv::hist_temp_temp, t_thermal::htot, ioQQQ, t_thermal::lgTemperatureConstant, molecule::local(), t_trace::nTrConvg, species::numLevels_local, nzone, phycon, PresTotCurrent(), t_conv::register_(), t_phycon::te, TempChange(), thermal, and trace.
Referenced by ConvTempEdenIoniz().
STATIC void DumpCoolStack | ( | double | thres | ) |
References t_thermal::chClntLab, t_thermal::collam, t_thermal::cooling, t_thermal::ctot, dprintf(), t_thermal::heatnt, ioQQQ, t_thermal::ncltot, and thermal.
Referenced by CoolHeatError().
STATIC void DumpHeatStack | ( | double | thres | ) |
References dprintf(), t_thermal::heating(), t_thermal::htot, ioQQQ, LIMELM, and thermal.
Referenced by CoolHeatError().
STATIC bool lgConvTemp | ( | const iter_track & | TeTrack | ) |
References iter_track::bracket_width(), conv, t_thermal::ctot, t_conv::dCmHdT, DEBUG_ENTRY, iter_track::deriv(), fprintf(), t_conv::HeatCoolRelErrorAllowed, t_thermal::htot, ioQQQ, t_conv::lgConvTemp, t_thermal::lgTemperatureConstant, t_trace::nTrConvg, phycon, t_conv::sigma_dCmHdT, t_phycon::te, thermal, TorF(), and trace.
Referenced by ConvTempEdenIoniz().