summaryrefslogtreecommitdiff
path: root/1919/CH5/EX5.1/Ex5_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1919/CH5/EX5.1/Ex5_1.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 '1919/CH5/EX5.1/Ex5_1.sce')
-rwxr-xr-x1919/CH5/EX5.1/Ex5_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1919/CH5/EX5.1/Ex5_1.sce b/1919/CH5/EX5.1/Ex5_1.sce
new file mode 100755
index 000000000..f56cf76c0
--- /dev/null
+++ b/1919/CH5/EX5.1/Ex5_1.sce
@@ -0,0 +1,21 @@
+
+// Theory and Problems of Thermodynamics
+// Chapter 5
+// Second law of Thermodynamics
+// Example 1
+
+clear ;clc;
+
+//Given data
+Q = 100 // energy absorbed in kJ
+W = 50 // work done in kJ
+
+// Calculations
+U2_1 = Q - W // U2_1 = U2 - U1
+
+// if it is to be restored to state 1 through an adiabatic process, then
+del_U = - U2_1 // U2_1 = - (U1 - U2)
+
+net_W = U2_1 + del_U // in kJ
+
+mprintf('According to the second law of thermodynamics, \n The system cannot be restored to its original state by adiabatic process')