Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stars.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2023 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef STARS_H_
5 #define STARS_H_
6 
7 
9 static const int MDIM = 4;
10 
12 static const int MNAM = 6;
13 
16 typedef enum {
19 } IntMode;
20 
21 typedef enum {
23 } tl_grid;
24 
25 typedef enum {
27 } sb_mode;
28 
30 {
31  int nFound;
33  int nOK;
34  int nFail;
36 };
37 
39 void AtmospheresAvail();
40 
44 long AtlasInterpolate(double val[], /* val[nval] */
45  long *nval,
46  long *ndim,
47  const string& chMetalicity,
48  const string& chODFNew,
49  bool lgList,
50  double *Tlow,
51  double *Thigh);
52 
56 long CoStarInterpolate(double val[], /* requested model parameters */
57  long *nval,
58  long *ndim,
59  IntMode imode, /* which interpolation mode is requested */
60  bool lgHalo, /* flag indicating whether solar (==0) or halo (==1) abundances */
61  bool lgList,
62  double *val0_lo,
63  double *val0_hi);
64 
66 bool GridCompile(const string& InName);
68 long GridInterpolate(double val[], /* val[nval] */
69  long *nval,
70  long *ndim,
71  const string& InName,
72  bool lgList,
73  double *Tlow,
74  double *Thigh);
75 
79 long HaardtMadauInterpolate(double val,
80  int version,
81  bool lgQuasar,
82  double *zlow,
83  double *zhigh);
84 
88 long KhaireSrianandInterpolate(double val,
89  int Q,
90  double *zlow,
91  double *zhigh);
92 
96 long Kurucz79Interpolate(double val[], /* val[nval] */
97  long *nval,
98  long *ndim,
99  bool lgList,
100  double *Tlow,
101  double *Thigh);
102 
106 long MihalasInterpolate(double val[], /* val[nval] */
107  long *nval,
108  long *ndim,
109  bool lgList,
110  double *Tlow,
111  double *Thigh);
112 
115 bool RauchCompile(process_counter& pc);
117 long RauchInterpolateHydr(double val[], /* val[nval] */
118  long *nval,
119  long *ndim,
120  bool lgList,
121  double *Tlow,
122  double *Thigh);
124 long RauchInterpolateHelium(double val[], /* val[nval] */
125  long *nval,
126  long *ndim,
127  bool lgList,
128  double *Tlow,
129  double *Thigh);
131 long RauchInterpolateHpHe(double val[], /* val[nval] */
132  long *nval,
133  long *ndim,
134  bool lgList,
135  double *Tlow,
136  double *Thigh);
138 long RauchInterpolatePG1159(double val[], /* val[nval] */
139  long *nval,
140  long *ndim,
141  bool lgList,
142  double *Tlow,
143  double *Thigh);
145 long RauchInterpolateCOWD(double val[], /* val[nval] */
146  long *nval,
147  long *ndim,
148  bool lgList,
149  double *Tlow,
150  double *Thigh);
152 long RauchInterpolateHCa(double val[], /* val[nval] */
153  long *nval,
154  long *ndim,
155  bool lgHalo,
156  bool lgList,
157  double *Tlow,
158  double *Thigh);
160 long RauchInterpolateHNi(double val[], /* val[nval] */
161  long *nval,
162  long *ndim,
163  bool lgHalo,
164  bool lgList,
165  double *Tlow,
166  double *Thigh);
167 
169 bool StarburstInitialize(const string& chInName,
170  const string& chOutName,
171  sb_mode mode);
174 
178 long TlustyInterpolate(double val[], /* val[nval] */
179  long *nval,
180  long *ndim,
181  tl_grid tlg,
182  const string& chMetalicity,
183  bool lgList,
184  double *Tlow,
185  double *Thigh);
186 
190 long WernerInterpolate(double val[], /* val[nval] */
191  long *nval,
192  long *ndim,
193  bool lgList,
194  double *Tlow,
195  double *Thigh);
196 
200 long WMBASICInterpolate(double val[], /* val[nval] */
201  long *nval,
202  long *ndim,
203  bool lgList,
204  double *Tlow,
205  double *Thigh);
206 
207 #endif /* STARS_H_ */
bool TlustyCompile(process_counter &pc)
Definition: stars.cpp:1400
bool Kurucz79Compile(process_counter &pc)
Definition: stars.cpp:819
long HaardtMadauInterpolate(double val, int version, bool lgQuasar, double *zlow, double *zhigh)
Definition: stars.cpp:689
long AtlasInterpolate(double val[], long *nval, long *ndim, const string &chMetalicity, const string &chODFNew, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:470
bool AtlasCompile(process_counter &pc)
Definition: stars.cpp:389
long WernerInterpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1551
long KhaireSrianandInterpolate(double val, int Q, double *zlow, double *zhigh)
Definition: stars.cpp:788
bool KhaireSrianandCompile(process_counter &pc)
Definition: stars.cpp:763
long RauchInterpolateHpHe(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1231
long WMBASICInterpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1619
long TlustyInterpolate(double val[], long *nval, long *ndim, tl_grid tlg, const string &chMetalicity, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1466
Definition: stars.h:17
int notProcessed
Definition: stars.h:32
void AtmospheresAvail()
Definition: stars.cpp:197
int nFound
Definition: stars.h:31
Definition: stars.h:17
bool MihalasCompile(process_counter &pc)
Definition: stars.cpp:860
Definition: stars.h:17
IntMode
Definition: stars.h:16
bool StarburstCompile(process_counter &pc)
Definition: stars.cpp:1377
long RauchInterpolatePG1159(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1131
Definition: stars.h:18
Definition: stars.h:26
long MihalasInterpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:875
long RauchInterpolateHydr(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1181
Definition: stars.h:18
bool HaardtMadauCompile(process_counter &pc)
Definition: stars.cpp:672
tl_grid
Definition: stars.h:21
Definition: stars.h:22
Definition: stars.h:18
long RauchInterpolateCOWD(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1156
Definition: stars.h:29
Definition: stars.h:26
int nFail
Definition: stars.h:34
bool GridCompile(const string &InName)
Definition: stars.cpp:622
bool RauchCompile(process_counter &pc)
Definition: stars.cpp:907
long RauchInterpolateHelium(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1206
long RauchInterpolateHCa(double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1073
long RauchInterpolateHNi(double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1102
long GridInterpolate(double val[], long *nval, long *ndim, const string &InName, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:638
int nOK
Definition: stars.h:33
Definition: stars.h:26
long Kurucz79Interpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:835
Definition: stars.h:22
process_counter()
Definition: stars.h:35
bool StarburstInitialize(const string &chInName, const string &chOutName, sb_mode mode)
Definition: stars.cpp:1256
static const int MNAM
Definition: stars.h:12
static const int MDIM
Definition: stars.h:9
bool WernerCompile(process_counter &pc)
Definition: stars.cpp:1518
sb_mode
Definition: stars.h:25
bool CoStarCompile(process_counter &pc)
Definition: stars.cpp:530
long CoStarInterpolate(double val[], long *nval, long *ndim, IntMode imode, bool lgHalo, bool lgList, double *val0_lo, double *val0_hi)
Definition: stars.cpp:557
bool WMBASICCompile(process_counter &pc)
Definition: stars.cpp:1606
Definition: stars.h:22