Question: Create a Flowchart base on this :Dg=150; Vd=50; ke=0.4; ka=1.6; %%% answer for part a) t=0; count=1; %values for

Create a Flowchart base on this :Dg=150;\ \ Vd=50;\ \ ke=0.4;\ \ ka=1.6;\ \ %%% answer for part a)\ \ t=0;\ \ count=1; %values for Cp array index\ \ while (t<10)\ \ Cp(count)=((Dg*ka)/(Vd*(ka-ke)))*(exp(-ke*t)-exp(-ka*t));\ \ count=count+1;\ \ t=t+0.1;\ \ end\ \ t=0:0.1:10; %time values\ \ plot(t,Cp,'b-') %plotting Cp vs t values\ \ xlabel('time (in hrs)')\ \ ylabel('Cp')\ \ %%%%%answer for part b\ \ t=0;\ \ count=1; %values for Cp1 array index\ \ while (t<=24)\ \ if t==4||t==8||t==12||t==16\ \ Dg=Dg+150;\ \ end\ \ Cp1(count)=((Dg*ka)/(Vd*(ka-ke)))*(exp(-ke*t)-exp(-ka*t));\ \ count=count+1;\ \ t=t+0.1;\ \ end\ \ t=0.1:0.1:24; %time values\ \ figure\ \ plot(t,Cp1,'b-') %plotting Cp vs t values\ \ xlabel('time (in hrs)')\ \ ylabel('Cp')

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 Databases Questions!