diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH5/EX5.2/Ex5_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-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/Ex5_2.sce')
-rw-r--r-- | 3685/CH5/EX5.2/Ex5_2.sce | 18 |
1 files changed, 18 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
+
|