summaryrefslogtreecommitdiff
path: root/3685/CH5/EX5.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH5/EX5.2
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3685/CH5/EX5.2')
-rw-r--r--3685/CH5/EX5.2/Ex5_2.sce18
-rw-r--r--3685/CH5/EX5.2/Ex5_2.txt2
2 files changed, 20 insertions, 0 deletions
diff --git a/3685/CH5/EX5.2/Ex5_2.sce b/3685/CH5/EX5.2/Ex5_2.sce
new file mode 100644
index 000000000..73f3f27e3
--- /dev/null
+++ b/3685/CH5/EX5.2/Ex5_2.sce
@@ -0,0 +1,18 @@
+clc
+V1 = 0.37 // volume flow rate at inlet in m^3/kg
+P1 = 600// Inlet pressure in kPa
+v1 = 16 // Inlet velocity of flow in m/s
+V2 = 0.62 // volume flow rate at exit in m^3/kg
+P2 = 100// Exit pressure in kPa
+v2 = 270 // Exit velocity of flow in m/s
+Z1 = 32 // Height of inlet port from datum in m
+Z2 = 0 //Height of exit port from datum in m
+g = 9.81 // Acceleration due to gravity
+Q = -9 // Heat transfer in kJ/kg
+W = 135 // Work transfer in kJ/kg
+U12 = (P2*V2-P1*V1) + ((v2^2-v1^2)/2000) + (Z2-Z1)*g*1e-3 + W - Q // Change in internal energy in kJ
+
+printf("\n Example 5.2")
+printf("\n The internal energy decreases by %f kJ",U12)
+//The answers vary due to round off error
+
diff --git a/3685/CH5/EX5.2/Ex5_2.txt b/3685/CH5/EX5.2/Ex5_2.txt
new file mode 100644
index 000000000..4f3ac9fca
--- /dev/null
+++ b/3685/CH5/EX5.2/Ex5_2.txt
@@ -0,0 +1,2 @@
+ Example 5.2
+ The internal energy decreases by 20.008080 kJ \ No newline at end of file