Home | Add fuel usage to your car. |
|
Introduction
Racer has added fuel consumption in v0.8.0. The settings are car-specific, so they are stored in the car.ini file.
Parameters
The following parameters influence fuel consumption.
Parameter (in car.ini) | Description |
fuel.bsfc | 'Brake specific fuel consumption'. This is a value in g/J (grams/Joule) which indicates how much fuel the engine consumes. Start with a value around 7e-5 for example. This value is an industry standard definition. See this article on Wikipedia for more information. |
fuel.max | The tank capacity in liters. |
fuel.type | Type of fuel: 0=gasoline (default), 1=diesel. Diesel isn't correctly implemented yet in v0.8.0. |
The algorithm
The method used to simulate fuel consumption approximates real-life circumstances. Based on the article in Wikipedia a bit, the inputs are engine RPM and delivered torque. There is an optimal engine efficiency, adjusted by 'penalties' when you're not on the optimal RPM and engine torque combination, resulting in more fuel usage.
(last updated November 13, 2012 )