Göm meny

TCSI Engine Simulation Testbed

A Realistic Simulation Testbed of a Turbocharged Spark-Ignited Engine System: A Platform for the Evaluation of Fault Diagnosis Algorithms and Strategies

A complete and free Matlab/Simulink simulation testbed of a TCSI engine model for testing and evaluation of residuals generation and fault diagnosis methods, as described in Ng, Frisk, Krysander, and Eriksson (2020).

Download: Latest version of TCSI Engine Simulation Testbed [zip].


This simulation testbed of a turbocharged spark ignited (TCSI) petrol engine system allows for testing and evaluation of residuals generation and fault diagnosis methods. Designed and developed using Matlab/Simulink, the user interacts with the testbed using a GUI interface, where the engine can be realistically simulated using industrial-standard driving cycles such as the Worldwide harmonized Light vehicles Test Procedures (WLTP), the New European Driving Cycle (NEDC), the Extra-Urban Driving Cycle (EUDC), and EPA Federal Test Procedure (FTP-75). The engine is modeled using the mean value engine model (MVEM) and is controlled using a proportional-integral (PI)-based boost controller. The GUI interface also allows the user to induce one of the 11 faults of interest, so that their effects on the performance of the engine are better understood. This minimizes the risk of causing permanent damages to the engine and shortening its lifespan, should the tests be conducted onto the actual physical system. This simulation testbed will serve as an excellent platform where researchers can generate critical data to develop and compare current and future research methods for fault diagnosis of automotive engine systems.

The Engine model belongs to the family of Mean Value Engine Models (MVEM), and it is a compilation of several years of research work on component based modeling for control and diagnosis of powertrains. The interested scholar can find much of the background and documentation for the model that was collected in the book "Modeling and Control of Engines and Drivelines", by Lars Eriksson and Lars Nielsen, John Wiley & Sons, 2014. In particular the model corresponds to Section "8.9 Example -- Turbocharged SI Engine", integraged with a clutch, stiff driveline with changeable gear ratio, longitudinal vehicle dynamics, where the gear ratio can be changed as can be found in Chapter 14. Complemented with driving cycles and driver models for cycle following.


The simulation testbed is provided as free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v3.0 as published by the Free Software Foundation. If you use this software in research or otherwise, please preserve information about and cite the publication that describes and documents the model (Ng, Frisk, Krysander, and Eriksson (2020)).


  1. Download the latest zip-archive and extract.
  2. You will find within the github-page the simulation kit [zip], a readme file, and a license file.
  3. The simulation kit contains the following key user files:
    • main.m - Main execution file. Run this file to start the GUI.
    • Engine.mdl - Simulink model of the closed-loop nonlinear engine system. You can open the model from the GUI by clicking either the "Boost Controller (Simulink)" or "Engine System (Simulink)" blocks.
    • GenerateResiduals.m - Codes for the residuals generation algorithm to be placed here. You can open the file from the GUI by clicking the "Residuals Generator Design (m-file)" button.
    • ResidualsGen.mdl - Simulink model of the residuals generator. The model is called and run from GenerateResiduals.m. The default residuals generated are also filtered and normalised, and added with signal noise. You can open the model from the GUI by clicking the "Residuals Generator (Simulink)" block. You can replace the "Residuals Generator" in the Simulink model as desired to accommodate other methods for residuals generation.
    • RunFI.m - Algorithm for fault diagnosis to be placed here. You can open the file from the GUI by clicking the "Fault Isolation Scheme Design (m-file)" block.
    • In addition there are some support scripts and functions in the package.


If you have comments, bug reports or other concerns the authors may be contacted at the following email address: Lars Eriksson (lars.eriksson@liu.se) and Mark Ng (mark.ng@ulster.ac.uk).

Informationsansvarig: Lars Eriksson
Senast uppdaterad: 2022-01-05