summaryrefslogtreecommitdiff
path: root/647/CH2/EX2.9/Example2_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH2/EX2.9/Example2_9.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 '647/CH2/EX2.9/Example2_9.sce')
-rwxr-xr-x647/CH2/EX2.9/Example2_9.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/647/CH2/EX2.9/Example2_9.sce b/647/CH2/EX2.9/Example2_9.sce
new file mode 100755
index 000000000..83d22b566
--- /dev/null
+++ b/647/CH2/EX2.9/Example2_9.sce
@@ -0,0 +1,26 @@
+clear;
+clc;
+
+// Example: 2.9
+// Page: 48
+
+printf("Example: 2.9 - Page: 48\n\n");
+
+// Solution
+
+//*****Data*****//
+m_water = 1;// [kg]
+Cv = 4.18;// [kJ/kg K]
+m_stirrer = 40;// [kg]
+h = 25;// [m]
+g = 9.81;// [m/square s]
+//***************//
+
+// Since the system is thermally insulated:
+// Q = 0
+// From the first law of thermodynamics:
+// dQ = dE + dW
+// As E = U + Ek +Ep and Ek = Ep = 0
+// dQ = dU + dW
+dT = g*h/Cv;// [K]
+printf("Rise in Temperature is %.2f K\n",dT); \ No newline at end of file