cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
elementnames.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef _ELEMENTNAMES_H_
5 #define _ELEMENTNAMES_H_
6 
10 
14  char chElementName[LIMELM+3][11];
15 
19 
22  char chElementSym[LIMELM+3][3];
23 
26  char chIonStage[LIMELM+4][3];
27 
29  char chIonRoman[LIMELM+4][7];
30 
31  /* here lies the first C++ code, written by PvH, 2006 Nov 20, after
32  * the conversion from C to C++. It is a constructor. */
34  strncpy( chElementName[0], "Hydrogen ", 11 );
35  strncpy( chElementName[1], "Helium ", 11 );
36  strncpy( chElementName[2], "Lithium ", 11 );
37  strncpy( chElementName[3], "Beryllium ", 11 );
38  strncpy( chElementName[4], "Boron ", 11 );
39  strncpy( chElementName[5], "Carbon ", 11 );
40  strncpy( chElementName[6], "Nitrogen ", 11 );
41  strncpy( chElementName[7], "Oxygen ", 11 );
42  strncpy( chElementName[8], "Fluorine ", 11 );
43  strncpy( chElementName[9], "Neon ", 11 );
44  strncpy( chElementName[10], "Sodium ", 11 );
45  strncpy( chElementName[11], "Magnesium ", 11 );
46  strncpy( chElementName[12], "Aluminium ", 11 );
47  strncpy( chElementName[13], "Silicon ", 11 );
48  strncpy( chElementName[14], "Phosphorus", 11 );
49  strncpy( chElementName[15], "Sulphur ", 11 );
50  strncpy( chElementName[16], "Chlorine ", 11 );
51  strncpy( chElementName[17], "Argon ", 11 );
52  strncpy( chElementName[18], "Potassium ", 11 );
53  strncpy( chElementName[19], "Calcium ", 11 );
54  strncpy( chElementName[20], "Scandium ", 11 );
55  strncpy( chElementName[21], "Titanium ", 11 );
56  strncpy( chElementName[22], "Vanadium ", 11 );
57  strncpy( chElementName[23], "Chromium ", 11 );
58  strncpy( chElementName[24], "Manganese ", 11 );
59  strncpy( chElementName[25], "Iron ", 11 );
60  strncpy( chElementName[26], "Cobalt ", 11 );
61  strncpy( chElementName[27], "Nickel ", 11 );
62  strncpy( chElementName[28], "Copper ", 11 );
63  strncpy( chElementName[29], "Zinc ", 11 );
64  strncpy( chElementName[30], "C12O18 ", 11 );
65  strncpy( chElementName[31], "C13O18 ", 11 );
66  strncpy( chElementName[32], "H2 ", 11 );
67 
68  strncpy( chElementNameShort[0], "HYDR", 5 );
69  strncpy( chElementNameShort[1], "HELI", 5 );
70  strncpy( chElementNameShort[2], "LITH", 5 );
71  strncpy( chElementNameShort[3], "BERY", 5 );
72  strncpy( chElementNameShort[4], "BORO", 5 );
73  strncpy( chElementNameShort[5], "CARB", 5 );
74  strncpy( chElementNameShort[6], "NITR", 5 );
75  strncpy( chElementNameShort[7], "OXYG", 5 );
76  strncpy( chElementNameShort[8], "FLUO", 5 );
77  strncpy( chElementNameShort[9], "NEON", 5 );
78  strncpy( chElementNameShort[10], "SODI", 5 );
79  strncpy( chElementNameShort[11], "MAGN", 5 );
80  strncpy( chElementNameShort[12], "ALUM", 5 );
81  strncpy( chElementNameShort[13], "SILI", 5 );
82  strncpy( chElementNameShort[14], "PHOS", 5 );
83  strncpy( chElementNameShort[15], "SULP", 5 );
84  strncpy( chElementNameShort[16], "CHLO", 5 );
85  strncpy( chElementNameShort[17], "ARGO", 5 );
86  strncpy( chElementNameShort[18], "POTA", 5 );
87  strncpy( chElementNameShort[19], "CALC", 5 );
88  strncpy( chElementNameShort[20], "SCAN", 5 );
89  strncpy( chElementNameShort[21], "TITA", 5 );
90  strncpy( chElementNameShort[22], "VANA", 5 );
91  strncpy( chElementNameShort[23], "CHRO", 5 );
92  strncpy( chElementNameShort[24], "MANG", 5 );
93  strncpy( chElementNameShort[25], "IRON", 5 );
94  strncpy( chElementNameShort[26], "COBA", 5 );
95  strncpy( chElementNameShort[27], "NICK", 5 );
96  strncpy( chElementNameShort[28], "COPP", 5 );
97  strncpy( chElementNameShort[29], "ZINC", 5 );
98  strncpy( chElementNameShort[30], "12CO", 5 );
99  strncpy( chElementNameShort[31], "13CO", 5 );
100  strncpy( chElementNameShort[32], "H2 ", 5 );
101 
102  strncpy( chElementSym[0], "H ", 3 );
103  strncpy( chElementSym[1], "He", 3 );
104  strncpy( chElementSym[2], "Li", 3 );
105  strncpy( chElementSym[3], "Be", 3 );
106  strncpy( chElementSym[4], "B ", 3 );
107  strncpy( chElementSym[5], "C ", 3 );
108  strncpy( chElementSym[6], "N ", 3 );
109  strncpy( chElementSym[7], "O ", 3 );
110  strncpy( chElementSym[8], "F ", 3 );
111  strncpy( chElementSym[9], "Ne", 3 );
112  strncpy( chElementSym[10], "Na", 3 );
113  strncpy( chElementSym[11], "Mg", 3 );
114  strncpy( chElementSym[12], "Al", 3 );
115  strncpy( chElementSym[13], "Si", 3 );
116  strncpy( chElementSym[14], "P ", 3 );
117  strncpy( chElementSym[15], "S ", 3 );
118  strncpy( chElementSym[16], "Cl", 3 );
119  strncpy( chElementSym[17], "Ar", 3 );
120  strncpy( chElementSym[18], "K ", 3 );
121  strncpy( chElementSym[19], "Ca", 3 );
122  strncpy( chElementSym[20], "Sc", 3 );
123  strncpy( chElementSym[21], "Ti", 3 );
124  strncpy( chElementSym[22], "V ", 3 );
125  strncpy( chElementSym[23], "Cr", 3 );
126  strncpy( chElementSym[24], "Mn", 3 );
127  strncpy( chElementSym[25], "Fe", 3 );
128  strncpy( chElementSym[26], "Co", 3 );
129  strncpy( chElementSym[27], "Ni", 3 );
130  strncpy( chElementSym[28], "Cu", 3 );
131  strncpy( chElementSym[29], "Zn", 3 );
132  strncpy( chElementSym[30], "12", 3 );
133  strncpy( chElementSym[31], "13", 3 );
134  strncpy( chElementSym[32], "H2", 3 );
135 
136  strncpy( chIonStage[0], " 1", 3 );
137  strncpy( chIonStage[1], " 2", 3 );
138  strncpy( chIonStage[2], " 3", 3 );
139  strncpy( chIonStage[3], " 4", 3 );
140  strncpy( chIonStage[4], " 5", 3 );
141  strncpy( chIonStage[5], " 6", 3 );
142  strncpy( chIonStage[6], " 7", 3 );
143  strncpy( chIonStage[7], " 8", 3 );
144  strncpy( chIonStage[8], " 9", 3 );
145  strncpy( chIonStage[9], "10", 3 );
146  strncpy( chIonStage[10], "11", 3 );
147  strncpy( chIonStage[11], "12", 3 );
148  strncpy( chIonStage[12], "13", 3 );
149  strncpy( chIonStage[13], "14", 3 );
150  strncpy( chIonStage[14], "15", 3 );
151  strncpy( chIonStage[15], "16", 3 );
152  strncpy( chIonStage[16], "17", 3 );
153  strncpy( chIonStage[17], "18", 3 );
154  strncpy( chIonStage[18], "19", 3 );
155  strncpy( chIonStage[19], "20", 3 );
156  strncpy( chIonStage[20], "21", 3 );
157  strncpy( chIonStage[21], "22", 3 );
158  strncpy( chIonStage[22], "23", 3 );
159  strncpy( chIonStage[23], "24", 3 );
160  strncpy( chIonStage[24], "25", 3 );
161  strncpy( chIonStage[25], "26", 3 );
162  strncpy( chIonStage[26], "27", 3 );
163  strncpy( chIonStage[27], "28", 3 );
164  strncpy( chIonStage[28], "29", 3 );
165  strncpy( chIonStage[29], "30", 3 );
166  strncpy( chIonStage[30], "31", 3 );
167  /* this is special for molecule */
168  strncpy( chIonStage[31], "CO", 3 );
169  strncpy( chIonStage[32], "CO", 3 );
170  strncpy( chIonStage[33], "H2", 3 );
171 
172  strncpy( chIonRoman[0], "I", 7 );
173  strncpy( chIonRoman[1], "II", 7 );
174  strncpy( chIonRoman[2], "III", 7 );
175  strncpy( chIonRoman[3], "IV", 7 );
176  strncpy( chIonRoman[4], "V", 7 );
177  strncpy( chIonRoman[5], "VI", 7 );
178  strncpy( chIonRoman[6], "VII", 7 );
179  strncpy( chIonRoman[7], "VIII", 7 );
180  strncpy( chIonRoman[8], "IX", 7 );
181  strncpy( chIonRoman[9], "X", 7 );
182  strncpy( chIonRoman[10], "XI", 7 );
183  strncpy( chIonRoman[11], "XII", 7 );
184  strncpy( chIonRoman[12], "XIII", 7 );
185  strncpy( chIonRoman[13], "XIV", 7 );
186  strncpy( chIonRoman[14], "XV", 7 );
187  strncpy( chIonRoman[15], "XVI", 7 );
188  strncpy( chIonRoman[16], "XVII", 7 );
189  strncpy( chIonRoman[17], "XVIII", 7 );
190  strncpy( chIonRoman[18], "XIX", 7 );
191  strncpy( chIonRoman[19], "XX", 7 );
192  strncpy( chIonRoman[20], "XXI", 7 );
193  strncpy( chIonRoman[21], "XXII", 7 );
194  strncpy( chIonRoman[22], "XXIII", 7 );
195  strncpy( chIonRoman[23], "XXIV", 7 );
196  strncpy( chIonRoman[24], "XXV", 7 );
197  strncpy( chIonRoman[25], "XXVI", 7 );
198  strncpy( chIonRoman[26], "XXVII", 7 );
199  strncpy( chIonRoman[27], "XXVIII", 7 );
200  strncpy( chIonRoman[28], "XXIX", 7 );
201  strncpy( chIonRoman[29], "XXX", 7 );
202  strncpy( chIonRoman[30], "XXXI", 7 );
203  /* this is special for molecule */
204  strncpy( chIonRoman[31], " ", 7 );
205  strncpy( chIonRoman[32], " ", 7 );
206  strncpy( chIonRoman[33], " ", 7 );
207  };
208 
209 } elementnames;
210 
211 #endif /* _ELEMENTNAMES_H_ */

Generated for cloudy by doxygen 1.8.1.1