Assignment04 PSL Updated3
Assignment04 PSL Updated3
* Seborg, Dale E., et al. Process dynamics and control. John Wiley & Sons, 2016.
Write a MATLAB script that uses ode15s and calculates the xSol at the specified time
points, using the parameters given in the structure par.
The gas-solid parallel catalytic reaction is carried out in a Packed Bed Reactor. As you can
see, there are four species in that reaction and you should write four material balances for
the four species as
𝑑𝐹𝑖
= 𝑅𝑖 (1) − (4)
𝑑𝑉
where 𝑅𝑖 = ∑𝑗 νij 𝑟𝑗 ; νij is the stoichiometric coefficient of ith species in jth reaction ;
i = ethanol, DEE (Diethyl Ether), water, ethylene .
𝐸1
𝑟1 = 𝑘10 exp (− ) 𝑝𝑛1
𝑅𝑇 𝑒𝑡ℎ𝑎𝑛𝑜𝑙,𝑠
𝐸2 𝑛2
𝑟2 = 𝑘20 exp (− ) 𝑝𝐷𝐸𝐸,𝑠
𝑅𝑇
𝑑𝑃 1 (1 − 𝜖)2 𝜇𝑈 1 − 𝜖 𝜌𝑈 2
= − 2 (150 + 1.75 ) (5)
𝑑𝑉 π𝐷 /4 𝜖 3 𝜙𝑠2 𝐷𝑝2 𝜖 3 𝜙𝑠 𝐷𝑝
1 𝐹𝑡𝑜𝑡𝑎𝑙 𝑅𝑇 𝑃𝑀𝑎𝑣𝑔
where 𝑈 = 𝜋𝐷2 /4 . ; 𝜌= ; 𝑀𝑎𝑣𝑔 = ∑𝑛𝑖=1 𝑦𝑖 𝑀𝑖
𝑃 𝑅𝑇
But you should also be aware that the first reaction is exothermic and whereas the second
reaction is endothermic so Energy balance has to be also solved, and is given by
𝑑𝑇 ∑𝑗 (−Δ𝐻𝑅𝑗 ) 𝑟𝑗
= (6)
𝑑𝑉 ∑𝑖 𝐹𝑖 𝐶𝑝𝑖
Partial pressure at surface of catalyst can be calculated by balancing reaction rate and
external mass transfer (bulk to surface mass transfer) which is given below
𝐾𝑔 𝑎𝑣 (𝑝𝑒𝑡ℎ𝑎𝑛𝑜𝑙,𝑏 − 𝑝𝑒𝑡ℎ𝑎𝑛𝑜𝑙,𝑠 ) + 𝑅𝑒𝑡ℎ𝑎𝑛𝑜𝑙 = 0 (7)
Data:
Details about the packed bed
Diameter of column, 𝐷 = 1 𝑚; Length of the reactor, 𝐿 = 1 𝑚; bed porosity , 𝜖 = 0.35;
particle diameter , 𝑑 = 5 𝑚𝑚; sphericity , 𝜙 = 1;
Other details
𝑀𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟 𝑤𝑒𝑖𝑔ℎ𝑡 𝑜𝑓 𝑒𝑡ℎ𝑎𝑛𝑜𝑙 = 46 𝑘𝑔/𝑘𝑚𝑜𝑙
𝑀𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟 𝑤𝑒𝑖𝑔ℎ𝑡 𝑜𝑓 𝐷𝐸𝐸 = 74 𝑘𝑔/𝑘𝑚𝑜𝑙
𝑀𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟 𝑤𝑒𝑖𝑔ℎ𝑡 𝑜𝑓 𝑤𝑎𝑡𝑒𝑟 = 18 𝑘𝑔/𝑘𝑚𝑜𝑙
𝑀𝑜𝑙𝑒𝑐𝑢𝑙𝑎𝑟 𝑤𝑒𝑖𝑔ℎ𝑡 𝑜𝑓 𝑒𝑡ℎ𝑦𝑙𝑒𝑛𝑒 = 28 𝑘𝑔/𝑘𝑚𝑜𝑙
C𝑝𝑒𝑡ℎ𝑎𝑛𝑜𝑙 = 90.97 𝑘𝐽/(𝑘𝑚𝑜𝑙. 𝐾), 𝐶𝑝𝐷𝐸𝐸 = 159.08; 𝑘𝐽/(𝑘𝑚𝑜𝑙. 𝐾), 𝐶𝑝𝑤𝑎𝑡𝑒𝑟 = 34.84 𝑘𝐽/
(𝑘𝑚𝑜𝑙. 𝐾), 𝐶𝑝𝑒𝑡ℎ𝑦𝑙𝑒𝑛𝑒 = 59.221; 𝑘𝐽/(𝑘𝑚𝑜𝑙. 𝐾)
𝑉𝑖𝑠𝑐𝑜𝑠𝑖𝑡𝑦 𝑜𝑓 𝑡ℎ𝑒 𝑚𝑖𝑥𝑡𝑢𝑟𝑒 , 𝜇 = 1.38 × 10−5 𝑃𝑎. 𝑠
Please note that all the equations are being solved Volume as independent variable for
plotting purpose convert volume into axial length (z)
Output to be stored in variables mentioned below (for Grader test cases)
T_profile : Temperature values along z (𝑖𝑛 °𝐶)
P_profile : Pressure values along z (in bar)
ethanol_molar_flowrate : Molar flow rate of ethanol along z (in mol/s)
Put initial conditions for the final two expressions in mass matrix in the order of inlet
pressure. Plot all the variables in different figures (You can equivalently use subplot
function of MATLAB if required)