summaryrefslogtreecommitdiff
path: root/575/CH5/EX5.2.5/5_2_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /575/CH5/EX5.2.5/5_2_5.sce
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 '575/CH5/EX5.2.5/5_2_5.sce')
-rwxr-xr-x575/CH5/EX5.2.5/5_2_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/575/CH5/EX5.2.5/5_2_5.sce b/575/CH5/EX5.2.5/5_2_5.sce
new file mode 100755
index 000000000..ebf179003
--- /dev/null
+++ b/575/CH5/EX5.2.5/5_2_5.sce
@@ -0,0 +1,17 @@
+clc
+pathname=get_absolute_file_path('5_2_5.sce')
+filename=pathname+filesep()+'525.sci'
+exec(filename)
+printf("All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
+n2cap=flowinA*Dacetone/Macetone
+printf(" \n Molar flowrate of Acetone=%f mol Acetone/min",n2cap)
+P=Pfinal*760 + 763
+y4=Pacetone/P
+printf(" \n Mole fraction of Acetone in the final flow= %f mol Acetone/mol",y4)
+printf(" \n Mole fraction of Nitrogen in the final flow= %f mol Nitrogen/mol",1-y4)
+n3cap=flowinN/0.0224
+n4cap=n2cap/y4
+disp("By using Overall Molar balance,")
+n1cap=n4cap-n2cap-n3cap
+V1cap=n1cap*0.0224*T1*760/(1*273*P1)
+printf("Volumetric Flowrate of Nitrogen = %f Nitrogen/min",V1cap) \ No newline at end of file