Question: Help with the python code and excel. The following is an advanced problem from ECHM 201, which results in a linear system of three equations
Help with the python code and excel.

The following is an advanced problem from ECHM 201, which results in a linear system of three equations (and 3 unknowns) that is reasonably easy to solve, once you have the equations. The ethanol dehydration reaction in Figure 1 is carried out with the feed entering at 300 C. The feed contains 90 mole% ethanol and the balance acetaldehyde and enters the reactor at a rate of 150 mol/s. To keep the temperature from dropping too far (the reaction is endothermic) and thereby decreasing reaction rate to an unacceptable low level, heat is transferred to the reactor. When heat addition (Q) is 2440 KW, the outlet Q = 2440 kW temperature is 253 .C. Calculate the fractional conversion of ethanol 150 mol/s achieved in the reactor, REACTOR 90% C2Hs OH m C2HsOH mol/s Dr. Richards of the Montana 10% CH,CHO 12 CH3 CHO mol/s State University Department 300 .C 73 H2 mol/s of Chemical and Biological 253 .C Engineering has hired you to solve this problem using a Figure 1. ethanol dehydrogenation reaction python code and using Excel. Here is what else you need to know... This problem is solved by writing a material balance on two of the atoms (she suggests carbon and hydrogen) and an energy balance on the reactor. A material balance is simply a mathematical statement that all the hydrogen (for example) going into the process has come out again. The following hydrogen balance is shown as an example: Hydrogen in inlet CHsOH + Hydrogen in inlet CH3CHO = Hydrogen in outlet CHsOH + Hydrogen in outlet CH3CHO + Hydrogen in outlet H2 0.9 - 150 moles in + 6 H mole + 0.1 - 150 moles + 4 - 6n, + 4n2 + 2na 6n, + 4n2 + 2n3 = 870 mol H/s 1) The equation above is your first linear equation, now write a linear equation that describes the material balance of carbon. EGEN 102 Introduction to Engineering Computations and Applications Spring 2024 2) Write a linear equation that describes the energy balance, using Table 1 and the same concept that energy in must equal energy out, 2 + _ ninAm - > nout Hour Table 1. Substance Enthalpies (accounting for difference in stream temperatures and changes of state) Substance nin nout Hout (mol/s) (kJ/mol) (mol/s) KJ/mol) C2HSOH 135 -212.19 216.81 CHaCHO 15 -147.07 n2 -150.90 H2 na 6.595 3) You now have a linear system with 3 equations and 3 unknowns. 4) Put the equations in matrix form, 5) Solve the system of equations using Python, then solve them in Excel to check your answer, 6) Finally, calculate the fractional conversion (x) for the reaction using the following equation: * = - n(C2H5OH)in - il(C2. Hs OH )out ni (Cz HS OH) in In your memo to Dr. Richards, include 1) the system of equations, 2) the solution giving the unknown flow rates in the outlet stream, and 3) the fractional conversion (x). Attach your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
