Hydrostatic force on a gate — a TI-84 Plus CE program
HYDROST is a TI-BASIC program for the TI-84 Plus CE. Rectangular gate at any incline: resultant force, centroid depth, centre of pressure measured from the top edge, and the moment about the top hinge.
What it asks for and what it shows
It asks for 5 values at its prompts. In the example below it shows F KN, CG M, CP TOP, M HINGE.
Example run
One of its oracle test cases: “vertical gate”. The inputs are typed in order, and the results are the values the case expects on the screen.
| Step | Value |
|---|---|
| You enter | |
| Input 1 | 2 |
| Input 2 | 3 |
| Input 3 | 1.5 |
| Input 4 | 90 |
| Input 5 | 998 |
| The screen shows | |
F KN= | 146.8557 |
CG M= | 2.5 |
CP TOP= | 1.133333333 |
M HINGE= | 166.43646 |
How it's checked
4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 21 checks.
How E-Code checks every program
Run it or put it on your calculator
- Open the library in the TI-84 Plus CE calculator and pick “Hydrostatic force on a gate” (HYDROST).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- Pipe friction: Colebrook, Darcy-Weisbach
- Pipe network: series + parallel
- Venturi meter and Pitot tube
- Open channel: Manning, critical depth
- Hydraulic jump
All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs