Scania · Lund University · Heavy-duty diesel engines · 2016–2021
Combustion control that corrects a diesel engine within each cycle
I designed and tested software that measures combustion inside a running Scania truck engine and corrects the fuel injection before the cycle ends, so the engine can burn renewable fuels efficiently within its limits.
- Role
- Industrial PhD Researcher
- Delivery
- Employed by Scania and enrolled at Lund University (2016–2021), with co-funding from the Swedish Energy Agency
- Team
- Two supervisors (Scania and Lund), the test-cell technicians I coordinated, other PhD students, and eight students I mentored
- Skills
- Virtual sensing · diagnostics and fault detection · predictive control · stochastic optimisation · FPGA real-time implementation · MATLAB/Simulink · LabVIEW · engine test-cell experiments
At a glance
Results
- 50% less cycle-to-cycle variation in the controlled combustion values
- 96% of pilot misfires detected before the main injection
- up to +1.8% indicated efficiency at low load, against open loop
- 15 · 2 published articles · granted patents
Research results on a six-cylinder 12.7 L Scania D13 engine with diesel, HVO and RME; the pressure sensor is not in production engines. The efficiency gain comes from a set-point optimisation built on the reduction in variation, within the limit on the pressure-rise rate. Indicated efficiency is the share of fuel energy that the gas delivers to the piston, and the gain is absolute.
- The need
- Renewable diesel fuels ignite differently from fossil diesel, so engines calibrated in advance keep wide safety margins, and those margins cost fuel in every cycle.
- Key work
- Software that estimates the combustion from the cylinder pressure and corrects the injection of the same cycle within microseconds, on an FPGA. A fast estimate that feeds a correction within a hard deadline is the same problem in power electronics and robotics.
Every cycle and fuel burns differently
Trucks have to cut CO₂ now, and renewable fuels such as HVO (hydrotreated vegetable oil) and RME (rapeseed biodiesel) do it without new infrastructure. However, a diesel engine runs open loop: it injects what its calibration maps say and never checks the result. Hence, the maps keep safety margins that hold for any fuel, production tolerance, level of ageing and random cycle, and those margins cost fuel in every cycle.
Closing the loop lets the engine react to what actually burns, and the faster it reacts, the tighter the margins can be. Scania wanted to know whether a pressure sensor could show the pilot combustion in time for the main injection of the same cycle to correct it, and whether the gain would justify a sensor in every cylinder. That question started my PhD.
University research shaped by Scania’s expertise
I owned the research end to end, from the questions to the real-time code, tests and articles, whilst Scania’s engine developers kept it close to production constraints. My areas were:
- Architecture: the full system and its in-cycle control.
- Virtual sensing and diagnostics: estimators for quantities no production sensor measures, such as the pilot fuel burnt, and misfire detectors.
- Control and real-time implementation: predictive controllers with online model adaptation, coded on an FPGA, and the hardware a product would need.
- Experiments: test plans and runs in the Lund University test cell, coordinating the technicians for every engine change.
- People: mentoring six master’s thesis students and two summer workers.
- Publications: lead author on 14 of the 15 articles, each presented at an international conference.
In-cycle control that makes combustion repeatable and efficient
A diesel injection often comes in two parts. A small pilot injection of a few milligrams ignites first and prepares the cylinder, and the main injection follows a few milliseconds later and gives most of the work. The control reads the pilot combustion from the cylinder pressure and adjusts the main injection of the same cycle. It runs as two nested loops (Figure 1): the outer one corrects from cycle to cycle, and the inner one within the cycle.
At 1200 rpm the pressure is sampled every 27 microseconds, and filtering, estimation, diagnosis and control all have to fit between two samples. I defined the system architecture across three levels by time scale: a PC for the operator, a real-time processor at 100 Hz for the outer loop, and an FPGA (a chip whose logic runs in parallel with fixed timing) for the inner loop. That timing led to four decisions:
- In-cycle control on an FPGA: correcting the next cycle is simpler, but it cannot react to a pilot that misfires now. On the engine, in-cycle control halved the average error of the cycle-to-cycle controller. The cost is a tight resource budget on the chip. When the six-cylinder version ran out of logic, I redesigned the code into modules that the cylinders share in turn, which saved 40% of the logic slices, and I specified the larger FPGA a product would need.
- Probabilistic misfire detection: a fixed pressure threshold works at one operating point and fails at the next. I modelled misfire as a probability that depends on the operating conditions and the fuel, at the cost of a statistical calibration per detector. Detection reached 96% before the main injection, close to the 98% the physics allows.
- Predictive control: my first controller pushed efficiency directly and gained +0.42% indicated efficiency, but the non-linear combustion limited it. I replaced it with four controllers that track predicted combustion timing, pilot mass and load, with models that adapt online, at the cost of the modelling and adaptation logic.
- A modular supervisor: three state machines linked by events swap each prediction for its measurement the moment it exists. New controllers plug in without touching the rest, and it gave the smallest spread of the three designs I compared.
I built the models in MATLAB/Simulink and the real-time code in LabVIEW on a Xilinx Virtex-5 FPGA. The models were calibrated for diesel only, so HVO and RME tested the adaptation. The engine load with the first in-cycle controller is plotted in Figure 2 against open loop, with the pilot fuel disturbed on purpose.
In closed loop, 95% of the cycles stay within ±0.36 bar of the target load, against ±0.47 bar in open loop. The reason is visible in the lower plots: the main injection changes by up to 16 mg to compensate each pilot error within the same cycle, whereas in open loop it does not react.
Lower variation also lets the set-point move closer to the limits. A stochastic optimisation of the set-point, built on the variation measured on the engine, raised the indicated efficiency by up to +1.8% at low load against open loop, within the limit on the pressure-rise rate.
Models and methods Scania uses beyond the research
Production engines do not carry a pressure sensor in every cylinder, so in-cycle control is not in trucks today. Still, parts of my models are used in calibration and optimisation, a virtual pressure sensor for safety was developed partly from this research, and the way misfire is handled today is partly based on it. Scania also got a hardware specification for in-cycle control and two granted patents.
The predictive models have had the widest use. A model that predicts what the process will do next, and adapts online when it drifts, is the idea I now use in the predictive thermal control for Scania’s electric trucks; only the time scale changed, from microseconds to minutes. The articles are cited by research at TU Eindhoven, Oak Ridge National Laboratory and TU Wien.
What the PhD taught me about leading engineering work
The PhD moved me from solving the problem in front of me to filling gaps in what is known, and taught me to organise the work by myself. These are the lessons I pass on to new PhD students and young engineers:
- Plan the work around the desired outcome: I was advised to start drafting each article before the experiments were finished. A draft forces the author to state the problem, the hypothesis and how to confirm it, so each test campaign has a clear goal. I still ask my team to organise research projects this way.
- Start new ideas from a known gap: new solutions rarely come from one bright idea. They come from knowing the literature well enough to see which problems it has not solved. In my team, every new idea starts by naming the gap it fills.
- Share early, learn faster: as an industrial PhD student, I had Scania’s engine experts next to me, and the greatest benefit came from sharing results early and hearing what was useful to them. I still ask for feedback early, and I encourage my team to do the same.
- Give people room to grow: my supervisors often pointed out a direction and left the answer to me, which taught me to think further. In my teams, that means clear goals, the support each person needs and space to propose their own solutions.
More detail is in the open-access thesis and the journal summary.
All results on this page are public in the thesis and articles. Scania’s later use is described in general terms, and the patents are mentioned by count only.
Working on a similar control problem?
Describe the system you are working on in a short message. I will reply with how this approach could apply to it and where I have solved similar problems.