summaryrefslogtreecommitdiff
path: root/2132/CH3/EX3.8/Example3_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '2132/CH3/EX3.8/Example3_8.sce')
-rwxr-xr-x2132/CH3/EX3.8/Example3_8.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2132/CH3/EX3.8/Example3_8.sce b/2132/CH3/EX3.8/Example3_8.sce
new file mode 100755
index 000000000..6a06bd9d0
--- /dev/null
+++ b/2132/CH3/EX3.8/Example3_8.sce
@@ -0,0 +1,19 @@
+//Example 3.8
+clc;
+clear;
+close;
+format('v',6);
+//Given data :
+l=3;//in meter
+b=2;//in meter
+p=2*10^6;//in Pa
+g=9.81;//gravity constant
+w=g*1000;//in N/m^3
+h=p/w;//in meter
+xbar=h-1.5;//in meter
+A=l*b;//in m^2
+p_gate=w*A*xbar/10^6;//in MN
+disp(p_gate,"Total pressure on the gate in MN : ");
+IG=b*l^3/12;//in m^3
+h_bar=IG/A/xbar+xbar;//in meter
+disp("Position of centre of pressure is "+string(h_bar-xbar)+" meter below the centroid of gate.");