Skip to content

Weather and power

The same car is slower on a hot, humid day or at a high-altitude track: the air is thinner and the engine makes less power. To compare runs from different days, TorkeKit corrects the times to standard air (25 °C, 990 hPa of dry air, the SAE J1349 standard).

Weather calculatorThe demo run (12.826 s) in the air you pick
Density altitude
SAE J1349 factor
Corrected 1/4
Power lost

Move the weather and watch the demo run change. At 31 °C, 70 % humidity and 910 hPa (an afternoon at a track about 900 m up) the air behaves as if you were at almost 1,800 m, and the car loses 14 % of its power: the demo run would drop from 12.826 to 12.196 s in standard air.

let weather = Weather(temperatureC: 31, humidity: 70, pressureHpa: 910)
weather.densityAltitude // meters: higher = thinner air
weather.airDensity // kg/m³
weather.correctionFactor // above 1: the air cost power
let corrected = result.corrected(for: weather)
corrected.quarterMile // the 1/4 in standard air

Most mid and high range phones have a barometer, and every iPhone since the 6. PhoneBarometer reads the station pressure right there, at the track:

import TorkeKitSensors
if PhoneBarometer.isAvailable, let hpa = await PhoneBarometer().stationPressureHpa() {
let weather = Weather(temperatureC: 31, humidity: 70, pressureHpa: hpa)
}

Temperature and humidity come from your app (a weather station or the user): phones don’t have those sensors.

Times are corrected with the cube root of power (time × factor^-1/3) and speeds the other way (speed × factor^1/3). The trace stays as measured.

With the car’s weight including the driver and the quarter-mile trap speed, Hale’s formula gives a good estimate of flywheel horsepower:

// Trap speed: the most reliable
PowerEstimate.fromTrapSpeed(massKg: 1350, quarterMileKmh: result.quarterMileKmh!)
// From the ET: reads low if the car spins at the launch
PowerEstimate.fromElapsedTime(massKg: 1350, quarterMile: result.quarterMile!)
// Wheel power along the run
let curve = PowerEstimate.wheelPower(result, massKg: 1350, dragArea: 0.6)
let peak = PowerEstimate.peakWheelHp(result, massKg: 1350)

wheelPower adds what it took to accelerate the car, beat the air and the tires’ rolling resistance. The parameters:

Parameter Default Typical values
dragArea 0.7 m² Drag coefficient × frontal area. 0.6 for a sedan, 0.8 for a pickup.
rollingResistance 0.015 0.012 on drag radials, 0.015 on street tires.
airDensity 1.2 kg/m³ weather.airDensity if you have it.