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 /2132/CH3/EX3.6 | |
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 '2132/CH3/EX3.6')
-rwxr-xr-x | 2132/CH3/EX3.6/Example3_6.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/2132/CH3/EX3.6/Example3_6.sce b/2132/CH3/EX3.6/Example3_6.sce new file mode 100755 index 000000000..b44b12aaa --- /dev/null +++ b/2132/CH3/EX3.6/Example3_6.sce @@ -0,0 +1,29 @@ +//Example 3.6
+clc;
+clear;
+close;
+format('v',7);
+//Given data :
+p_water=1000;//in kg/m^3
+p_liquid=800;//in kg/m^3
+g=9.81;//gravity constant
+h1=1.5;//m
+px1=p_liquid*g*h1/1000;//kN/m^2
+disp(px1,"Pressure at a point 1.5 meter below free surface in kN/m^2 : ");
+h2=2;//m
+px2=p_liquid*g*h2/1000;//kN/m^2
+disp(px2,"Pressure at a point 2 meter below free surface in kN/m^2 : ");
+h31=2;//m(for liquid)
+h32=0.5;//m(for water)
+px1=p_liquid*g*h31/1000;//kN/m^2
+px2=p_water*g*h32/1000;//kN/m^2
+px3=(px1+px2);//kN/m^2
+disp(px3,"Pressure at a point 2.5 meter below free surface in kN/m^2 : ");
+h=2;//meter(water level)
+b=8;//meter(width of wall)
+p_bottom=px1+(p_water*g*h)/1000;//kN/m^2
+p_avg1=(px1+0)/2;//kN/m^2(top 2m liquid layer)
+p_avg2=(px1+p_bottom)/2;//kN/m^2(top 2m water layer)
+F_per_meter=p_avg1*h*1+p_avg2*h*1;//kN
+Fwall=F_per_meter*b;//kN
+disp(Fwall,"Force on the wall in kN : ");
|