// 2008 Lexus 5.0L DOHC 4-valve V-8 Engine
// Maximum Torque: 503 NM @ 5200 RPM
// Maximum Power: 416 horsepower @ 6600 RPM
RPMTorque=(    0,   -46.9,   -46.9)
RPMTorque=(  250,   -45.2,   -16.0)
RPMTorque=(  500,   -46.7,    47.0)
RPMTorque=(  750,   -48.9,   149.0)
RPMTorque=( 1000,   -51.4,   255.0)
RPMTorque=( 1250,   -54.3,   305.0)
RPMTorque=( 1500,   -57.3,   345.0)
RPMTorque=( 1750,   -60.6,   378.0)
RPMTorque=( 2000,   -64.2,   401.0)
RPMTorque=( 2250,   -68.0,   418.0)
RPMTorque=( 2500,   -72.1,   435.0)
RPMTorque=( 2750,   -76.5,   450.0)
RPMTorque=( 3000,   -81.1,   461.0)
RPMTorque=( 3250,   -86.2,   468.0)
RPMTorque=( 3500,   -91.5,   475.0)
RPMTorque=( 3750,   -97.3,   479.5)
RPMTorque=( 4000,  -103.4,   492.0)
RPMTorque=( 4250,  -110.0,   493.0)
RPMTorque=( 4500,  -117.0,   496.0)
RPMTorque=( 4750,  -124.4,   498.5)
RPMTorque=( 5000,  -132.1,   501.5)
RPMTorque=( 5250,  -140.6,   502.2)
RPMTorque=( 5500,  -149.3,   495.5)
RPMTorque=( 5750,  -158.6,   482.0)
RPMTorque=( 6000,  -168.3,   477.0)
RPMTorque=( 6250,  -178.5,   460.0)
RPMTorque=( 6500,  -189.5,   454.4)
RPMTorque=( 6750,  -200.9,   437.4)
RPMTorque=( 7000,  -212.7,   410.0)
RPMTorque=( 7250,  -225.2,   380.0)
RPMTorque=( 7500,  -238.4,   343.0)
RPMTorque=( 7750,  -252.0,   214.0)
RPMTorque=( 8000,  -266.7,    49.0)
RPMTorque=( 8250,  -281.6,    14.0)
RPMTorque=( 8500,  -297.6,     6.0)
RPMTorque=( 8750,  -314.4,    -1.0)
RPMTorque=( 9000,  -332.2,    -1.0)
RPMTorque=( 9250,  -351.0,   -12.0)
RPMTorque=( 9500,  -381.0,   -95.0)
FuelConsumption=4.000e-005         // affected by throttle position and engine speed
FuelEstimate=0.900                 // fudge factor for differences between vehicle types (used for lap estimates and AI pit scheduling)
EngineInertia=0.250
IdleThrottle=0.75
IdleRPMLogic=(750.0, 850.0)
LaunchEfficiency=0.000             // efficiency (0.0-1.0) of launch control, or 0.0 if N/A
LaunchRPMLogic=(4800.0, 6000.0)    // holds RPM in this range before launch (used for AI even if launch control is N/A!)
RevLimitRange=(6800.0, 100.0, 1)
RevLimitSetting=0
RevLimitLogic=50.0                 // RPM range around current setting where rev limiter operates
RevLimitAvailable=1                // whether to use a rev limit (if 0, you still must have a "rev limit", just make it 40000 or so, and make sure to change [CONTROLS]->UpshiftAlgorithm to fix shifting points)
EngineMapRange=(0, 1, 1)           // 0 = most driveable, max = most power (low gears only) (unimplemented)
EngineMapSetting=0
EngineBrakingMapRange=(0,0.001,1)  // input throttle is ranged from minimum to 100%, with the minimum = setting * step * RPM
EngineBrakingMapSetting=0          // i.e. if you want 10% throttle at 6000 RPM, set the middle number to 10/6000 = 0.00167
OptimumOilTemp=100.5               // degrees Celsius at which engine operates optimally
CombustionHeat=40.0                // degrees Celsius added per liter of fuel burned
EngineSpeedHeat=8.200e-004         // heat added linearly with engine speed
OilMinimumCooling=4.400e-003       // heat dissipated without oil/water transfer
OilWaterHeatTransfer=(1.400e-001,7.990e-005) // heat transfer from oil to water (base, w/ engine speed)
WaterMinimumCooling=3.000e-003     // base heat dissipated without velocity
RadiatorCooling=(2.400e-006, 4.400e-006)     // cooling rate with velocity (base, per setting)
LifetimeEngineRPM=(7200.0,130.0)   // (base engine speed for lifetime, range where lifetime is halved)
LifetimeOilTemp=(112.0,2.50)       // (base oil temp for lifetime, range where lifetime is halved)
LifetimeAvg=129600                 // average lifetime in seconds
LifetimeVar=42000                  // lifetime random variance
EngineEmission=(0.18, 0.60, -2.60) // where flames and smoke are emitted (relative to ref frame at rear axle)
EngineSound=(   0.18, 0.60, -2.60) // where engine sound is emitted (relative to ref frame at rear axle)
SpeedLimiter=0                     // whether there is a pitlane speed limiter
OnboardStarter=1                   // whether vehicle restarts when stalled
StarterTiming=(0.03, 0.03, 3.90)   // average and variable cranking time, then blend with starting sound
RamCenter=(0.0, 0.3, -3.5)         // location of ram air intake
RamDraftEffect=1.5                 // multiplier for effect that draft has on ram air velocity
RamEffects=(1e-5,1.2e-5,1.5e-5,2e-5) // torque % increase per m/s, power % increase per m/s and RPM, fuel increase per m/s, engine wear increase per m/s
