Professional Documents
Culture Documents
Numsol Hardcopy Hydrostatic Calcu
Numsol Hardcopy Hydrostatic Calcu
Numsol Hardcopy Hydrostatic Calcu
Submitted By:
Petalio, Aaron V.
Submitted To:
I. Introduction
Gates and barriers, among other water control structures, are essential to regulate fluid flow in
a variety of engineering applications. Understanding the hydrostatic forces acting on these
structures is essential for their design, stability, and overall effectiveness. This MATLAB program
examines the hydrostatic forces acting on gates of varying forms and orientations. Our focus
extends to gates with diverse shapes, involving rectangular, triangular, circular, and semi-circular
gates positioned vertically, inclined, or in curved configurations. It provides a thorough analysis
of the principles defining these forces as well as the creation of a MATLAB program to calculate
them.
The distribution of pressure that fluids apply to submerged surfaces provides rise to hydrostatic
forces. The calculation involves leveraging the hydrostatic force equation, considering specific
gravity, surface area, and depth of submersion. Understanding force distribution and moments
which are essential for structural stability—is aided by parameters such as centroids, moments of
inertia, eccentricities, and the center of pressure for each type of gate.
The MATLAB program serves as a helpful tool for hydraulic and civil engineers, offering
applications in the analysis of gates for dams, essential for flood control structures. The tool aids
decision-making processes related to gate design and optimization by providing a user-friendly
interface and comprehensive outcomes. This report attempts to clarify methods, explain the
mathematical foundation of hydrostatic force analysis, and highlight practical implications in the
field of engineering as it delves into the specifics of MATLAB software. The main objective is to
equip engineers as well as engineering students with an effective computational tool for hydrostatic
PAMANTASAN NG LUNGSOD NG VALENZUELA
Tongco St., Maysan, Valenzuela City
College of Engineering and Information Technology
force analysis on gates with different forms and orientations, as well as to make a significant
contribution to the field of engineering.
Situation — A circular gate 1.5m in diameter is inclined 45° with the vertical. The center
of the gate is 10m below the water surface.
c) Calculate the distance of the total force from the bottom of the gate.
Solution:
𝜋𝜋
𝐼𝐼𝑐𝑐𝑐𝑐 = ( × 1.54 )
𝐼𝐼𝑐𝑐𝑐𝑐 64
𝑒𝑒 = 𝜋𝜋
ACircle = ( × 1.52 )
𝐴𝐴 × ȳ 10
4
ȳ=
𝑐𝑐𝑐𝑐𝑐𝑐45°
Where:
e = eccentricity or distance from the centroid to center
Input the values:
of pressure 𝜋𝜋
( × 1.54 )
Icg = centroidal moment of inertia 𝑒𝑒 = 𝜋𝜋 64
10
A = area of the surface that is submerged in the fluid ( × 1.52 )( )
4 𝑐𝑐𝑐𝑐𝑐𝑐45°
ȳ = distance from surface of fluid to the centroid of
body
𝑒𝑒 = 0.009944 𝑚𝑚
PAMANTASAN NG LUNGSOD NG VALENZUELA
Tongco St., Maysan, Valenzuela City
College of Engineering and Information Technology
c) Calculating the distance of the total force from the bottom of the gate:
Where:
𝑧𝑧 = 0.74
Z = be the distance of the hydrostatic force from
the bottom of the gate
IV. Objectives
i. Input-Process-Output
Figure 1. Input-Process-Output
PAMANTASAN NG LUNGSOD NG VALENZUELA
Tongco St., Maysan, Valenzuela City
College of Engineering and Information Technology
Figure 10. Inclined Surface Inverted Triangle Figure 11. Vertical Surface Trapezoid
V. Code
• For the Main Window
- The switch syntax is use to which case with syntax case expression to use
according to what the user pick in the drop-down menu. Each case is for the
four cases with different ways of calculating the results.
• Case
- The case syntax is used to specify the case for the following code for the
calculation.
• Property
- Using the properties syntax,it is set to private and set a property value that
enables the main menu to access the curved surface property.
• If else statement syntax
- The if else statement is mainly used to distinguished the value of the specific
gravity. It will be 1 if the input is 0 and when the input is greater than 0 it will
store the value that the user had input.