# Time 7, Exercise 3: temperature drift of a pendulum rod, and a balance wheel with a spring import math SECONDS_PER_DAY = 86400 def daily_error(alpha, temp_change): # The rod length changes by a fraction alpha * temp_change. # The period goes as sqrt(length), so the fractional period change is half of that. return 0.5 * alpha * temp_change * SECONDS_PER_DAY steel = 12e-6 # per degree C, typical steel print("steel rod, 1 C warmer: ", round(daily_error(steel, 1), 2), "s a day slow") print("steel rod, 10 C warmer:", round(daily_error(steel, 10), 2), "s a day slow") print("steel rod, 10 C colder:", round(daily_error(steel, -10), 2), "s a day (negative = fast)") # What temperature range keeps a steel pendulum within 2 s a day? limit = 2 print("temperature range for 2 s/day:", round(limit / (0.5 * steel * SECONDS_PER_DAY), 2), "C") # Balance wheel and spring: T = 2 * pi * sqrt(I / k) # I is the wheel's resistance to turning, k the spring's stiffness. No gravity appears. beats_per_hour = 18000 # a common watch rate beats_per_second = beats_per_hour / 3600 T = 2 / beats_per_second # two beats per full oscillation print("beats per second:", beats_per_second) print("full oscillation period:", T, "s") I = 5e-8 # kg m^2, a small wheel (a made-up but realistic size) k = I * (2 * math.pi / T) ** 2 # rearranged: k = I * (2 pi / T)^2 print("spring stiffness k:", f"{k:.3e}", "N m per radian") # Changing I or k by 1 percent changes the rate by about half a percent for name, I2, k2 in (("wheel 1% heavier", I * 1.01, k), ("spring 1% stiffer", I, k * 1.01)): T2 = 2 * math.pi * math.sqrt(I2 / k2) print(f"{name}: period {T2:.5f} s, {(T2 / T - 1) * SECONDS_PER_DAY:+.1f} s a day") # Output when run: # steel rod, 1 C warmer: 0.52 s a day slow # steel rod, 10 C warmer: 5.18 s a day slow # steel rod, 10 C colder: -5.18 s a day (negative = fast) # temperature range for 2 s/day: 3.86 C # beats per second: 5.0 # full oscillation period: 0.4 s # spring stiffness k: 1.234e-05 N m per radian # wheel 1% heavier: period 0.40200 s, +430.9 s a day # spring 1% stiffer: period 0.39801 s, -428.8 s a day # Reading the output: temperature is a small, steady drift for a pendulum, but the # balance wheel is much more sensitive to its own parts: a 1 percent change in the # wheel's inertia or the spring's stiffness shifts the rate by about 430 seconds a # day. That is why watch springs are made from alloys whose stiffness barely changes # with temperature.