Debian Codegraph @

NASA_CEA_Fortran/cea2.inp

raw
1
2
3
4 # SAMPLE PROBLEMS
5
6
7 # EXAMPLE 1:
8 # (a) Assigned-temperature-and-pressure problem (tp).
9 # (b) Reactants are H2 and Air. Since "exploded" formulas are not given,
10 # these formulas will be taken from the thermodynamic data library,
11 # thermo.lib.
12 # (c) Calculations are for two equivalence ratios (r,eq.ratio =1,1.5).
13 # (d) Assigned pressures are 1, 0.1, and 0.01 atm (p(atm)=1,.1,.01).
14 # (e) Assigned temperatures are 3000 and 2000 K (t(k)=3000,2000).
15 # (f) 'only' dataset is used to restrict possible products.
16 # (g) Energy units in the final tables are in calories (calories).
17
18 # 'problem' dataset:
19 problem case=Example-1 tp p(atm)=1,.1,.01,t(k)=3000,2000,
20 r,eq.ratio=1,1.5
21 # 'reactants' dataset:
22 reac
23 fuel= H2 moles = 1.
24 oxid= Air moles = 1.
25 # 'only' dataset:
26 only Ar C CO CO2 H H2 H2O HNO HO2 HNO2 HNO3 N NH
27 NO N2 N2O3 O O2 OH O3
28 # 'output' dataset:
29 output calories
30 # 'end' dataset
31 end
32
33
34 ! EXAMPLE 2:
35 ! (a) Assigned-temperature-and-volume (or density) problem (tv).
36 ! (b) Reactants are the same as in example 1.
37 ! (c) One temperature was taken from example 1 (t(k)=3000).
38 ! (d) One mixture was taken from example 1 (phi,eq.ratio=1).
39 ! Note: For stoichiometric mixtures, phi = r = 1.
40 ! (e) Densities (rho) were obtained from the results of example 1.
41 ! Composition and properties in examples 1 and 2 should match for
42 ! these input values.
43 ! (f) 'only' dataset is used to restrict possible products.
44 ! (g) Transport properties are to be calculated (transport).
45
46 reac fuel=H2 wt%=100
47 oxid Air wt%=100
48 prob case=Example-2 phi,eq.ratio=1, tv t(k)=3000
49 rho,g/cc=9.1864d-05,8.0877d-06,6.6054d-07
50 only Ar C CO CO2 H H2 H2O HNO HO2 HNO2 HNO3 N NH NO N2 N2O3 O O2 OH O3
51 outp transport calories
52 end
53
54
55 ! EXAMPLE 3:
56 ! (a) Combustion or assigned-enthalpy-and-pressure problem (hp).
57 ! (b) Fuels are 'C7H8(L)' and 'C8H18(L),n-octa' at 298.15 K. The oxidant is
58 ! air at 700 K.
59 ! (c) Oxidant-to-fuel weight ratio is 17 (o/f =17). Weight fractions are
60 ! fractions of fuel relative to total fuel and fractions of oxidant
61 ! relative to total oxidant.
62 ! (d) Mixture enthalpy is calculated from reactant values given in
63 ! thermo.lib. This is because data for these species are given in
64 ! thermo.lib and the species names match exactly.
65 ! (e) Many species are omitted from the product data base ('omit' dataset).
66 ! Note: these species names must match those used in thermo.lib.
67 ! (f) Assigned pressures are 100, 10, and 1 bar (p(bar)=100,10,1).
68 ! (g) Mixture properties are to be printed in SI units (siunits).
69 ! (h) Mole fractions > 1.e-15 are to be in e-format (trace=1.e-15).
70 !
71 reac
72 oxid Air wtfrac= 1 t(k)=700.0
73 fuel C7H8(L) wtfrac= .4 t(k)= 298.15
74 fuel C8H18(L),n-octa wtfrac= .6 t(k)= 298.15
75 prob case=Example-3 hp p(bar)=100,10,1, o/f = 17
76 output siunits trace=1.e-15
77
78 omit CCN CNC C2N2 C2O
79 C3H4,allene C3H4,propyne C3H4,cyclo- C3
80 C3H5,allyl C3H6,propylene C3H6,cyclo- C3H3,propargyl
81 C3H6O C3H7,n-propyl C3H7,i-propyl Jet-A(g)
82 C3O2 C4 C4H2 C3H8O,2propanol
83 C4H4,1,3-cyclo- C4H6,butadiene C4H6,2-butyne C3H8O,1propanol
84 C4H8,tr2-butene C4H8,isobutene C4H8,cyclo- C4H6,cyclo-
85 (CH3COOH)2 C4H9,n-butyl C4H9,i-butyl C4H8,1-butene
86 C4H9,s-butyl C4H9,t-butyl C4H10,isobutane C4H8,cis2-buten
87 C4H10,n-butane C4N2 C5 C3H8
88 C5H6,1,3cyclo- C5H8,cyclo- C5H10,1-pentene C10H21,n-decyl
89 C5H10,cyclo- C5H11,pentyl C5H11,t-pentyl C12H10,biphenyl
90 C5H12,n-pentane C5H12,i-pentane CH3C(CH3)2CH3 C12H9,o-bipheny
91 C6H6 C6H5OH,phenol C6H10,cyclo- C6H2
92 C6H12,1-hexene C6H12,cyclo- C6H13,n-hexyl C6H5,phenyl
93 C7H7,benzyl C7H8 C7H8O,cresol-mx C6H5O,phenoxy
94 C7H14,1-heptene C7H15,n-heptyl C7H16,n-heptane C10H8,azulene
95 C8H8,styrene C8H10,ethylbenz C8H16,1-octene C10H8,napthlene
96 C8H17,n-octyl C8H18,isooctane C8H18,n-octane C9H19,n-nonyl
97 Jet-A(L) C6H6(L) H2O(s) H2O(L)
98 end End all input for example 3
99
100
101 ! EXAMPLE 4:
102 ! (a) Assigned-internal-energy-and-density problem (uv).
103 ! (b) Fuel, oxidant, and oxidant-to-fuel weight ratio are the same as in
104 ! example 3.
105 ! (c) Internal energy u was taken from col. 1 of the output of example 3.
106 ! However, input requires u/R, i.e., u = -375.27 kJ/kg and
107 ! u/R = -375.27/8.31451 = -45.1343 (kg-mol)(K)/kg (u/r=-45.1343).
108 ! (d) Units for density input are limited to g/cc and kg/m**3. From
109 ! example 3 point 1, rho = 14.428 kg/m**3 (rho,kg/m**3=14.428).
110 ! (e) Mixture properties are to be printed in SI units (default unit).
111 ! (f) Mole fractions > 1.e-15 are to be in e-format (trace=1.e-15).
112 ! (g) Note that since all parameters for this example are the same as
113 ! those used for col. 1 of example 3, assigning u and rho from
114 ! this column should yield the same pressure and temperature assigned
115 ! for that point in example 3.
116
117 prob case=Example-4, o/f=17 uv u/r=-45.1343, rho,kg/m**3=14.428
118
119 output trace=1.e-15
120
121 reac oxid Air wtfrac= 1 t(k)=700.0
122 fuel C7H8(L) wtfrac= .4 t(k)= 298.15
123 fuel C8H18(L),n-octa wtfrac= .6 t(k)= 298.15
124
125 omit CCN CNC C2N2 C2O C3H4,allene C3H4,propyne C3H4,cyclo- C3
126 C3H5,allyl C3H6,propylene C3H6,cyclo- C3H3,propargyl
127 C3H6O C3H7,n-propyl C3H7,i-propyl Jet-A(g)
128 C3O2 C4 C4H2 C3H8O,2propanol
129 C4H4,1,3-cyclo- C4H6,butadiene C4H6,2-butyne C3H8O,1propanol
130 C4H8,tr2-butene C4H8,isobutene C4H8,cyclo- C4H6,cyclo-
131 (CH3COOH)2 C4H9,n-butyl C4H9,i-butyl C4H8,1-butene
132 C4H9,s-butyl C4H9,t-butyl C4H10,isobutane C4H8,cis2-buten
133 C4H10,n-butane C4N2 C5 C3H8
134 C5H6,1,3cyclo- C5H8,cyclo- C5H10,1-pentene C10H21,n-decyl
135 C5H10,cyclo- C5H11,pentyl C5H11,t-pentyl C12H10,biphenyl
136 C5H12,n-pentane C5H12,i-pentane CH3C(CH3)2CH3 C12H9,o-bipheny
137 C6H6 C6H5OH,phenol C6H10,cyclo- C6H2
138 C6H12,1-hexene C6H12,cyclo- C6H13,n-hexyl C6H5,phenyl
139 C7H7,benzyl C7H8 C7H8O,cresol-mx C6H5O,phenoxy
140 C7H14,1-heptene C7H15,n-heptyl C7H16,n-heptane C10H8,azulene
141 C8H8,styrene C8H10,ethylbenz C8H16,1-octene C10H8,napthlene
142 C8H17,n-octyl C8H18,isooctane C8H18,n-octane C9H19,n-nonyl
143 C7H8(L) C8H18(L),n-octa Jet-A(L) C6H6(L) H2O(s) H2O(L)
144 end
145
146
147 ! EXAMPLE 5:
148 ! (a) Combustion problem (hp) for solid propellant with 5 ingredients.
149 ! (b) The assigned enthalpies and "exploded" formulas for four of the
150 ! components are to be taken from thermo.lib. However, data for
151 ! 'CHOS-Binder' are not available in thermo.lib and thus the "exploded"
152 ! formula and enthalpy are given in the 'reac' dataset.
153 ! (c) The reactants are given in percent by weight (wt%=...). The
154 ! propellant components are not designated as fuel and oxidant - they
155 ! are labelled with the 'name' alternative. Weight fractions are
156 ! relative to the total reactant.
157 ! (d) Five pressures are given in units of psia (p,psia=500,250,
158 ! 125,50,5,).
159 ! (e) As with examples 3 and 4, many species in thermo.lib are omitted
160 ! as possible products by means of an 'omit' dataset.
161 ! (f) Energy units in the final tables are in calories (calories).
162
163 reac
164 name NH4CLO4(I) wt%= 72.06 t(k)=298.15
165 name CHOS-Binder C 1 H 1.86955 O .031256 S .008415 wt%=18.58
166 h,cal=-2999.082 t(k)=298.15
167 name AL(cr) wt%= 9. t(k)=298.15
168 name MgO(cr) wt%= .2 t(k)=298.15
169 name H2O(L) wt%=.16 t(k)=298.15
170
171 prob case=5, hp p,psia=500,250,125,50,5,
172
173 outp calories
174
175 omit COOH C2 C2H CHCO,ketyl C2H2,vinylidene CH2CO,ketene C2H3,vinyl
176 CH3CO,acetyl C2H4O,ethylen-o CH3CHO,ethanal CH3COOH (HCOOH)2
177 C2H5 C2H6 CH3N2CH3 CH3OCH3
178 C2H5OH CCN CNC C2N2
179 C2O C3 C3H3,propargyl C3H4,allene
180 C3H4,propyne C3H4,cyclo- C3H5,allyl C3H6,propylene
181 C3H6,cyclo- C3H6O C3H7,n-propyl C3H7,i-propyl
182 C3H8 C3H8O,1propanol C3H8O,2propanol C3O2
183 C4 C4H2 C4H4,1,3-cyclo- C4H6,butadiene
184 C4H6,2-butyne C4H6,cyclo- C4H8,1-butene C4H8,cis2-buten
185 C4H8,tr2-butene C4H8,isobutene C4H8,cyclo- (CH3COOH)2
186 C4H9,n-butyl C4H9,i-butyl C4H9,s-butyl C4H9,t-butyl
187 C4H10,isobutane C4H10,n-butane C4N2 C5
188 C5H6,1,3cyclo- C5H8,cyclo- C5H10,1-pentene C5H10,cyclo-
189 C5H11,pentyl C5H11,t-pentyl C5H12,n-pentane C5H12,i-pentane
190 CH3C(CH3)2CH3 C6H2 C6H5,phenyl C6H5O,phenoxy
191 C6H6 C6H5OH,phenol C6H10,cyclo- C6H12,1-hexene
192 C6H12,cyclo- C6H13,n-hexyl C7H7,benzyl C7H8
193 C7H8O,cresol-mx C7H14,1-heptene C7H15,n-heptyl C7H16,n-heptane
194 C8H8,styrene C8H10,ethylbenz C8H16,1-octene C8H17,n-octyl
195 C8H18,isooctane C8H18,n-octane C9H19,n-nonyl C10H8,naphthale
196 C10H21,n-decyl C12H9,o-bipheny C12H10,biphenyl Jet-A(g)
197 HNCO HNO HNO2 HNO3 HCCN HCHO,formaldehy HCOOH
198 NH NH2 NH2OH NCN N2H2 NH2NO2 N2H4 H2O2
199 (HCOOH)2 C6H6(L) C7H8(L) C8H18(L),n-octa Jet-A(L) H2O(s) H2O(L)
200 end
201
202
203 ! EXAMPLE 6:
204 ! (a) Chapman-Jouguet detonation problem (detonation)
205 ! (b) The reactants are H2 and O2 gases. The mixture is
206 ! stoichiometric (r,e=1).
207 ! (c) The unburned gases are at 298.15 and 500 K and pressures
208 ! 1 bar and 30 bars (t,k=298.15,500, pbar=1,30)
209 ! (d) Thermal transport properties are called for (transport).
210 ! (e) Energy units in the final tables are in calories (calories).
211
212 reac oxid O2 wt%=100 t(k)=298.15
213 fuel H2 wt%=100. t(k)=298.15
214
215 prob detonation case=6 t=298.15,500, r,e=1, pbar=1,20
216
217 output calories transport
218 end
219
220
221 ! EXAMPLE 7:
222 ! (a) Shock tube problem (shock).
223 ! (b) Reactants are H2, O2, and Ar gases at 300 K. Note that for shock
224 ! problems reactants must be gaseous species in the thermodynamic
225 ! data base. The program calculates properties of the
226 ! reactants at the temperature given (300 K) using the thermo.lib
227 ! coefficients.
228 ! (c) Reactants are given in moles (moles = ...).
229 ! (d) Initial gas pressures are 10 and 20 mm Hg (p,mmhg=10,20,)
230 ! (e) Seven initial gas velocities are assigned (u1=1000,1100,1200,
231 ! 1250,1300,1350,1400,). Note units of u1 are always m/s.
232 ! (f) Equilibrium calculations are to be performed for incident shock
233 ! conditions (incd eql).
234 ! (g) Frozen calculations are to be performed for incident shock
235 ! conditions (incd froz).
236 ! (h) No 'outp' dataset is given since the default values of the
237 ! the parameters have the desired values (e.g. SI units).
238
239 reac name= H2 moles= 0.050 t(k) 300.00
240 name= O2 moles= 0.050 t(k) 300.00
241 name= Ar moles= 0.900 t(k) 300.00
242
243 problem case=7 p,mmhg=10,20, shock u1=1000,1100,1200,1250,1300,1350,1400,
244 incd froz eql
245
246 end
247
248
249 # EXAMPLE 8:
250 # (a) Rocket problem with infinite-area combustor (rocket iac by default).
251 # (b) The fuel is H2(L) at 20.27 K; the oxidant is O2(L) at 90.17 K.
252 # Both are in thermo.lib so that the enthalpies and "exploded" formulas
253 # do not need to be given.
254 # (c) The oxidant-to-fuel ratio is 5.55157 (o/f=5.55157).
255 # (d) The chamber pressure is 53.3172 bars (p,bar=53.3172).
256 # (e) Calculations are with equilibrium chemistry only (equilibrium).
257 # (f) For exit points there are three pressure ratios (pi/p=10,100,1000),
258 # one subsonic area ratio (subar=1.58), and three supersonic area
259 # ratios (supar=25,50,75).
260
261 problem rocket equilibrium o/f=5.55157
262 case=8 p,bar=53.3172 subar=1.58,pi/p=10,100,1000,supar=25,50,75
263 reactants
264 fuel = H2(L) wt% 100. t(k) 20.27
265 oxid = O2(L) wt% 100. t(k) 90.17
266 output siunits
267 end
268
269
270 # EXAMPLE 9:
271 # (a) Rocket problem with a finite-area combustor (rocket fac).
272 # (b) Contraction ratio of 1.58 (acat=1.58) is assigned.
273 # (c) Fuel, oxidant, and the remaining parameters are the same as in
274 # example 8.
275
276 reac fuel = H2(L) wt%=100. t,k= 20.27
277 oxid = O2(L) wt%=100. t,k= 90.17
278 problem o/f=5.55157 case=9 rocket fac p,bar=53.3172 acat=1.58
279 pi/p=10,100,1000, supar=25,50,75
280 output siunits
281 end
282
283
284 # EXAMPLE 10:
285 # (a) Rocket problem with a finite-area combustor (rocket fac).
286 # (b) A ratio of mass flow rate to chamber area of 1333.9 (ma=1333.9)
287 # is assigned. This value was calculated from the results
288 # of example 9 where a contraction ratio of 1.58 was assigned.
289 # (c) Fuel, oxidant, and the remaining parameters are the same as in
290 # examples 8 and 9.
291
292 reac fuel = H2(L) t,k= 20.27
293 oxid = O2(L) t,k= 90.17
294 problem o/f=5.55157 case=10 rocket fac p,bar=53.3172 ma=1333.9
295 pi/p=10,100,1000, sup-ae/at=25,50,75
296 output short
297 end
298
299
300 # EXAMPLE 11:
301 # (a) Rocket problem with an infinite-area combustor (rocket).
302 # (b) Reactants are Li(cr) at 298.15 K and F2(L) at 85.02 K.
303 # Enthalpies and "exploded" formulas are to be taken from
304 # thermo.lib. Thus this information is not given.
305 # (c) Relative amounts of reactants are given as moles.
306 # (d) Chamber pressure is 1000 psia (p,psia =1000).
307 # (e) Ionized species are to be included in the products (ions).
308 # (f) Only equilibrium calculations are to be performed (equilibrium).
309 # (g) For exit points, one pressure ratio (pi/p=68.0457), one
310 # subsonic area ratio (sub,ae/at=10), and three supersonic area ratios
311 # (sup,ae/at=10,20,100) are to be included.
312
313 reac fuel = Li(cr) moles= 1. t(k)=298.15
314 oxid = F2(L) moles= .5556 t(k)=85.02
315 prob case=11 rocket equilibrium p,psia=1000 ions
316 pi/p=68.0457, sub,ae/at=10, sup,ae/at=10,20,100
317 output siunits transport
318 end
319
320
321 # EXAMPLE 12:
322 # (a) Infinite-area rocket problem (rocket).
323 # (b) The fuel is monomethyl hydrazine (CH6N2(L)) and the oxidant is
324 # nitrogen tetroxide (N2O4(L)) at 298.15 K. Enthalpies and
325 # "exploded" formulas are to be taken from thermo.lib.
326 # (c) The density of the reactant mixture is desired. This requires
327 # the individual densities be given with the reactant data
328 # (rho,g/cc = .874 and rho,g/cc == 1.431).
329 # (d) The oxidant-to-fuel weight ratio is 2.5 (o/f=2.5).
330 # (e) Chamber pressure is 1000 psia (p,psia=1000).
331 # (f) Equilibrium and frozen calculations are to be performed with
332 # freezing at the throat (nfz=2).
333 # (g) For exit points one pressure ratio (pi/p=68.0457) and four
334 # supersonic area ratios (supersonic=10,50,100,200) are given.
335
336 reac fuel = CH6N2(L) rho,g/cc = .874
337 oxid = N2O4(L) rho,g/cc = 1.431
338 prob rocket case=12 p,psia =1000, pi/p=68.0457, eql frozen nfz=2
339 supersonic=5,10,25,50,75,100,150,200, o/f= 2.5,
340 only CO CO2 H HNO HNO2 HO2 H2 H2O H2O2 N NO NO2
341 N2 N2O O OH O2 HCO NH CH4 NH2 NH3 H2O(L) C(gr)
342 output siunits massf plot aeat t p ivac isp mach cf
343 end
344
345
346 !EXAMPLE 13:
347 ! (a) Rocket problem with an infinite-area combustor (rocket). This
348 ! problem was selected to show some unusual derivatives.
349 ! (b) Tripropellant. Fuels are N2H4(L) and Be(L) and oxidant is H2O2(L),
350 ! all at 298.15 K.
351 ! (c) Reactant mixture is given as 67% fuel by weight (%fuel=67.).
352 ! (d) Chamber pressure is 3000 psia (p,psia=3000).
353 ! (e) Calculations are to be for equilibrium conditions only (equilibrium).
354 ! (f) Four exit pressure ratios are assigned (pi/p=3,10,30,300).
355 ! (g) BeO(L) is included as possible combustion product for the first
356 ! point (insert).
357 ! (h) Mole fractions > 1.e-10 are to be in e-format (trace=1.e-10).
358 ! (i) Units in final tables to be non-SI (calories).
359
360
361 reac fuel = N2H4(L) wt%= 80 t=298.15
362 fuel = Be(a) wt%= 20 t=298.15
363 oxid = H2O2(L) wt%=100 t=298.15
364 prob rocket case=13 p,psia=3000, pi/p=3,10,30,300,equilibrium %fuel = 67.
365
366 outp trace= 1.e-10 calories
367 insert BeO(L)
368 end
369
370
371 ! EXAMPLE 14:
372 ! (a) Output from this case is used 1) to illustrate the effect of
373 ! condensed species on volume and molecular weight (see sec.2.2,part I)
374 ! (b) Assigned-temperature-and-pressure problem (tp).
375 ! (c) Reactants are H2(L) and O2(L) and amounts are specified in moles.
376 ! (d) The "exploded" formulas are given to save the program looking them
377 ! up. Reactant enthalpies are not needed for assigned temperature
378 ! problems.
379 ! (e) Assigned pressure in atmospheres is p,atm =.05.
380 ! (f) Assigned temperatures in kelvin are t,k =1000,500,351,305,304.3,
381 ! 304, 300.
382 ! (g) Print intermediate output for the fifth point with debug = 5.
383
384 reac name H2(L) moles=100 H 2
385 name O2(L) moles=60 O 2
386
387 prob tp p,atm=.05 case=14
388 t,k = 1000,500,350,305,304.3,304.2,304,300,
389
390 output siunits debug = 5
391
392 end