Bike Power

calculation of energy consumption under various bicycling conditions
(based on a C-program by Ken Roberts which I found here)

grade of hill = % headwind = km/h
weight: cyclist + machine = total 90 kg
rolling friction coeff = (race:0.004...MB:0.012) BM rate = W/kg (2312 kcal/day)
air resistance coeff = (, ) (racing crouch:0.167...standing:0.356)
efficiency: transmission = % human = %
number of table entries: increment in table:
give start :
kphF_kgP_aP_rP_gP_tPhpheatBMCCal/hrCal/km
5.00.5160070.012111213912024
10.00.661201180.025511218515916
15.00.9191702390.0511611226722915
20.01.3462304720.1021811240334617
25.01.78929061240.1737511261252621
30.02.3155350101990.2760011291178426
35.03.0245400153010.409071121320113532
40.03.8366460224340.5813091121855159540
45.04.7521520306030.8118201122536218048
50.05.7715580418141.0924541123380290658

Legend:
kph = velocity [kilometers per hour]
F_kg = total force resisting forward motion [kilograms]
P_a = power output to overcome air resistance [Watts]
P_r = power output to overcome rolling friction [Watts]
P_g = power output to climb grade [Watts]
P_t = power loss due to drivetrain inefficiency [Watts]
P = P_a + P_r + P_g = total power output [Watts]
hp = total power output [horsepower]
heat = C - (P + BM) = power wasted due to human inefficiency [Watts]
BM = basal metabolism [Watts]
C = total power consumption [Watts := Joules per second]
Cal/hr = total power consumption [dietary Calories per hour := kcal/h]
Cal/km = total power consumption [dietary Calories per kilometer := cal/m]