Formula 1 Data Science

PUSHING THE LIMITS OF DATA ANALYSIS

Deep dive into telemetry, aerodynamics, and race strategy using Python, FastF1, and advanced analytics

0
Visualizations
0
Analysis Scripts
0
Tracks Analyzed
0
Drivers Compared
350
km/h
Scroll to explore
01

TELEMETRY ANALYSIS

Real-time car data analysis including speed traces, throttle/brake application, and driver comparison

Speed Trace

Speed Trace Analysis

Lap-by-lap speed comparison revealing braking points and acceleration zones

Speed Data Comparison
Throttle Brake

Throttle & Brake Usage

Driver input analysis showing pedal application patterns and driving style

Driver Inputs Telemetry
Driver Comparison

Driver Comparison

Head-to-head analysis of driver performance across all telemetry channels

Multi-Driver Delta Time
02

G-FORCE MAPPING

Calculate and visualize the extreme forces drivers experience - up to 6G in corners and under braking

G-Force Circular Meter
5.2G Max Braking
5.8G Max Lateral
πŸ”΄

Braking G

Longitudinal deceleration calculated from speed derivative

a = Ξ”v / Ξ”t β†’ G = a / 9.81
🟑

Lateral G

Cornering force from centripetal acceleration

a = vΒ² Γ— ΞΊ β†’ G = a / 9.81
🟣

Total G

Combined force magnitude on driver

G_total = √(G_long² + G_lat²)
03

INTERACTIVE WIND TUNNEL

A live aerodynamic model you can drive. Change the setup and watch the flow field, the load split and the lap-time consequences move together.

Slow Fast

Downforce 9,598N 978 kg · 123% of car weight
Drag 3,426N L/D efficiency 2.80
Peak lateral load 4.0G min. corner radius 98 m
Drag power 238kW 319 hp burned holding this speed
How this model works

The numbers come from the PERRINN 2017 open-source F1 CFD dataset (windtunnel_data/perrinn_cfd_data.csv): sCz = 3.25 m² and sCx = 1.16 m² at 40 mm front / 50 mm rear ride height. Those coefficients already include the reference area, so force is ½ ρ v² sC — no second multiplication by frontal area. Setup changes scale each component: wing load moves roughly linearly with angle while its induced drag grows with the square, and the floor follows a ground-effect curve that peaks near 24 mm and collapses below it, which is the porpoising cliff the grid rediscovered in 2022.

The picture is a 2D potential-flow approximation: doublets give the body its thickness, Rankine vortices carry the circulation, and every element is mirrored about the ground plane so y = 0 stays a streamline. Circulation is divided between the front wing, floor, diffuser and rear wing using the same split as the force model, so the flow and the readouts always agree. Pressure colouring is Bernoulli: Cp = 1 − (V/V∞)². Streamline magnitudes are scaled for legibility — treat the flow as qualitative and the forces as quantitative.

Run a lap is a quasi-steady lap-time model over the real pole lap's centreline: grip-limited speed at every point from the downforce your setup produces, a forward pass limited by the friction circle and by power against drag, and a backward pass for braking. Track curvature comes from the FastF1 position channel, smoothed with a Savitzky–Golay fit; DRS zones come from the pole lap's DRS channel where it exists and from the two longest full-throttle straights where it does not. Tyre grip and power were fitted so the fastest setup the model can find lands on the real pole time at all three circuits — the residuals are in the exported data. It is a first-order model: it has no tyre temperature, no wind, no kerbs and no driver.

Grip assumes a peak slick friction coefficient of 1.8 on the combined weight and downforce; Vmax solves drag power against roughly 470 kW at the wheels, calibrated so a Monza DRS setup tops out around 355 km/h. Both are first-order estimates, not a lap simulation.

The FIA's Handicap System

Formula 1 caps aerodynamic development on a sliding scale: finish higher, get less wind tunnel time. Pick a position to see what each team is allowed.

Chart of FIA wind tunnel hour allocations by championship position

The allocation runs from 70% of the baseline for the constructors' champion to 115% for tenth. It applies to both wind tunnel runs and CFD items, and it resets against the standings twice a season — so a mid-year climb up the table costs a team development time for the run-in.

04

RACE STRATEGY

Tire compound analysis, pit stop optimization, and degradation modeling

Tire Strategy

Tire Strategy Timeline

Compound usage per driver visualized across race distance

Pit Stops

Pit Stop Performance

Team pit stop times analysis and comparison

SOFT Fastest, lowest durability
MEDIUM Balanced performance
HARD Most durable, slower
05

POWER UNITS

Engine specifications, manufacturer analysis, and hybrid era technology breakdown

CURRENT F1 POWER UNIT
Configuration 1.6L V6 Turbo Hybrid
Total Power ~1,000 HP
ICE Output ~550 HP
MGU-K ~160 HP (120kW)
Thermal Efficiency 50%+
RPM Limit 15,000
Ferrari 066/12
Mercedes M15
Honda RBPT RBPTH002
Renault E-Tech RE24
Engine Evolution Hybrid Era
06

CFD SIMULATION

The offline twin of the wind tunnel above — the same potential-flow model and the same PERRINN coefficients, rendered at full resolution in Python

Pressure and velocity fields around the car

Pressure & Velocity Fields

Static pressure and velocity magnitude through the centreline plane, showing the low-pressure region generated under the floor.

Ground effect analysis

Ground Effect

Venturi floor behaviour across ride heights, including the stall region.

Aerodynamic force vectors

Force Vectors

Resolved lift and drag components acting on each aero surface.

Flow Solutions

Pressure Field & Streamlines

Particles advected through a potential-flow solution — doublets for body thickness, Rankine vortices for circulation, every element mirrored about the ground plane. Colour is Bernoulli pressure: teal where the flow is accelerated and pressure drops, red at the stagnation points ahead of the wheels.

Ground Effect & the Stall Cliff

Sweeping the floor from 60 mm down to 15 mm. Downforce climbs as the underfloor works harder, peaks around 24 mm, then collapses as the venturi stalls. That cliff is why the 2022 generation of cars porpoised.

Downforce contribution by component

Component Breakdown

Share of total downforce from floor, front wing, rear wing and bodywork.

Aerodynamic loads across speeds

Speed Comparison

Aerodynamic loads sampled from 100 to 350 km/h.

Streamline visualization

Streamline Structure

Wake and vortex structure trailing the rear wing endplates.

07

RACE SIMULATION

The two fastest laps of a qualifying session, locked to one clock and under your control. Scrub the lap, watch the gap build, jump to where it was won.

Comparison of Monaco, Spa and Monza

Circuit Comparison

Lap length, corner count and speed profile compared across all three simulated circuits.

08

ABOUT THIS PROJECT

Technology Stack

🐍 Python
πŸ“Š FastF1
πŸ“ˆ Matplotlib
πŸ”’ NumPy
🐼 Pandas
πŸ“‰ SciPy
🎨 Seaborn

Project Overview

  • 24 Analysis Scripts
  • 179 Visualizations Generated
  • 4 Grands Prix Analysed (Monaco, Spa, Monza, Imola)
  • 419 Engine Records Analyzed
  • Real-time Telemetry Processing
  • Physics-based Aero Calculations

Built by Eli Herrera — I build fast, data-heavy web applications. This whole page is the portfolio piece.