Question: I need the answer in Matlab form, thanks! 6_3 (6 pts) Mass balance/linear systems. Solve in m-file script HW6_3.m. A counter-current staged liquid-liquid extraction process

I need the answer in Matlab form, thanks!
6_3 (6 pts) Mass balance/linear systems. Solve in m-file script HW6_3.m. A counter-current staged liquid-liquid extraction process is depicted below. In such systems, a stream containing a mass fraction Yin of a chemical enters from the left at a mass flow rate of F1 (this is known as the raffinate). Simultaneously, a solvent carrying a mass fraction Xin of the same chemical enters from the right at a flow rate of F2 (this is known as the extract). Thus, at steady state for stage i, a mass balance can be written as: Flyi-1 + F2Xi+1 = Fiyi + F2X (HW6.3.1) At each stage, an equilibrium is assumed to be established between Yi and X, such that K = x (HW6.3.2) where K is the distribution coefficient. Equation HW6.3.2 can be solved for X, and the result substituted into Equation HW6.3.1 and rearranged to yield: Vi-1-(1+x))i + EK) Yit 0 (HW6.3.3) Known parameters include: F1 = 200 kg, Vin = 0.2, F2 = 300 , xin = 0, and K = 5. 5 = Yi = Set up the matrix system for determining the value of y; at each stage. Note that equations (HW6.3.1) and (HW6.3.2) should be used to set up the mass balance for the last stage. Solve this problem using (i) 'tridiag', (ii) gausspivot', and (iii) Valgorithms. Which is most efficient? Output the time taken for each to the command window. (Computation time can be quantified using the 'tic' and 'toc' commands.) Then, calculate the corresponding value of xi at each stage. Create a single plot of log(xi) and log(yi) vs. stage number; label your plot (axes, legend, title) accordingly. X1 X2 X3 X4 X5 X6 Xin = 17 = 1 2 3 4 5 6 Yin = yo 1 y2 94 ys Y6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
