Van's Air Force

The definitive Van's Aircraft support community! Buying, building or flying an RV? Join our exclusive family of mentors and enthusiasts!

Fuel Quantity Calculation Script

N890GF

Well Known Member
Patron
Now that I'm in phase 1, I have burned off sufficient fuel from my tanks that I can now refill them and calibrate my fuel senders. I also decided to see if I could mathematically and programmatically estimate the fuel quantity based on a ruler, wing tilt (dihedral) and pitch (tail dragger).

In my plane, the dihedral is around 3.5 deg, and the pitch (on the top of the spar) is about 11 deg. I inserted a ruler into my tank and measured essentially 0" straight below the filler hole. I took a bunch of measurements for the size of the tank, and the location of the filler hole, and wrote a python script to estimate how much fuel would be in the tank. I could still see fuel slightly behind where the filler hole was, due to the tail low attitude, and of course the inboard part of the tank still had fuel being lower than the outboard. The program estimated about 5.6 gallons remained in the tank. I repeated this on the other side, which had a bit more fuel, 1.5" and the program estimates 10.5 gallons.

Well, I removed the drain, and emptied the lower tank into my 5 gallon can, and filled it up beyond the 5 gallon mark, right up to the point it almost spilled out. I then got a second tank for the tiny amount left over. I weighed the completely full can at ~33 lbs, resulting in ~5.5 gallons, and I bet about a tenth or so in the second tank...a lot closer to the math than I was expecting.

Here are some screenshots of the plots visualizing the fuel level. The script is fully configurable, including tilt angle (dihedral), pitch angle, filler location, rear tank measurement (tank chord), etc. The script generates the 23013.5 airfoil that vans uses on the -7, and all the calculations are based on that airfoil and the input measurements.

In spite of doing all this fun programming, I will of course be verifying it as I calibrate my tanks 2 gallons at a time to configure the Dynon float senders, and a homemade dipstick.

Anyways, I thought I'd share in case anyone else might be interested, I know there are other nerds out here who find this type of stuff fun

Screenshot 2026-03-07 at 11.39.15 AM.png

Screenshot 2026-03-07 at 11.39.00 AM.png
 
it seems a complicated way to do it.
Tried & true method is to drain the tank, than add fuel 2 gallons at a time & mark that level on a stick. Much easier on the brain to do it this way.
You are correct with the about 5 to 6 gallons fill before it becomes visible in the outter tank bay.
 
This is so cool — honestly I wish I had the knowledge and skill to do this but I’m at the “mark a stick” level. I love that you’re doing it this way. The fact that you can just work this stuff out is impressive as hell.
 
Great Post on your work, Thanks!

I did the fill method 3 times. Beware - make sure the plane is level, then put jacks under the wings to make sure it stays that way. I made a dipstick of .025" X 1/2" X~8" long aluminum. I drilled 1/16" staggered holes 1/2 gal apart.

Here is a photo of the stick and will send PM with a spreadsheet of curves for each side. Update - could not attach .xls file to the PM.

The fuel meniscus is different for wood and metal. Check it for your dip stick when calibrating. Huge difference. Your math is most likely the best, if it is validated of course :-)

I would love to use your script - - what app uses it?
 

Attachments

Last edited:
Cool images and software - great work!

I think the angle of every tailwheel aircraft is slightly different - for mine, I have the following when I look in the tank:

1) full - about 20 gallons on each side - about 4 hours at the power setting I like to use, about 6 hours economy
2) half full - 10 gallons on each side - can see bottom of tank, and some gasoline when I look inboard - about 2 hours of flight time available
3) can't see any gasoline - max. 5 gallons on each side - don't fly until you add fuel

The stick works between totally full and half full, but honestly it's just not that helpful for the way that I fly - and my fuel totalizer is very accurate.
 
Great Post on your work, Thanks!

I did the fill method 3 times. Beware - make sure the plane is level, then put jacks under the wings to make sure it stays that way. I made a dipstick of .025" X 1/2" X~8" long aluminum. I drilled 1/16" staggered holes 1/2 gal apart.

Here is a photo of the stick and will send PM with a spreadsheet of curves for each side. Update - could not attach .xls file to the PM.

The fuel meniscus is different for wood and metal. Check it for your dip stick when calibrating. Huge difference. Your math is most likely the best, if it is validated of course :-)

I would love to use your script - - what app uses it?

Thats a nice dipstick, i may steal that for mine. Right now just have an aluminum stick with some sharpie lines on it. The script is just python, it uses the math library, the matplotlib library to make the plots, and the numpy library to manage the data. I sent you a PM with the link to my github with the file

Cool images and software - great work!

I think the angle of every tailwheel aircraft is slightly different - for mine, I have the following when I look in the tank:

1) full - about 20 gallons on each side - about 4 hours at the power setting I like to use, about 6 hours economy
2) half full - 10 gallons on each side - can see bottom of tank, and some gasoline when I look inboard - about 2 hours of flight time available
3) can't see any gasoline - max. 5 gallons on each side - don't fly until you add fuel

The stick works between totally full and half full, but honestly it's just not that helpful for the way that I fly - and my fuel totalizer is very accurate.
Yeah the angles are all configurable in the script since i am certain all the planes are slightly different. I think the 8 sits a bit steeper too if I'm not mistaken.

None of what I did with the script replaces doing a tank calibration with a dipstick and the float senders for my Dynon. It was mostly an exercise for myself to practice some of my engineering and have some fun while sitting on the couch since I wasn't flying
 
Back
Top