Documente Academic
Documente Profesional
Documente Cultură
EXPERIMENT #1
Introduction to MATLAB
COURSE COORDINATOR:
Dr. Manisha Sharma
Assistant Professor
Page 1
CE1532 Process Modeling and Simulation Lab
(a) Write down equations to determine the masses of LP, HP and VHP grades (mLP, mHP and mVHP)
that would need to be mixed to make batch of mass mB for a customer who ordered a product
with moisture wB, impurity content xB and average crystal size dpB.
(b) Write a Matlab script file (blend.m) to calculate the masses of LP, HP and VHP grades that
need to be mixed together to obtain a blended product of the mass, moisture, impurity level
and average crystal size inputted by the user.
Answer:-
(c) What masses of LP, HP and VHP would you need to make 100 kg of blend with a moisture of
2.5 g/kg, impurity content of 4.5 g/kg and average crystal size of 0.95 mm?
𝑚𝐿𝑃 = 4.55𝑘𝑔
𝑚𝐻𝑃 = 63.62𝑘𝑔
𝑚𝑉𝐻𝑃 = 31.81𝑘𝑔
Page 2
CE1532 Process Modeling and Simulation Lab
D2 D3
F D1 B1
C1 C2 C3
B2 B3
The compositions of the feed stream (F) and the four product streams (D2, B2, D3 and B3) are known
and given are in the table below. The feed stream molar flowrate is 100 kgmol/h.
Composition F D2 B2 D3 B3
(mole fraction)
Benzene 0.400 0.980 0.030 0.000 0.000
Toluene 0.250 0.020 0.929 0.031 0.000
Ethylbenzene 0.300 0.000 0.041 0.931 0.037
Styrene 0.050 0.000 0.000 0.038 0.963
(a) Write down a set of equations, or a clearly defined matrix equation, that would allow you to
calculate the molar flowrates of the four product streams (D2, B2, D3 and B3). What is the key
principle you used to develop the equations?
Mass Balance
For Benzene:-
40 = 0.98𝐷2 + 0.03𝐵2
For Toluene:-
25 = 0.02𝐷2 + 0.929𝐵2 + 0.031𝐷3
For Ethyl Benzene:-
30 = 0.041𝐵2 + 0.931𝐷3 + 0.037𝐵3
For Styrene:-
5 = 0.038𝐷3 + 0.963𝐵3
(b) Write a Matlab script file (columns.m) to calculate the molar flowrates of D2, B2, D3 and B3.
What were the flowrates?
Answer:-
Page 3
CE1532 Process Modeling and Simulation Lab
Flowrates:
𝐷2 = 40.0506 mol/hr
𝐵2 = 25.0152 mol/hr
𝐷3 = 30.9640 mol/hr
𝐵3 = 3.9703 mol/hr
By Gauss Elimination
Page 4