diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2006/CH2/EX2.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2006/CH2/EX2.2')
-rwxr-xr-x | 2006/CH2/EX2.2/ex2_2.sce | 11 |
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");
|