53 min read

Saturday evening, the 2026 British Grand Prix weekend. Antonelli has just taken pole in the Mercedes with a 1:28.111, and Tom has a laptop open on the Sector Four group call.

Chapter 11 — Lap-Time Simulation: Putting the Physics Together to Predict a Lap from First Principles

Saturday evening, the 2026 British Grand Prix weekend. Antonelli has just taken pole in the Mercedes with a 1:28.111, and Tom has a laptop open on the Sector Four group call.

Tom: I've done it. Ten chapters of physics in one program. Track line from the location feed, Chapter 1's grip, Chapter 3's drag, Chapter 6's energy rules, Chapter 7's brakes. Press go, it drives a lap.

Aisha: And?

Tom: One minute thirty-two point two one four.

Ines: Antonelli did twenty-eight point one. So your car is four seconds slower than a real one?

Tom: Four point one. And that's my best circuit.

He was not exaggerating. When we ran that first version of the simulator, built entirely from parameters that earlier chapters had fitted to real telemetry, against all 42 dry qualifying sessions of 2025 and 2026 in our data, it was slower than reality at every single one: by a median 10.46 s with the 2025 car and 6.73 s with the 2026 car. The worst miss was 2025 Jeddah, 18.36 s. Silverstone 2026, at +4.10 s, was the closest it got.

Nothing in that simulator was made up. The grip envelope came from apexes of real pole laps; the braking envelope from thousands of real stops; the drag area from real straights. Each number was a fair answer to the question its chapter asked. But a lap simulator asks a different question (where is the limit, everywhere, all at once?) and the honest answer to that question is a bit different from each of the answers we had collected.

This chapter builds the simulator properly and then does what a performance engineer does with any model: holds it against measurement. We will:

  • build the track from the location feed and see what smoothing does to its corners;
  • derive the corner limit, the braking (backward) pass and the acceleration (forward) pass, including the 2026 battery;
  • calibrate five scalars against the real laps, with the comparison made at matched positions on a location-based line (not on drifting integrated distance), and test the result on circuits the fit has not seen;
  • use the calibrated car to price the setup trade-offs: downforce against drag at Monza, Monaco and Singapore, a kilogram of mass, a megajoule of energy.

The result is good enough to be useful and wrong enough to be instructive. Out of sample, the calibrated simulator predicts a 2026 pole-quality lap with a median error of 1.38 s and a median RMS speed error of 18.1 km/h. Two real laps in the same session differ by a median 6.2 km/h. The gap between those two numbers is the subject of half the chapter.

🔧 Engineering Track: this is the chapter that ties Part I together. Read every section; the derivations in §11.3–11.5 are the core, and §11.7's calibration is the habit to keep.

🎮 Sim Racer Track: §11.4 (braking) and §11.8 (setup trade-offs) are the parts that map onto the car setup screen of any racing sim. Figure 11.8 shows where a "perfect" driver model still loses to a real one.

This chapter is outside the 🏎️ Fan, 📊 Analytics and 🎰 Betting tracks; readers on those tracks can take §11.8's sensitivity results on trust and continue with Chapter 12.

11.1 The problem: from a line on a map to a number on the timing screen

Formula One teams build lap-time simulators, and the idea is simple to state: a program takes a description of a car and a description of a circuit and returns the fastest lap that car could drive there. Teams describe using them to choose wing levels before they travel, to price an upgrade before they build it, to set fuel and energy targets and to feed the race-strategy tools that decide pit stops. The serious ones are enormous, with tyre models, suspension kinematics, aero maps that change with ride height and yaw, power-unit control logic and sometimes a model of the driver. None of that is public.

What we can build from public data is the classic first rung on that ladder, and it is still the one every engineering student learns first.

📐 Definition: quasi-steady-state (QSS) lap simulation. A method that treats each point of the lap as if the car were in a steady state at that speed and curvature: the forces balance instantly, with no yaw dynamics, no suspension movement and no tyre warm-up. The car's history matters only through its speed. Joining those steady states along the track gives a speed profile $v(s)$ and a lap time.

📐 Definition: point-mass model. The car is treated as a single mass with no axles, no wheelbase and no balance. It has a grip envelope (how much acceleration the tyres can supply in any direction), drag, downforce and an engine. Understeer and oversteer do not exist in a point mass.

The output of the simulator is a speed profile, and the lap time follows from the integral you met in Chapter 1:

$$T = \oint \frac{ds}{v(s)} \;\approx\; \sum_i \frac{\Delta s}{\bar v_i}.$$

In words: the lap time is the sum, over every small piece of track, of the time the car takes to cross it. A car that spends 4 m at 100 km/h (27.8 m/s) needs 0.144 s for that piece; at 300 km/h (83.3 m/s) the same 4 m takes 0.048 s. This is why slow corners dominate the lap-time account even though they are a small share of the distance: Chapter 1 measured that on the 2026 pole laps, the stretches below 150 km/h are a median 13.8 % of the distance but 24.3 % of the time.

So the whole job is to find $v(s)$. The QSS method does it in three moves, and each move uses a module you have already built:

Step What it computes Physics from Box Box module
Track curvature $\kappa(s)$ along the line location feed, multi-car averaged line physics.reference_line (Ch 1)
1. Corner limit the fastest steady speed at each point, $v_{\max}(s)$ grip envelope $\mu g + B v^2$ physics.params_from_apex_fit (Ch 1), setup (Ch 8)
2. Backward pass the latest you can brake for what is coming braking envelope $A + Bv^2$ brakes.DecelModel (Ch 7)
3. Forward pass the hardest you can accelerate from what came before power, drag, traction, 2026 energy aero (Ch 3), power (Ch 6)
Combine the minimum of all three lapsim.simulate_lap (this chapter)

The idea is old and robust: you cannot exceed the corner limit; you cannot arrive at a corner faster than you can brake for it; you cannot leave a corner faster than you can accelerate. The fastest legal profile is the lowest of those three ceilings at each point. Everything interesting is in the details, and in the comparison with what the cars actually did.

That comparison is the chapter's spine. We will not stop at "the model gives a plausible number". We will put the simulator on the same track line as 42 real pole-quality laps from 2025 and 2026, measure how wrong it is, calibrate it, test the calibrated version on circuits it has not seen, and only then use it to answer setup questions.

11.2 The track: curvature from the location feed

A lap simulator needs one thing from the circuit: the curvature $\kappa(s)$ of the line the car drives, at every point $s$ along it. Curvature is the inverse of the corner radius, $\kappa = 1/R$; a straight has $\kappa = 0$, a 50 m hairpin has $\kappa = 0.02\ \text{m}^{-1}$ (20 per kilometre). We give it a sign: positive for left-handers, negative for right-handers.

📐 Definition: curvature. For a path parameterised by distance $s$, $\kappa = \dfrac{x'y'' - y'x''}{(x'^2+y'^2)^{3/2}}$, the rate at which the heading turns per metre travelled. It is a second derivative of position, which is why it is so sensitive to noise.

Where does the line come from? OpenF1's location table gives every car's $x, y, z$ position (in decimetres) during qualifying sessions. On the 2025 Japanese GP pole lap (Verstappen, 1:26.983), the position feed has 329 samples against 325 car_data samples, a median of 16.2 m apart (90th percentile 27.7 m). Two approaches are possible.

  1. One lap's own path. Fit a circle through each three consecutive samples. This is the naive method.
  2. A multi-car averaged line. Chapter 1's physics.reference_line takes every driver's fastest lap within 107 % of pole, projects them all onto a heavily smoothed base line, takes the median sideways offset in 4 m bins, and differentiates the result with a Savitzky–Golay window of a chosen length. At Suzuka in 2025 that line uses 20 laps and 6,675 position samples.

The code is short because the hard work was done in Chapter 1:

# code/01_track_curvature.py (excerpt)
tel, xy, row = lapsim.reference_lap(sk)              # the fastest quality-checked lap + its x/y (metres)
k_raw, s_raw = menger(xr[keep], yr[keep])            # naive: circle through 3 consecutive raw samples
lines = {w: C.line_for(sk, w) for w in (40, 60, 80, 120)}   # averaged line, 4 smoothing windows (m)
# the track the simulator drives on: the 60 m line, rescaled to the reference lap's integrated distance
track = lapsim.track_from_line(lines[60], step_m=4.0, length_m=tel.distance_m.iloc[-1], ref=aligned_lap)

And what it shows:

