Question: How do you get the matlab code for parts ii and iii? I figured out part i so no need to do that. Thanks! Consider

How do you get the matlab code for parts ii and iii? I figured out part i so no need to do that. Thanks!

How do you get the matlab code for parts ii and iii?

Consider a tank containing a solution in which N40 moles of a substance are dissolved. A solution of the same chemical flows into the tank at a linearly increasing volumetric rate, got, and a mixture flows out of the tank at an equivalent rate. The change in the moles of the substance in the tank, NA, is described by: dNA = C4190t Woe NA : Caidot qot V dt where V is the constant volume of the tank and Cai is the inlet stream concentration. Assume the following unitless values for the parameters: Cai = 5; 9o = 0.2; V = 10; and the initial condition N4,0 = 10. (50 points) i) Derive an expression for the number of moles of the substance, N, that are in the tank as a function of time. ii) Generate Matlab code to numerically solve (ode45) the model above. iii) Generate a plot comparing your analytical and numerical solutions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!