Equilibrium Project (Methane)

Equilibrium Project (Methane) -...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #X8.596#èýD#ôýD#"###"Equilibrium Project" # function HowMuchFuelproducts(pta) if (pta>1) then HowMuchFuelProducts = 0 else HowMuchFuelProducts = 1-pta endif end e function PhaseofFuel(x) if (x = 100) then PhaseofFuel = -74850 else PhaseofFuel = -74850 endif end e "Methane: CH4" " C = 1 H = 4 O = 0 O nO2_r100% = C + H/4 - O/2 n T_air = 305 T_fuel = 295 T_ref = 298 p = 1 "pta = 1" nfuelr = 1 nfuelp = HowMuchFuelProducts(pta) nO2r = nO2_r100%*pta x = quality(methane,T=T_fuel,P=p) h_fuelformation = PhaseofFuel(x) h "C" nfuelr*C = nCO2p + nfuelp*C + nCOp n "H" nfuelr*H = nH2Op*2 + nfuelp*H + nH2p*2 + nOHp n "O" nfuelr*O + nO2r*2 = nCO2p*2 + nH2Op + nfuelp*O + nO2p*2 + nCOp + nNOp + nOHp n "N" nN2r*2 = nN2p*2 + nNOp nN2r = 3.76*nO2r n "Partial Pressures" " nproducts = nCO2p + nfuelp + nH2Op + nO2p + nN2p + nCOp + nNOp + nH2p + nOHp p_CO2 = p*(nCO2p/nproducts) p_CO = p*(nCOp/nproducts) p_O2 = p*(nO2p/nproducts) p_NO = p*(nNOp/nproducts) p_N2 = p*(nN2p/nproducts) p_H2 = p*(nH2p/nproducts) p_H2O = p*(nH2Op/nproducts) p_OH = p*(nOHp/nproducts) p g_CO2 = enthalpy(CO2,T=T_p) - T_p*entropy(CO2,T=T_p,P=p_CO2) g_CO = enthalpy(CO,T=T_p) - T_p*entropy(CO,T=T_p,P=p_CO) g_O2 = enthalpy(O2,T=T_p) - T_p*entropy(O2,T=T_p,P=p_O2) g_NO = enthalpy(NO,T=T_p) - T_p*entropy(NO,T=T_p,P=p_NO) g_N2 = enthalpy(N2,T=T_p) - T_p*entropy(N2,T=T_p,P=p_N2) g_H2 = enthalpy(H2,T=T_p) - T_p*entropy(H2,T=T_p,P=p_H2) g_H2O = enthalpy(H2O,T=T_p) - T_p*entropy(H2O,T=T_p,P=p_H2O) g_OH = enthalpy(OH,T=T_p) - T_p*entropy(OH,T=T_p,P=p_OH) g "Equilibrium Reactions" " 0 = (1)*g_CO2 + (-1)*g_CO + (-1/2)*g_O2 0 = (1)*g_N2 + (1)*g_O2 + (-2)*g_NO 0 = (1)*g_H2O + (-1)*g_H2 + (-1/2)*g_O2 0 = (1)*g_H2O + (-1)*g_OH + (-1/2)*g_H2 "Energy Equation" " h_fuelr = h_fuelformation + enthalpy(CH4, T=T_fuel) - enthalpy(CH4,T=T_ref) h_fuelp = h_fuelformation + enthalpy(CH4,T=T_p) - enthalpy(CH4,T=T_ref) h_O2r = 0 + enthalpy(O2,T=T_air) - enthalpy(O2,T=T_ref) h_O2p = 0 + enthalpy(O2,T=T_p) - enthalpy(O2,T=T_ref) h_N2r = 0 + enthalpy(N2,T=T_air) - enthalpy(N2,T=T_ref) h_N2p = 0 + enthalpy(N2,T=T_p) - enthalpy(N2,T=T_ref) h_CO2p = -393520 + enthalpy(CO2,T=T_p) - enthalpy(CO2,T=T_ref) h_H2Op = -241820 + enthalpy(H2O,T=T_p) - enthalpy(H2O,T=T_ref) h_COp = -110530 + enthalpy(CO,T=T_p) - enthalpy(CO,T=T_ref) h_NOp = 90400 + enthalpy(NO,T=T_p) - enthalpy(NO,T=T_ref) h_H2p = 0 + enthalpy(H2,T=T_p) - enthalpy(H2,T=T_ref) h_OHp = 39460 + enthalpy(OH,T=T_p) - enthalpy(OH,T=T_ref) h 0 = (nfuelr*h_fuelr) + (nO2r*h_O2r) + (nN2r*h_N2r) - (nCO2p*h_CO2p) - (nH2Op*h_H2Op) - (nO2p*h_O2p) - (nN2p*h_N2p) - (nfuelp*h_fuelp) - (nCOp*h_COp) - (nNOp*h_NOp) - (nH2p*h_H2p) - (nOHp*h_OHp) {$ID$ #2406: For use in the Department of Mechanical Engineering, Iowa State University Zibrowski}######(,h&T5ú&ù?################¶il¯#½7²ë?&¥´6A_p&á?ú# #############ÿ?OpD&éhȧãóOpD²éhȧãs####*#&#G#&#i#&#p#&#&#8#¦#&##¡#Ô######## Rÿ?...
View Full Document

This note was uploaded on 08/18/2011 for the course ME 332 taught by Professor Feve during the Spring '08 term at Iowa State.

Page1 / 56

Equilibrium Project (Methane) -...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online