A lap time simulator takes a car and a circuit and predicts the fastest lap the car could do, with its speed, gear and accelerations at every point. Its real use is comparison: change one thing about the car, run again, and see how much time it is worth and where on the lap it comes from.
Quasi-steady state: the method most simulators use
Most lap time simulators, APEX VELOX and most free and open-source tools among them, are quasi-steady-state (QSS): at each point of the lap the car is assumed to be in a steady state, cornering, accelerating or braking at the limit its tyres and engine allow. That ignores how the car gets from one state to the next, but it is fast (seconds per lap) and, for comparing designs, usually what you need. Transient simulators and optimal-control methods model the car's motion in time; they are slower and need far more data.
1. The track becomes a line of points
The circuit's centreline is cut into short steps (1 m by default in APEX VELOX) and the curvature at each point, one over the corner radius, is worked out. Centrelines from GPS are smoothed first, because small wiggles in the data become false corners.
2. The cornering limit at every point
In a corner of curvature κ at speed v the car needs a lateral acceleration of v²κ. The tyres can give only so much, so each point has a maximum speed. Without downforce that is roughly v = √(μg/κ). With downforce the grip grows with speed, so the limit is found by iterating speed, load and grip together.
3. The acceleration pass, forwards
Starting from the slowest points, the simulator drives forwards: at each step the engine's force in the chosen gear, minus drag and rolling resistance, accelerates the car, but only as far as the tyre grip left over from cornering allows. Grip shared between turning and driving is the combined slip or friction-ellipse limit.
4. The braking pass, backwards
The same is done backwards from each slow point, with braking instead of drive: how late can the car brake and still make the corner?
5. The lap time
At every point the car's speed is the lowest of the three: the cornering limit, the acceleration curve and the braking curve. Each step's time is its length over its speed, and the lap time is their sum. Plot lateral against longitudinal acceleration for every point and you have the g-g diagram: the shape of the grip the car actually used.
Where the detail goes: tyres and the vehicle model
The simplest simulators treat the car as a point mass with one friction coefficient. APEX VELOX's tyres use the Magic Formula 5.2 with combined slip and load sensitivity (or a lighter Pacejka set), and its Extended model works out each wheel's load from the springs, anti-roll bars and roll centres. A final stage adds tyre slip relaxation. Each of these is a recorded option, so a result always says which model made it.
What the method cannot show
- Transients: how the car rotates into a corner, its yaw and roll dynamics, and the driver.
- Tyre temperature and wear, unless they are put in as inputs.
- Some dependence on the step size: a result means something only beside its step (how much).
That is why the useful output is the difference between two runs, not the absolute lap time. How APEX VELOX's results are checked.
