Conference article

Gas Exchange and Exhaust Condition Modeling of a Diesel Engine using the Engine Dynamics Library

Johan Dahl
Volvo Group Truck Technology, Control Systems, Gothenburg, Sweden

Daniel Andersson
Modelon AB, Lund, Sweden

Download article

Published in: Proceedings of the 9th International MODELICA Conference; September 3-5; 2012; Munich; Germany

Linköping Electronic Conference Proceedings 76:9, p. 101-114

Show more +

Published: 2012-11-19

ISBN: 978-91-7519-826-2

ISSN: 1650-3686 (print), 1650-3740 (online)


In this paper the newly developed Engine Dynamics Library is presented. Ever increasing consumer and regulatory demand for improved fuel economy and lower emissions forces the engines and Engine After-Treatment Systems (EATS) to be improved continuously. Since the complete system is very complex; models are useful in order to be able to cost efficiently develop new control strategies and select hardware. The library is based on a mean-value combustion model and the focus lies on modeling the gas exchange with real-time like simulation times; useful for engine optimization and for evaluation of control strategies. The library contains models of the standard engine components such as manifolds; pipe; turbines; compressors; valves; mechanics; etc. Simulation results from Dymola for a 13 L Volvo truck engine demonstrates that the models capture the engine dynamics and has sufficient accuracy to be useful in engine optimization. The model have been calibrated using surface fitting of maps and least-squares estimation of parameters in Matlab; as well as parameter optimization using JModelica and FMI.


Engine modeling; Engine simulation; Air Gas management


[1] T. Johnson Diesel Emissions in Review; SAE Technical Paper 2011-01-0304; 2011.

[2] R. Cloudt and F. Willems. Integrated Emission Management strategy for cost-optimal engineaftertreatment operation; SAE Technical Paper 2011-01-1310; 2011.

[3] Dymola User Manual; Volume 1; Lund; 2011

[4] J. Batteh; M. Tiller and C. Newman. Simulation of Engine Systems in Modelica; Proceedings of the 3rd Modelica Conference; Linköping; Sweden; 2003.

[5] A. Picarelli and M. Dempsey. Investigating the Multibody Dynamics of the Complete Powertrain System; Proceedings of the 7th Modelica Conference; Como; Italy; 2009.

[6] L. Guzzella and C.H. Onder. Introduction to Modeling and Control of Internal Combustion Engine Systems; 2nd edition; 2010. ISBN 978-3-642-10774-0. doi: 10.1007/978-3-642-10775-7.

[7] R. Johansson. System modeling & Identification; 2009. ISBN 0-13-482308-7.

[8] HIH Saravanamuttoo; GFC Rogers and H Cohen. Gas Turbine Theory; Fifth Edition; 2001. ISBN 978-0-13-015847-5.

[9] B.J. McBride; M.J. Zehe and S. Gordon. NASA Glenn Coefficients for Calculating Thermodynamic Properties of Individual Species. NASA report TP-2002-211556; 2002.

[10] J. D’Errico. Understanding GRIDFIT; 2006. Available for download at (last accessed 20120228).

[11] J. Åkesson; K-E. Årzén; M. Gäfvert; T. Bergdahl and H. Tummescheit. Modeling and Optimization with Optimica and - Language and Tools for Solving Large-Scale Dynamic Optimization Problems; Computers and Chemical Engineering; 34:11; pp. 1737-1749; November 2010

[12] S. Gedda. Calibration of Modelica models using derivative-free optimization; Master’s thesis 2011:E46; Lund University; Faculty of Engineering; Centre For Mathematical Sciences; Mathematics; 2011.

[13] S. Gedda; C. Andersson; J. Åkesson and S. Diehl. Derivative-free Parameter Optimization of Functional Mock-up Units. In 9th International Modelica Conference; 2012.

[14] MODELISAR(07006). Functional Mock-up Interface for Model Exchange Available for download at: (last accessed 20120228).

[15] J. Wahlström and L. Eriksson. Modeling of a diesel engine with VGT and EGR capturing Sign Reversal and Non-minimum Phase Behavior. Proceedings of the Institution of Mechanical Engineers; Part D; J. of Automobile Engineering; Volume 225; Issue 7; July 2011.

[16] M. Grahn and T. McKelvey. MA Structure and Calibration Method for Data-driven Modeling of NOX and Soot Emissions from a Diesel Engine. SAE Technical Paper 2012-XX-0351; 2012.

Citations in Crossref