diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3689/CH5/EX5.6/5_6.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-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/CH5/EX5.6/5_6.sce')
-rw-r--r-- | 3689/CH5/EX5.6/5_6.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3689/CH5/EX5.6/5_6.sce b/3689/CH5/EX5.6/5_6.sce new file mode 100644 index 000000000..bf55d7b10 --- /dev/null +++ b/3689/CH5/EX5.6/5_6.sce @@ -0,0 +1,26 @@ +////
+//Variable Declaration
+n = 3.0 //Number of moles of CO2
+Ti = 300 //Initial and final state Temeperatures of CO2, K
+Tf = 600
+pi = 1.00 //Initial and final state pressure of CO2, K
+pf = 3.00
+cpm = 27.98 //Specific heat of mercury, J/(mol.K)
+M = 200.59 //Molecualr wt of mercury, g/(mol)
+beta = 1.81e-4 //per K
+rho = 13.54 //Density of mercury, g/cm3
+R = 8.314 //Ideal Gas Constant, J/(mol.K)
+
+//Calcualtions
+dS1 = n*cpm*log(Tf/Ti)
+dS2 = n*(M/(rho*1e6))*beta*(pf-pi)*1e5
+dS = dS1 - dS2
+
+//Results
+printf("\n Entropy change of process is %4.1f J/(mol.K)",dS)
+
+printf("\n Ratio of pressure to temperature dependent term %3.1e\nhence effect of pressure dependent term is very less",dS2/dS1)
+
+printf("\n The above value is different as given in the text")
+
+
|