diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /647/CH2/EX2.3/Example2_3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '647/CH2/EX2.3/Example2_3.sce')
-rwxr-xr-x | 647/CH2/EX2.3/Example2_3.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/647/CH2/EX2.3/Example2_3.sce b/647/CH2/EX2.3/Example2_3.sce new file mode 100755 index 000000000..61495e31d --- /dev/null +++ b/647/CH2/EX2.3/Example2_3.sce @@ -0,0 +1,23 @@ +clear;
+clc;
+
+// Example: 2.3
+// Page: 40
+
+printf("Example: 2.3 - Page: 40\n\n");
+
+// Solution
+
+//*****Data*****//
+W = -3;// [hp]
+Q = -4000;// [kJ/h]
+//**************//
+
+// The work done by the stirrer on the system is given by
+W = W*745.7;// [W]
+// The amount of heat transferred to the suroundings can be expressed in terms of J/s:
+Q = Q*1000/3600;// [J/s]
+// From the first law of thermodynamics:
+// Q = delta_U - W
+delta_U = Q - W;// [J/s]
+printf("The change in the internal energy of the system would be %.2f J/s\n",delta_U);
\ No newline at end of file |