Quote: Original post by crocomire
I would like to simulate a realistic cycling race. In the end I'm only interested in the position, speed and acceleration of each runner at particular points in time. My idea was to give each runner a specific amount of energy and a maximum rate at which this energy can be spend. Each runner has an AI that decides how much energy to spend at each point in time based on a number of factors (how much energy is left, what is the slope of the track, how far until finish, where are the others runners). For example, if a runners decides to break free from the others he increases the amount of energy spend.
Therefore I'm looking for a relation between energy spend per time unit and the speed of the runner. I'm aware the reality is rather complex, but maybe I can use a simple approximation. Maybe I can think of the runner as a simple engine: full (food) goes in and force comes out.
If you know the power the cyclist puts into the pedals and you know the speed of the bike, just use the force=power/velocity relation to get the force driving the bike forward. Add drag/friction/gravitational forces to get the net force accelerating the bike. I think that would be simple and accurate enough for your needs.