Question: Create a Flowchart base on this :Dg = 1 5 0 ; Vd = 5 0 ; ke = 0 . 4 ; ka =

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

Based on the provided information I will create a flowchart for the pr... View full answer

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 Mechanical Engineering Questions!