#include "cddefines.h"
#include "hmi.h"
#include "thermal.h"
#include "iso.h"
#include "hydrogenic.h"
#include "colden.h"
#include "h2.h"
#include "stopcalc.h"
#include "pressure.h"
#include "dense.h"
#include "trace.h"
#include "phycon.h"
#include "conv.h"
Go to the source code of this file.
Defines | |
#define | USENUMER false |
#define | ITERMAX 100 |
Functions | |
static double | CoolHeatError (double temp) |
static double | TeBrent (double x1, double x2) |
static void | MakeDeriv (const char *job, double *DerivNumer) |
static void | PutHetCol (double te, double htot, double ctot) |
int | ConvTempEdenIoniz (void) |
bool | lgConvTemp (void) |
Variables | |
static const int | LIMDEF = 60 |
#define ITERMAX 100 |
#define USENUMER false |
Referenced by ConvTempEdenIoniz().
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 53 of file conv_temp_eden_ioniz.cpp.
References cdEXIT(), t_conv::chSolverTemp, t_colden::colden, colden, conv, ConvEdenIoniz(), CoolHeatError(), t_thermal::ctot, t_thermal::dCooldT, DEBUG_ENTRY, DEBUG_EXIT, dense, t_thermal::dHeatdT, t_thermal::dTemper, t_dense::eden, t_dense::gas_phase, h2, t_hmi::H2_total, t_conv::HeatCoolRelErrorAllowed, t_hmi::HeatH2Dexc_BigH2, hmi, t_thermal::htot, hydro, ioQQQ, ipCOL_HTOT, ipH_LIKE, ipHYDROGEN, iso, lgAbort, t_conv::lgCmHOsc, t_conv::lgConvEden, t_conv::lgConvIoniz, t_conv::lgConvTemp, lgConvTemp(), t_h2::lgH2ON, t_hydro::lgHColionImp, t_conv::lgOscilOTS, t_thermal::lgTeBD96, t_thermal::lgTeSN99, t_thermal::lgTLaw, t_conv::lgTOscl, t_trace::lgTrace, t_thermal::lgTSetOn, t_thermal::lgUnstable, LIMDEF, MakeDeriv(), MAX2, MIN2, t_trace::nTrConvg, nzone, phycon, PresTotCurrent(), PutHetCol(), t_iso::RecomCollisFrac, ShowMe(), t_thermal::SigmaBD96, sign(), t_thermal::T0BD96, t_thermal::T0SN99, t_phycon::te, TeBrent(), tfidle(), thermal, t_thermal::thist, t_thermal::tlowst, TotalInsanity(), trace, USENUMER, and t_dense::xIonDense.
Referenced by ConvInitSolution(), and ConvPresTempEdenIoniz().
static double CoolHeatError | ( | double | temp | ) | [static] |
Definition at line 777 of file conv_temp_eden_ioniz.cpp.
References ConvEdenIoniz(), t_thermal::ctot, t_thermal::htot, lgAbort, phycon, PresTotCurrent(), PutHetCol(), t_phycon::te, tfidle(), and thermal.
Referenced by ConvTempEdenIoniz(), and TeBrent().
bool lgConvTemp | ( | void | ) |
returns true if heating-cooling is converged
Definition at line 942 of file conv_temp_eden_ioniz.cpp.
References conv, t_thermal::ctot, t_conv::HeatCoolRelErrorAllowed, t_thermal::htot, t_conv::lgConvTemp, t_thermal::lgTSetOn, phycon, StopCalc, t_phycon::te, t_StopCalc::TeLowest, and thermal.
Referenced by ConvPresTempEdenIoniz(), and ConvTempEdenIoniz().
static void MakeDeriv | ( | const char * | job, | |
double * | DerivNumer | |||
) | [static] |
Definition at line 684 of file conv_temp_eden_ioniz.cpp.
References cdEXIT(), t_thermal::ctot, t_thermal::dCooldT, DEBUG_ENTRY, DEBUG_EXIT, t_thermal::htot, ioQQQ, t_thermal::lgTSetOn, nzone, phycon, SMALLFLOAT, t_phycon::te, and thermal.
Referenced by ConvTempEdenIoniz().
static void PutHetCol | ( | double | te, | |
double | htot, | |||
double | ctot | |||
) | [static] |
Definition at line 743 of file conv_temp_eden_ioniz.cpp.
References ASSERT, t_thermal::ClGrid, DEBUG_ENTRY, DEBUG_EXIT, t_thermal::HtGrid, t_thermal::ipGrid, NGRID, nzone, t_thermal::nZonGrid, t_thermal::TeGrid, and thermal.
Referenced by ConvTempEdenIoniz(), and CoolHeatError().
static double TeBrent | ( | double | x1, | |
double | x2 | |||
) | [static] |
Definition at line 803 of file conv_temp_eden_ioniz.cpp.
References cdEXIT(), conv, CoolHeatError(), DEBUG_ENTRY, DEBUG_EXIT, t_conv::HeatCoolRelErrorAllowed, t_thermal::htot, ioQQQ, ITERMAX, MIN2, sign(), and thermal.
Referenced by ConvTempEdenIoniz().
const int LIMDEF = 60 [static] |