cloudy
trunk
|
#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"
Go to the source code of this file.
Functions | |
STATIC bool | lgConvTemp (const iter_track &TeTrack) |
STATIC double | CoolHeatError (double temp) |
STATIC void | DumpCoolStack (double thres) |
STATIC void | DumpHeatStack (double thres) |
int | ConvTempEdenIoniz (void) |
int ConvTempEdenIoniz | ( | void | ) |
ConvTempEdenIoniz determine temperature, called by ConPresTempEdenIoniz, calls ConvEdenIoniz to get electron density and ionization returns 0 if ok, 1 if disaster
Definition at line 34 of file conv_temp_eden_ioniz.cpp.
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, lgAbort, 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 | ) |
Definition at line 278 of file conv_temp_eden_ioniz.cpp.
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, lgAbort, 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 | ) |
Definition at line 341 of file conv_temp_eden_ioniz.cpp.
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 | ) |
Definition at line 373 of file conv_temp_eden_ioniz.cpp.
References dprintf(), t_thermal::heating(), t_thermal::htot, ioQQQ, LIMELM, and thermal.
Referenced by CoolHeatError().
STATIC bool lgConvTemp | ( | const iter_track & | TeTrack | ) |
Definition at line 231 of file conv_temp_eden_ioniz.cpp.
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, lgAbort, t_conv::lgConvTemp, t_thermal::lgTemperatureConstant, t_trace::nTrConvg, phycon, t_conv::sigma_dCmHdT, t_phycon::te, thermal, TorF(), and trace.
Referenced by ConvTempEdenIoniz().