summaryrefslogtreecommitdiff
path: root/1019/CH4/EX4.19/Example_4_19.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1019/CH4/EX4.19/Example_4_19.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 '1019/CH4/EX4.19/Example_4_19.sce')
-rw-r--r--1019/CH4/EX4.19/Example_4_19.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1019/CH4/EX4.19/Example_4_19.sce b/1019/CH4/EX4.19/Example_4_19.sce
new file mode 100644
index 000000000..fe5013fbf
--- /dev/null
+++ b/1019/CH4/EX4.19/Example_4_19.sce
@@ -0,0 +1,20 @@
+//Example 4.19
+clear;
+clc;
+
+//Given
+delHfus=15648;//Latent heat of fusion in J mol^-1
+Tm=386.6;//melting point in K
+delHvap=25522;//latent heat of vapourization in J mol^-1
+Cp=81.588;//heat capacity in J K^-1 mol^-1
+Tb=457;//boiling point in K
+T=298;
+
+//To determine the entropy change
+delS1=(54.684*log(Tm/T))+(13.431*0.0001*(Tm-T))-(298*13.431*0.0001*log(Tm/T));//entropy change in 1st step in J K^-1
+delS2=delHfus/Tm;//entropy change in 2nd step in J K^-1
+delS3=Cp*log(Tb/Tm);//entropy change in 3rd step in J K^-1
+delS4=delHvap/Tb;//entropy change in final step in J K^-1
+delS=delS1+delS2+delS3+delS4;//total entropy change in J K^-1
+mprintf('Change in entropy = %f J K^-1 mol^-1',delS);
+//end \ No newline at end of file