cloudy
trunk
|
00001 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and 00002 * others. For conditions of distribution and use see copyright notice in license.txt */ 00003 00004 #ifndef _ELEMENTNAMES_H_ 00005 #define _ELEMENTNAMES_H_ 00006 00009 EXTERN struct t_elementnames { 00010 00014 char chElementName[LIMELM+3][11]; 00015 00018 char chElementNameShort[LIMELM+3][5]; 00019 00022 char chElementSym[LIMELM+3][3]; 00023 00026 char chIonStage[LIMELM+4][3]; 00027 00029 char chIonRoman[LIMELM+4][7]; 00030 00031 /* here lies the first C++ code, written by PvH, 2006 Nov 20, after 00032 * the conversion from C to C++. It is a constructor. */ 00033 t_elementnames() { 00034 strncpy( chElementName[0], "Hydrogen ", 11 ); 00035 strncpy( chElementName[1], "Helium ", 11 ); 00036 strncpy( chElementName[2], "Lithium ", 11 ); 00037 strncpy( chElementName[3], "Beryllium ", 11 ); 00038 strncpy( chElementName[4], "Boron ", 11 ); 00039 strncpy( chElementName[5], "Carbon ", 11 ); 00040 strncpy( chElementName[6], "Nitrogen ", 11 ); 00041 strncpy( chElementName[7], "Oxygen ", 11 ); 00042 strncpy( chElementName[8], "Fluorine ", 11 ); 00043 strncpy( chElementName[9], "Neon ", 11 ); 00044 strncpy( chElementName[10], "Sodium ", 11 ); 00045 strncpy( chElementName[11], "Magnesium ", 11 ); 00046 strncpy( chElementName[12], "Aluminium ", 11 ); 00047 strncpy( chElementName[13], "Silicon ", 11 ); 00048 strncpy( chElementName[14], "Phosphorus", 11 ); 00049 strncpy( chElementName[15], "Sulphur ", 11 ); 00050 strncpy( chElementName[16], "Chlorine ", 11 ); 00051 strncpy( chElementName[17], "Argon ", 11 ); 00052 strncpy( chElementName[18], "Potassium ", 11 ); 00053 strncpy( chElementName[19], "Calcium ", 11 ); 00054 strncpy( chElementName[20], "Scandium ", 11 ); 00055 strncpy( chElementName[21], "Titanium ", 11 ); 00056 strncpy( chElementName[22], "Vanadium ", 11 ); 00057 strncpy( chElementName[23], "Chromium ", 11 ); 00058 strncpy( chElementName[24], "Manganese ", 11 ); 00059 strncpy( chElementName[25], "Iron ", 11 ); 00060 strncpy( chElementName[26], "Cobalt ", 11 ); 00061 strncpy( chElementName[27], "Nickel ", 11 ); 00062 strncpy( chElementName[28], "Copper ", 11 ); 00063 strncpy( chElementName[29], "Zinc ", 11 ); 00064 strncpy( chElementName[30], "C12O18 ", 11 ); 00065 strncpy( chElementName[31], "C13O18 ", 11 ); 00066 strncpy( chElementName[32], "H2 ", 11 ); 00067 00068 strncpy( chElementNameShort[0], "HYDR", 5 ); 00069 strncpy( chElementNameShort[1], "HELI", 5 ); 00070 strncpy( chElementNameShort[2], "LITH", 5 ); 00071 strncpy( chElementNameShort[3], "BERY", 5 ); 00072 strncpy( chElementNameShort[4], "BORO", 5 ); 00073 strncpy( chElementNameShort[5], "CARB", 5 ); 00074 strncpy( chElementNameShort[6], "NITR", 5 ); 00075 strncpy( chElementNameShort[7], "OXYG", 5 ); 00076 strncpy( chElementNameShort[8], "FLUO", 5 ); 00077 strncpy( chElementNameShort[9], "NEON", 5 ); 00078 strncpy( chElementNameShort[10], "SODI", 5 ); 00079 strncpy( chElementNameShort[11], "MAGN", 5 ); 00080 strncpy( chElementNameShort[12], "ALUM", 5 ); 00081 strncpy( chElementNameShort[13], "SILI", 5 ); 00082 strncpy( chElementNameShort[14], "PHOS", 5 ); 00083 strncpy( chElementNameShort[15], "SULP", 5 ); 00084 strncpy( chElementNameShort[16], "CHLO", 5 ); 00085 strncpy( chElementNameShort[17], "ARGO", 5 ); 00086 strncpy( chElementNameShort[18], "POTA", 5 ); 00087 strncpy( chElementNameShort[19], "CALC", 5 ); 00088 strncpy( chElementNameShort[20], "SCAN", 5 ); 00089 strncpy( chElementNameShort[21], "TITA", 5 ); 00090 strncpy( chElementNameShort[22], "VANA", 5 ); 00091 strncpy( chElementNameShort[23], "CHRO", 5 ); 00092 strncpy( chElementNameShort[24], "MANG", 5 ); 00093 strncpy( chElementNameShort[25], "IRON", 5 ); 00094 strncpy( chElementNameShort[26], "COBA", 5 ); 00095 strncpy( chElementNameShort[27], "NICK", 5 ); 00096 strncpy( chElementNameShort[28], "COPP", 5 ); 00097 strncpy( chElementNameShort[29], "ZINC", 5 ); 00098 strncpy( chElementNameShort[30], "12CO", 5 ); 00099 strncpy( chElementNameShort[31], "13CO", 5 ); 00100 strncpy( chElementNameShort[32], "H2 ", 5 ); 00101 00102 strncpy( chElementSym[0], "H ", 3 ); 00103 strncpy( chElementSym[1], "He", 3 ); 00104 strncpy( chElementSym[2], "Li", 3 ); 00105 strncpy( chElementSym[3], "Be", 3 ); 00106 strncpy( chElementSym[4], "B ", 3 ); 00107 strncpy( chElementSym[5], "C ", 3 ); 00108 strncpy( chElementSym[6], "N ", 3 ); 00109 strncpy( chElementSym[7], "O ", 3 ); 00110 strncpy( chElementSym[8], "F ", 3 ); 00111 strncpy( chElementSym[9], "Ne", 3 ); 00112 strncpy( chElementSym[10], "Na", 3 ); 00113 strncpy( chElementSym[11], "Mg", 3 ); 00114 strncpy( chElementSym[12], "Al", 3 ); 00115 strncpy( chElementSym[13], "Si", 3 ); 00116 strncpy( chElementSym[14], "P ", 3 ); 00117 strncpy( chElementSym[15], "S ", 3 ); 00118 strncpy( chElementSym[16], "Cl", 3 ); 00119 strncpy( chElementSym[17], "Ar", 3 ); 00120 strncpy( chElementSym[18], "K ", 3 ); 00121 strncpy( chElementSym[19], "Ca", 3 ); 00122 strncpy( chElementSym[20], "Sc", 3 ); 00123 strncpy( chElementSym[21], "Ti", 3 ); 00124 strncpy( chElementSym[22], "V ", 3 ); 00125 strncpy( chElementSym[23], "Cr", 3 ); 00126 strncpy( chElementSym[24], "Mn", 3 ); 00127 strncpy( chElementSym[25], "Fe", 3 ); 00128 strncpy( chElementSym[26], "Co", 3 ); 00129 strncpy( chElementSym[27], "Ni", 3 ); 00130 strncpy( chElementSym[28], "Cu", 3 ); 00131 strncpy( chElementSym[29], "Zn", 3 ); 00132 strncpy( chElementSym[30], "12", 3 ); 00133 strncpy( chElementSym[31], "13", 3 ); 00134 strncpy( chElementSym[32], "H2", 3 ); 00135 00136 strncpy( chIonStage[0], " 1", 3 ); 00137 strncpy( chIonStage[1], " 2", 3 ); 00138 strncpy( chIonStage[2], " 3", 3 ); 00139 strncpy( chIonStage[3], " 4", 3 ); 00140 strncpy( chIonStage[4], " 5", 3 ); 00141 strncpy( chIonStage[5], " 6", 3 ); 00142 strncpy( chIonStage[6], " 7", 3 ); 00143 strncpy( chIonStage[7], " 8", 3 ); 00144 strncpy( chIonStage[8], " 9", 3 ); 00145 strncpy( chIonStage[9], "10", 3 ); 00146 strncpy( chIonStage[10], "11", 3 ); 00147 strncpy( chIonStage[11], "12", 3 ); 00148 strncpy( chIonStage[12], "13", 3 ); 00149 strncpy( chIonStage[13], "14", 3 ); 00150 strncpy( chIonStage[14], "15", 3 ); 00151 strncpy( chIonStage[15], "16", 3 ); 00152 strncpy( chIonStage[16], "17", 3 ); 00153 strncpy( chIonStage[17], "18", 3 ); 00154 strncpy( chIonStage[18], "19", 3 ); 00155 strncpy( chIonStage[19], "20", 3 ); 00156 strncpy( chIonStage[20], "21", 3 ); 00157 strncpy( chIonStage[21], "22", 3 ); 00158 strncpy( chIonStage[22], "23", 3 ); 00159 strncpy( chIonStage[23], "24", 3 ); 00160 strncpy( chIonStage[24], "25", 3 ); 00161 strncpy( chIonStage[25], "26", 3 ); 00162 strncpy( chIonStage[26], "27", 3 ); 00163 strncpy( chIonStage[27], "28", 3 ); 00164 strncpy( chIonStage[28], "29", 3 ); 00165 strncpy( chIonStage[29], "30", 3 ); 00166 strncpy( chIonStage[30], "31", 3 ); 00167 /* this is special for molecule */ 00168 strncpy( chIonStage[31], "CO", 3 ); 00169 strncpy( chIonStage[32], "CO", 3 ); 00170 strncpy( chIonStage[33], "H2", 3 ); 00171 00172 strncpy( chIonRoman[0], "I", 7 ); 00173 strncpy( chIonRoman[1], "II", 7 ); 00174 strncpy( chIonRoman[2], "III", 7 ); 00175 strncpy( chIonRoman[3], "IV", 7 ); 00176 strncpy( chIonRoman[4], "V", 7 ); 00177 strncpy( chIonRoman[5], "VI", 7 ); 00178 strncpy( chIonRoman[6], "VII", 7 ); 00179 strncpy( chIonRoman[7], "VIII", 7 ); 00180 strncpy( chIonRoman[8], "IX", 7 ); 00181 strncpy( chIonRoman[9], "X", 7 ); 00182 strncpy( chIonRoman[10], "XI", 7 ); 00183 strncpy( chIonRoman[11], "XII", 7 ); 00184 strncpy( chIonRoman[12], "XIII", 7 ); 00185 strncpy( chIonRoman[13], "XIV", 7 ); 00186 strncpy( chIonRoman[14], "XV", 7 ); 00187 strncpy( chIonRoman[15], "XVI", 7 ); 00188 strncpy( chIonRoman[16], "XVII", 7 ); 00189 strncpy( chIonRoman[17], "XVIII", 7 ); 00190 strncpy( chIonRoman[18], "XIX", 7 ); 00191 strncpy( chIonRoman[19], "XX", 7 ); 00192 strncpy( chIonRoman[20], "XXI", 7 ); 00193 strncpy( chIonRoman[21], "XXII", 7 ); 00194 strncpy( chIonRoman[22], "XXIII", 7 ); 00195 strncpy( chIonRoman[23], "XXIV", 7 ); 00196 strncpy( chIonRoman[24], "XXV", 7 ); 00197 strncpy( chIonRoman[25], "XXVI", 7 ); 00198 strncpy( chIonRoman[26], "XXVII", 7 ); 00199 strncpy( chIonRoman[27], "XXVIII", 7 ); 00200 strncpy( chIonRoman[28], "XXIX", 7 ); 00201 strncpy( chIonRoman[29], "XXX", 7 ); 00202 strncpy( chIonRoman[30], "XXXI", 7 ); 00203 /* this is special for molecule */ 00204 strncpy( chIonRoman[31], " ", 7 ); 00205 strncpy( chIonRoman[32], " ", 7 ); 00206 strncpy( chIonRoman[33], " ", 7 ); 00207 }; 00208 00209 } elementnames; 00210 00211 #endif /* _ELEMENTNAMES_H_ */