summaryrefslogtreecommitdiff
path: root/2417/CH3/EX3.12/Ex3_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2417/CH3/EX3.12/Ex3_12.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 '2417/CH3/EX3.12/Ex3_12.sce')
-rwxr-xr-x2417/CH3/EX3.12/Ex3_12.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2417/CH3/EX3.12/Ex3_12.sce b/2417/CH3/EX3.12/Ex3_12.sce
new file mode 100755
index 000000000..f30c7dc4c
--- /dev/null
+++ b/2417/CH3/EX3.12/Ex3_12.sce
@@ -0,0 +1,21 @@
+clear;
+clc;
+printf("\t\t\tProblem Number 3.12\n\n\n");
+// Chapter 3 : The First Law Of Thermodynamics
+// Problem 3.12 (page no. 112)
+// Solution
+
+Z1=2; //Unit:m //Inlet position
+g=9.81 //Unit:m/s^2 //g=The local gravity
+V1=40; //Unit:m/s //Inlet velocity
+h1=3433.8; //Unit:kJ/kg //Inlet enthalpy
+q=1 //Unit:kJ/kg //Heat losses
+Z2=0; //Outlet position //unit:m
+V2=162; //Unit:m/s //Outlet velocity
+h2=2675.5; //Unit:kJ/kg //Outlet enthalpy
+
+//Energy equation is given by
+//((Z1*g)) + (V1^2/2) + h1 + q = ((Z2*g) + (V2^2/2) + h2 + w
+
+w= ((Z1*g)/1000) + ((V1^2/2)/1000) + h1 - q - ((Z2*g)/1000) - ((V2^2/2)/1000) - h2 ; //Unit:kJ/kg //Conersation: 1 kJ=1000 J
+printf("The work output per kilogram is %f kJ/kg\n",w);