#include "cddefines.h"
#include "hmi.h"
#include "thermal.h"
#include "iso.h"
#include "hydrogenic.h"
#include "colden.h"
#include "h2.h"
#include "pressure.h"
#include "dense.h"
#include "struc.h"
#include "thirdparty.h"
#include "trace.h"
#include "phycon.h"
#include "conv.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 36 of file conv_temp_eden_ioniz.cpp.
References iter_track::add(), iter_track::bracket_width(), t_conv::chSolverTemp, iter_track::clear(), t_colden::colden, colden, conv, ConvEdenIoniz(), CoolHeatError(), t_thermal::ctot, t_conv::dCmHdT, DEBUG_ENTRY, dense, iter_track::deriv(), 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::lgTLaw, t_trace::lgTrace, t_thermal::lgUnstable, min(), iter_track::next_val(), t_trace::nTrConvg, phycon, POW4, PresTotCurrent(), iter_track::print_history(), safe_div(), iter_track::set_tol(), ShowMe(), t_conv::sigma_dCmHdT, t_thermal::SigmaBD96, sign(), t_thermal::T0BD96, t_thermal::T0SN99, t_phycon::te, t_phycon::TEMP_LIMIT_HIGH, TempChange(), thermal, TorF(), TotalInsanity(), and trace.
Referenced by ConvInitSolution(), and ConvPresTempEdenIoniz().
STATIC double CoolHeatError | ( | double | temp | ) |
Definition at line 309 of file conv_temp_eden_ioniz.cpp.
References conv, ConvEdenIoniz(), t_thermal::ctot, DEBUG_ENTRY, DumpCoolStack(), DumpHeatStack(), 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, t_trace::nTrConvg, nzone, phycon, PresTotCurrent(), t_phycon::te, TempChange(), thermal, and trace.
Referenced by ConvTempEdenIoniz().
STATIC void DumpCoolStack | ( | double | thres | ) |
Definition at line 361 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 393 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 273 of file conv_temp_eden_ioniz.cpp.
References iter_track::bracket_width(), conv, t_thermal::ctot, t_conv::dCmHdT, DEBUG_ENTRY, iter_track::deriv(), 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, t_phycon::TEMP_LIMIT_LOW, thermal, TorF(), and trace.
Referenced by ConvTempEdenIoniz().