summaryrefslogtreecommitdiff
path: root/527/CH3/EX3.2/3_2exam.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /527/CH3/EX3.2/3_2exam.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '527/CH3/EX3.2/3_2exam.sce')
-rwxr-xr-x527/CH3/EX3.2/3_2exam.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/527/CH3/EX3.2/3_2exam.sce b/527/CH3/EX3.2/3_2exam.sce
new file mode 100755
index 000000000..978deb53b
--- /dev/null
+++ b/527/CH3/EX3.2/3_2exam.sce
@@ -0,0 +1,22 @@
+//Engineering and Chemical Thermodynamics
+//Example 3.2
+//Page no : 119
+
+//Solution(a)
+clear ; clc ;
+//Given
+del_U = 0 ; // As no work or heat transfered across its boundaries during the process
+T_1 = 500 ; // [K]
+V1 = 1.6682 / 2 * 10^-3; // [m^3]
+V2 = 2 * V1 ;
+del_S_sur = 0 ; // As no heat transfered across its boundaries during the process
+disp(" Example 3.2 Page no : 119")
+disp("(a)");
+disp(" For an ideal gas u = u(T only)") ;
+printf('\n Final temperature = %g K \n\n',T_1);
+
+//Solution(b)
+q_rev = 8.314 * T_1 * log(V2/V1) ;
+del_S_sys = q_rev / T_1 ;
+del_S_univ = del_S_sys + del_S_sur ;
+printf('(b)\n\n Entropy change for universe = %.2f J/(molK)',del_S_univ);