# Time 6, Exercise 3: the power of a falling weight g = 9.81 # metres per second squared SECONDS_PER_DAY = 86400 def energy_joules(mass_kg, drop_m): return mass_kg * g * drop_m # energy = m * g * h def power_watts(mass_kg, drop_m, seconds=SECONDS_PER_DAY): return energy_joules(mass_kg, drop_m) / seconds # A 100 kg driving weight falling 10 m in a day e = energy_joules(100, 10) p = power_watts(100, 10) print("energy per day:", round(e), "J") print("power:", round(p, 4), "W") print("a 100 W bulb uses", round(100 / p), "times as much") # A tower with a 30 m drop: how long does the same weight run? print("days on one winding with a 30 m drop and 10 m used per day:", 30 / 10) # A hungrier clock (big hands, hammers) needing 0.5 W with a 10 m daily drop need = 0.5 mass = need * SECONDS_PER_DAY / (g * 10) print("mass needed for 0.5 W:", round(mass, 1), "kg") # Winding it back up: work you do equals the energy it will give back print("work to rewind 100 kg by 10 m:", round(energy_joules(100, 10)), "J") # Output when run: # energy per day: 9810 J # power: 0.1135 W # a 100 W bulb uses 881 times as much # days on one winding with a 30 m drop and 10 m used per day: 3.0 # mass needed for 0.5 W: 440.4 kg # work to rewind 100 kg by 10 m: 9810 J # Reading the output: the whole clock runs on about a tenth of a watt, about 1/880 of a # 100 W bulb's draw. A heavy weight and a long rope make a good store of energy, # and the escapement's job is to let it out as slowly and evenly as the clock requires.