Working Concept
Engine calibrations are one of the most important factors for engine performance. There are 2 core components to an engine calibration, fuel control and ignition control. Both have two key dependencies, engine RPM and manifold vacuum. There are also several correction factors which are used to help transition the engine through various states as well as to help manage heat in the engine and exhaust. The engine calibration affects: Torque, Power, Noise, Response, Thermal performance and drivability. The ECU attempts to calculate the mass air flow into the engine and derive the amount of fuel and required ignition timing.
Mass Air Flow Calculation
The mass air flow into the engine is a theoretical calculation based on the engine speed and inlet air pressure with a correction table. The end goal is to calculate the amount of oxygen in each cylinder, the following equation is the basis of the ECU's approximation:
PV = nRT
where:
P - Pressure in Pa
V - Volume in m^3
n - number of moles of air
R - Air Constant - 8.31446261815324 J⋅K−1⋅mol−1
T - Temperature in deg K
N is the number of moles of air. The molar mass of air is approx 28.97 g/mol. Temperature is corrected for in PV = nRT as it is with respect to the number of moles of air. No further correction is required in an ideal system however engines are not ideal and have limitations on sensor placements relative to pressure drops.
There is then a correction factor applied known as volumetric efficiency (VE) which is the table which can be calibrated in the ECU. VE is essentially the percentage of the actual oxygen mass flow rate over the theoretical oxygen mass flow rate based on the engine speed, inlet temperature and inlet pressure. This rate is typically expressed in grams per second and can be represented mathematically as:
VE = Actual Oxygen Mass Flow (g/s) / Theoretical Oxygen Mass Flow (g/s)
where Theoretical Oxygen Mass Flow (g/s) = P(pa) * V(m^3/s) * 3.48429 / T (deg K)
This is the basis of many modern engine management systems. Most naturally aspirated engines have peak VE values in and around 100%, some over 100% where well tuned intakes and exhausts are present. Turbocharged engines often have peak VE values well above 100%.
VE engine management systems are also able to run in a closed loop state (within the allowable tolerances). The ECU compares the theoretical air to fuel ratio (AFR) to the measured AFR in the exhaust. The ECU then builds a corrections table as the car is driven making small incremental steps to the corrections table while the engine is operating in an allowed learning condition (typically at operating temp, above X engine load and below Y engine load where the learning rules can be configured). The VE correction table is learnt over time and is typically limited to relatively small steps and maximum allowed correction factors. It is important to frequently review the VE correction table to ensure the corrections are logical and can be explained (no point discontinuities).
A good practice is to build a model of the engine and review the VE your model outputs and compare it to the table. The engine calibration can be iterated very quickly using this strategy. This can be done using test data and was very successful. A full VE calculation is available in the MK1 data suite in AIM Race Studio. Engine performance data is needed for as much of the engine map as is practical to minimize interpolation in the final data. To be able to build this the following data is required:
Dynamic Channels:
Inlet Air Temp
Inlet Air Pressure
Engine RPM
Measured AFR
Fuel Pressure
Fuel Injector Duty Cycle
Constants Needed:
Fuel Injector Flow Rates (Constant)
Engine Displacement
Fuelling
The target fuel flow (g/s) is calculated based on:
Oxygen Mass Flow
Target Air to Fuel Ratio
Coolant Temperature Correction Factor
Inlet Air Temperature Correction Factor
Anti-Lag (If Applicable)
Engine Protection Corrections (If Applicable)
The ECU then calculates the duty cycle for the injector based on the injector size, fuel density, fuel pressure, inlet pressure and battery voltage. It is worth noting many systems adopt a constant fuel pressure approach which is acceptable however not optimal as there is pressure drop proportional to fuel flow rate in the lines, rails and regulators. Simple models assume the change in flow rate vs the pressure differential across the injector is linear, which is a valid assumption for the relatively small range the injectors operate in as long as the limit behaviour of the injector is not reached (change in flow regime in the injector).
The Air to Fuel Ratio is a mass ratio which is essentially the mass of air required to completely combust 1 mass unit of fuel. For gasoline this ratio is 14.7 : 1. This means for every 1 kg of fuel to enter the engine 14.7 kg of air would be required to completely combust the fuel. This is known as stoichiometric combustion and is the optimal condition for a clean and complete burn.
Air to Fuel Ratios are important for several engine performance traits such as:
Efficiency
Thermal Management
Engine Longevity
Power Output
All of these factors are related to one another through the stoichiometric ratio of the combustion. Efficiency is dependant on the AFR due to outright fuel flow and how well the fuel is combusted (how completely). Thermal management is very important as this is the primary reason many vehicles enrich their AFR to less than stoich is to help use the fuel to cool the piston crown, valves, cylinder walls and exhaust outlet (headers included).
Here are a couple of examples of how EGT is related to AFR using data recoded on MK1:
The data above was per-conditioned using a load case selection criteria. (Greater than 90% throttle and over 4000 rpm). The calibration map was modified to deliberately sweep between ~10.0:1 and 16.0:1 as this was a known safe region. This data is roughly aligned with the analytically derived equations for this engine however does contain some error (sensor error, operating conditions, coolant temps, ambient temps) which explains the offset which can be seen in the minimum temp. The behaviours in the plot can be explained as follows:
9.0 - ~11.5
This region is where the fuel mixture is so rich the fuel is combusting in the exhaust. The cylinder temps are still in a safe region. This mixture will make the engine appear to be running artificially hot however can be beneficial for forced induction vehicles as the mass flow of fuel helps lower the cylinder temps (greater mass flow entering at low temp). The ignition of fuel in the exhaust is also beneficial for turbocharged vehicles as it helps spool the turbo by increasing the air volume (higher temperature) being used to rotate the turbine. Effectively it generates an artificially high exhaust gas velocity which spools the turbo (working principle of anti-lag). There is no need to run a low HP naturally aspirated engine as peak cylinder temps are usually in a safe operating range and the increased EGTs only increase the engine bay temps while increasing fuel consumption. Short excursions to this region to make 'pops' and 'bangs' are typically welcomed and bring some theatre to the vehicle, it is a race car after all, it should feel special.
11.5 - ~13.8
This is the power region where optimal power will be produced. This is also the safest region for the engine to operate in as the peak temps are starting to come down, excessive combustion is not present in the exhaust and there is still a rich mixture which allows for some fuel molecules to continue to help removing heat from the cylinder. (Therefore not having to go into the coolant).
13.8 - 16
This is the lean burn region where the engine will achieve complete combustion and optimal fuel consumption. However, this region can be prone to thermal issues and putting a lot of heat into the coolant. A proactive cooling strategy or reduced power is required to run the car in this region consistently as one heat path out of the engine is significantly reduced (fuel being atomized by the heat in the cylinder). Energy in = Energy out, only so much of it turns into mechanical power, therefore be prepared to get rid of the excess thermal energy.
Setting AFR Targets
The AFR targets are typically set based on the intended use of the vehicle and may be different per event. A performance target table will look significantly different than an economy oriented map. This is based on a couple of items, firstly, the desire to hold the engine temps down in a performance calibration. This includes the inlet air temperatures, coolant temperatures and oil temperatures. The second motivation of having alternate maps is the response, in a performance calibration the only goal is to have the power be available at a moment's notice and consequently the targets tend to be a bit richer to ensure fuel is always available for dynamic situations. The CBR600RR is a very responsive engine which transient fuelling can be very difficult to tune correctly. A global approach of richening the mixture is typically the most successful from a performance standpoint. Economy maps have to be leaner by design and should also discourage sharp inputs from the driver and consequently tend to allow the engine to run hotter, make less power and be less responsive.
Dyno Days
Things to pack:
- Laptop
- Cables
o AIM
o Haltech
o PMU
o Shift controller
o Laptop Charger
- Battery charger
o I used to run the car on the charger while it was shut off between pulls
- Extension cord x2
- Ground support battery
- Fluids
o Oil
o Water
o Gas
- Socket Set
- Pliers
- Cable Splices
- Wire strippers
- Spare pins for haltech connectors
- Spare coils
- Screwdrivers
- Funnel
- Rags
- Spray bottle of water (To mist the rad with to help cool the car back down between pulls)
- Fire Suit
- Fire Extinguishers
- Welding gloves (in case of header work/needing to adjust sensors while hot)
- Bottles of water (It gets freaking hot in the car)
- Spotters who can recognize issues with the car and know where to look, it’s really easy to get in the groove of tuning and have something melting that you’re unaware of. Show people where to look and keep a constant eye on the EGTs, get someone to alert you if the headers get as far as glowing white.
- Spare tires
- Straps
Pre-dyno car prep:
- Set ride height to top of adjustment
- Clear strapping locations (lower ends of uprights is ideal as it takes the stress off the rest of the car)
- Inspect spark plugs
- Check for leaks and levels
o Oil
o Brake Fluid
o Water
o Fuel
- Check Clutch for range of motion and feel
- Verify all 6 gears are available (Can be done running with the car in the air)
- Check belts and functionality of all safety gear on the car (Check releases etc, make sure you can shut it off and get out if it catches fire)
- Test drive car to ensure drive is available (I used to do 5-6 pulls in the parking lot as a sanity check before loading the car. You don’t have to go fast, just do 1st or 2nd and get in it fairly firmly as a proof the clutch will transmit power (essentially looking for torque). You’ll also want to check the brakes, probably do that at low speed first.)
- Install worst set of tires available, the dyno will destroy them
o Make sure tire pressures are high 20+ typically, the straps add a lot more force than the weight of the car
- Remove all un-necessary bodywork, reduces risk of damage and makes access easier on a tight timeline. I’d leave the side pod on the rad side but remove the other.
- Clear AIM logger
- Set acquisition time
- Update and re-upload entire Haltech tune
- Check knock frequency and disable knock control (Leave the sensor enabled)
- Zero the knock correction table
- Final Test Start and load
Dyno day on dyno order of operations:
Most of the time of this session will have to be focused around the drivability of the car, however the initial ground work has to be in getting the engine all safe and in check. Make sure you save the map between each step and download(and label) the AIM data as frequently as you can. I would do the following:
1) Warm car up to operating temperature
2) Set up the cylinder balances for enrichment to get the EGTs even, to do this I would create a generic correction factor for all 4 cylinders and begin to adjust those trims until all 4 cylinders are within 25 deg C of each other. This should be able to be accomplished in 2 or 3 pulls by looking at the data after the pull. You will need an AIM math channel set for this, if you send me the most recent data set I can work on building one up for you because I have data for the amount of correction needed to make the temperature change a set amount. If not I would create an average temperature of the center two and then adjust the outer two cylinders to suit this as closely as you can. What this will do is ensure that the outer cylinders aren’t too rich and the inner two aren’t lean.
3) Full throttle pulls, the goal of these is to get a consistent and even EGT and AFR, if they are out by a substantial margin then it’s worth a touch up, we know the mixtures are reasonable but the intake is very different and it’s worth a check.
4) The next item is to check the full load timing, this is another easy one, watch for knock hits and advance the timing until you either hit knock or you stop making more torque from it. Make sure you have the knock control disabled and the knock correction table zeroed before you begin. If you hit knock back it off by half a degree, and try it. If you see a big loss from it then try putting a quarter of a degree back in, be careful as knock is very sensitive to IATs. You may also want to make sure the IAT to timing correction table is reasonable, the heat soak on the car by this point may be substantial and you’ll either loose power or if the car isn’t running hot yet you’ll give it too much timing and have knock during normal operation.
5) You’ll probably be at least 45 minutes in at this point assuming all goes well, your next goal is to try to sweep the entire map doing exactly the same thing. I’d start with fuelling because it’s the easiest one to see the returns on at comp, this will depend on their dyno if it’s road speed or resistance dictated. If it’s road speed then start in 1st and go up by 1000 rpm every time hitting the load sites that are along that diagonal, make sure you are on the right manifold vacuum table and tps location. You’ll want to get the mixture as lean as you can without it either getting hot or loosing drivability, I’d aim for between 14 and 15 AFR if you can get it. I’d then apply an accel transient that was fairly aggressive to help the drivability. Repeat this for every gear you can and then increase the road speed once you’ve hit 6th. Just make sure you don’t over-shift it down, the dyno rollers have a lot of mass and will break things, it may be worth a test run to see what speed each gear runs out at. If it’s resistance based then it’s easier, go to a manifold vacuum table, I’d start with the highest load tables and work backwards, then vary the load to move around the table as best as you can. It’s tricky to do, you may find it easier to go to a constant throttle and then vary the load and move through the manifold vacuum tables that way. I’d do one full sweep of fuel then do timing and come back to this if I had time.
6) The next item is timing, this one can take the most time by far as there are very few sensors to detect it. How you tune the timing is to find a load site and then vary the timing to make the most torque possible, it is a bit of a trial and error process. It is critical to watch the EGTs through this as if there is going to be an over temp it will be during this process. On a road speed dyno you can set a speed and a gear then work until you achieve either knock or the maximum torque. You’ll have to move through the map in a very similar way to what you did with fuel.
7) Transient tuning. This is an if you have time item, I’d set it very rich to start and then lean it back so that it’s responsive under a quick tip in yet is not overly rich. Essentially go as lean as you can with the fuel and still have it feel good and respond well.
8) Steady state. If there is leftover time you can either continue working the map or drive it like an endurance lap, so load it up and let it get hot to prove it will survive.
9) Final dyno pull, get a full throttle pull to frame on the shop wall. If you want to afterwards send me a bunch of the data and I’ll make you a 3d surface of the maps to present at comp.