Post Reply 
41 Cistern Program
08-13-2016, 08:29 AM (This post was last modified: 08-13-2016 10:07 AM by wojtek.)
Post: #2
RE: 41 Cistern Program
(08-11-2016 12:46 PM)SlideRule Wrote:  Does anyone have the program listing (key-codes etc.) for the CISTERN program described in the 13 April 1992 edition of Oil & Gas Journal article Simple Program Calculates Partial Liquid Volumes in Vessels? The program listing was available by request to anyone asking with a no-later-than date of 30 July 1992.
Firstly sorry for typos, I am lying on a hospital bed and use my smartphone.
I don't have this journal, but perhaps this can be of help to you. If I understood your problem cerrectly you would like to know a partial volume of liquid in a cy
lindrical vessel set horizontally on the ground, given the depth of liquid in the vessel. I am rather weak at math but after a short search of the internet I found a formula for this problem. Details are on the picture attached. So, given the R and L (radius and lenght of the cistern respectively) and H (measured depth of liquid) the program for 50g could be something like:

<< -> H << Pi R 2 ^ * 1 H R / - acos * 180 / R H - H R 2 * * H 2 ^ - sqrt * - L * 2 / ->num >> >>
Original formula had no division by 2 at the end and gave wrong results for the full and half full vessel. Addind this division by 2 gives correct results for H=0, R and 2R.
Hope to help a little
PS. 50g should be in degree mode, H is on the stack, R and L in global variables.
PS2. The formula is for circular cross-section, for other shapes, eliptical for example would be more complicated


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
41 Cistern Program - SlideRule - 08-11-2016, 12:46 PM
RE: 41 Cistern Program - wojtek - 08-13-2016 08:29 AM
RE: 41 Cistern Program - SlideRule - 08-13-2016, 12:18 PM
RE: 41 Cistern Program - wojtek - 08-13-2016, 06:29 PM
RE: 41 Cistern Program - aurelio - 08-15-2016, 05:20 PM
RE: 41 Cistern Program - wojtek - 08-15-2016, 07:06 PM
RE: 41 Cistern Program - aurelio - 08-15-2016, 08:25 PM
RE: 41 Cistern Program - wojtek - 08-15-2016, 07:28 PM
RE: 41 Cistern Program - Werner - 08-13-2016, 11:06 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-13-2016, 09:41 PM
RE: 41 Cistern Program - Massimo Gnerucci - 08-14-2016, 07:07 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-14-2016, 02:26 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-16-2016, 07:08 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-17-2016, 04:47 AM
RE: 41 Cistern Program - wojtek - 08-17-2016, 06:08 AM
RE: 41 Cistern Program - Ángel Martin - 08-17-2016, 06:46 AM
RE: 41 Cistern Program - aurelio - 08-17-2016, 09:03 AM
RE: 41 Cistern Program - Dieter - 08-17-2016, 01:30 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-18-2016, 02:44 AM
RE: 41 Cistern Program - wojtek - 08-13-2016, 06:44 PM
RE: 41 Cistern Program - wojtek - 08-13-2016, 09:57 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-14-2016, 04:34 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-14-2016, 05:19 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-16-2016, 05:49 AM
RE: 41 Cistern Program - wojtek - 08-15-2016, 09:08 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-16-2016, 01:56 AM
RE: 41 Cistern Program - wojtek - 08-17-2016, 02:13 PM
RE: 41 Cistern Program - aurelio - 08-17-2016, 04:51 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-19-2016, 05:03 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-19-2016, 01:13 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-19-2016, 08:37 PM
RE: 41 Cistern Program - 4ster - 08-17-2016, 02:22 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 08:23 AM
RE: 41 Cistern Program - aurelio - 08-19-2016, 11:54 AM
RE: 41 Cistern Program - wojtek - 08-19-2016, 12:49 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 04:55 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 05:07 PM
RE: 41 Cistern Program - wojtek - 08-19-2016, 07:18 PM
RE: 41 Cistern Program - aurelio - 08-19-2016, 10:05 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-19-2016, 11:29 PM
RE: 41 Cistern Program - aurelio - 08-20-2016, 07:51 AM
RE: 41 Cistern Program - Csaba Tizedes - 08-20-2016, 09:16 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-20-2016, 05:34 AM
RE: 41 Cistern Program - aurelio - 08-20-2016, 08:02 AM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-20-2016, 03:40 PM
RE: 41 Cistern Program - Csaba Tizedes - 08-20-2016, 06:57 PM
RE: 41 Cistern Program - Gerson W. Barbosa - 08-20-2016, 07:54 PM



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