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/CH16 | |
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/CH16')
-rwxr-xr-x | 249/CH16/EX16.1/16_01.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/249/CH16/EX16.1/16_01.sce b/249/CH16/EX16.1/16_01.sce new file mode 100755 index 000000000..5d218f839 --- /dev/null +++ b/249/CH16/EX16.1/16_01.sce @@ -0,0 +1,24 @@ +clear
+clc
+Co=1;k=1;t=1;//given
+//Scheme A
+//For mixed flow reactor
+//t=(Co-C1)/KC1^2
+C1=(-1+sqrt(1-4*t*(-Co)))/2*t;
+//For the plug flow reactor
+//t=1/k(1/C2-1/C1)
+C2=C1/(1+k*t*C1);
+printf("\n Conversion for flow scheme A is %f",C2)
+//Scheme B
+//For plug flow
+C3=Co/(1+k*t*Co);
+//For mixed flow reactor
+C4=(-1+sqrt(1-4*t*(-C3)))/2*t;
+printf("\n Conversion for flow scheme B is %f",C4)
+//Scheme C,D,E
+//Using exit age distribution fn for 2 equal plug-mixed flow reactor system,using fig 12.1
+t_bar=2;
+in=1000;
+C5=integrate('(2/t_bar)*(exp(1-2*t/t_bar))/(1+Co*k*t)','t',t_bar/2,in);
+printf("\n Conversion for flow scheme C,D,E is %f",C5)
+
|