Question: Hello! I need help figuring out how to fix my Matlab code. The enthalpies, CpA, and CpBs are incorrect. Thanks! Problem Statement: Acetaldehyde ( )
Hello! I need help figuring out how to fix my Matlab code. The enthalpies, CpA, and CpBs are incorrect. Thanks!
Problem Statement:
Acetaldehyde is produced by the dehydrogenation of ethanol:
An undesired side reaction also occurs and produces ethyl acetate:
In a pilot plant reactor, of the ethanol fed to the reactor is converted to products, and there is a yield of acetaldehyde based on the total amount of ethanol fed to the reactor
Ethanol vapor enters the reactor at bar, and molhr
We want to know how much heat to add or remove in order to keep the outlet temperature at R::;
R;
DeltaHf defines a vector with heat of formation for each species kJmol
E AA H EA
DeltaHf
DeltaHr defines the heat of reaction in kJmol
DeltaHr sumRDeltaHf sumRDeltaHf;
Vapor Phase Heat Capacity Constants E AA H EA
Cp A BT CT DT with Cp in units of Jmol K
CpB eee;
Hvap is a generalized function that calculates the the specific enthalpy
of the vapor by integrating the heat capacity Cp between T and T The
factor of at the end corrects the expression to units of kJmol Knowns E AA H EA
n; stream flow rates molh
n; stream flow rates molh
Tref ; reference temperature K
T; stream temperature K
T; stream temperature K
Solve for unknown Q
Q;
F @qsumEDeltaHr sumnHvapT Tref sumnHvapTTref q;
options optimsetDisplay'off';
Qdot fsolveF Q options;
fprintf
Cp CpT: Qdot f kJ
Qdot Check stoichiometric coefficients for reaction
Check stoichiometric coefficients for reaction
Check enthalpies of formation
Variable DeltaHf has an incorrect value.
Look at the table in Murphy Appendix B carefully!
Feedback is shown for the initial error only, as subsequent failures may be due to the first error
Show Feedback
Check Heat capacity values CpA
Check Heat capacity values CpB
Check Heat capacity values CpC
Check Heat capacity values CpD
Check input flow rates n
Check input flow rates n
Check the extent of reaction variables Check reference state temperature Tref
Check T
Check your equation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
