I was slowly cranking my way of Claremont Avenue the other day on my trusty Bianchi when I started wondering why I was so slow. Well, that was easy. I’m pretty heavy and I’m somewhat out of shape. But which is more important, which would have a bigger impact if improved?
First, I used a website like this one to determine the average grade over a certain familiar portion of the route. In this case, it was 13.3%. I also have a speedometer on my bike that tells that I average about 5 mph over that stretch. Finally, I weigh about 100 kg, and my bike is another 10 kg.
So, given that the energy to raise a mass up h height is m*g*h, the power to raise a mass at r rate is m*g*r.
pi = 3.14159265358
g = 9.80 # m/s^2
mph_to_ms = 0.44704
mass = 110 # kg
speed_up_claremont = 5 * mph_to_ms
claremont_grade = 0.133
claremont_power = mass * g * speed_up_claremont * math.sin(math.atan(claremont_grade))
print("claremont_power: " + str(claremont_power))
claremont_power: 317.67222 (watts)
That is, that’s how much power it takes to lift my mass up a hill at that rate. Note the trig to change my speed up the hill to a vertical speed. There are losses in pedaling a bike, and on the tires on the road, etc, but this is a good estimate of the overall order of how much power I can comfortably sustain. Let’s call it 300W.
Now, another thing I’ve noticed while riding is that on flat ground, I can maintain about 17 mph. In that case, I’m not adding power to climb a hill at all, all of my power is overcoming road friction and drag.
It happens that power going to aerodynamic drag goes by the cube of the velocity. (There is more going on here than wind drag, but, eh, it probably dominates at higher speeds…) So, if we assume that on level ground I’m capable of the same ~300W that I do while climbing, I can calculate the constant in:
P = c * v^3
This is a simplification of the more general equation linked above, assuming constant air density, yadda. For 17 mph and 317 W, I get about 0.72376 kg / m. kg/m is a strange dimension, but it it what it is.
So then, I wondered, how fast should I be able to go with a given power budget while climbing different grades?
I created this equation which combines the power to climb and the power to overcome drag
P = c v^3 + m g v sin(theta)
where P is power, c is the drag power constant calculated above, m is mass, g is the acceleration of gravity, and theta is the angle of the hill. (The angle is the arctangent of the grade, by the way.) Oh, and v is my speed.
It turns out that my brain doesn’t perform the way it once did and I can’t solve that cubic equation on my own, so I resorted to a Python-based solver which is part of the sympy package.
This function gets the job done:
from sympy import solveset, S, N
from sympy.abc import v
th = math.atan(grade)
th_deg = th*180/pi
# print("th_deg: " + str(th_deg))
vf = math.sin(th)
# print("vf: " + str(vf))
soln = solveset(drag_power_constant * v**3 + mass * g * vf*v - power, v, domain=S.Reals)
list_soln = list(soln)
final_soln = list_soln
Note this equation has three solutions, two of which are complex. Only interested in the “real” solution.
Now, this is finally where the fun starts. Want to know how fast I can climb different grades, or how actual athletes who can summon more power than me can get up?
Like I said, I can make about 300W, but I saw a youtube video of a dude who could make about 1kW, at least for long enough to make toast.
Then I was wonder, would losing weight help much? It does. Interestingly, it helps on the middle grades. On the highest grades, I’m nearly stopped, and the numbers get small. On flat grades, drag (a function of my shape, not my size) dominates. But in the middle, yeah, there’s an effect.
So there you have it. If I lost 10 kg and could increase my power output by 15% I could go from about 5 mph on Claremont to about 6 mph.
Actually, that’s depressing.
One thought on “Nerding while sweating”
I solve the problem by being fat and old and riding a slow bike. I still get to work, probably two minutes later than at optimum efficiency. I take solace in thinking about all the greenhouse gas savings I am making.