1 | /* comp: Compounds characteristics. */ |
---|
2 | /* GCCM */ |
---|
3 | |
---|
4 | #include "titan.h" |
---|
5 | |
---|
6 | void comp_(char CORPS[][10], double *MASS) |
---|
7 | { |
---|
8 | int i; |
---|
9 | char corps[100][10]; |
---|
10 | |
---|
11 | for( i = 0; i <= NC; i++) |
---|
12 | { |
---|
13 | strcpy( corps[i], CORPS[i] ); |
---|
14 | corps[i][strcspn(CORPS[i], " ")] = '\0'; |
---|
15 | } |
---|
16 | |
---|
17 | for( i = 0; i <= NC-1; i++ ) |
---|
18 | { |
---|
19 | if( strcmp(corps[i], "CH4") == 0 ) |
---|
20 | { |
---|
21 | MASS[i] = 16.04e0; |
---|
22 | } |
---|
23 | if( strcmp(corps[i], "H") == 0 ) |
---|
24 | { |
---|
25 | MASS[i] = 1.01e0; |
---|
26 | } |
---|
27 | if( strcmp(corps[i], "H2") == 0 ) |
---|
28 | { |
---|
29 | MASS[i] = 2.0158e0; |
---|
30 | } |
---|
31 | if( strcmp(corps[i], "CH") == 0 ) |
---|
32 | { |
---|
33 | MASS[i] = 13.02e0; |
---|
34 | } |
---|
35 | if( ( strcmp( corps[i], "CH2" ) == 0 ) || ( strcmp( corps[i], "CH2s" ) == 0 ) ) |
---|
36 | { |
---|
37 | MASS[i] = 14.03e0; |
---|
38 | } |
---|
39 | if( strcmp(corps[i], "CH3") == 0 ) |
---|
40 | { |
---|
41 | MASS[i] = 15.03e0; |
---|
42 | } |
---|
43 | if( strcmp(corps[i], "C") == 0 ) |
---|
44 | { |
---|
45 | MASS[i] = 12.01e0; |
---|
46 | } |
---|
47 | if( strcmp(corps[i], "C2") == 0 ) |
---|
48 | { |
---|
49 | MASS[i] = 24.02e0; |
---|
50 | } |
---|
51 | if( strcmp(corps[i], "C2H") == 0 ) |
---|
52 | { |
---|
53 | MASS[i] = 25.03e0; |
---|
54 | } |
---|
55 | if( strcmp(corps[i], "C2H3") == 0 ) |
---|
56 | { |
---|
57 | MASS[i] = 27.05e0; |
---|
58 | } |
---|
59 | if( strcmp(corps[i], "C2H4") == 0 ) |
---|
60 | { |
---|
61 | MASS[i] = 28.05e0; |
---|
62 | } |
---|
63 | if( strcmp(corps[i], "C2H2") == 0 ) |
---|
64 | { |
---|
65 | MASS[i] = 26.04e0; |
---|
66 | } |
---|
67 | if( strcmp(corps[i], "C2H5") == 0 ) |
---|
68 | { |
---|
69 | MASS[i] = 29.06e0; |
---|
70 | } |
---|
71 | if( strcmp(corps[i], "C2H6") == 0 ) |
---|
72 | { |
---|
73 | MASS[i] = 30.07e0; |
---|
74 | } |
---|
75 | if( strcmp(corps[i], "C3H2") == 0 ) |
---|
76 | { |
---|
77 | MASS[i] = 38.05e0; |
---|
78 | } |
---|
79 | if( strcmp(corps[i], "C3H3") == 0 ) |
---|
80 | { |
---|
81 | MASS[i] = 39.06e0; |
---|
82 | } |
---|
83 | if( ( strcmp(corps[i], "CH2CCH2") == 0 ) || ( strcmp(corps[i], "CH3CCH") == 0 ) ) |
---|
84 | { |
---|
85 | MASS[i] = 40.07e0; |
---|
86 | } |
---|
87 | if( strcmp(corps[i], "C3H5") == 0 ) |
---|
88 | { |
---|
89 | MASS[i] = 41.07e0; |
---|
90 | } |
---|
91 | if( strcmp(corps[i], "C3H6") == 0 ) |
---|
92 | { |
---|
93 | MASS[i] = 42.08e0; |
---|
94 | } |
---|
95 | if( strcmp(corps[i], "C3H7") == 0 ) |
---|
96 | { |
---|
97 | MASS[i] = 43.09e0; |
---|
98 | } |
---|
99 | if( strcmp(corps[i], "C3H8") == 0 ) |
---|
100 | { |
---|
101 | MASS[i] = 44.11e0; |
---|
102 | } |
---|
103 | if( strcmp(corps[i], "C4H") == 0 ) |
---|
104 | { |
---|
105 | MASS[i] = 49.05e0; |
---|
106 | } |
---|
107 | if( ( strcmp(corps[i], "C4H2") == 0 )||( strcmp(corps[i], "C4H2s") == 0 ) ) |
---|
108 | { |
---|
109 | MASS[i] = 50.06e0; |
---|
110 | } |
---|
111 | if( strcmp(corps[i], "C4H3") == 0 ) |
---|
112 | { |
---|
113 | MASS[i] = 51.07e0; |
---|
114 | } |
---|
115 | if( strcmp(corps[i], "C4H4") == 0 ) |
---|
116 | { |
---|
117 | MASS[i] = 52.08e0; |
---|
118 | } |
---|
119 | if( strcmp(corps[i], "C4H5") == 0 ) |
---|
120 | { |
---|
121 | MASS[i] = 53.07e0; |
---|
122 | } |
---|
123 | if( strcmp(corps[i], "C4H6") == 0 ) |
---|
124 | { |
---|
125 | MASS[i] = 54.09e0; |
---|
126 | } |
---|
127 | if( strcmp(corps[i], "C4H10") == 0 ) |
---|
128 | { |
---|
129 | MASS[i] = 58.13e0; |
---|
130 | } |
---|
131 | if( strcmp(corps[i], "C6H") == 0 ) |
---|
132 | { |
---|
133 | MASS[i] = 73.07e0; |
---|
134 | } |
---|
135 | if( strcmp(corps[i], "C6H2") == 0 ) |
---|
136 | { |
---|
137 | MASS[i] = 74.08e0; |
---|
138 | } |
---|
139 | if( strcmp(corps[i], "C8H2") == 0 ) |
---|
140 | { |
---|
141 | MASS[i] = 98.10e0; |
---|
142 | } |
---|
143 | if( strcmp( corps[i], "AC6H6" ) == 0 ) |
---|
144 | { |
---|
145 | MASS[i] = 78.1136e0; |
---|
146 | } |
---|
147 | if( ( strcmp( corps[i], "C6H5" ) == 0 ) || ( strcmp( corps[i], "AC6H5" ) == 0 ) ) |
---|
148 | { |
---|
149 | MASS[i] = 77.1136e0; |
---|
150 | } |
---|
151 | if( strcmp( corps[i], "C6H6" ) == 0 ) |
---|
152 | { |
---|
153 | MASS[i] = 78.1136e0; |
---|
154 | } |
---|
155 | if( strcmp(corps[i], "N2") == 0 ) |
---|
156 | { |
---|
157 | MASS[i] = 28.0134e0; |
---|
158 | } |
---|
159 | if( strcmp(corps[i], "N4S") == 0 ) |
---|
160 | { |
---|
161 | MASS[i] = 14.01e0; |
---|
162 | } |
---|
163 | if( strcmp(corps[i], "NH") == 0 ) |
---|
164 | { |
---|
165 | MASS[i] = 15.01e0; |
---|
166 | } |
---|
167 | if( strcmp(corps[i], "CN") == 0 ) |
---|
168 | { |
---|
169 | MASS[i] = 26.02e0; |
---|
170 | } |
---|
171 | if( strcmp(corps[i], "HCN") == 0 ) |
---|
172 | { |
---|
173 | MASS[i] = 27.04e0; |
---|
174 | } |
---|
175 | if( strcmp(corps[i], "H2CN") == 0 ) |
---|
176 | { |
---|
177 | MASS[i] = 28.05e0; |
---|
178 | } |
---|
179 | if( strcmp(corps[i], "C2N") == 0 ) /* C2N */ |
---|
180 | { |
---|
181 | MASS[i] = 39.05e0; |
---|
182 | } |
---|
183 | if( strcmp( corps[i], "CHCN" ) == 0 ) |
---|
184 | { |
---|
185 | MASS[i] = 39.05e0; |
---|
186 | } |
---|
187 | if( strcmp( corps[i], "CH2CN" ) == 0 ) |
---|
188 | { |
---|
189 | MASS[i] = 40.04e0; |
---|
190 | } |
---|
191 | if( strcmp( corps[i], "CH3CN" ) == 0 ) |
---|
192 | { |
---|
193 | MASS[i] = 41.05e0; |
---|
194 | } |
---|
195 | if( strcmp( corps[i], "C2H3CN" ) == 0 ) |
---|
196 | { |
---|
197 | MASS[i] = 53.06e0; |
---|
198 | } |
---|
199 | if( strcmp(corps[i], "NCCN") == 0 ) /* NCCN */ |
---|
200 | { |
---|
201 | MASS[i] = 52.04e0; |
---|
202 | } |
---|
203 | if( strcmp(corps[i], "C3N") == 0 ) /* C3N */ |
---|
204 | { |
---|
205 | MASS[i] = 50.04e0; |
---|
206 | } |
---|
207 | if( strcmp(corps[i], "HC3N") == 0 ) /* HC3N */ |
---|
208 | { |
---|
209 | MASS[i] = 51.05e0; |
---|
210 | } |
---|
211 | if( strcmp( corps[i], "C4N2" ) == 0 ) |
---|
212 | { |
---|
213 | MASS[i] = 76.1e0; |
---|
214 | } |
---|
215 | if( strcmp(corps[i], "H2O") == 0 ) |
---|
216 | { |
---|
217 | MASS[i] = 18.02e0; |
---|
218 | } |
---|
219 | if( ( strcmp(corps[i], "O3P") == 0 ) || ( strcmp(corps[i], "O1D") == 0 ) ) |
---|
220 | { |
---|
221 | MASS[i] = 16.0e0; |
---|
222 | } |
---|
223 | if( strcmp(corps[i], "OH") == 0 ) |
---|
224 | { |
---|
225 | MASS[i] = 17.01e0; |
---|
226 | } |
---|
227 | if( strcmp(corps[i], "CO") == 0 ) |
---|
228 | { |
---|
229 | MASS[i] = 28.01e0; |
---|
230 | } |
---|
231 | if( strcmp(corps[i], "HCO") == 0 ) |
---|
232 | { |
---|
233 | MASS[i] = 29.02e0; |
---|
234 | } |
---|
235 | if( strcmp(corps[i], "CO2") == 0 ) |
---|
236 | { |
---|
237 | MASS[i] = 44.01e0; |
---|
238 | } |
---|
239 | if( strcmp(corps[i], "CH2CO") == 0 ) |
---|
240 | { |
---|
241 | MASS[i] = 42.04e0; |
---|
242 | } |
---|
243 | if( strcmp(corps[i], "CH2O") == 0 ) |
---|
244 | { |
---|
245 | MASS[i] = 30.03e0; |
---|
246 | } |
---|
247 | if( ( strcmp(corps[i], "CH2OH") == 0 ) || ( strcmp(corps[i], "CH3O") == 0 ) ) |
---|
248 | { |
---|
249 | MASS[i] = 31.04e0; |
---|
250 | } |
---|
251 | if( strcmp(corps[i], "CH3OH") == 0 ) |
---|
252 | { |
---|
253 | MASS[i] = 32.042e0; |
---|
254 | } |
---|
255 | } |
---|
256 | } |
---|