diff options
Diffstat (limited to '249/CH11/EX11.4/11_04.sce')
-rwxr-xr-x | 249/CH11/EX11.4/11_04.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/249/CH11/EX11.4/11_04.sce b/249/CH11/EX11.4/11_04.sce new file mode 100755 index 000000000..05c117fc1 --- /dev/null +++ b/249/CH11/EX11.4/11_04.sce @@ -0,0 +1,17 @@ +clear
+clc
+k=0.307;
+//Given mean residence time(min)
+t=15;
+//For plug flow with negligible density
+fr_unconverted=exp(-k*t);
+printf("\n The fraction of reactant unconverted in a plug flow reactor is %f",fr_unconverted)
+//For the real reactor
+T=[5;10;15;20;25;30];//given time
+E=[0.03;0.05;0.05;0.04;0.02;0.01];//given
+dt=5;
+sum1=0;
+for i=1:6
+ sum1=sum1+exp(-k*T(i))*E(i)*dt;
+end
+printf("\n The fraction of reactant unconverted in a real reactor is %f",sum1)
\ No newline at end of file |