2025 Japanese GP Q: reference lap VER lap 16, 86.983 s; 329 location samples, 325 car_data samples
averaged line: 20 laps, 6675 position samples, length 5778 m; reference lap integrated distance 5789 m
  raw samples: median spacing 16.2 m (p90 27.7 m)
  naive 3-point curvature of one lap: 6.7 % of points with R < 50 m, min radius 19.9 m, 29.4 % with R > 1 km
  averaged line (40 m window)  min radius   23.1 m | share of lap with R < 50 m  2.9 % | R > 1 km 35.4 % | total heading change  4.70 turns
  averaged line (60 m window)  min radius   24.9 m | share of lap with R < 50 m  2.7 % | R > 1 km 34.4 % | total heading change  4.59 turns
  averaged line (80 m window)  min radius   26.5 m | share of lap with R < 50 m  2.3 % | R > 1 km 33.2 % | total heading change  4.48 turns
  averaged line (120 m window) min radius   27.5 m | share of lap with R < 50 m  1.1 % | R > 1 km 31.8 % | total heading change  4.26 turns
  on straights (R_120 > 2 km): naive 3-point    median radius     8598 m, 5th pct radius    1556 m
  on straights (R_120 > 2 km): averaged 40 m    median radius     9300 m, 5th pct radius    1841 m
  on straights (R_120 > 2 km): averaged 60 m    median radius    14512 m, 5th pct radius    2339 m
  2025 preset envelope: flat out wherever R > 110 m (mu 1.117, ClA 11.32 m^2)

Read the output in three steps.

First, the raw feed is better than you might fear. The naive three-point curvature follows the averaged line closely through the Esses (Figure 11.1, top). OpenF1's position samples at Suzuka are not wildly noisy. But the naive method still reports 6.7 % of the lap tighter than 50 m, against 2.9 % for the averaged line, and its straights are bent: the 5th-percentile radius on Suzuka's straights is 1,556 m. That matters more than it sounds. A 1,556 m "corner" at 320 km/h demands $v^2/R = 88.9^2/1556 = 5.1\ \text{m/s}^2$, about half a g of phantom lateral load, and a simulator that believes it will lift on a straight that the driver takes flat.

