Post Reply 
(41) Bulk Cylindrical Tank
10-14-2018, 01:47 PM
Post: #35
RE: (41) Bulk Cylindrical Tank
Here's another approach for the HP-42S using numeric integration.
For the dome an ellipsoid is used.

Code:
00 { 60-Byte Prgm }
01▸LBL "AREA"
02 MVAR "t"
03 RCL "t"
04 RCL "h0"
05 X<Y?
06 GTO 00
07 ÷
08 2
09 ×
10 1
11 -
12 +/-
13 ACOS
14 LASTX
15 RCL ST Y
16 SIN
17 ×
18 -
19 RTN
20▸LBL 00
21 -
22 RCL "d"
23 X<Y?
24 GTO 00
25 PI
26 RTN
27▸LBL 00
28 -
29 RCL÷ "v0"
30 X↑2
31 1
32 X<>Y
33 -
34 PI
35 ×
36 END

Code:
00 { 44-Byte Prgm }
01▸LBL "TANK"
02 PGMINT "AREA"
03 STO "ULIM"
04 CLX
05 STO "LLIM"
06 INTEG "t"
07 RCL "r"
08 X↑2
09 ×
10 RCL÷ "in3/gal"
11 END

Make sure to initialise these variables and set the calculator to RAD mode:
Code:
h0=            12.0000
d=            180.0000
v0=            36.0000
r=             72.0000
in3/gal=      231.0000

Set the accuracy ACC to something reasonable like \(10^{-8}\).

Examples

3 XEQ "TANK"
16.9551

8 XEQ "TANK"
175.0894

112 XEQ "TANK"
7,473.2363

195 XEQ "TANK"
13,324.4312

198 XEQ "TANK"
13,532.5136

Compare this to the examples given in table 25-3 of the paper:

\(
\begin{matrix}
\textbf{Measurement #} & \textbf{H (total vertical level)} & \textbf{# Gallons} \\
1 & 3" & 21 \\
2 & 8" & 200 \\
3 & 112" & 7,473 \\
4 & 195" & 13,284 \\
5 & 198" & 13,444
\end{matrix}
\)

Kind regards
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(41) Bulk Cylindrical Tank - SlideRule - 10-08-2018, 09:13 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-10-2018, 04:58 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-11-2018, 07:38 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-10-2018, 08:36 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-12-2018, 12:04 AM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-12-2018, 09:27 PM
RE: (41) Bulk Cylindrical Tank - Geoff - 10-12-2018, 02:46 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-12-2018, 08:34 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-13-2018, 04:02 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-12-2018, 10:03 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-13-2018, 09:37 AM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-13-2018, 11:38 AM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-13-2018, 06:40 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-14-2018, 10:01 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-15-2018, 12:33 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-15-2018, 07:36 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-16-2018, 08:57 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-15-2018, 08:37 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-13-2018, 10:35 PM
RE: (41) Bulk Cylindrical Tank - Thomas Klemm - 10-14-2018 01:47 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-14-2018, 10:15 PM
RE: (41) Bulk Cylindrical Tank - Dieter - 10-15-2018, 07:06 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-17-2018, 11:33 PM
RE: (41) Bulk Cylindrical Tank - rprosperi - 10-18-2018, 01:11 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-18-2018, 01:19 PM
RE: (41) Bulk Cylindrical Tank - SlideRule - 10-26-2018, 01:00 AM



User(s) browsing this thread: 4 Guest(s)