cloudy trunk
Loading...
Searching...
No Matches
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
13void TempChange(
14 double TempNew ,
15 /* option to force update of all variables */
16 bool lgForceUpdate);
17
21void TempChange(
22 double TempNew );
23
24struct t_thermal {
25
29
33
39
45
48
52 long int nUnstable;
54
58
61
66
68 bool lgTLaw;
69
77
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
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};
167extern t_thermal thermal;
168
170{
172 double HeatNet;
176 double HeatHiEnr;
177};
178
179#endif /* THERMAL_H_ */
const int LIMELM
Definition cddefines.h:258
float realnum
Definition cddefines.h:103
double HeatNet
Definition thermal.h:172
double HeatHiEnr
Definition thermal.h:176
double HeatLowEnr
Definition thermal.h:174
double heatl
Definition thermal.h:114
double FreeFreeTotHeat
Definition thermal.h:161
double heating[LIMELM][LIMELM]
Definition thermal.h:158
realnum collam[NCOLNT]
Definition thermal.h:87
double char_tran_heat
Definition thermal.h:146
long int nUnstable
Definition thermal.h:52
realnum thist
Definition thermal.h:56
bool lgCoolEvalOK
Definition thermal.h:139
double dima
Definition thermal.h:98
double heatnt[NCOLNT]
Definition thermal.h:89
realnum HeatLineMax
Definition thermal.h:164
double tsq1
Definition thermal.h:122
bool lgCExtraOn
Definition thermal.h:131
double dHeatdT
Definition thermal.h:155
realnum ConstGrainTemp
Definition thermal.h:47
realnum T0SN99
Definition thermal.h:79
bool lgTLaw
Definition thermal.h:68
double ctot
Definition thermal.h:112
realnum wlCoolHeatMax
Definition thermal.h:106
double dCooldT
Definition thermal.h:119
bool lgTeHigh
Definition thermal.h:60
bool lgTeSN99
Definition thermal.h:80
double htot
Definition thermal.h:149
bool lgTeBD96
Definition thermal.h:72
double char_tran_cool
Definition thermal.h:146
bool lgTemperatureConstantCommandParsed
Definition thermal.h:38
realnum cextpw
Definition thermal.h:133
bool lgPredNextTe
Definition thermal.h:28
realnum CoolHeatMax
Definition thermal.h:105
bool lgEdnGTcm
Definition thermal.h:65
double coolheat
Definition thermal.h:116
realnum CoolExtra
Definition thermal.h:132
double power
Definition thermal.h:152
realnum GBarMax
Definition thermal.h:142
char chClntLab[NCOLNT][NCOLNT_LAB_LEN+1]
Definition thermal.h:92
bool lgTemperatureConstant
Definition thermal.h:32
realnum SigmaBD96
Definition thermal.h:76
long int ipMaxExtra
Definition thermal.h:143
double totcol
Definition thermal.h:110
char chCoolHeatMax[NCOLNT_LAB_LEN+1]
Definition thermal.h:107
double elementcool[LIMELM+1]
Definition thermal.h:95
double halfte
Definition thermal.h:123
long int ncltot
Definition thermal.h:90
double cooling[NCOLNT]
Definition thermal.h:88
bool lgCNegChk
Definition thermal.h:102
realnum ConstTemp
Definition thermal.h:44
realnum tlowst
Definition thermal.h:57
realnum T0BD96
Definition thermal.h:74
bool lgUnstable
Definition thermal.h:53
double te_update
Definition thermal.h:128
t_thermal thermal
Definition thermal.cpp:5
void TempChange(double TempNew, bool lgForceUpdate)
#define NCOLNT_LAB_LEN
Definition thermal.h:91
#define NCOLNT
Definition thermal.h:9