diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /249/CH11/EX11.4/11_04.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
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 |