summaryrefslogtreecommitdiff
path: root/3685/CH1/EX1.2
diff options
context:
space:
mode:
Diffstat (limited to '3685/CH1/EX1.2')
-rw-r--r--3685/CH1/EX1.2/Ex1_2.sce17
-rw-r--r--3685/CH1/EX1.2/Ex1_2.txt4
2 files changed, 21 insertions, 0 deletions
diff --git a/3685/CH1/EX1.2/Ex1_2.sce b/3685/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..93bce5902
--- /dev/null
+++ b/3685/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,17 @@
+clc
+d_r = 13.6e03 // Density of mercury in kg/m^3
+g = 9.81 // Acceleration due to gravity in m/s^2
+z = 710e-03 // Steam flow pressure in m
+z0 = 772e-03 // Reading of barometer in m
+P = 1.4e06 // Gauge pressure of applied steam in Pa
+P0 = d_r*g*z0 // Atmospheric pressure in Pa
+Pi = P+P0 // Inlet steam pressure in Pa
+Pc = d_r*g*(z0-z) // Condenser pressure in Pa
+
+printf("\n Example 1.2\n")
+printf("\n Inlet steam pressure is %f MPa",Pi/1e6)
+printf("\n Condenser pressure is %f kPa",Pc/1e3)
+//The answers vary due to round off error
+
+
+
diff --git a/3685/CH1/EX1.2/Ex1_2.txt b/3685/CH1/EX1.2/Ex1_2.txt
new file mode 100644
index 000000000..b50463e92
--- /dev/null
+++ b/3685/CH1/EX1.2/Ex1_2.txt
@@ -0,0 +1,4 @@
+Example 1.2
+
+ Inlet steam pressure is 1.502997 MPa
+ Condenser pressure is 8.271792 kPa \ No newline at end of file