Aquarium Convert Program

  • We are currently upgrading MFK. thanks! -neo

born2lovefish

Plecostomus
MFK Member
Mar 16, 2006
665
53
61
Indianapolis
I am a Mechanical Engineering major and this semester I am taking a programming class. I been working on a program to calculate the volume after the user enters the length, width, and height. So, I'm sure you all are saying that you could just multiply L, W, and H together divide by 231 and get the volume yourself. However, I also added a couple other features. The user is also prompted to enter the thickness of the glass. The program then calculate the volume of the glass and subtracts it from the total volume. Since the aquarium substrate takes up volume, I added a place where the user can enter the depth of the substrate. The program then subtracts this from the volume. Then since the water in most tanks is not level with the top of the tank, I added a feature for the user to enter the height of the water below the top of the aquarium. Then the program subtracts this from the volume. After this, the program displays the volume, the volume minus the glass volume, the volume minus the glass and substrate volume, and then the volume minus the glass, substrate, and water level from the top volume.

Some of you might be wondering my motivation behind writing this simple program. My reasoning all has to do with dosing aquariums with live plants. I have a 75 gallon planted and when I add ferts, I use to add the amount for 75 gallons of water. However, one day, I stopped and thought about it and came to this realization. Technically, I should not be adding this much because the substrate takes up quite a bit of volume. If I neglect this and dose for 75 gallons, I will be overdosing, which could lead to unwanted results, like an algea outbreak. So, I wrote this program to calcuate a more accurate volume.

I might add a part to the program that would calculate a percent of the total volume for a user. For an example, let's say a user wants to do a 20% water change. The user would enter that as 20 and the computer would calculate how much water the user should change.

So far, this is all I have thought of to add. I am sure I will think of more things to add sitting in class in the weeks to come. If anyone has and thoughts on it, feel free to comment.
 
This sort of thing has already been done. To calculate the entire water volume, you take the INSIDE dimensions of the tank. Then, if the water level is 2" below the rim, just calculate the gallonage again but take 2" from the height measurement.
With the substrate, there is water all through it so to find out how much space ie takes up, you would need to know exactly how much was placed into the tank.

The water change and fert dosing idea though could be a of real food use to people. Especially for hi-tech planted tanks and breeders. Great job!
 
Thanks. Yes, I know others have already made volume calculators, but I just got a little bored you could say. Actually, I want to add more things to the program so it can do more because most programs out there only do one thing. I think having a program that does lots of calculations would be a handy tool to have.
 
born2lovefish;1478892; said:
I am a Mechanical Engineering major and this semester I am taking a programming class. I been working on a program to calculate the volume after the user enters the length, width, and height. So, I'm sure you all are saying that you could just multiply L, W, and H together divide by 231 and get the volume yourself. However, I also added a couple other features. The user is also prompted to enter the thickness of the glass. The program then calculate the volume of the glass and subtracts it from the total volume. Since the aquarium substrate takes up volume, I added a place where the user can enter the depth of the substrate. The program then subtracts this from the volume. Then since the water in most tanks is not level with the top of the tank, I added a feature for the user to enter the height of the water below the top of the aquarium. Then the program subtracts this from the volume. After this, the program displays the volume, the volume minus the glass volume, the volume minus the glass and substrate volume, and then the volume minus the glass, substrate, and water level from the top volume.

Some of you might be wondering my motivation behind writing this simple program. My reasoning all has to do with dosing aquariums with live plants. I have a 75 gallon planted and when I add ferts, I use to add the amount for 75 gallons of water. However, one day, I stopped and thought about it and came to this realization. Technically, I should not be adding this much because the substrate takes up quite a bit of volume. If I neglect this and dose for 75 gallons, I will be overdosing, which could lead to unwanted results, like an algea outbreak. So, I wrote this program to calcuate a more accurate volume.

I might add a part to the program that would calculate a percent of the total volume for a user. For an example, let's say a user wants to do a 20% water change. The user would enter that as 20 and the computer would calculate how much water the user should change.

So far, this is all I have thought of to add. I am sure I will think of more things to add sitting in class in the weeks to come. If anyone has and thoughts on it, feel free to comment.

These are some I use for quick reference...
http://boonedocks.net/fishtank/ftweb.php has alot of options to consider.
as does http://www.drhelm.com/aquarium/areajava.html and these could be incorporated http://www.aquariumlife.net/ too. Dosing...http://www.csd.net/~cgadd/aqua/art_plant_dosage_calc.htm
and for name brands http://www.fishfriend.com/fertfriend.html.

Now if you can bundle all of these and make it reliable that would be a thing of beauty.

So go for it, we're waiting....

.



Mystix212;1480088; said:
This sort of thing has already been done. To calculate the entire water volume, you take the INSIDE dimensions of the tank. Then, if the water level is 2" below the rim, just calculate the gallonage again but take 2" from the height measurement.
With the substrate, there is water all through it so to find out how much space ie takes up, you would need to know exactly how much was placed into the tank.

The water change and fert dosing idea though could be a of real food use to people. Especially for hi-tech planted tanks and breeders. Great job!

Measure the displaced water a known amount of the substrate causes and calculate it (better than emtying the tank :D).

Dr Joe

.
 
MonsterFishKeepers.com