diff options
Diffstat (limited to '557/CH2/EX2.1/1.sce')
-rwxr-xr-x | 557/CH2/EX2.1/1.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/557/CH2/EX2.1/1.sce b/557/CH2/EX2.1/1.sce new file mode 100755 index 000000000..7f6dedd8c --- /dev/null +++ b/557/CH2/EX2.1/1.sce @@ -0,0 +1,12 @@ +clc ;funcprot(0);
+//Example 2.1
+
+//Initializing the variables
+z1 = 0; //Taking Ground as reference
+z2 = -30;//Depth
+rho = 1025;//Density
+g = 9.81;//Acceleration due to gravity
+
+//Calculation
+pressureIncrease = -rho*g*(z2-z1);
+disp(pressureIncrease/1000,"Increase in Pressure (KN/m2):");
\ No newline at end of file |