From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2006/CH2/EX2.2/ex2_2.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 2006/CH2/EX2.2/ex2_2.sce (limited to '2006/CH2/EX2.2') 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"); -- cgit