cloudy  trunk
 All Data Structures 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-2022 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 #define MDIM 4
10 
12 #define 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(void);
40 
44 long AtlasInterpolate(double val[], /* val[nval] */
45  long *nval,
46  long *ndim,
47  const char *chMetalicity,
48  const char *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 char *InName);
68 long GridInterpolate(double val[], /* val[nval] */
69  long *nval,
70  long *ndim,
71  const char *FileName,
72  bool lgList,
73  double *Tlow,
74  double *Thigh);
75 
77 long HaardtMadauInterpolate(double val,
78  int version,
79  bool lgQuasar,
80  double *zlow,
81  double *zhigh);
82 
84 long KhaireSrianandInterpolate(double val,
85  int Q,
86  double *zlow,
87  double *zhigh);
88 
92 long Kurucz79Interpolate(double val[], /* val[nval] */
93  long *nval,
94  long *ndim,
95  bool lgList,
96  double *Tlow,
97  double *Thigh);
98 
102 long MihalasInterpolate(double val[], /* val[nval] */
103  long *nval,
104  long *ndim,
105  bool lgList,
106  double *Tlow,
107  double *Thigh);
108 
113 long RauchInterpolateHydr(double val[], /* val[nval] */
114  long *nval,
115  long *ndim,
116  bool lgList,
117  double *Tlow,
118  double *Thigh);
120 long RauchInterpolateHelium(double val[], /* val[nval] */
121  long *nval,
122  long *ndim,
123  bool lgList,
124  double *Tlow,
125  double *Thigh);
127 long RauchInterpolateHpHe(double val[], /* val[nval] */
128  long *nval,
129  long *ndim,
130  bool lgList,
131  double *Tlow,
132  double *Thigh);
134 long RauchInterpolatePG1159(double val[], /* val[nval] */
135  long *nval,
136  long *ndim,
137  bool lgList,
138  double *Tlow,
139  double *Thigh);
141 long RauchInterpolateCOWD(double val[], /* val[nval] */
142  long *nval,
143  long *ndim,
144  bool lgList,
145  double *Tlow,
146  double *Thigh);
148 long RauchInterpolateHCa(double val[], /* val[nval] */
149  long *nval,
150  long *ndim,
151  bool lgHalo,
152  bool lgList,
153  double *Tlow,
154  double *Thigh);
156 long RauchInterpolateHNi(double val[], /* val[nval] */
157  long *nval,
158  long *ndim,
159  bool lgHalo,
160  bool lgList,
161  double *Tlow,
162  double *Thigh);
163 
165 bool StarburstInitialize(const char chInName[],
166  const char chOutName[],
167  sb_mode mode);
170 
174 long TlustyInterpolate(double val[], /* val[nval] */
175  long *nval,
176  long *ndim,
177  tl_grid tlg,
178  const char *chMetalicity,
179  bool lgList,
180  double *Tlow,
181  double *Thigh);
182 
186 long WernerInterpolate(double val[], /* val[nval] */
187  long *nval,
188  long *ndim,
189  bool lgList,
190  double *Tlow,
191  double *Thigh);
192 
196 long WMBASICInterpolate(double val[], /* val[nval] */
197  long *nval,
198  long *ndim,
199  bool lgList,
200  double *Tlow,
201  double *Thigh);
202 
203 #endif /* STARS_H_ */
int WernerCompile(process_counter &pc)
Definition: stars.cpp:1651
bool GridCompile(const char *InName)
Definition: stars.cpp:721
long RauchInterpolateHydr(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1295
int notProcessed
Definition: stars.h:32
long CoStarInterpolate(double val[], long *nval, long *ndim, IntMode imode, bool lgHalo, bool lgList, double *val0_lo, double *val0_hi)
Definition: stars.cpp:653
long TlustyInterpolate(double val[], long *nval, long *ndim, tl_grid tlg, const char *chMetalicity, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1590
long HaardtMadauInterpolate(double val, int version, bool lgQuasar, double *zlow, double *zhigh)
Definition: stars.cpp:799
int TlustyCompile(process_counter &pc)
Definition: stars.cpp:1522
long RauchInterpolateHCa(double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1175
int nFound
Definition: stars.h:31
long WMBASICInterpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1763
int RauchCompile(process_counter &pc)
Definition: stars.cpp:1001
IntMode
Definition: stars.h:16
long KhaireSrianandInterpolate(double val, int Q, double *zlow, double *zhigh)
Definition: stars.cpp:872
long RauchInterpolateHpHe(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1351
int AtlasCompile(process_counter &pc)
Definition: stars.cpp:452
int Kurucz79Compile(process_counter &pc)
Definition: stars.cpp:903
bool StarburstCompile(process_counter &pc)
Definition: stars.cpp:1498
long MihalasInterpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:973
int CoStarCompile(process_counter &pc)
Definition: stars.cpp:622
tl_grid
Definition: stars.h:21
int MihalasCompile(process_counter &pc)
Definition: stars.cpp:949
long RauchInterpolateCOWD(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1267
long WernerInterpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1690
long RauchInterpolateHelium(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1323
long GridInterpolate(double val[], long *nval, long *ndim, const char *FileName, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:760
Definition: stars.h:26
int WMBASICCompile(process_counter &pc)
Definition: stars.cpp:1744
Definition: stars.h:22
void AtmospheresAvail()
Definition: stars.cpp:254
process_counter()
Definition: stars.h:35
long Kurucz79Interpolate(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:921
long RauchInterpolatePG1159(double val[], long *nval, long *ndim, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1239
sb_mode
Definition: stars.h:25
long RauchInterpolateHNi(double val[], long *nval, long *ndim, bool lgHalo, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:1207
Definition: stars.h:22
long AtlasInterpolate(double val[], long *nval, long *ndim, const char *chMetalicity, const char *chODFNew, bool lgList, double *Tlow, double *Thigh)
Definition: stars.cpp:553
bool StarburstInitialize(const char chInName[], const char chOutName[], sb_mode mode)
Definition: stars.cpp:1379