cloudy  trunk
thermal.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2013 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef THERMAL_H_
5 #define THERMAL_H_
6 
7 /* thermal.h */
8 
9 #define NCOLNT 10000L
10 
13 void TempChange(
14  double TempNew ,
15  /* option to force update of all variables */
16  bool lgForceUpdate);
17 
21 void TempChange(
22  double TempNew );
23 
24 struct t_thermal {
25 
29 
33 
39 
45 
48 
52  long int nUnstable;
53  bool lgUnstable;
54 
58 
60  bool lgTeHigh;
61 
65  bool lgEdnGTcm;
66 
68  bool lgTLaw;
69 
72  bool lgTeBD96;
77 
80  bool lgTeSN99;
81 
88  double cooling[NCOLNT],
90  long int ncltot;
91 # define NCOLNT_LAB_LEN 15
93 
94  /* element coolants, the last one is molecular */
95  double elementcool[LIMELM + 1];
96 
97  /* cooling due to level 2 lines */
98  double dima;
99 
102  bool lgCNegChk;
103 
108 
110  double totcol,
117 
119  double dCooldT;
120 
122  double tsq1,
124 
128  double te_update;
129 
134 
140 
143  long int ipMaxExtra;
144 
147 
149  double htot,
150 
153 
156 
159 
162 
165 
166 };
167 extern t_thermal thermal;
168 
169 struct t_phoHeat
170 {
172  double HeatNet;
174  double HeatLowEnr;
176  double HeatHiEnr;
177 };
178 
179 #endif /* THERMAL_H_ */
t_thermal::CoolHeatMax
realnum CoolHeatMax
Definition: thermal.h:105
t_phoHeat::HeatLowEnr
double HeatLowEnr
Definition: thermal.h:174
t_thermal::chClntLab
char chClntLab[NCOLNT][NCOLNT_LAB_LEN+1]
Definition: thermal.h:92
t_thermal::wlCoolHeatMax
realnum wlCoolHeatMax
Definition: thermal.h:106
realnum
float realnum
Definition: cddefines.h:103
t_thermal::ipMaxExtra
long int ipMaxExtra
Definition: thermal.h:143
t_thermal::coolheat
double coolheat
Definition: thermal.h:116
t_thermal::thist
realnum thist
Definition: thermal.h:56
t_thermal::lgTeHigh
bool lgTeHigh
Definition: thermal.h:60
t_thermal::GBarMax
realnum GBarMax
Definition: thermal.h:142
t_thermal::char_tran_heat
double char_tran_heat
Definition: thermal.h:146
t_thermal::lgCExtraOn
bool lgCExtraOn
Definition: thermal.h:131
t_thermal::cooling
double cooling[NCOLNT]
Definition: thermal.h:88
t_thermal::CoolExtra
realnum CoolExtra
Definition: thermal.h:132
t_thermal::dima
double dima
Definition: thermal.h:98
t_thermal::HeatLineMax
realnum HeatLineMax
Definition: thermal.h:164
t_thermal::ctot
double ctot
Definition: thermal.h:112
t_thermal::lgTemperatureConstant
bool lgTemperatureConstant
Definition: thermal.h:32
t_thermal::nUnstable
long int nUnstable
Definition: thermal.h:52
t_thermal::heatnt
double heatnt[NCOLNT]
Definition: thermal.h:89
t_thermal::char_tran_cool
double char_tran_cool
Definition: thermal.h:146
t_thermal::lgCoolEvalOK
bool lgCoolEvalOK
Definition: thermal.h:139
t_thermal::cextpw
realnum cextpw
Definition: thermal.h:133
t_thermal::dHeatdT
double dHeatdT
Definition: thermal.h:155
t_phoHeat::HeatNet
double HeatNet
Definition: thermal.h:172
t_thermal::T0SN99
realnum T0SN99
Definition: thermal.h:79
t_thermal::tlowst
realnum tlowst
Definition: thermal.h:57
t_thermal::ncltot
long int ncltot
Definition: thermal.h:90
t_thermal::ConstTemp
realnum ConstTemp
Definition: thermal.h:44
t_thermal::power
double power
Definition: thermal.h:152
t_thermal::heatl
double heatl
Definition: thermal.h:114
t_thermal::collam
realnum collam[NCOLNT]
Definition: thermal.h:87
t_thermal::lgTLaw
bool lgTLaw
Definition: thermal.h:68
t_thermal::ConstGrainTemp
realnum ConstGrainTemp
Definition: thermal.h:47
t_thermal::heating
double heating[LIMELM][LIMELM]
Definition: thermal.h:158
t_thermal::lgTeSN99
bool lgTeSN99
Definition: thermal.h:80
t_thermal::T0BD96
realnum T0BD96
Definition: thermal.h:74
NCOLNT
#define NCOLNT
Definition: thermal.h:9
t_thermal::te_update
double te_update
Definition: thermal.h:128
LIMELM
const int LIMELM
Definition: cddefines.h:258
t_thermal::SigmaBD96
realnum SigmaBD96
Definition: thermal.h:76
t_thermal::htot
double htot
Definition: thermal.h:149
t_thermal
Definition: thermal.h:24
t_thermal::chCoolHeatMax
char chCoolHeatMax[NCOLNT_LAB_LEN+1]
Definition: thermal.h:107
t_thermal::elementcool
double elementcool[LIMELM+1]
Definition: thermal.h:95
t_phoHeat
Definition: thermal.h:169
TempChange
void TempChange(double TempNew, bool lgForceUpdate)
Definition: temp_change.cpp:51
t_thermal::dCooldT
double dCooldT
Definition: thermal.h:119
t_thermal::lgCNegChk
bool lgCNegChk
Definition: thermal.h:102
t_thermal::lgTemperatureConstantCommandParsed
bool lgTemperatureConstantCommandParsed
Definition: thermal.h:38
NCOLNT_LAB_LEN
#define NCOLNT_LAB_LEN
Definition: thermal.h:91
t_thermal::lgPredNextTe
bool lgPredNextTe
Definition: thermal.h:28
t_phoHeat::HeatHiEnr
double HeatHiEnr
Definition: thermal.h:176
t_thermal::FreeFreeTotHeat
double FreeFreeTotHeat
Definition: thermal.h:161
t_thermal::halfte
double halfte
Definition: thermal.h:123
t_thermal::tsq1
double tsq1
Definition: thermal.h:122
t_thermal::lgEdnGTcm
bool lgEdnGTcm
Definition: thermal.h:65
t_thermal::lgUnstable
bool lgUnstable
Definition: thermal.h:53
t_thermal::totcol
double totcol
Definition: thermal.h:110
thermal
t_thermal thermal
Definition: thermal.cpp:5
t_thermal::lgTeBD96
bool lgTeBD96
Definition: thermal.h:72