summaryrefslogtreecommitdiff
path: root/2006/CH2/EX2.2
diff options
context:
space:
mode:
Diffstat (limited to '2006/CH2/EX2.2')
-rwxr-xr-x2006/CH2/EX2.2/ex2_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2006/CH2/EX2.2/ex2_2.sce b/2006/CH2/EX2.2/ex2_2.sce
new file mode 100755
index 000000000..81f4fdedb
--- /dev/null
+++ b/2006/CH2/EX2.2/ex2_2.sce
@@ -0,0 +1,11 @@
+clc;
+d_r = 13600; // Density of manometric fluid (mercury) in kg/m^3
+g = 8.92; // Gravitational acceleration in m/s^2
+z1=0.589*sind(60); // vertical height of fluid at section 1
+z2=2*sind(30); // vertical height of fluid at section 2
+z=z2-z1; // Difference in vertical heights of fluid
+patm = 14.7; // Atmospheric pressure in lbf/in^2
+patm=(patm*4.44822*144/0.3048^2); // conversion of lbf/in^2 unit to N/m^2 unit
+p=patm + (d_r*g*(z2-z1)); // Balance of force at A
+disp ("m",z,"Difference in vertical heights of fluid");
+disp ("kPa",p/1000,"The pressure of fluid in the vessel");