Skip to content

Commit

Permalink
Fix calculation of the kettle's lateral area
Browse files Browse the repository at this point in the history
  • Loading branch information
hirschmann authored Jul 14, 2017
1 parent 8f0b85d commit 60505e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kettle.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, diameter, volume, temp, density=1):
height = (volume * 1000) / (math.pi * math.pow(radius, 2))

# surface in m^2
self._surface = (2 * math.pi * math.pow(radius, 2) + 2 * radius * height) / 10000
self._surface = (2 * math.pi * math.pow(radius, 2) + 2 * math.pi * radius * height) / 10000

@property
def temperature(self):
Expand Down

0 comments on commit 60505e9

Please sign in to comment.