MATLAB Projects
MATLAB Projects
The mixing patterns in the CSTR are such that it is modeled as three equal-sized CSTRs in series. Species A and B are fed in separate lines to the CSTR, which is initially filled with inert material. Each CSTR is 200 dm3 and the volumetric flow to the first reactor is 10 dm3/min of A and 10 dm3/min of B. you can assume the values of required variables. Make a matlab program to solve the following problems : a) What is the steady-state conversion of A? b) Determine the time necessary to reach steady state (when C, exiting the third reactor is 99% of the steady-state value). c) Plot the concentration of A exiting each tank as a function of time.
ca0=1; cb0=1; t=10; k=0.01; ca1=ca0*(1-x1); cb1=cb0-ca0*x1; ca2=ca0*(1-x2); cb2=cb0-ca0*x2; ca3=ca0*(1-x3); cb3=cb0-ca0*x3; ca1=ca0/(1+k*t*cb0); ca2=ca1/(1+k*t*cb1); ca3=ca2/(1+k*t*cb2);
t = residence time ca1, cb1 conc of a and b after passing through 1st reactor ca2, cb2 after 2nd and so on x1=total conversion after 1st reactor