cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
57  tlowst;
58 
60  bool lgTeHigh;
61 
65  bool lgEdnGTcm;
66 
68  bool lgTLaw;
69 
72  bool lgTeBD96;
76  SigmaBD96;
77 
80  bool lgTeSN99;
81 
88  double cooling[NCOLNT],
89  heatnt[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,
112  ctot,
114  heatl,
116  coolheat;
117 
119  double dCooldT;
120 
122  double tsq1,
123  halfte;
124 
128  double te_update;
129 
133  cextpw;
134 
140 
143  long int ipMaxExtra;
144 
147 
149  double htot,
150 
152  power,
153 
155  dHeatdT;
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_ */
double totcol
Definition: thermal.h:110
double HeatHiEnr
Definition: thermal.h:176
char chClntLab[NCOLNT][NCOLNT_LAB_LEN+1]
Definition: thermal.h:92
realnum thist
Definition: thermal.h:56
t_thermal thermal
Definition: thermal.cpp:5
realnum CoolExtra
Definition: thermal.h:132
bool lgTeHigh
Definition: thermal.h:60
bool lgUnstable
Definition: thermal.h:53
realnum GBarMax
Definition: thermal.h:142
bool lgTeBD96
Definition: thermal.h:72
double ctot
Definition: thermal.h:110
bool lgCExtraOn
Definition: thermal.h:131
realnum wlCoolHeatMax
Definition: thermal.h:106
double char_tran_cool
Definition: thermal.h:146
double coolheat
Definition: thermal.h:110
realnum CoolHeatMax
Definition: thermal.h:105
double char_tran_heat
Definition: thermal.h:146
realnum tlowst
Definition: thermal.h:56
long int ipMaxExtra
Definition: thermal.h:143
void TempChange(double TempNew, bool lgForceUpdate)
Definition: temp_change.cpp:51
realnum HeatLineMax
Definition: thermal.h:164
double heatl
Definition: thermal.h:110
realnum T0SN99
Definition: thermal.h:79
double heatnt[NCOLNT]
Definition: thermal.h:88
bool lgTemperatureConstant
Definition: thermal.h:32
double heating[LIMELM][LIMELM]
Definition: thermal.h:158
realnum collam[NCOLNT]
Definition: thermal.h:87
double power
Definition: thermal.h:149
double dima
Definition: thermal.h:98
realnum ConstGrainTemp
Definition: thermal.h:47
double cooling[NCOLNT]
Definition: thermal.h:88
double te_update
Definition: thermal.h:128
double dHeatdT
Definition: thermal.h:149
bool lgTLaw
Definition: thermal.h:68
long int ncltot
Definition: thermal.h:90
long int nUnstable
Definition: thermal.h:52
realnum ConstTemp
Definition: thermal.h:44
bool lgCoolEvalOK
Definition: thermal.h:139
realnum T0BD96
Definition: thermal.h:74
float realnum
Definition: cddefines.h:107
realnum cextpw
Definition: thermal.h:132
double HeatLowEnr
Definition: thermal.h:174
bool lgTeSN99
Definition: thermal.h:80
bool lgCNegChk
Definition: thermal.h:102
#define NCOLNT
Definition: thermal.h:9
double htot
Definition: thermal.h:149
realnum SigmaBD96
Definition: thermal.h:74
const int LIMELM
Definition: cddefines.h:262
#define NCOLNT_LAB_LEN
Definition: thermal.h:91
bool lgPredNextTe
Definition: thermal.h:28
char chCoolHeatMax[NCOLNT_LAB_LEN+1]
Definition: thermal.h:107
double dCooldT
Definition: thermal.h:119
double HeatNet
Definition: thermal.h:172
double FreeFreeTotHeat
Definition: thermal.h:161
double halfte
Definition: thermal.h:122
bool lgEdnGTcm
Definition: thermal.h:65
double elementcool[LIMELM+1]
Definition: thermal.h:95
double tsq1
Definition: thermal.h:122
bool lgTemperatureConstantCommandParsed
Definition: thermal.h:38