summaryrefslogtreecommitdiff
path: root/249/CH5/EX5.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /249/CH5/EX5.4
downloadScilab-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/CH5/EX5.4')
-rwxr-xr-x249/CH5/EX5.4/5_04.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/249/CH5/EX5.4/5_04.sce b/249/CH5/EX5.4/5_04.sce
new file mode 100755
index 000000000..dda8acc7c
--- /dev/null
+++ b/249/CH5/EX5.4/5_04.sce
@@ -0,0 +1,14 @@
+clear
+clc
+//With 50% inert 2 vol of feed would give 4 vol of completely converted gas
+//Expansion factor is
+eA=(4-2)/2;
+//Initial concentration of A(mol/litre)
+CAo=0.0625;
+//For 80% conversion
+xAo=0;xAf=0.8;k=0.01;
+//For plug flow space time(t) is given by
+//t=CAo*integral(dxA/-rA)
+X=integrate('sqrt((1+xA)/(1-xA))','xA',xAo,xAf);
+t=sqrt(CAo)*X/k;
+printf("\n Space time(sec) needed is %f \n",t) \ No newline at end of file