Simulate the temperature inside an aquarium tank

AI Thread Summary
A user is exploring how to simulate temperature changes in a 100-gallon aquarium tank using a 4000-watt heater to maintain a setpoint of 150°F. They are seeking advice on modeling the tank's temperature over time, particularly how long it takes for the temperature to drop 5°F and when the heater should activate. The discussion includes calculations involving tank volume, heat loss, and conversions between BTU and kWh. Suggestions are made to simplify calculations by converting all measurements to metric units to avoid confusion. The user aims to create a function in Python to visualize the heating cycle and temperature changes effectively.
bartlino
Messages
3
Reaction score
0
TL;DR Summary
how to create a function in Python to model an electric heating element heating a tank of water
there's a website to size an aquarium heater or chiller.

This is just for learning purposes (not for fish) but I have modified these parameters from default to perform a load calculation on a 100 gallon glass tank... For the tank temperature range I set to be between 150-160 degree F. and a startup time of .5 hours, all other parameters are left default...

hamza2.PNG

The load calc output looks like this to see all of the losses:

hamza.PNG
The question I have, is how I could I model the tank temperature over time of a 4000 watt heater cycling on and off to maintain a 150 degrees setpoint? IE, if the tank drops below 145F the heater would come on and then shut off when the tank temperature reaches 155F.

Using Python, I think I can calculate in hours how long it will take for the tank temperature to drop the 5F for when the heater would need to come on but would anyone have any tips for how I could model/calculate the tank temperature & burner cycling? (plot data over time..)

[CODE lang="python" title="Python script"]
tank_volume = 100
gall_pound_conversion = 8.33
drop_in_temp = 10 #btu per pound
btu_kwh_conversion = 3413
total_loss_evap_convection = 2692/1000 #divde by 1000 to convert watts to kW

def sim():
value = tank_volume * gall_pound_conversion
value = value * drop_in_temp
value = value / btu_kwh_conversion
value = value / total_loss_evap_convection
return valueprint(sim())
0.9066374569047897[/CODE]

printing the function (sim()) this yields 0.9066374569047897 which I think is in hours
 
Last edited by a moderator:
Engineering news on Phys.org
In your table, aren't you using watts in some places there should be watt hours. The difference between power and energy in this case is vital. See my signature below.
 
Any chance you could give me a tip ? The function in Python I think converts everything to hours steps I tried to follow:

1) Take the volume of the tank in gallons and multiply that value by 8.33 pounds per gallon to get pounds.

2) Multiply the result above by 10 BTU per pound which corresponds to a 10F drop in temperature for the entire tank.

3) Divide the result above by 3,413 to convert BTU to kWh of heat.

4) Divide the result above by the total rate of heat loss (kW) from evaporation and conduction. Remember 1 kW = 1000 Watts.

final result in hours for when the heating element would need energize. Ultimately I am looking to write a function that would model the tank temperature as the heating element cycles.. Thanks for any help, still learning :)
 
bartlino said:
1) Take the volume of the tank in gallons and multiply that value by 8.33 pounds per gallon to get pounds.
2) Multiply the result above by 10 BTU per pound which corresponds to a 10F drop in temperature for the entire tank.
3) Divide the result above by 3,413 to convert BTU to kWh of heat.

Before posting convert all mass to kg, all temp to °C, and all volumes to litre or m3.
Eliminate the confusion. Convert everything before or outside the procedure.

You do not need °F, pounds or BTU in computations.
Water weighs 1 kg per litre, so you do not need to differentiate between gallons(US) or gallons(imp) when you use litres.
 
How did you find PF?: Via Google search Hi, I have a vessel I 3D printed to investigate single bubble rise. The vessel has a 4 mm gap separated by acrylic panels. This is essentially my viewing chamber where I can record the bubble motion. The vessel is open to atmosphere. The bubble generation mechanism is composed of a syringe pump and glass capillary tube (Internal Diameter of 0.45 mm). I connect a 1/4” air line hose from the syringe to the capillary The bubble is formed at the tip...
Thread 'Calculate minimum RPM to self-balance a CMG on two legs'
Here is a photo of a rough drawing of my apparatus that I have built many times and works. I would like to have a formula to give me the RPM necessary for the gyroscope to balance itself on the two legs (screws). I asked Claude to give me a formula and it gave me the following: Let me calculate the required RPM foreffective stabilization. I'll use the principles of gyroscopicprecession and the moment of inertia. First, let's calculate the keyparameters: 1. Moment of inertia of...
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
Back
Top