summaryrefslogtreecommitdiff
path: root/926/CH5/EX5.7
diff options
context:
space:
mode:
Diffstat (limited to '926/CH5/EX5.7')
-rw-r--r--926/CH5/EX5.7/Chapter5_Example7.sce35
-rw-r--r--926/CH5/EX5.7/Chapter5_Example7_Output.txt2
2 files changed, 37 insertions, 0 deletions
diff --git a/926/CH5/EX5.7/Chapter5_Example7.sce b/926/CH5/EX5.7/Chapter5_Example7.sce
new file mode 100644
index 000000000..dcc8a2c22
--- /dev/null
+++ b/926/CH5/EX5.7/Chapter5_Example7.sce
@@ -0,0 +1,35 @@
+//Hougen O.A., Watson K.M., Ragatz R.A., 2004. Chemical process principles Part-1: Material and Energy Balances(II Edition). CBS Publishers & Distributors, New Delhi, pp 504
+
+//Chapter-5, Illustration 7, Page 119
+//Title: Calculation of condensation pressure
+//=============================================================================
+clear
+clc
+
+//INPUT
+VP = [229.2 89.1]; //Vapour pressure of acetone at 25 degree C and 5 degree C
+P = 750; //Pressure of given mixture in mm Hg
+w = 90; //Amount of acetone to be condensed;
+
+
+//CALCULATION
+n1 = VP(1)/P; //lb moles of acetone present
+n2 = 1-n1; //lb moles of flue gases present
+n3 = (1-(w/100))*n1; //lb moles of acetone in final mixture
+n4 = n2+n3; //lb moles of final mixture of gas
+PP = VP(2); //Partial pressure of acetone in final mixture
+m = n3*100/n4; //Mole percent of acetone in final mixture
+Pf = PP/(m/100); //Final pressure in mm Hg
+
+//OUTPUT
+// Console output
+mprintf('\n Final pressure after condensation = %.0f mm Hg',Pf);
+
+// File output
+fd= mopen('.\Chapter5_Example7_Output.txt','w');
+mfprintf(fd,'\n Final pressure after condensation = %.0f mm Hg',Pf);
+mclose(fd);
+
+//=========================END OF PROGRAM======================================
+
+// Remark: Difference between the nswer given in the textbook (2110 mm Hg) and that computed using scilab code (2114 mm Hg) is due to round off error
diff --git a/926/CH5/EX5.7/Chapter5_Example7_Output.txt b/926/CH5/EX5.7/Chapter5_Example7_Output.txt
new file mode 100644
index 000000000..5389ba5df
--- /dev/null
+++ b/926/CH5/EX5.7/Chapter5_Example7_Output.txt
@@ -0,0 +1,2 @@
+
+ Final pressure after condensation = 2114 mm Hg \ No newline at end of file