Professional Documents
Culture Documents
Semester Project 1 2023
Semester Project 1 2023
COLLEGE OF ENGINEERING
DEPARTMENT OF CHEMICAL ENGINEERING
COMPUTER APPLICATIONS FOR ENGINEERS
SEMESTER PROJECT 1
The stoichiometric reactor is used in the performance of black box calculations of a reacting system.
The inputs of this reactor include:
1. A balanced chemical reaction
2. The composition of the feed into the reactor
3. The conversion of the limiting reagent
As a group, you are tasked to develop a script for a stoichiometric reactor able to compute a mole
balance involving the following species:𝐶𝑋 𝐻𝑌 , 𝑂2 , 𝐶𝑂2 , 𝐶𝑂, 𝐻2 , 𝐻2 𝑂
Your reactor must have the following features
a. Prompt users if they make faulty entries like wrong compound name, out of range values,
leaves empty spaces
b. The ability to verify the validity of the balance chemical reaction provided by the user
Illustration, for every balanced equation, the total mass on the left-hand side, equals the total mass
of the right-hand side
i.e., For a reaction 𝑎𝐴 + 𝑏𝐵 → 𝑐𝐶 + 𝑐𝐷
Where a, b, c and d are the stoichiometric coefficients of species A, B, C and D respectively
And Mwa, Mwb, Mwc and Mwd are the molecular weights of species A, B, C and D respectively.
𝑎 ∗ 𝑀𝑤𝑎 + 𝑏 ∗ 𝑀𝑤𝑏 = 𝑐 ∗ 𝑀𝑤𝑐 + 𝑑 ∗ 𝑀𝑤𝑑
For example
𝐶𝐻4 + 𝐻2 𝑂 → 𝐶𝑂 + 3𝐻2
16 + 18 = 28 + 3 ∗ 2 = 34
c. The ability to verify the feasibility of the conversion stated by the user
Note
For a species i
𝑛𝑖𝑂𝑢𝑡 = 𝑛𝑖𝐼𝑛 + 𝑣𝑖 𝜀
Where 𝑛𝑖𝑂𝑢𝑡 is the number of moles of species i flowing out of the reactor
Where 𝑛𝑖𝐼𝑛 is the number of moles of species i flowing into the reactor