Validation of A 0D/1D Computational Code for the Design of Several Kind of Internal Combustion Engines
Abstract
A code for computational simulation of internal combustion engines is presented. One-dimensional gas dynamics equations are used for model the flow through pipes and manifolds, and the remaining components in the engine (cylinders, valves, etc.) are modeled by using thermodynamic or 0D models. The numerical code developed is able to simulate spark-ignition and compressionignition, two-stroke and four-stroke, multicylinder and multi-valve engines, naturally aspirated or turbo-charged, and different geometries of the combustion chamber. The code was implemented in the scripting language Python, which is a dynamic object-oriented programming language that offers strong support for integration with other languages and tools. The numerical methods used in the discretization of the equations and implementation details are presented. Several test cases are included in order to show the performance of the code.