summaryrefslogtreecommitdiff
path: root/926/CH3/EX3.1/Chapter3_Example1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /926/CH3/EX3.1/Chapter3_Example1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '926/CH3/EX3.1/Chapter3_Example1.sce')
-rw-r--r--926/CH3/EX3.1/Chapter3_Example1.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/926/CH3/EX3.1/Chapter3_Example1.sce b/926/CH3/EX3.1/Chapter3_Example1.sce
new file mode 100644
index 000000000..95e4356ef
--- /dev/null
+++ b/926/CH3/EX3.1/Chapter3_Example1.sce
@@ -0,0 +1,27 @@
+//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-3, Illustration 1, Page 54
+//Title: Calculation of volume
+//=============================================================================
+clear
+clc
+
+//INPUT
+W1 = 30; //Weight of chlorine in lb
+MW = 71; //Molecular weight of chlorine in lb/lb mole
+P1 = 760; //Pressure at standard conditions in mm Hg
+T1 = 492; //Temperature at standard conditions in degree R
+P2 = 743; //Given pressure in mm Hg
+T = 70; //Given temperature in degree F
+
+//CALCULATIONS
+n = W1/MW; //No of moles of chlorine in lb mole
+V1= n*359; //Volume of chlorine at standard conditions in cu ft
+T2 = 530; //Given temperature in degree R
+
+V2 = V1*(P1/P2)*(T2/T1); //Volume of chlorine at given conditions in cu ft
+
+//OUTPUT
+mprintf(' \n Volume occupied by %2.0f lb of chlorine at given temperature and pressure is %3.0f cu ft',W1,V2);
+
+//=================================END OF PROGRAM============================== \ No newline at end of file