Aquarium Heater Calculator Test Framework

Conversion utilities test

cm_to_inch conversion
Input Should be Is
1 0.3937 0.3937
0 0 0
2.54 1 0.999998


mm_to_inch conversion
Input Should be Is
1 0.03937 0.03937
25.4 1 0.999998
0 0 0


dtC_to_dtF conversion
Input Should be Is
0.555556 1 1.0000008
1 1.8 1.8
0 0 0


dtF_to_dtC conversion
Input Should be Is
1.8 1 1
1 0.555556 0.555555555555556
0 0 0


Volume / mass calculations

gw calc
Input Should be Is
1,1,1 16.387 16.387
36,12,16 113266.94 113266.944


gr calc
Input Should be Is
36,18,12,0.375,0.125,0.375,ACRYLIC 16848.45 16848.45792


big G calc
Input Should be Is
36,18,12,0.375,0.125,0.375,ACRYLIC,2 131080.28 131080.2946992


Surface area calculation

Adjusted surface area
Input Should be Is Comment
1,1,1,0.1,0.1,0.1,1,1 6 6 everything normal
1,1,1,0.1,0.1,0.1,1,2 7 7 bottom sucks heat
1,1,1,0.1,0.1,0.1,1,0.5 5.5 5.5 bottom saves heat
1,1,1,0.1,0.05,0.1,1,1 7 7 top thinner
18,36,12,0.375,0.125,0.375,0.0004,0.0005 3564 3564 first example
14,480,12,0.25,0.125,0.25,0.002,0.00009 25555 25555.2 second example
12,20,10,0.125,0.125,0.125,0.002,0.0005 970 970 10 gal glass
16,36,12,3/16,0.125,3/16,0.002,0.0005 - 2292 30 gal glass
21,48,12,0.25,0.125,0.25,0.002,0.0005 - 3816 55 gal glass


Wattage calculations

Minimum wattage calculation
Input Should be Is Comment
0.002,970,16,0.125 83.7 83.7087547733333 10 gallon glass
0.002,2292,16,3/16 131.85 131.862863189333 30 gallon glass
0.002,3816,16,0.25 164.655 164.655983616 55 gallon glass


Wattage calculation
Input Should be Is Comment
0.0004,3564,14,0.9,0.375 19.93 19.9347456 first example
0.002,25555,23,0.9,0.25 1761.2 1761.20516888889 second example
0.002,970,16,0.9,0.125 - 93.0096355555556 10 gallon glass
0.002,2292,16,0.9,3/16 - 146.514147555556 30 gallon glass
0.002,3816,16,0.9,0.25 - 182.950912 55 gallon glass


Heat loss constant - p

Heat loss constant calculation
Input Should be Is
0.5 1.39 1.386
0.55 1.45 1.452
0.6 1.53 1.527
0.65 1.62 1.615
0.7 1.72 1.720
0.75 1.85 1.848
0.8 2.01 2.011
0.85 2.23 2.231
0.9 2.56 2.558
0.95 3.15 3.152
0.99 4.64 4.644


Heating time

Heating time
Input Should be Is
2.56, 131080.28, 14, 19.93 8.69 8.68631460698043