Second, smoothing has a price. A wider window removes the phantom bends (the 60 m line's 5th-percentile straight radius is 2,339 m) but it also rounds off the real corners. The total heading change of a closed lap should be exactly one full turn plus any figure-of-eight crossings; Suzuka's crossover means the absolute heading change is larger, and what matters is the trend: from 4.70 turns at 40 m to 4.26 at 120 m, the wide window simply loses curvature. The minimum radius grows from 23.1 m to 27.5 m. A simulator on the 120 m line would take the hairpin faster than the real hairpin allows.

Third, the line and the speed channel agree on the lap length. The averaged line is 5,778 m long; integrating the pole lap's speed gives 5,789 m. We rescale the line to the reference lap's integrated distance (a factor of 1.002 here; between 0.992 and 1.007 across all 42 sessions), so that the simulated speeds and the measured speeds describe the same distance.

Curvature at Suzuka from raw samples and from averaged lines with different smoothing windows

📊 Figure (described): Top: curvature through Suzuka's Esses (600–2,000 m) from a circle through three consecutive raw position samples of Verstappen's 2025 pole lap (red dots) and from the 20-lap averaged line (black). They agree closely; the raw version is just bumpier. Bottom: the averaged line with 40, 80 and 120 m smoothing windows. Wider windows flatten each peak of the S-bends, which would let a simulator take them faster than reality.

We use a 60 m window throughout the rest of the chapter. That is a judgement, not a law, and we tested it: on the first calibration runs, a 60 m line gave a slightly lower out-of-sample speed error than a 40 m line for both seasons. Exercise C2 asks you to repeat the test.

Suzuka track map coloured by the radius of the averaged line

📊 Figure (described): The 2025 Suzuka averaged line drawn from the location feed, coloured by radius on a log scale from 15 m (purple) to 3 km (yellow). The white tick on the colour scale marks 110 m, the radius above which the 2025 preset car is flat out because its downforce grows as fast as the corner's demand. The Esses, Degner, the hairpin and Spoon are purple-blue; 130R is green, flat out for this car.

⚠️ Common pitfall: using distance_m from car_data as the track coordinate. That distance is integrated from each car's own speed, so it drifts differently on every lap (Chapter 7 found the drift big enough to make P2 appear to brake later than the pole-sitter in 73 % of stops). A simulator's output can only be compared with a real lap if both live on the same coordinate. We put the reference lap onto the location-based line with Chapter 7's brakes.align_on_line, and every comparison in this chapter is made at matched track positions.

🔄 Check your understanding 1. Why is curvature more sensitive to position noise than heading or position itself? 2. A smoothing window makes every corner on the map slightly wider. Will a simulator on that map predict a lap that is too fast or too slow, if everything else is right?

Answer 1. Curvature is a second derivative of position. Differentiating amplifies high-frequency noise twice: a 0.4 m wiggle every 16 m is a tiny position error but a large change in heading rate. 2. Too fast. A wider corner allows a higher cornering speed, $v_{\max}^2 \propto R$ at low speed, so the simulated car carries more speed through every rounded-off corner.

11.3 Step 1: the cornering limit $v_{\max}(s)$

A car at speed $v$ on a curve of curvature $\kappa$ needs a lateral acceleration $a_y = v^2 |\kappa|$. The tyres can supply up to $\mu$ times the normal load, and the normal load is the weight plus the downforce. Chapter 1 wrote that envelope per unit mass:

$$a_{y,\max}(v) \;=\; \mu g \;+\; \frac{\mu \rho C_L A}{2m}\,v^2 \;\equiv\; \mu g + B_{\text{lat}}\,v^2 .$$

In words: the mechanical grip $\mu g$ is the same at any speed; the aerodynamic grip grows with the square of speed. Setting demand equal to supply and solving for the speed gives the corner limit:

$$v_{\max}^2(s) \;=\; \frac{\mu g}{|\kappa(s)| - B_{\text{lat}}}, \qquad v_{\max} = \infty \text{ wherever } |\kappa| \le B_{\text{lat}} .$$

In words: the tighter the corner, the lower the limit; and on any curve gentler than radius $1/B_{\text{lat}}$, downforce grows as fast as the corner's demand, so the corner is flat out. With the 2026 preset ($\mu = 1.51$, $C_LA = 5.86\ \text{m}^2$, $m = 780$ kg, $\rho = 1.153\ \text{kg/m}^3$), $B_{\text{lat}} = 1.51 \times 1.153 \times 5.86 / (2 \times 780) = 6.54\times10^{-3}\ \text{m}^{-1}$, so every curve wider than about 153 m is flat out. A 60 m corner allows $v_{\max}^2 = 1.51 \times 9.81 / (1/60 - 0.00654) = 1{,}463\ \text{m}^2/\text{s}^2$, so 38.2 m/s or 138 km/h.

Where do $\mu$ and $C_LA$ come from? Not from a team. Chapter 1 fitted a straight line of apex lateral acceleration against $v^2$ through the speed minima of dry pole laps: $a_y/g = 1.510 + 6.666\times10^{-4} v^2$ for 2026 (n = 144 apexes) and $1.117 + 9.251\times10^{-4} v^2$ for 2025 (n = 150). With a mass and density assumed, physics.params_from_apex_fit turns those two numbers into $\mu$ and $C_LA$. Those are the preset values our simulator starts from.

🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. The preset cars are assembled from earlier chapters: grip envelope from Chapter 1's apex fit (mass 780 kg in 2026 and 810 kg in 2025, both assumed), drag areas from Chapters 3 and 6, the braking envelope from Chapter 7, the traction share from Chapter 8's assumed 45/55 weight split, and the 2026 energy rules from data/reference/regulations_2026.md via boxbox.power.

Now the honest question: is the Chapter 1 envelope a limit? It was fitted through the middle of the apex cloud, so by construction about half of all apexes sit above it. Script 02 measures that directly by computing, at each real apex, the ratio of demand to preset grip, $v^2|\kappa| / a_{y,\max}(v)$:

Share of real telemetry samples ABOVE the preset cornering limit (+2 km/h tolerance), per lap:
      count    50%    min    max
2025   22.0  0.142  0.055  0.212
2026   20.0  0.117  0.059  0.227

Apex utilisation = v^2 |kappa| / a_y,max(v) of the PRESET car at each speed minimum (prominence 20 km/h):
      count    10%    50%    90%
2025  158.0  0.569  1.002  1.234
2026  150.0  0.559  0.957  1.223
2025 slow <120        0.913     74
     medium 120-200   1.058     67
     fast >=200       0.908     17
2026 slow <120        0.885     89
     medium 120-200   1.057     49
     fast >=200       1.069     12
apexes above the preset limit (util > 1): {2025: '50.6 %', 2026: '41.3 %'}

The median apex uses 1.002 of the preset grip in 2025 and 0.957 in 2026; 50.6 % and 41.3 % of apexes exceed it. On a typical pole lap, 14.2 % (2025) or 11.7 % (2026) of all telemetry samples are faster than the preset car's corner limit allows. A simulator built on that envelope must be slow, because it will slow down at corners where the real car does not.

The 2026 Silverstone pole lap against the preset cornering limit

📊 Figure (described): The corner limit $v_{\max}(s)$ for the preset 2026 car on the Silverstone line (blue, shaded above) and Antonelli's 1:28.111 pole lap (black). The limit is far above the car on the straights and in the flat-out sweeps; it only comes down to meet the lap at the apexes of the slow and medium-speed corners. At several of them the real lap pokes through the limit: 9 % of its samples are above it.

Apex utilisation of the preset grip envelope against apex speed

📊 Figure (described): Each point is one apex of a dry 2025 (blue circles) or 2026 (orange squares) pole-quality lap, plotted as lateral demand divided by the preset grip envelope. Lines are medians in 40 km/h bins. The median hugs 1.0 between 100 and 220 km/h and dips below it in the slowest corners. The spread is wide, from about 0.5 to 1.25 between the 10th and 90th percentiles, partly because not every apex is driven at the limit and partly because $v^2|\kappa|$ is itself an estimate.

The pattern by speed band matters later. Medium-speed apexes sit above the envelope (median 1.06 in both seasons) while slow apexes sit below it (0.91 and 0.89). A single straight line in $v^2$ cannot describe both: the real cars have relatively less grip than the line predicts in hairpins and more in 150 km/h sweepers. That is consistent with the tyre load sensitivity of Chapter 5 and with traction-limited exits in slow corners, and it is one of the reasons the calibrated simulator will still miss the slowest corners in §11.7.

🔍 Why this works: a median regression through apexes answers "what does a typical apex look like?", not "what is the most the tyres can do?". A limit is an upper envelope. That is the same distinction Chapter 7 made for braking, where it fitted the 90th percentile of deceleration rather than the median. When we calibrate in §11.7 we will let the data scale the envelope up, and the size of that scale factor will tell us how far the median apex sits below the limit the simulator needs.

11.4 Step 2: the backward pass (braking)

The corner limit says nothing about how the car arrives. If the limit at a hairpin is 70 km/h and the straight before it allows 330 km/h, somewhere upstream the car must start braking. The backward pass finds the latest possible point.

Start at the slowest corner of the lap, where the car is exactly at its corner limit. Walk backwards, one grid step $\Delta s$ at a time, and ask at each step: what is the highest speed from which the car could still brake to the speed ahead?

$$v_i^2 \;=\; v_{i+1}^2 + 2\,a_{\text{brake}}(v_{i+1})\,f_i\,\Delta s , \qquad v_i \leftarrow \min\!\big(v_i,\; v_{\max,i}\big).$$

In words: going backwards from a slow point, speed can rise by as much as the brakes could have taken off over that metre. Where the braking curve meets the corner limit of an earlier corner, the earlier corner wins.

Two ingredients go into $a_{\text{brake}}$.

The braking envelope. Chapter 7 measured the upper edge (90th percentile) of the cars' deceleration against speed and fitted $a_{\text{brake}}/g = A + B v^2$: $0.84 + 7.50\times10^{-4} v^2$ for 2026 and $0.99 + 7.76\times10^{-4} v^2$ for 2025, with an onset delay of 0.172 s and 0.125 s respectively (the time between the brake flag and full deceleration). At 300 km/h the 2026 envelope gives $0.84 + 7.50\times10^{-4} \times 83.3^2 = 6.05$ g; at 100 km/h it gives 1.42 g. The $B$ term is physical: $B = \rho(\mu_b C_LA + C_DA)/(2mg)$, downforce and drag both slowing the car. We store it that way in SimParams (as brake_mu), so that a change in mass, downforce or drag moves the braking envelope too.

The friction ellipse. A car that is braking and turning shares its tyres between the two jobs. We use the ellipse from Chapter 1:

$$\left(\frac{a_x}{a_{x,\max}}\right)^2 + \left(\frac{a_y}{a_{y,\max}}\right)^2 \le 1 \quad\Rightarrow\quad f_i = \sqrt{1 - \big(a_{y,i}/a_{y,\max}(v)\big)^2}.$$

In words: if the corner is already using 60 % of the lateral grip, only $\sqrt{1-0.6^2} = 80\,\%$ of the braking capacity remains. Trail braking into a corner is a walk around this ellipse.

The onset delay is added at the end: the car covers $v \times t_{\text{onset}}$ metres at constant speed before the full deceleration bites, so the braking curve is shifted upstream by that distance. At 320 km/h and 0.172 s that is 15.3 m.

# boxbox/lapsim.py, _backward (excerpt): walk backwards from the slowest corner
for j in range(1, n + 1):
    i = (i0 - j) % n                                   # closed lap: wrap around
    vv = v * v
    r = vv * kap[i] / (a0 + c * vv)                    # share of lateral grip in use
    f = (1.0 - r ** nb) ** (1.0 / nb) if r < 1.0 else 0.0     # friction ellipse (nb = 2)
    ab = (A + B * vv) * f + G * gr[i]                  # braking envelope, plus gravity on a slope
    v = min(math.sqrt(vv + 2.0 * max(ab, 0.0) * ds), vmax[i])
    vb[i] = v

The gr[i] term is the road gradient, taken from the location feed's $z$ coordinate on the reference lap and smoothed over 150 m. Braking uphill is easier, downhill harder. It matters at Spa and the Red Bull Ring (Chapter 10 measured elevation ranges of 102.0 m and 63.4 m) and hardly at all at Albert Park (2.3 m).

11.5 Step 3: the forward pass (power, drag, traction and the 2026 battery)

The forward pass starts at the same slowest corner and walks forwards. At each step the car accelerates as hard as the weakest of its limits allows, then is clipped to the lower of the corner limit and the braking curve:

$$m\,a_x \;=\; \min\!\Big(\underbrace{\frac{\eta\,(P_{\text{ICE}} + P_K(v))}{v}}_{\text{power}},\; \underbrace{k_{\text{drive}}\, m\, a_{y,\max}(v)\, f_i}_{\text{traction}}\Big) \;-\; \underbrace{\tfrac12\rho C_DA\,v^2}_{\text{drag}} \;-\; \underbrace{C_{rr}(mg + \tfrac12\rho C_LA v^2)}_{\text{rolling}} \;-\; m g\,\sin\theta .$$

In words: the driving force is whichever is smaller, what the power unit can deliver at this speed ($P/v$) or what the driven tyres can transmit; drag, rolling resistance and gravity on a slope take their share; whatever is left accelerates the car.

Each term comes from an earlier chapter:

  • Power. 2025: a constant $\eta(555 + 120)$ kW $= 621$ kW at the wheels, Chapter 3's assumption ($\eta = 0.92$ assumed). 2026: the ICE's 400 kW plus the MGU-K's speed-dependent cap from power.mgu_k_power_limit (Chapter 6). In qualifying the 2026 rules switch the Overtake curve on at all times (regulations_2026.md, B26 B7.2.4b), which keeps 350 kW up to about 337 km/h and falls to zero at 355 km/h.
  • Drag. 2025: $C_DA = 1.59\ \text{m}^2$ closed and 1.20 m² with DRS open (Chapter 3's fit to 2025 qualifying), with DRS zones taken from where the reference lap's flap was open. 2026: 1.27 m², Chapter 6's fit to a straight at Albert Park. The data have no Straight Mode channel, so the 2026 drag area is one effective value for the whole lap.
  • Traction. $k_{\text{drive}} = 0.55$, the rear axle's static share of the weight in Chapter 8's assumed chassis. A rear-drive car can push only through its rear tyres.

The 2026 energy budget

In 2026 the MGU-K can deliver 350 kW, but it cannot do so all lap. The energy store's window is 4 MJ, and in qualifying the Recharge limit was 8 MJ for the first three rounds and 7 MJ from Miami onwards (regulations_2026.md, [IN-SEASON]). Chapter 6's ers_budget turns that into an upper bound of 11 MJ deployable per qualifying lap from round 4. How much would the preset car like to use?

2026 energy budget: latch vs spread (preset car)
  monza  latch : lap 86.217 s (unlimited energy 82.145 s, would use 21.66 MJ vs budget 11.0 MJ) | top 304 km/h (real 343) | v_clip 303.7 | share 1.000 | RMS speed error 26.7 km/h | lap error +4.371 s
  monza  spread: lap 86.658 s (unlimited energy 82.145 s, would use 21.66 MJ vs budget 11.0 MJ) | top 313 km/h (real 343) | v_clip inf | share 0.445 | RMS speed error 22.2 km/h | lap error +4.812 s
  vegas  latch : lap 99.699 s (unlimited energy 95.391 s, would use 21.74 MJ vs budget 11.0 MJ) | top 307 km/h (real 351) | v_clip 306.7 | share 1.000 | RMS speed error 27.7 km/h | lap error +5.806 s
  vegas  spread: lap 100.144 s (unlimited energy 95.391 s, would use 21.74 MJ vs budget 11.0 MJ) | top 311 km/h (real 351) | v_clip inf | share 0.438 | RMS speed error 24.8 km/h | lap error +6.251 s

At Monza and Las Vegas the preset car would happily spend about 21.7 MJ, roughly twice the budget. So the simulator needs a rule for how to spend a budget that is too small, and the rule is not in the data: teams' deployment maps are secret, and OpenF1 has no battery or MGU-K channel. We implemented two simple, opposite rules and let the telemetry choose.

📐 Definition: deployment rules in lapsim. Latch: deploy the full MGU-K cap out of every corner until the car reaches a clip speed $v_{\text{clip}}$, then run on the ICE alone until the next braking zone; pick $v_{\text{clip}}$ (by bisection) so the lap uses exactly the budget. Spread: deploy the same share $\lambda$ of the cap at every full-power point; pick $\lambda$ so the lap uses exactly the budget.

Two ways of spending the 2026 battery at Monza and Las Vegas

📊 Figure (described): Real pole laps (black) at Monza (Russell, 1:21.846) and Las Vegas (Antonelli, 1:33.893) against the preset car under the two deployment rules. "Latch" (red dashed) accelerates hardest out of corners, then fades once it hits about 304–307 km/h: the clip shape. "Spread" (blue) accelerates more gently and keeps rising. The real cars accelerate even more gently than either rule out of some corners, but reach 343 and 351 km/h at the end of the long straights, far above both.

The latch rule gives the faster lap time (86.217 s vs 86.658 s at Monza), because energy spent at low speed buys more time per joule. But the spread rule gives the lower RMS speed error at both circuits (22.2 vs 26.7 km/h at Monza; 24.8 vs 27.7 at Las Vegas): its shape is closer to what the cars do. We make "spread" the default and record the other as an option. Neither rule produces the real cars' top speeds, which is the first sign that the preset drag area of 1.27 m² is too high for a car running Straight Mode on its straights. The calibration will say so in numbers.

🧩 Productive struggle: before reading on, use only two facts. The 2026 preset car's ICE gives $0.92 \times 400 = 368$ kW at the wheels, and its drag area is 1.27 m² in air of 1.15 kg/m³. What steady speed can the ICE alone hold? Now the real car holds about 340 km/h along Monza's main straight. What does that imply about the drag area, the MGU-K's contribution at that speed, or both?

One way to think about it Steady speed means power equals drag power, $P = \tfrac12\rho C_DA v^3$ (ignoring rolling resistance). With 368 kW: $v^3 = 2\times368{,}000/(1.15\times1.27) = 5.04\times10^5$, so $v = 79.6$ m/s, about 287 km/h. To hold 340 km/h (94.4 m/s) on the ICE alone, $C_DA$ would have to be $2\times368{,}000/(1.15\times94.4^3) = 0.76\ \text{m}^2$. With the Overtake curve the MGU-K may add up to $7100 - 20\times340 = 300$ kW at 340 km/h (×0.92 at the wheels), which allows a drag area of about 1.33 m² if the battery can feed it. The real answer is a mix: a lower drag area in Straight Mode and some electrical deployment, in a proportion the data cannot separate. That is exactly the kind of confound a calibration can only partly resolve.

🔄 Check your understanding 1. In the backward pass, the car is 60 % of the way to its lateral limit at some point. What share of its braking capacity can it still use there, with the friction ellipse? 2. Why does the latch rule give a faster lap than the spread rule with the same energy, yet the spread rule matches the real speed traces better?

Answer 1. $\sqrt{1-0.6^2} = 0.8$, so 80 %. 2. A joule spent at low speed buys more time than a joule spent at high speed (time per metre falls as $1/v$), so spending early is efficient on paper. But the real cars do not accelerate as hard out of corners as the latch rule assumes; their traces look more like a moderate deployment spread along the straight, whatever the real strategy is.

11.6 Combining the passes: the lap time, out of the box

The simulated lap is the minimum of the three curves at every point. Figure 11.5 shows them on one 1.4 km stretch of Silverstone: a fast corner, a long straight and the braking zone at its end.

The corner limit, braking curve, acceleration curve and combined profile over 1.4 km of Silverstone

📊 Figure (described): Silverstone 2026, 3,500–4,900 m, preset car. The blue corner limit dips at each apex; the red dashed backward pass rises upstream of each dip at the rate the brakes allow; the green dash-dot forward pass rises downstream at the rate power and traction allow. The thick orange line is the minimum of the three: the simulated lap. Antonelli's real lap (black dots) is faster through the slow corner at 3,950 m and accelerates harder out of it.

The script reports which constraint set the speed for how much of the lap's time:

British GP Q preset lap: 92.214 s vs ANT 88.111 s; summary {'lap_time_s': 92.214, 'top_kmh': 311.5, 'min_kmh': 77.2, 'energy_mj': 10.96, 'v_clip_kmh': None, 'deploy_frac': 0.477, 'time_corner': 0.009, 'time_brake': 0.204, 'time_traction': 0.173, 'time_power': 0.613}

On the preset car at Silverstone, 61.3 % of the lap's time is power-limited, 17.3 % traction-limited, 20.4 % braking-limited and only 0.9 % exactly at the corner limit. That last number surprises people. The corner limit touches the speed profile at the apexes only, at single points; but it decides where every braking zone ends and every acceleration starts. A car with 10 % more cornering grip changes the whole profile, not just 0.9 % of it.

Then the verdict on all 42 sessions (from code/03_forward_backward.py; full table in code/_out_03.txt):

      err_s  err_pct  rms_kmh  bias_kmh
year
2025  10.46    13.08     29.1     18.95
2026   6.73     8.75     25.0     16.10
slower than reality in 42 of 42

The preset car is slower than reality at every one of the 42 circuits, by a median 10.46 s (13.1 %) with the 2025 parameters and 6.73 s (8.8 %) with the 2026 ones. The median RMS speed error is 29.1 and 25.0 km/h, and the bias (mean of real minus simulated speed) is +19.0 and +16.1 km/h. The worst session is 2025 Jeddah, 18.36 s slow; the best is 2026 Silverstone, 4.10 s slow.

This is the most useful failure in the chapter. Nothing in the preset was invented: every number came from fitting real telemetry in an earlier chapter. But each was fitted for a different question (a typical apex, the 90th-percentile braking sample, the drag on one straight), and a lap simulator needs limits, all at once, consistent with each other. The fix is to calibrate the whole simulator against whole laps.

🔄 Check your understanding 1. On the Silverstone preset lap, only 0.9 % of the time is spent exactly at the corner limit. Why is it still wrong to say "cornering grip only matters for 1 % of the lap"? 2. The forward pass starts at the slowest corner of the lap rather than at the start/finish line. Why? 3. Every preset lap was too slow. Name two preset ingredients that §11.3–11.5 already showed to be biased in the slow direction.

Answer 1. The corner limit sets the speed at each apex, and every braking zone ends there and every acceleration begins there. Raise the apex speed and the whole braking curve and acceleration curve around it move up. 2. A flying lap is a closed loop, so the passes need a point where the speed is known. At the slowest corner the car must be exactly at its corner limit (nothing upstream or downstream can force it lower), so that is a safe place to start both passes and wrap around. 3. The grip envelope (fitted through the median apex, so about half of all apexes exceed it) and the 2026 drag area (too high to reach the real top speeds). The braking envelope is a third candidate: Chapter 7 fitted it to the 90th percentile of 0.5 s-smoothed samples, which sits below the true peak.

11.7 Calibration: fitting the simulator to real laps

Calibration means choosing a few model parameters so that the simulator's output matches measurements, and then checking the match on data the fit did not see. Two decisions make it honest: what you compare, and what you are allowed to change.

What we compare

For every dry qualifying session of 2025 and 2026 with location data on disk (42 sessions: 22 in 2025, 20 in 2026; the 2025 Azerbaijan session has no lap rows in our snapshot, and the 2025 Las Vegas and 2026 São Paulo sessions are wet by the book's rule), we take the reference lap and align it on the session's averaged line. Then:

📐 Definition: lap-time error. Simulated lap time minus real lap time, in seconds. Positive means the simulator is too slow.

📐 Definition: RMS speed error. $\sqrt{\tfrac{1}{N}\sum_k (v_k^{\text{real}} - v^{\text{sim}}(s_k))^2}$ over the real lap's $N$ telemetry samples, where $s_k$ is the sample's position on the location-based line. It measures whether the simulator has the right shape, not just the right total.

The alignment choice is not cosmetic. If we compared on each lap's integrated distance, a braking zone shifted by 15 m (well within the drift Chapter 7 measured) would create a residual of more than 100 km/h at the point where speed falls fastest, and we would be calibrating the simulator to the drift.

The noise floor: how different are two real laps?

Before asking how close the simulator gets, ask how close two real cars get. For each session we aligned the next-best quality-checked lap on the same line and computed the same RMS against the reference lap:

1. NOISE FLOOR - next-best real lap vs the reference lap, both aligned on the location line
     gap_s rms_kmh  gap_s rms_kmh  gap_s rms_kmh  gap_s rms_kmh
     count   count    50%     50%    min     min    max     max
2025  22.0    22.0  0.123   5.146 -0.051   3.794  0.521   6.774
2026  20.0    20.0  0.143   6.193  0.009   3.809  0.837   9.648

Two real laps a median 0.123 s (2025) or 0.143 s (2026) apart differ by a median RMS of 5.1 and 6.2 km/h. That number contains everything: different drivers, slightly different lines, different energy use in 2026, sampling at about 4 Hz and residual alignment error. A perfect simulator of one car could not beat it by much, so we call it the noise floor. (The one negative gap arises where the fastest lap failed the quality check and the reference lap is the second-fastest.)

What we may change

We let five scalars move, and nothing else. Each one is labelled for what it is:

Fitted scalar What it scales Preset Physical reading
grip the whole lateral envelope $\mu g + B_{\text{lat}}v^2$ (via $\mu$) 1 how far the limit sits above Chapter 1's median apex
drive_share traction limit as a share of grip 0.55 the driven axle's share of the load
cd_a effective drag area 1.59 (2025) / 1.27 (2026) everything that resists the car on a straight
brake the braking envelope 1 how far the limit sits above Chapter 7's 90th percentile
deploy_mj (2026) MGU-K energy per lap 11 how much electrical energy a qualifying lap really spends

The braking scale is bounded to 0.8–1.2. In an exploratory run without that bound it climbed to about 1.9, which at 300 km/h would mean an envelope of 11.4 g, far beyond anything a tyre can do, while improving the median RMS by only about 0.3 km/h (from 18.4 to 18.1 km/h at a scale of 1.2 vs 1.9). When an objective barely moves while a parameter runs off into nonsense, the data cannot identify that parameter, and the honest move is to bound it and say so.

⚠️ Common pitfall: calibrating and testing on the same laps. A five-parameter model fitted to 20 laps will look better on those 20 laps than it deserves. We use two-fold cross-validation within each season: fit on alternate rounds (1st, 3rd, 5th, …), test on the others, then swap. Every session therefore gets one out-of-sample prediction from a car that never saw it.

The fit itself is a bounded Powell search that minimises the root-mean-square, across the training laps, of each lap's RMS speed error (code/04_calibration.py, about six minutes):

# code/04_calibration.py (excerpt)
def fit_season(cs, year):
    fields, x0, bnds = FIELDS[year]          # e.g. ["grip", "drive_share", "cd_a", "brake", "deploy_mj"]
    def loss(x):                             # mean-square of per-lap RMS speed errors, km/h
        return float(np.sqrt(np.mean(evaluate(cs, dict(zip(fields, x))).rms_kmh ** 2)))
    res = minimize(loss, x0, method="Powell", bounds=bnds, options=dict(maxiter=1500, xtol=2e-3, ftol=2e-4))
    return dict(zip(fields, [float(v) for v in res.x])), res

for y in (2025, 2026):
    cs = [c for c in cases if c["year"] == y]
    halves = [cs[0::2], cs[1::2]]            # alternate rounds
    for k in (0, 1):
        fit, res = fit_season(halves[k], y)  # fit on one half ...
        test = evaluate(halves[1 - k], fit)  # ... score on the other

The result

   {'year': 2025, 'fold': 0, 'grip': 1.288, 'drive_share': 0.444, 'cd_a': 1.696, 'brake': 1.2, 'train_rms': 18.23, 'test_rms': 18.96, 'test_abs_err': 1.641}
   {'year': 2025, 'fold': 1, 'grip': 1.242, 'drive_share': 0.473, 'cd_a': 1.762, 'brake': 1.2, 'train_rms': 18.75, 'test_rms': 17.97, 'test_abs_err': 1.96}
   {'year': 2026, 'fold': 0, 'grip': 1.162, 'drive_share': 0.461, 'cd_a': 1.211, 'brake': 1.199, 'deploy_mj': 12.885, 'train_rms': 15.39, 'test_rms': 19.52, 'test_abs_err': 1.452}
   {'year': 2026, 'fold': 1, 'grip': 1.146, 'drive_share': 0.563, 'cd_a': 1.068, 'brake': 1.2, 'deploy_mj': 10.94, 'train_rms': 19.99, 'test_rms': 15.52, 'test_abs_err': 1.382}

SUMMARY
                                model  year  n  median_err_s  median_abs_err_s  median_abs_err_pct  max_abs_err_s  median_rms_kmh rms_range
              preset (out of the box)  2025 22        10.463            10.463              13.086         18.363          29.092 19.4-45.4
              preset (out of the box)  2026 20         6.727             6.727               8.756         12.939          24.982 18.0-32.9
calibrated, out-of-sample (2-fold CV)  2025 22         1.499             1.659               2.285          9.795          18.887 12.1-30.7
calibrated, out-of-sample (2-fold CV)  2026 20         0.467             1.382               1.765          6.106          18.149 13.2-30.0
    calibrated, in-sample (final fit)  2025 22         0.793             1.156               1.444          8.805          18.487 12.0-29.0
    calibrated, in-sample (final fit)  2026 20         0.745             1.372               1.390          6.254          17.994 12.5-29.2
     noise floor (next-best real lap)  2025 22         0.123             0.123                 NaN          0.521           5.146   3.8-6.8
     noise floor (next-best real lap)  2026 20         0.143             0.143                 NaN          0.837           6.193   3.8-9.6

These are the headline numbers of the chapter. Out of sample, the calibrated simulator predicts a 2026 pole-quality lap with a median absolute error of 1.38 s (1.77 % of the lap) and a median RMS speed error of 18.1 km/h; for 2025 the figures are 1.66 s (2.29 %) and 18.9 km/h. Against the preset car that is a sixfold improvement in lap time (from 10.46 and 6.73 s) and a reduction in RMS speed error of about a third (from 29.1 and 25.0 km/h). In-sample numbers are only slightly better (1.16 and 1.37 s), which tells us the five scalars are not overfitting much.

Simulated against real lap times before and after calibration

📊 Figure (described): Left: the preset car's lap time against the real pole-quality lap for all 42 sessions; every point is above the diagonal, by 4–18 s. Right: the calibrated car, each point predicted by a fit that did not include that session. The points now straddle the diagonal; the median error is +1.50 s (2025) and +0.47 s (2026). The two visible outliers are 2025 Jeddah (+9.8 s) and 2026 Shanghai (+6.1 s).

But look at the RMS against the noise floor: 18 km/h against 5–6 km/h. The calibrated simulator gets the total roughly right while still being wrong, at the level of individual corners, by three times as much as one real car differs from another.

RMS speed error per session for the preset car, the calibrated car and the noise floor

📊 Figure (described): One row per session, sorted by the calibrated car's out-of-sample RMS speed error (blue dots). Red crosses are the preset car; black ticks are the noise floor from the next-best real lap. Calibration moves almost every session left, typically from the high 20s to the high teens. The best sessions are both Mexico City qualifyings (12.1 and 13.2 km/h); the worst are 2025 Jeddah and 2026 Shanghai (about 30 km/h). Every session stays well right of its noise floor.

What the fitted numbers say about the cars

The final fit uses all sessions of each season and is the version saved for Box Box:

4. FINAL FIT 2025 (all 22 sessions): {'grip': 1.273, 'drive_share': 0.449, 'cd_a': 1.729, 'brake': 1.2}
   -> mu 1.421, ClA 11.32 m^2 (lateral envelope 1.421 g + 1.165e-03 v^2), flat-out radius 87 m, CdA 1.729 / 1.305 DRS open, drive share 0.449, braking 1.188 g + 9.085e-04 v^2
4. FINAL FIT 2026 (all 20 sessions): {'grip': 1.148, 'drive_share': 0.494, 'cd_a': 1.154, 'brake': 1.197, 'deploy_mj': 11.679}
   -> mu 1.734, ClA 5.86 m^2 (lateral envelope 1.734 g + 7.940e-04 v^2), flat-out radius 128 m, CdA 1.154, drive share 0.494, braking 1.006 g + 9.026e-04 v^2, deploy 11.68 MJ

Four readings, each with its caveat.

  1. The limit sits 15–27 % above the median apex. The grip scale is 1.273 (2025) and 1.148 (2026). That is how far a lap simulator's envelope must sit above Chapter 1's median-apex line to reproduce whole laps. It is not "the tyres have 27 % more grip than we thought"; it is the gap between a typical apex and the limit, plus whatever the point mass loses elsewhere and makes up here.
  2. The aero term fell by about a third. The calibrated $v^2$ coefficient drops from $1.165\times10^{-3}$ to $7.94\times10^{-4}$ g per (m/s)², a ratio of 0.68. That is close to Chapter 3's independent apex-based ratio of 0.70 (0.59–0.85) and to the FIA's announced design target of about 30 % less downforce (regulations_2026.md; an announcement figure, not a regulated value). Three different routes give similar answers, which is more convincing than any one of them.
  3. The effective drag area is down by a third too, from 1.729 m² (DRS closed) to 1.154 m². The 2026 value is below Chapter 6's single-straight fit of 1.27 m², which is what §11.5's productive struggle predicted. Do not read it as "Straight Mode cuts drag by 33 %": it is an effective number that also absorbs whatever deployment pattern the real cars used, and the two folds disagree (1.211 vs 1.068 m²) while trading off against deploy_mj (12.9 vs 10.9 MJ) and drive_share. Parameters that move together like this are only identified as a group.
  4. The fitted energy is plausible. 11.68 MJ per lap sits inside the 11–12 MJ the rules allow for a qualifying lap (Recharge limit plus the 4 MJ state-of-charge window). The fit was free to go anywhere from 2 to 30 MJ. That it landed where the rules say is a small, satisfying check that the energy model is not nonsense.

The braking scale, by contrast, sits at its upper bound (1.2) in every fit. The simulator wants harder braking than we allow it. The next subsection shows where that pressure comes from.

Where the simulator is still wrong

Residual (real - sim) by phase, final fit:
                               n    mean     rms  share_of_sq_err
2025 braking                1006  13.778  26.570            0.288
     full throttle          4164   2.248  14.676            0.364
     part throttle / coast  1424  -4.281  24.576            0.349
2026 braking                1106   9.565  20.241            0.203
     full throttle          3606   1.441  17.091            0.472
     part throttle / coast  1649   0.273  20.940            0.324

Residual by real speed band:
2025 <120      702 -0.50  12.31
     120-200  1537  3.63  21.29
     200-280  2492 -1.91  22.96
     >=280    1863  8.94  13.72
2026 <120      892 -3.62  12.90
     120-200  1649  4.89  17.25
     200-280  2246  0.80  22.26
     >=280    1574  6.09  17.42

Calibrated simulator residuals by driving phase and by speed band

📊 Figure (described): Speed residuals (real minus simulated) for the final fit, pooled over all 42 laps. Left: by the real lap's pedal phase. Braking samples have the largest mean residual (+13.8 km/h in 2025, +9.6 in 2026): the real car is faster while braking, so the simulator brakes too early or too gently. Right: by real speed. The error is largest between 120 and 280 km/h, the band of fast sweepers and the end of braking zones, and smallest below 120 km/h.

Three structural limits explain most of what remains:

  • Braking. In the braking phase the real car is a mean 13.8 km/h (2025) and 9.6 km/h (2026) faster than the simulator at the same point. The simulator starts braking earlier. Part of that is the envelope (Chapter 7's 90th percentile of a 0.5 s-smoothed signal sits below the true peak, and we capped the scale at 1.2); part is the onset delay, which in a real car overlaps with the end of the straight in a way a pure distance shift cannot capture; and part is the friction ellipse, which may be the wrong shape for a modern F1 tyre under trail braking.
  • Corners the line smooths away. At Silverstone, the calibrated car is a mean 32.7 km/h too fast over the fast sequence between 2,900 and 3,900 m (Figure 11.8; by its position on the lap, the Copse–Maggotts–Becketts complex). The 60 m window turns quick direction changes into gentle arcs, so the simulator stays near 320 km/h where the pole lap runs in the 270s and 280s. The same mechanism explains why 2025 Jeddah (a chain of fast kinks) and Suzuka's Esses are hard. A shorter window fixes those corners and breaks others.
  • What a point mass cannot know. Banking (Zandvoort's banked turns are in the 2025 worst five), crests and compressions, kerb use, wind, tyre temperature on the out-lap-prepared tyre, and in 2026 an energy deployment and harvesting strategy that we approximate with one constant share.

The calibrated simulator against the 2026 British GP pole lap, with the residual

📊 Figure (described): Silverstone 2026: Antonelli's pole lap (black), the preset car (red dashed, 92.214 s) and the calibrated car (blue, 86.261 s). Bottom: real minus calibrated speed, with the grey band marking ± the noise floor (Leclerc's lap vs Antonelli's: 5.7 km/h RMS). The calibrated car is now faster than the pole lap, mostly through the fast 2,900–3,900 m stretch, where the smoothed line has almost no corner and the residual reaches −60 km/h.

Silverstone is a useful warning. The preset car missed by +4.10 s; the calibrated car misses by −1.85 s (−2.46 s out of sample), and its RMS speed error barely changes (18.6 to 19.0 km/h). A smaller lap-time error is not automatically a better model of the lap.

🔍 Why this works: why does a model with an 18 km/h RMS error predict lap times within 1–2 %? Because errors of opposite sign cancel in the lap-time integral. A simulator that is 20 km/h too fast through one sweeper and 20 km/h too slow out of the next hairpin can land on the right lap time for the wrong reasons. That is why we report both numbers, and why a lap-time match alone should never convince you a simulator is right.

🔄 Check your understanding 1. The two 2026 folds give drag areas of 1.211 and 1.068 m² but almost the same test error. What does that tell you about using the fitted $C_DA$ as a measurement of the car's drag? 2. Why is the noise floor (5–6 km/h RMS) a better benchmark for the simulator than zero?

Answer 1. The data constrain a combination of parameters (drag, deployable energy and traction move together) much better than any single one. The fitted $C_DA$ is an effective value inside this model, useful for predicting laps, but not an independent measurement of the car's drag. 2. Two real laps differ by that much from sampling, line and driver differences alone. No model of "a car" can be expected to match one particular lap more closely than another real car does.

📋 Try it — Predict the session. It is Saturday afternoon in Las Vegas, 2026. You have the calibrated 2026 car from the fold that did not include Las Vegas, the session's track line from the location feed, and nothing else. Predict the pole lap before you look.

Reveal The out-of-sample fold predicts 94.288 s; Antonelli's pole lap was 1:33.893, so the prediction is 0.395 s slow (0.42 %), with an RMS speed error of 20.7 km/h. That is better than the season's median out-of-sample error of 1.38 s, and the next-best real lap differed from pole by a 9.6 km/h RMS, the highest noise floor of 2026. (Source: code/_out_04.txt.)

11.8 Sensitivity studies: the setup trade-off in seconds

With a calibrated simulator we can finally ask the questions teams ask. Each study changes one parameter of the final-fit car at every one of the 42 sessions and records the lap-time change. All results are model outputs.

🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. Here they are the calibrated values of §11.7, which are effective fits to public telemetry; a real team's car would respond differently, and a real setup change never moves just one parameter.

Downforce or drag?

The classic trim question is: given a choice between 10 % more downforce and 10 % less drag, which is faster? Teams arrive at Monza with thin wings and at Monaco with the biggest wings they have. Our simulator answers circuit by circuit (code/05_sensitivity.py):

Lap-time change (s; negative = faster), calibrated car, selected circuits:
change            +1 MJ energy  +10 kg  +10% ICE power  +10% MGU-K cap  +10% downforce  -10% drag  s_per_kg
2025 monza               0.000   0.240          -1.530          -0.345          -1.548     -1.474     0.024
     monaco              0.000   0.300          -0.473          -0.108          -2.154     -0.321     0.030
     marina_bay          0.000   0.414          -0.810          -0.185          -2.887     -0.547     0.042
     silverstone         0.000   0.216          -1.503          -0.340          -1.276     -1.490     0.022
     hungaroring         0.000   0.387          -0.780          -0.177          -2.794     -0.599     0.039
2026 monza              -0.479   0.263          -1.356          -0.049          -1.322     -1.045     0.035
     monaco              0.000   0.206          -0.209          -0.185          -1.380     -0.191     0.021
     marina_bay         -0.343   0.286          -0.804           0.004          -1.512     -0.448     0.029
     silverstone        -0.453   0.285          -1.212           0.015          -1.417     -1.047     0.028
     hungaroring        -0.302   0.323          -0.574          -0.012          -1.910     -0.367     0.033
2025: +10% downforce beats -10% drag at 21 of 22 circuits; drag wins at: silverstone
2026: +10% downforce beats -10% drag at 19 of 20 circuits; drag wins at: vegas

Downforce against drag at Monza, Monaco and Singapore

📊 Figure (described): Lap-time gain from +10 % downforce (solid blue) and −10 % drag (hatched orange) for the calibrated 2025 and 2026 cars at Monza, Monaco and Singapore. In Monaco and Singapore downforce is worth three to seven times as much as the drag cut (2025 Singapore: −2.89 vs −0.55 s). At Monza the two are almost level (2025: −1.55 vs −1.47 s).

Three results deserve attention.

First, the ratio, not the size, is what changes from circuit to circuit. At Monaco a 10 % downforce gain is worth 2.15 s for the 2025 car and a 10 % drag cut only 0.32 s, a ratio near seven. At Monza the ratio is 1.05. That is the trim decision made quantitative.

Second, the simulator says downforce wins almost everywhere. In 40 of the 42 sessions, +10 % downforce is worth more than −10 % drag. The exceptions are 2025 Silverstone and 2026 Las Vegas, and even at Monza the drag cut only comes close. Should you believe that teams are therefore always under-winged at Monza? No. The comparison holds the other parameter fixed, but real wings trade the two together: a wing that adds 10 % downforce adds drag as well. What a team actually chooses is a point on a lift-drag curve, and the simulator tells you the exchange rate: at Monza in 2025, 1 % of $C_DA$ is worth about as much as 1 % of $C_LA$, so any wing whose $L/D$ ratio on the margin is worse than the car's average is a loss there. Exercise D2 asks you to build that frontier.

Third, the ranking follows the circuit's character.

The downforce-minus-drag balance against full-throttle share

📊 Figure (described): For each session, the gain from +10 % downforce minus the gain from −10 % drag (negative means downforce is worth more), against the share of the pole lap's time at full throttle. More flat-out time pushes circuits towards zero, where drag matters as much as downforce. The relationship is clear for 2026 and weaker for 2025, and Monaco (2026, 37 % flat out) and Singapore sit at the downforce-hungry end.

  2025: Spearman(full-throttle time share, df-minus-drag) = +0.32 (p = 0.152, n = 22)
  2026: Spearman(full-throttle time share, df-minus-drag) = +0.54 (p = 0.0131, n = 20)

📋 Try it — Design the setup. You have one wing change available for the 2026 Singapore GP: option A adds 10 % downforce with no drag change; option B removes 10 % drag with no downforce change. Using only the table above, which do you take, how much does it buy, and would your answer change at Monza?

Reveal Take A at Singapore: −1.512 s against −0.448 s for B. At Monza A is still ahead (−1.322 vs −1.045 s) but the margin falls from 1.06 s to 0.28 s, small enough that any drag that comes with the downforce could flip it. In the 2026 simulator, a wing that adds 10 % downforce at the cost of more than about 2.7 % extra drag is a loss at Monza (0.28 s ÷ 1.045 s per 10 % of drag × 10 %), while at Singapore it would take about 24 % extra drag. That asymmetry is why the Monza package exists.

📺 On the broadcast: when commentators say a team has brought "a special low-downforce rear wing for Monza", this is the exchange rate they mean. In our simulator, Monza is the one circuit where a percent of drag is worth almost a percent of downforce; everywhere else downforce is the better buy, so a Monza-only wing makes sense even though it costs money and is used once a year.

🔄 Check your understanding At Monaco (2026), +10 % downforce is worth 1.380 s and −10 % drag 0.191 s. A wing change would add 10 % downforce and 10 % drag at the same time. Roughly what does the simulator say it is worth, and what assumption does that estimate rely on?

Answer About −1.380 + 0.191 = −1.19 s (the drag increase costs roughly what the decrease gains). It relies on the two effects adding linearly for changes this small, which is usually close but not exact; run both changes together in lapsim.sensitivity to check.

Mass: what is a kilogram worth?

The simulator's lap-time cost of mass, by central difference (±5 kg around the calibrated car):

Lap time per kg (s/kg), calibrated car:
      count     min     50%     max
2025   22.0  0.0217  0.0330  0.0547
2026   20.0  0.0208  0.0331  0.0408
  2025 lowest: silverstone 0.0217, highest: losail 0.0547
  2026 lowest: monaco 0.0208, highest: madring 0.0408

The median is 0.033 s per kg per lap in both seasons, with a range from 0.021 s/kg (2026 Monaco) to 0.055 s/kg (2025 Losail). Ten kilograms cost about a third of a second.

That number has a natural partner. The book's data snapshot estimates the race-lap fuel effect from 76 dry races with a fixed-effects model: −0.056 s per race lap, which is 0.033 s/kg at an assumed 100 kg start load (0.030 at 110 kg). That race-data figure is an upper bound on the pure fuel effect because it includes track evolution (rubber going down makes later laps faster for reasons unrelated to fuel).

The simulated lap-time cost of mass by circuit, against the race-data fuel effect

📊 Figure (described): Each point is one circuit's simulated lap-time cost per kilogram for the calibrated 2025 (blue) or 2026 (orange) car, against lap length. Most circuits fall between 0.02 and 0.045 s/kg; the dashed line is the race-data fuel-plus-evolution effect of 0.033 s/kg. The simulated medians sit on that line.

Should we celebrate an exact match? Carefully. They agree in the median, from completely different routes: one from physics on qualifying laps (mass slows acceleration, braking and the aero share of grip), the other from regression on race laps. That agreement is evidence that neither is wildly off. But the race number is an upper bound, depends on the 100 kg assumption, and comes from cars in race trim on worn tyres; the simulator's number comes from a point mass on a qualifying lap. The two would only be expected to agree within tens of percent. Treat the agreement as a consistency check, not a measurement of the fuel effect.

⚠️ Common pitfall: quoting "lap time per kg" without the circuit. The simulator's value varies by a factor of 2.5 across the calendar. A race-strategy model that uses one number for every circuit will misprice fuel-saving and starting fuel at the extremes; Chapter 20 returns to this with race data.

Power or energy? The 2026 question

For the 2025 car, 10 % more ICE power is worth a median 1.09 s, and a 10 % bigger MGU-K a median 0.25 s. For the 2026 car the story changes:

2026 medians: {'+10% ICE power': -0.932, '+10% MGU-K cap': -0.002, '+1 MJ energy': -0.372}

Lap-time gains from ICE power, MGU-K power and deployable energy for 2026

📊 Figure (described): For each dry 2026 circuit, the simulated lap-time change from +10 % ICE power (blue), a 10 % higher MGU-K power cap with the same energy (yellow) and +1 MJ of deployable energy (green). The bigger MGU-K is worth almost nothing (median −0.002 s) because the car cannot afford to use it; the extra megajoule is worth −0.30 to −0.50 s at most circuits; only at Monaco, where the lap does not exhaust its budget, does the MGU-K cap matter more than the energy.

In 2026, with energy fixed, a more powerful electric motor buys nothing: the spread rule simply deploys a smaller share of a bigger cap, and the lap time hardly moves. The currency is energy per lap, not kilowatts. One extra megajoule is worth a median 0.37 s, more than the median effect of 10 kg (0.29 s). The exception proves the rule: at Monaco the lap does not use its whole budget, so there the cap, not the energy, binds.

📺 On the broadcast: when 2026 commentary talks about cars "clipping" or "running out of battery" at the end of the straight, this is the physics. Chapters 6 and 10 measured the clipping signature: on the longest straight of the 2026 top-five qualifying laps, speed falls by a median 20 km/h across circuits (Chapter 10) while the throttle is still pinned. Our simulator, with one constant deployment share, cannot reproduce that shape exactly, but it reproduces the economics: on most circuits the battery, not the motor, is the limit.

11.9 The limits of a quasi-steady-state point mass

We have already met most of the limits in the residuals. Collected in one place:

  1. No transients. The QSS method assumes every point is a steady state. Real cars take time to build lateral load (yaw inertia), to build brake pressure (we approximate it with an onset delay) and to shift load between axles. A transient model integrates equations of motion in time; it needs parameters (yaw inertia, tyre relaxation length, damper rates) that no public source gives.
  2. A point mass has no balance. Understeer, oversteer, load transfer and the axle-by-axle limits of Chapter 8 do not exist here. The simulator cannot say whether a car is limited by its front or its rear axle, which is most of what setup is about.
  3. One grip envelope for every corner. The residuals by speed band show that slow and medium-speed corners would want different envelopes; Chapter 5's load sensitivity is one reason. A two-parameter line in $v^2$ is a compromise.
  4. No tyre thermal model. Every lap is driven on tyres at their best. The out-lap preparation that Chapter 5 measured, the warm-up after a safety car, and the overheating of a long stint are all outside the model. This is why the lap simulator feeds strategy only through sensitivities: degradation comes from data, in Chapter 22.
  5. A fixed line. The car follows the averaged line of the fastest cars, smoothed over 60 m. A real driver changes the line with the car, and our line loses fast direction changes (Silverstone's 2,900–3,900 m sequence) and adds nothing for kerbs or banking.
  6. The 2026 power unit is a black box. We do not know when the real cars deploy or harvest, whether they superclip (the rules aimed for about 2–4 s of it per qualifying lap from Miami, per regulations_2026.md), or how Straight Mode is used zone by zone. Our constant-share rule and single drag area fit the laps tolerably but cannot be read as the cars' real strategies.
  7. No driver. The simulator drives every corner at the limit of its envelope. Chapter 9 measured how far real drivers are from repeating themselves; a simulator lap is the lap no human drives.

None of these makes the simulator useless. They make it a tool for differences: the change in lap time from a parameter change on the same circuit is much more reliable than the absolute lap time, because most of the structural errors are common to both runs.

🔄 Check your understanding 1. Why is "+10 % downforce at Monaco is worth 1.380 s" (2026 car) more trustworthy than "the simulated Monaco pole is 72.590 s"? 2. Name one limit from the list above that would make the simulator overstate the value of downforce, and explain why.

Answer 1. Both runs share the same line, the same smoothing errors, the same missing banking and the same energy rule, so most structural errors cancel in the difference. The absolute lap time carries all of them. 2. Limit 2 (no balance) or 3 (one envelope). In the simulator, extra downforce raises the whole lateral envelope at once. On a real car the extra downforce goes to one axle more than the other and may unbalance the car; and with a load-sensitive tyre (Chapter 5) each newton of downforce adds slightly less grip than the last. Both make the real gain smaller than the point mass predicts.

Spaced Review

From Chapter 1. Before you look back: what is the speed at which downforce equals the weight of the car, and why does it matter for the corner limit? Chapter 1's 2026 apex fit puts it at 171 km/h for a 780 kg car. In this chapter's terms, it is the speed at which the two terms of $\mu g + B_{\text{lat}}v^2$ are equal, which is why the corner limit is mostly mechanical in hairpins and mostly aerodynamic in fast sweepers. The calibrated 2026 envelope moves that crossover to $\sqrt{1.734/7.94\times10^{-4}} = 46.7$ m/s, about 168 km/h; the 2025 envelope puts it at $\sqrt{1.421/1.165\times10^{-3}} = 34.9$ m/s, about 126 km/h.

From Chapter 7. Why could you not simply compare two laps on their integrated distance_m? Because each lap's distance is integrated from its own speed channel, and it drifts by tens of metres unevenly around the lap. Chapter 7 showed that this drift makes P2 appear to brake later than the pole-sitter in 73 % of stops, an artefact that vanishes on the location-based line. Every RMS speed error in this chapter was computed on that line for the same reason.

From Chapter 6. What is the maximum MGU-K energy a 2026 car can deploy on one qualifying lap from round 4 onwards? The Recharge limit of 7 MJ plus the 4 MJ state-of-charge window: 11 MJ as an upper bound. Our calibration, left free between 2 and 30 MJ, settled on 11.68 MJ. Ask yourself why the fitted number can exceed 11 MJ without breaking the rules in the model's own terms: the early-season rounds had an 8 MJ qualifying Recharge limit (12 MJ in total), and the fitted value is an effective average over a season that contained both.

Project Checkpoint: lapsim.py

Aisha: So Box Box can now drive a lap.

Tom: It can drive a point around a lap. But it's calibrated, it knows what it gets wrong, and it can tell Chapter 12 what a kilogram is worth at each track.

Aisha: That's the bit I need. The strategy optimiser doesn't care about Becketts. It cares about seconds per kilo and seconds per tenth of grip.

This chapter adds project/boxbox/lapsim.py, which imports Chapter 1's physics (track lines, the apex-fit parameters), Chapter 3's aero (drag areas), Chapter 6's power (the 2026 MGU-K curves and energy budgets), Chapter 7's brakes (the location-based alignment), Chapter 8's setup (the weight split) and Chapter 10's circuit (the lap-quality gate). It re-derives none of them. The public API:

Function What it does
SimParams, preset(year, round) the 🧪 car; the preset assembles the earlier chapters' values
curvature_from_xy(x, y, step_m, window_m) curvature of a closed path, single lap or averaged
track_from_line(line, step_m, length_m, ref) / track_from_session(session) a Track (curvature, grade, DRS zones) on a uniform grid, rescaled to the lap's distance
reference_lap(session), align_lap(tel, xy, line) the quality-checked reference lap, put on the location-based line
corner_limit(track, params) $v_{\max}(s)$
simulate_lap(track, params, energy="auto") backward + forward pass, energy budget, lap time and a per-point trace
compare_to_lap(result, aligned) lap-time error, RMS speed error, bias, residual frame
sensitivity(track, params, changes), lap_time_per_kg(...) lap-time deltas for parameter changes
fit_params(cases, base, fields, x0, bounds) calibration on real laps

The checkpoint script runs the module on the newest circuit in the data, the 2026 Las Vegas GP qualifying session:

# code/project_checkpoint.py (excerpt)
track, ref = C.case_for(sk)                         # line from the location feed + aligned pole lap
for name, p in [("preset", C.params_for(case)), ("calibrated", C.params_for(case, fit))]:
    r = lapsim.simulate_lap(track, p)
    m = lapsim.compare_to_lap(r, ref)
print(lapsim.sensitivity(track, p))
spk = lapsim.lap_time_per_kg(track, p)
2026 Las Vegas Grand Prix Q (round 21): track 6150 m on a 4.00 m grid, 240 grid points tighter than R = 150 m; reference lap ANT 93.893 s
MGU-K Overtake-curve check (kW), lapsim table vs power.mgu_k_power_limit: [350.0, 350.0, 350.0, 300.0, 220.0] [350.0, 350.0, 350.0, 300.0, 220.0]
    preset: sim 100.144 s vs real 93.893 s -> error +6.251 s; RMS speed error 24.8 km/h (bias +15.6)
calibrated: sim 94.523 s vs real 93.893 s -> error +0.630 s; RMS speed error 20.9 km/h (bias +4.2)
                  change  lap_time_s  delta_s  delta_pct  top_kmh
    +10% downforce (ClA)      93.430   -1.092     -1.155  321.116
         -10% drag (CdA)      93.411   -1.112     -1.176  333.007
             +10 kg mass      94.771    0.248      0.263  322.132
+10% power (ICE + MGU-K)      93.123   -1.400     -1.481  331.090
          +10% grip (mu)      91.947   -2.576     -2.725  321.185
lap time per kg: 0.0251 s/kg -> 10 kg of fuel = 0.251 s per lap at this circuit (qualifying trim)

The calibrated car (here the all-season fit, so Las Vegas was in its training data) is 0.630 s slow; the preset was 6.251 s slow. Las Vegas is the one 2026 circuit where cutting drag beats adding downforce in the simulator, by 0.020 s, which fits its long straights. The module's MGU-K table matches Chapter 6's Overtake curve exactly at the five test speeds.

Box Box's calibrated simulator on the 2026 Las Vegas GP qualifying line

📊 Figure (described): Antonelli's 1:33.893 pole lap (black) and the calibrated boxbox.lapsim car (blue, 94.523 s) on the location-based line. The simulator tracks the slow street corners closely and reaches about 322 km/h where the real car reaches 351 km/h on the Strip, a reminder that the 2026 straights are where the energy model is weakest.

How it plugs in. Chapter 12's strategy.py will use lap_time_per_kg per circuit as a physics-based cross-check on the fuel effect. Chapter 22 can express tyre degradation as a loss of grip and ask the simulator what a 1 % grip loss costs per lap. Chapter 29 can rerun the energy studies under each in-season rule change. Chapter 40 wires it into the CLI.

Chapter Summary

Quantity Formula / definition Value in this chapter
Lap time $T = \oint ds / v(s)$ sum over a 4 m grid
Corner limit $v_{\max}^2 = \mu g / (\lvert\kappa\rvert - \mu\rho C_LA/2m)$ flat out above $R = 1/B_{\text{lat}}$: 87 m (2025 fit), 128 m (2026 fit)
Backward pass $v_i^2 = v_{i+1}^2 + 2 a_{\text{brake}} f \Delta s$ envelope $A + Bv^2$ (Ch 7) × fitted scale (bound 1.2)
Forward pass $m a = \min(P/v,\ k_{\text{drive}} m a_{y,\max} f) - D - R - mg\sin\theta$ 2026: ICE 400 kW + Overtake MGU-K curve, energy budget
Lap-time error sim − real out-of-sample median $\lvert\cdot\rvert$ 1.66 s (2025), 1.38 s (2026)
RMS speed error on the location-based line out-of-sample median 18.9 (2025), 18.1 km/h (2026); preset 29.1 / 25.0
Noise floor next-best real lap vs reference median 5.1 (2025), 6.2 km/h (2026)
Grip scale (limit vs median apex) fitted 1.273 (2025), 1.148 (2026)
Aero term, 2026 / 2025 ratio of calibrated $B_{\text{lat}}$ 0.68
Lap time per kg central difference, ±5 kg median 0.033 s/kg both seasons (range 0.021–0.055)
2026: +1 MJ vs +10 % MGU-K cap sensitivity −0.372 s vs −0.002 s (median)

Decision checklist for anyone using a lap simulator:

  • [ ] Is the track line built from position data averaged over several laps, with a stated smoothing window?
  • [ ] Are simulated and real laps compared at matched positions on the same line, not on integrated distance?
  • [ ] Is the calibration tested on sessions the fit did not see?
  • [ ] Are both lap-time error and a shape metric (RMS speed error) reported, against a noise floor?
  • [ ] Are fitted parameters checked for physical plausibility, and bounded or flagged when the data cannot identify them?
  • [ ] Are conclusions drawn from differences between runs rather than absolute lap times?
  • [ ] Is every parameter that is not public labelled as an assumption or effective fit?

What's Next

A lap simulator tells you how fast a car can go on one lap. A race is 50-odd laps on tyres that wear, with fuel that burns off and a pit lane that costs 20-plus seconds. Chapter 12 opens Part II by turning those ingredients into the optimisation every team solves on Sunday: when to stop, how often, and on which tyres.