summaryrefslogtreecommitdiff
path: root/3689/CH8/EX8.2/8_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3689/CH8/EX8.2/8_2.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 '3689/CH8/EX8.2/8_2.sce')
-rw-r--r--3689/CH8/EX8.2/8_2.sce36
1 files changed, 36 insertions, 0 deletions
diff --git a/3689/CH8/EX8.2/8_2.sce b/3689/CH8/EX8.2/8_2.sce
new file mode 100644
index 000000000..5081c8a83
--- /dev/null
+++ b/3689/CH8/EX8.2/8_2.sce
@@ -0,0 +1,36 @@
+////
+//Varialble Declaration
+Tn = 353.24 //normal boiling point of Benzene, K
+pi = 1.19e4 //Vapor pressure of benzene at 20°C, Pa
+DHf = 9.95 //Latent heat of fusion, kJ/mol
+pv443 = 137. //Vapor pressure of benzene at -44.3°C, Pa
+R = 8.314 //Ideal Gas Constant, J/(mol.K)
+Pf = 101325 //Std. atmospheric pressure, Pa
+T20 = 293.15 //Temperature in K
+P0 = 1.
+Pl = 10000.
+Ts = -44.3 //Temperature of solid benzene, °C
+
+//Calculations
+Ts = Ts + 273.15
+//Part a
+
+DHv = -(R*log(Pf/pi))/(1./Tn-1./T20)
+//Part b
+
+DSv = DHv/Tn
+DHf = DHf*1e3
+//Part c
+
+Ttp = -DHf/(R*(log(Pl/P0)-log(pv443/P0)-(DHv+DHf)/(R*Ts)+DHv/(R*T20)))
+Ptp = exp(-DHv/R*(1./Ttp-1./Tn))*101325
+
+//Results
+printf("\n Latent heat of vaporization of benzene at 20°C %4.1f kJ/mol",DHv/1000)
+
+printf("\n Entropy Change of vaporization of benzene at 20°C %3.1f J/mol",DSv)
+
+printf("\n Triple point temperature = %4.1f K for benzene",Ttp)
+
+printf("\n Triple point pressure = %4.2e Pa for benzene",Ptp)
+