Estimation of Air Mass Flow in Engines with Variable Valve Timing

Similar documents
SAMPLE STUDY MATERIAL

Engine Cycles. T Alrayyes

Internal Combustion Engines

Per Andersson and Lars Eriksson

WEEK 4 Dynamics of Machinery

Development, Implementation, and Validation of a Fuel Impingement Model for Direct Injected Fuels with High Enthalpy of Vaporization

R&D on Environment-Friendly, Electronically Controlled Diesel Engine

VALVE TIMING DIAGRAM FOR SI ENGINE VALVE TIMING DIAGRAM FOR CI ENGINE

Kul Internal Combustion Engine Technology. Definition & Classification, Characteristics 2015 Basshuysen 1,2,3,4,5

Simulation of Performance Parameters of Spark Ignition Engine for Various Ignition Timings

2013 THERMAL ENGINEERING-I

DEVELOPMENT OF COMPRESSED AIR POWERED ENGINE SYSTEM BASED ON SUBARU EA71 MODEL CHEN RUI

Kul Internal Combustion Engine Technology

ACTUAL CYCLE. Actual engine cycle

UNIT IV INTERNAL COMBUSTION ENGINES

(v) Cylinder volume It is the volume of a gas inside the cylinder when the piston is at Bottom Dead Centre (B.D.C) and is denoted by V.

Electromagnetic Fully Flexible Valve Actuator

Control of Charge Dilution in Turbocharged CIDI Engines via Exhaust Valve Timing

Problem 1 (ECU Priority)

EEN-E2002, Gas exchange and supercharging, lecture 4a

density ratio of 1.5.

Integrated Simulation of a Truck Diesel Engine with a Hydraulic Engine Braking System

Development of Variable Geometry Turbocharger Contributes to Improvement of Gasoline Engine Fuel Economy

Variations of Exhaust Gas Temperature and Combustion Stability due to Changes in Spark and Exhaust Valve Timings

Institutionen för systemteknik

Multi Body Dynamic Analysis of Slider Crank Mechanism to Study the effect of Cylinder Offset

Effects and Models of Water Injection in an SI Engine

Experimental Investigation of Acceleration Test in Spark Ignition Engine

Comparison of two Exhaust Manifold Pressure Estimation Methods

GT-Suite Users International Conference Frankfurt a.m., October 22 nd 2012

Technical Report Con Rod Length, Stroke, Piston Pin Offset, Piston Motion and Dwell in the Lotus-Ford Twin Cam Engine. T. L. Duell.

Influence of Cylinder Bore Volume on Pressure Pulsations in a Hermetic Reciprocating Compressor

Operating Characteristics

COMPARISON OF VARIABLE VALVE ACTUATION, CYLINDER DEACTIVATION AND INJECTION STRATEGIES FOR LOW-LOAD RCCI OPERATION OF A LIGHT-DUTY ENGINE

(a) then mean effective pressure and the indicated power for each end ; (b) the total indicated power : [16]

Comparison of Swirl, Turbulence Generating Devices in Compression ignition Engine

Template for the Storyboard stage

Variable Valve Timing

OBJECTIVE: GENERAL ASPECTS ABOUT ENGINES MECHANISM:

Gas exchange Processes. Typical valve timing diagram

A REVIEW OF SCAVENGING PROCESS OF TWO STROKE ENGINE

2.61 Internal Combustion Engine Final Examination. Open book. Note that Problems 1 &2 carry 20 points each; Problems 3 &4 carry 10 points each.

The Effect of Spring Design as Return Cycle of Two Stroke Spark Ignition Linear Engine on the Combustion Process and Performance

ENGINES ENGINE OPERATION

GT-Power Report. By Johan Fjällman. KTH Mechanics, SE Stockholm, Sweden. Internal Report

Part Load Engine Performance prediction for a gasoline engine using Neural Networks. Sreekanth R, Sundar S, Rangarajan S, Anand G -System Simulation

Computer Power. Figure 1 Power-curves from Viper and Venom bottom left and right. (Source: D Quinlan)

The Four Stroke Cycle

EEN-E2002 Combustion Technology 2017 LE 3 answers

Comparing FEM Transfer Matrix Simulated Compressor Plenum Pressure Pulsations to Measured Pressure Pulsations and to CFD Results

is the crank angle between the initial spark and the time when about 10% of the charge is burned. θ θ

Study of Performance and Emission Characteristics of a Two Stroke Si Engine Operated with Gasoline Manifold Injectionand Carburetion

Reducing emissions using 2-stage turbo charging

Internal combustion engines can be classified in a number of different ways: 1. Types of Ignition

Comparative Study Of Four Stroke Diesel And Petrol Engine.

Simple Finite Heat Release Model (SI Engine)

UNIT 2 POWER PLANTS 2.1 INTRODUCTION 2.2 CLASSIFICATION OF IC ENGINES. Objectives. Structure. 2.1 Introduction

Advanced Combustion Strategies for High Efficiency Engines of the 21 st Century

System Simulation for Aftertreatment. LES for Engines

Combustion engines. Combustion

AME 436. Energy and Propulsion. Lecture 6 Unsteady-flow (reciprocating) engines 1: Basic operating principles, design & performance parameters

Simulation Method of Hydraulic Confined Piston Engine

Christof Schernus, Frank van der Staay, Hendrikus Janssen, Jens Neumeister FEV Motorentechnik GmbH

Gas exchange process for IC-engines: poppet valves, valve timing and variable valve actuation

I.C ENGINES. CLASSIFICATION I.C Engines are classified according to:

An Investigation of Maximum Brake Torque Timing based on Ionization Current Feedback

Foundations of Thermodynamics and Chemistry. 1 Introduction Preface Model-Building Simulation... 5 References...

A Framework for Evaluation of Cylinder Balancing Controllers

Unit WorkBook 4 Level 4 ENG U13 Fundamentals of Thermodynamics and Heat Engines UniCourse Ltd. All Rights Reserved. Sample

IMECE DESIGN OF A VARIABLE RADIUS PISTON PROFILE GENERATING ALGORITHM

TECHNICAL PAPER FOR STUDENTS AND YOUNG ENGINEERS - FISITA WORLD AUTOMOTIVE CONGRESS, BARCELONA

A New Device to Measure Instantaneous Swept Volume of Reciprocating Machines/Compressors

8 th International Symposium TCDE Choongsik Bae and Sangwook Han. 9 May 2011 KAIST Engine Laboratory

The Internal combustion engine (Otto Cycle)

A Novel Device to Measure Instantaneous Swept Volume of Internal Combustion Engines

CAPABLE OF GENERATING EFFICIENCY, TORQUE AND POWER CURVES

The Effect of Spark Plug Position on Spark Ignition Combustion

EXHAUST BRAKE SYSTEM MODEL AND TORQUE SIMULATION RESULTS ON A DIESEL SINGLE-CYLINDER ENGINE

Effect of Helix Parameter Modification on Flow Characteristics of CIDI Diesel Engine Helical Intake Port

Introduction to I.C Engines CH. 1. Prepared by: Dr. Assim Adaraje

Divided Exhaust Period on Heavy-Duty Diesel Engines

Application of Simulation-X R based Simulation Technique to Notch Shape Optimization for a Variable Swash Plate Type Piston Pump

PVP Field Calibration and Accuracy of Torque Wrenches. Proceedings of ASME PVP ASME Pressure Vessel and Piping Conference PVP2011-

Principles of Engine Operation. Information

Effects of Pre-injection on Combustion Characteristics of a Single-cylinder Diesel Engine

Internal Combustion Engine. Prepared by- Md Ferdous Alam Lecturer, MEE, SUST

The influence of thermal regime on gasoline direct injection engine performance and emissions

Effect of driving pattern parameters on fuel-economy for conventional and hybrid electric city buses

Semi-Active Suspension for an Automobile

Chapter 6. Supercharging

L34: Internal Combustion Engine Cycles: Otto, Diesel, and Dual or Gas Power Cycles Introduction to Gas Cycles Definitions

AME 436. Energy and Propulsion. Lecture 6 Unsteady-flow (reciprocating) engines 1: Basic operating principles, design & performance parameters

Variable Intake Manifold Development trend and technology

ADDIS ABABA UNIVERSITY INSTITUTE OF TECHNOLOGY


TUNING MAZDA B6 ENGINE FOR SPORTS COMPETITIONS

Internal Combustion Engine

CHAPTER I GAS POWER CYCLES

Studying Turbocharging Effects on Engine Performance and Emissions by Various Compression Ratios

Chapter 4 ANALYTICAL WORK: COMBUSTION MODELING

Transcription:

Master of Science Thesis in Electrical Engineering Department of Electrical Engineering, Linköping University, 218 Estimation of Air Mass Flow in Engines with Variable Valve Timing Elina Fantenberg

Master of Science Thesis in Electrical Engineering Estimation of Air Mass Flow in Engines with Variable Valve Timing Elina Fantenberg LiTH-ISY-EX--18/5116--SE Supervisor: Examiner: Christian Andersson Naesseth isy, Linköpings universitet Erik Höckerdal Scania CV AB Martin Enqvist isy, Linköpings universitet Division of Automatic Control Department of Electrical Engineering Linköping University SE-581 83 Linköping, Sweden Copyright 218 Elina Fantenberg

Abstract To control the combustion in an engine, an accurate estimation of the air mass flow is required. Due to strict emission legislation and high demands on fuel consumption from customers, a technology called variable valve timing is investigated. This technology controls the amount of air inducted to the engine cylinder and the amount of gases pushed out of the cylinder, via the inlet and exhaust valves. The air mass flow is usually estimated by large look-up tables but when introducing variable valve timing, the air mass flow also depends on the angles of the inlet and exhaust valves causing these look-up tables to grow with two dimensions. To avoid this, models to estimate the air mass flow have been derived. This has been done with grey-box models, using physical equations together with unknown parameters estimated by solving a linear least-squares optimization problem. To be able to implement the models in the electronic control unit in the future, only sensors implemented in a commercial vehicle are used as much as possible. The work has been done using an inline 6-cylinder diesel engine with measurements from steady-state conditions. All four models derived in this project are based on the estimation methods in use today with fix cam phasing, and are derived from the ideal gas law together with a volumetric efficiency factor. The first three models derived in this work only include sensors provided in commercial engines. The measurements needed as input signals are engine rotational speed, crank angle resolved pressure in the intake manifold, intake and exhaust valve angles and intake manifold temperature. The fourth and last model is divided into three sub-models to model different parts of the four-stroke engine cycle. This model also includes crank angle resolved exhaust manifold pressure and exhaust manifold temperature, where the temperature is the only sensor used in this project that is not provided in a commercial engine. It has been concluded how influential it is to use correctly measured values for the input signals. Since the manifold pressure and the cylinder volume vary during one four-stroke cycle, it is essential that these signal measurements are taken at the right crank angle degree. With wrong crank angle degree, the estimation is worse than if the cylinder volume is constant for all operating points and the pressure signals are taken as a mean value over the whole four-stroke cycle. Further development to reach better estimation results with lower relative error is needed. However, for the work in this thesis, the model with best model fit is estimating the air mass flow well enough to use it as a basis for further control. iii

Acknowledgments First of all, I would like to thank my supervisor Erik Höckerdal at Scania for the guidance and for always having time for me. You have helped me with all kinds of questions and how to proceed the work. I would also like to thank my supervisor Christian Andersson Naesseth and my examiner Martin Enqvist at Linköping University. A big thank you to my family and friends without whom I wouldn t have gotten this far. Last of all I would like to thank Pontus for all the support both during the past few years but most of all during this work. Linköping, February 218 Elina Fantenberg v

Contents Notation ix 1 Introduction 1 1.1 Problem formulation.......................... 1 1.2 Method.................................. 2 1.3 Related work............................... 2 1.4 Thesis outline.............................. 3 2 System description 5 2.1 The four-stroke diesel engine...................... 5 2.2 Variable valve timing.......................... 6 2.3 Valve timing strategies......................... 8 2.4 Experimental setup........................... 1 2.5 Assumptions............................... 11 3 Modeling 13 3.1 Parameter estimation.......................... 13 3.2 Model validation............................. 13 3.3 Cylinder volume............................. 15 3.4 Gas law.................................. 16 3.5 Volumetric efficiency.......................... 17 4 Reference model 19 4.1 Validation with fix valve timing.................... 19 4.2 Validation with variable valve timing................. 21 5 The extended models 25 5.1 Model 1 Dynamic IVC volume.................... 25 5.1.1 Modeling............................. 25 5.1.2 Result and discussion...................... 26 5.2 Model 2 Cam phase angle augmentation.............. 28 5.2.1 Modeling............................. 28 5.2.2 Result and discussion...................... 28 vii

viii Contents 5.3 Model 3 Dynamic IVC pressure................... 29 5.3.1 Modeling............................. 3 5.3.2 Result and discussion...................... 31 6 Model 4 Division into sub-models 33 6.1 Total mass trapped in cylinder at IVC................. 34 6.1.1 Assumptions........................... 34 6.1.2 Results.............................. 34 6.2 Mass flow during valve overlap.................... 36 6.2.1 Overlap factor.......................... 36 6.2.2 Assumptions and limitations................. 37 6.2.3 Results.............................. 37 6.3 Total mass trapped in cylinder at EVC................ 38 6.3.1 Assumptions........................... 38 6.3.2 Results.............................. 39 6.4 Results and discussion......................... 4 7 Discussion and conclusions 43 7.1 Sensitivity analysis........................... 43 7.2 Discussion................................ 44 7.3 Future work............................... 46 7.4 Conclusions............................... 46 Bibliography 49

Notation Abbrevation BDC CAD CI ECU EVC EVO IVC IVO OF SI TDC VVT Meaning Bottom dead center Crank angle degree Compression ignition Electronic control unit Exhaust valve closing Exhaust valve opening Inlet valve closing Inlet valve opening Overlap factor Spark ignition Top dead center Variable valve timing Symbol Description Unit α e Exhaust valve angle α i Inlet valve angle Volumetric efficiency η vol n c Number of cylinders N e Engine rotational speed rpm p em Exhaust manifold pressure Pa p im Intake manifold pressure Pa R spec,air Specific gas constant for air J/kgK R spec,burned Specific gas constant for burned gases J/kgK T em Exhaust manifold temperature K T im Intake manifold temperature K V c Clearance volume m 3 V d Displaced volume m 3 ix

1 Introduction Fuel consumption, emissions and performance largely depend on the amount of air in the engine cylinder. Measuring air mass flow into the cylinder directly is not cost effective and therefore accurate models are needed. To meet the increasingly strict emission legislations, high demands on fuel consumption and performance from customers, research on new technologies is an ongoing process. One of these technologies is called variable valve timing (VVT), which gives the opportunity to control the opening and closing of the inlet and exhaust valves. These valves control the amount of fresh air inducted into and the amount of gases expelled out of the engine cylinder, respectively. VVT gives the opportunity to have good performance at all operating points. Even higher demands on the air mass flow estimation is required with VVT to be able to control the valves accurately. The air mass in the cylinder must also be known to control the amount of fuel injected to get optimal combustion. The goal of this work is therefore to estimate the air mass that flows through the engine with VVT. 1.1 Problem formulation An accurate estimation of the engine air mass flow is vital to optimize engine operation with respect to emissions, fuel consumption and performance. The air mass flow into the cylinder is important for combustion and the mass flow out of the cylinder is important for after treatment. One example is to keep emissions within allowed limits (García-Nieto et al., 29). One way to increase the performance of the engine is with VVT of the inlet and exhaust valves (Gray, 1988). This makes it possible to control the amount of air mass in the cylinder. However, this will add two dimensions to the now existing methods for estimating the air mass flow, which are based on large lookup tables that grow exponentially with each additional variable. Therefore, the pur- 1

2 1 Introduction pose of this work is to estimate the air mass flow when VVT is present, as well as to reduce the model complexity. This will be done using grey-box models, combining physical insights with parameters learned from data. 1.2 Method Measurement data from the engine were provided by Scania CV AB. The approach was to first do a reference model that corresponds to the mapping used in the electronic control unit (ECU) today. Then expanded models were developed and validated. Finally another approach was used, where the estimation of the air mass flow was divided into sub-models. Each model derived in this work includes several unknown parameters, which were trained with data by solving a linear least-squares optimization problem. Cross-validation was used to validate the models and several methods, e.g. relative error, were used to validate the accuracy of each model. 1.3 Related work Most studies which estimate the air mass flow in an engine are done with fix cam phasing instead of VVT. Also, the studies regarding variable valve timing are often done on spark ignition (SI) engines instead of compression ignition (CI) engines, which is the engine used in this work. This is because there are higher benefits of variable valve timing on SI engines. In Wahlström and Eriksson (211), a mean-value model of a diesel engine is determined, with the purpose to describe the dynamics of the gas flow in the engine. The unknown parameters in their model are estimated using both stationary and dynamic measurements. The reference model in this work corresponds to the model that estimates the total mass flow in their work. Their article presents model derivation, estimation of the unknown parameters and model validation. One common method to estimate the cylinder mass is with the p-method introduced by Akimoto et al. (1989), using the in-cylinder pressure. This method takes two points from the compression stroke, which is later described in the fourstroke cycle, and relates the increase of the in-cylinder pressure between these points to the mass trapped in the cylinder. The sensor measuring in-cylinder pressure is however not provided in commercial engines. A study that has adopted the p-method is e.g. Desantes et al. (21), which estimates the air mass flow on a diesel engine with fix cam phasing. Gray (1988) has done a review of variable valve timing on gasoline and diesel engines. Benefits of the two engine types are presented and although the benefits of gasoline engines are higher, improvements on diesel engines can still be done with VVT. Both Thomasson et al. (218) and Leroy et al. (29) model the fresh air inducted into the cylinder by dividing the model into several terms. Also both works are done on engines with variable valve timing actuators. Thomasson et al. (218) use cylinder pressure to estimate cylinder charge in diesel engines with

1.4 Thesis outline 3 VVT. This is done by estimating different parts of the four-stroke cycle. This thesis has Thomasson et al. (218) as a basis when deriving the last model. The models in that article are validated on the same data from the same engine as in this thesis work. Therefore, the model in their work is used as a reference when validating the sub-models in this work. Leroy et al. (29) present a model for the fresh air that is inducted in the cylinder through the inlet valve of an SI engine with VVT. In this model, only sensors provided in commercial engines are used. The model is divided into three terms. The first term estimates the total mass in the cylinder, the second term models the mass flowing through the valves during overlap and the third term gives the amount of residual gases trapped in the cylinder from one four-stroke cycle to the next one. The analogy in Leroy et al. (29) is used in this work when modeling the air mass flow, by dividing it into three similar terms. In Stefanopoulou et al. (1998), a third order polynomial is used to model the air mass flow into the cylinder, which depend on valve angle actuators, intake manifold pressure and engine speed. Their work is done on an SI engine with dual equal valve cam timing. 1.4 Thesis outline The system is described in Chapter 2 together with an explanation and background to variable valve timing. The experimental setup is also presented in this chapter. Chapter 3 describes how the models will be validated. Physical descriptions required to derive models to estimate the air mass flow are presented. In Chapter 4, the reference model, corresponding to the model to estimate the air mass flow in use today will be presented. First, model validation with fix cam phasing is presented, followed by validation with VVT. In Chapter 5 three different models, all extensions of the reference model, are derived. Results and discussion for each model will also be presented in this chapter. Chapter 6 presents a new approach to estimate the air mass flow. This is based on three sub-models, each estimating different parts of the four-stroke cycle. The chapter includes derivation of each sub-model together with validation and discussion as well as results for the final model. Chapter 7 first presents a sensitivity analysis of how different input signals influence the quality of a model dependent on inlet valve closing. Then all models are discussed and finally suggestions on how to proceed in the future are presented.

2 System description This chapter gives an overview of the system used in this project. The system consists of the cylinders in a diesel engine, the intake and exhaust manifold together with actuators and sensors. First, a brief description of the different strokes of a diesel engine are presented. Then variable valve timing (VVT) is described. Finally, the experimental setup is presented. 2.1 The four-stroke diesel engine The diesel engine is a compression ignition (CI) engine and fuel is injected directly into the engine cylinder. The working process of a CI engine is well documented by Heywood (1988). The engine used in this project follows a four-stroke operating cycle, see Figure 2.1. Top dead center (TDC) and bottom dead center (BDC) are defined as the highest and lowest positions that the piston reaches, respectively. Therefore TDC and BDC corresponds to the smallest and largest cylinder volumes, respectively. When the piston is at TDC there is a small volume left in the cylinder, called the clearance volume, V c. The four-stroke operating cycle is described by (a) Intake stroke (TDC to BDC): When the inlet valve is open, air from the intake manifold flows into the cylinder as the piston moves from TDC down to BDC. (b) Compression stroke (BDC to TDC): Both valves are closed while the piston moves from BDC to TDC. This causes the air in the cylinder to compress, which results in high pressure and temperature inside the cylinder. (c) Expansion stroke (TDC to BDC): Right before the piston reaches TDC, diesel fuel is injected into the cylinder. Due to the heat the fuel ignites, which 5

6 2 System description causes a rapid increase of pressure and temperature. The gas is then expanded while pushing the piston down, from TDC to BDC. (d) Exhaust stroke (BDC to TDC): The exhaust valve opens and the gas is pushed out of the cylinder, and into the exhaust manifold, as the piston moves back to TDC and the exhaust valve closes. If all gases are not pushed out, the remaining part in the cylinder when the valve closes is called residual gases. The cycle is complete and the next cycle starts with the inlet valve opening once again. Figure 2.1: The four strokes of a four-stroke engine, image courtesy of Lars Eriksson (Eriksson and Nielsen, 214). The position of the piston is determined by the rotation of the crankshaft. The position of the crankshaft is defined using crank angle degrees (CAD), ranging between -36 and 36 degrees over one four stroke cycle, where degrees is TDC fire. 2.2 Variable valve timing One way to improve the engine performance is with variable valve timing (VVT). This gives freedom to control the amount of air mass and residual gases trapped in the cylinder. This affects for example emissions, fuel efficiency and output power. The valve timing is defined as the timing with respect to the crank angle at which the valves open and close, schematically shown in Figure 2.2. In the image, notation used for valve timing is inlet valve opening (IVO) and closing (IVC), and exhaust valve opening (EVO) and closing (EVC). With fix valve timing, a trade-off between performance at high and low loads must be done, as well as a trade-off between high and low engine speeds. Therefore, an optimization for different combinations of loads and engine speeds over a wide range can be done with VVT. This is done by the camshafts where one camshaft controls the inlet valves and one camshaft controls the exhaust valves. See Figure 2.3 for an overview of the camshaft, valves and crankshaft.

2.2 Variable valve timing 7 Figure 2.2: Valve timing diagram, where IVO and IVC are inlet valve opening and closing. EVO and EVC are exhaust valve opening and closing. There exist several forms of variable valve timing, were the form used in this project is called cam phasing. With cam phasing, the valves can open and close earlier or later due to forward or backward rotation of the camshaft relative to the crankshaft. However, in this project, only late opening and closing of the inlet valve and early opening and closing of the exhaust valve are possible. Also, in a cam phasing system, the lift and duration cannot be modified, i.e. the valve profiles will always look the same. For different operating points different camshaft positions, relative to the crankshaft position, gives optimum output for emissions, fuel efficiency or power. Figure 2.3: Overview of the camshaft, valves and crankshaft.

8 2 System description Valve overlap Valve overlap is when both intake and exhaust valves are open at the same time, i.e. IVO occurs before EVC, shown as the overlap period in Figure 2.2. When there is an overlap between EVC and IVO, what happens depends on the difference between the intake manifold pressure, p im, and the exhaust manifold pressure, p em. 1) p im >p em causes air from the intake manifold to push out residual gases to the exhaust manifold. Fresh air from the intake manifold is capable of flowing directly to the exhaust manifold, called scavenging. This results in less (or no) residual gases trapped in the cylinder to the next cycle. 2) p im <p em causes gases from the exhaust manifold to flow into the cylinder and push residual gases into the intake manifold. After the overlap, when the exhaust valve is closed, these residuals will flow back into the cylinder, which is called back-flow. This will lead to more residuals trapped in the cylinder. 2.3 Valve timing strategies The camshafts that operate the valves are dual independent, i.e. the inlet and exhaust camshafts can be rotated independently of each other in relation to the crankshaft. There are three strategies of valve timing that the models should be able to handle. Figure 2.4 shows the inlet and exhaust valve lifts for each case. The dashed lines correspond to the valve lift for an engine with cam phasers in the default position, also called pin position. Note that the lift profile is unchanged in height and duration, i.e. it is just shifted along the x-axis. (a) Valve overlap: This occurs when the inlet valve opens before the exhaust valve closes. Some characteristics for this is described in Section 2.2. The models must thus be able to estimate the mass that flows through the valves directly from intake to exhaust. The overlap can in the figure be seen by the intake valve opening slightly before 36 CAD and the exhaust valve closing slightly after -36 CAD. For this engine, valve overlap is the default setting. (b) Symmetric phasing: This is when the inlet and the exhaust valves are symmetrically shifted. This gives the opportunity to change how much fresh air gets trapped in the cylinder. Symmetric cam phasing includes late opening and closing of the inlet valve which gives less air in the cylinder since air is pushed back into the intake manifold due to that the compression stroke begins before the valve is closed. Since it is symmetric phasing, the exhaust valve has already closed early from the previous cycle, resulting in residual gases remaining in the cylinder when the inlet valve opens, causing even less inducted fresh air. (c) Early exhaust: Early opening and closing of the exhaust valve causes higher gas temperatures since the valve is open before the expansion stroke is complete. This also results in more residual gases trapped in the cylinder to

2.3 Valve timing strategies 9 the next cycle due to closing of the exhaust valve before all the residual gases are fully pushed out. When the intake valve opens exhaust gases are breathed out into the intake manifold. Intake Exhaust (def) -36-27 -18-9 9 18 27 36 (a) Valve overlap Intake Exhaust (def) -36-27 -18-9 9 18 27 36 (b) Symmetric phasing Intake Exhaust (def) -36-27 -18-9 9 18 27 36 (c) Early exhaust Figure 2.4: The plots show the inlet and exhaust valve lifts for the three valve timing strategies that the models should be able to handle.

1 2 System description 2.4 Experimental setup The engine used in this work is an inline 6-cylinder, 13 l, diesel engine with fuel injected directly into the cylinder. Data is collected from the engine in a test cell at Scania CV AB during steady-state conditions. The data comes from a wide range of operating points of different engine speeds, engine loads and valve angle positions. A schematic overview of the engine showing pressure and temperature sensor locations is shown in Figure 2.5. The measured signals of interest are rotational engine speed, N e, engine load, M, inlet- and exhaust valve angles, α i and α e, intake- and exhaust manifold temperatures, T im and T em, and crank angle resolved intake- and exhaust manifold pressures, p im and p em. The reason crank angle resolved pressure measurements are desired is that the pressure varies during the engine cycle. In the reference model, and other models in use today, the mean value of the pressure during one whole cycle is used. Pressure variations are due to pulsations caused by the opening and closing of the valves. The intake manifold temperature is given by the mean value of all six intake temperature sensors and with the mean value over one engine cycle. The exhaust manifold temperature is given by the mean value of all six exhaust temperature sensors and with the mean value over one engine cycle. A mass flow sensor is installed in the test cell to use as a reference, with over 99 % accuracy. The sensors implemented in the test engine but not provided in a commercial engine are the mass flow sensor and the exhaust manifold temperature sensors. Table 2.1 shows the symbols and units of the measured signals, including ranges of the controllable signals. Measurements have been used from Cylinder 6, which is placed furthest from the intake of fresh air. Crank Angle resolved p im Intake 6 5 4 3 2 1 Temperatures Exhaust Temperatures Crank Angle resolved p em Figure 2.5: A schematic overview of the engine with pressure and temperature sensor locations, adapted from Nikkar (217).

2.5 Assumptions 11 Table 2.1: Description of the measured signals of interest for this project with ranges of the controllable signals. Symbol Description Unit Range N e Rotational engine speed rpm 6 to 145 M Load Nm -5 to 25 α i Intake valve angle to 6 α e Exhaust valve angle -7 to P im (CAD) Intake manifold pressure Pa P em (CAD) Exhaust manifold pressure Pa T im Intake manifold temperature K T em Exhaust manifold temperature K 2.5 Assumptions Several assumptions have been made to facilitate the work in this project. Assumptions for specific models will be brought up in the corresponding section, but assumptions made for the whole system, regarding all models, will be presented here. As mentioned, the data is collected from an inline engine with six cylinders meaning that the six cylinders are mounted in a straight line, with Cylinder 1 closest to the fresh air intake and Cylinder 6 furthest away. The engine is not equipped with sensors for all cylinders and therefore the models are derived for one cylinder. The assumption is that the air mass flow is equally distributed in the cylinders.

3 Modeling In this chapter the parameter estimation method is briefly presented and the model validation process is described. The physical description required to derive a model to estimate the air mass flow will also be presented. 3.1 Parameter estimation Each model contains a set of unknown parameters which are estimated from data by solving a linear least-squares optimization problem. This minimizes the squared difference between the estimated and measured air mass flow. A limitation when using the linear least squares method is that the input signals are assumed to be free from error. Since the input signals come from sensors, this is not true. If the signals contain significant errors this approach might give inaccurate results. 3.2 Model validation To mitigate overfitting, cross-validation is used and the measurements are divided into estimation and validation data. The estimation data consists of 2/3 of the samples and were used when estimating the unknown parameters. The validation data consists of the remaining 1/3 part. The split is done using every third sample as validation data to get as much information as possible in both data sets. Every third sample was used, rather than random samples, since the measurements were done with varying engine speed and load. See Figure 3.1 for the variation in the engine speed and the split of estimation and validation data on all data. 13

14 3 Modeling 15 14 13 12 11 1 9 8 7 6 5 2 4 6 8 1 12 14 16 Figure 3.1: Engine speed divided in 2/3 to estimation data and 1/3 to validation data. The relative error (3.1) is one way to validate the model. Here y i is the measured air mass flow, ṁ air, in sample i and ŷ i is the estimated ṁ air. RE(i) = y i ŷ i y i (3.1) The air mass flow varies depending on the operating point, and this method of evaluation will give higher error on small air mass flows. However, it is important to know the error at each operating point since the estimation should be accurate everywhere. A second way to validate the models is with absolute error, given by AE(i) = y i ŷ i. (3.2) The reason for this is that for very small air mass flows, the relative error will be very high while the difference in air mass flow is in fact very low. This equation shows a more reasonable value in that case. The third way to validate the performance of each model is with normalized mean-square error (NMSE) and normalized root mean-square error (NRMSE). The model fit based on NMSE and NRMSE is given by NMSE model fit = 1 NRMSE model fit = 1 ( 1 ( 1 ) y ŷ 2 y ȳ 2 ) y ŷ y ȳ (3.3) (3.4) where indicates the L 2 -norm of a vector.

3.3 Cylinder volume 15 A model fit of 1 % corresponds to perfect fit, and % means that the model does not estimate the air mass flow better than a constant. If the model fit is negative, the model is worse at estimating the air mass flow than a constant. As mentioned before, 2/3 of the data is used as estimation data and 1/3 is used as validation data. This is illustrated in Figure 3.1, where every third sample is taken as validation data, giving 11 estimation data points and 56 validation data points. An evaluation has been done on taking the first, second or third sample as the starting point of the validation data. The difference in model quality when estimating the air mass flow using the different divisions has been marginal. 3.3 Cylinder volume In order to properly model the air mass flow, the displacement volume in the cylinder is needed. Figure 3.2 below shows the engine geometry over one cylinder and Table 3.1 explains the dimension parameters in the figure (Eriksson and Nielsen, 214). Figure 3.2: The geometry of an engine cylinder where B is bore, V c is the clearance volume, V d is the displacement volume and θ is the crank angle defined as when the piston is at TDC. Note that L = 2a.

16 3 Modeling Table 3.1: Engine parameters. Parameter B l a L θ V c V d Defined as Cylinder bore Connecting rod length Crank radius Piston stroke Crank angle Clearance volume Displaced volume The volume for each cylinder, V cyl, is given by V cyl = V c + V d, (3.5) where the clearance volume, V c, is constant and corresponds to the volume in the cylinder when the piston is at TDC and is the smallest cylinder volume. The displacement volume is given by where V d = πb2 (l + a s(θ)), (3.6) 4 s(θ) = a cos(θ) + l 2 a 2 sin 2 (θ). (3.7) The largest displacement volume is when θ = π and is then given by where L = 2a. V d,max = πb2 L, (3.8) 4 3.4 Gas law The ideal gas law states that pv = nrt, where p is pressure, V is volume, n is the amount of gaseous substance in moles, R is the ideal gas constant and T is temperature of the gas. With n = m M, (3.9) where m is mass and M is molar mass, the ideal gas law can be written as instead, where pv = m R M T (3.1)

3.5 Volumetric efficiency 17 R M = R spec (3.11) and R spec is the specific gas constant. This results in pv = mr spec T. (3.12) Assuming the same pressure and temperature in the intake manifold as in the cylinder, the total air mass in one cylinder is m a = p im V d R spec,air T im, (3.13) where m a is the air mass in the cylinder, p im is the intake manifold pressure, V d is the displaced volume, R spec,air is the specific gas constant for air and T im is intake manifold temperature. From this equation, a model to predict the theoretical air mass flow, ṁ a, is given by ṁ a = p imv d n c N e 12R spec,air T im, (3.14) where N e is engine speed and n c is number of cylinders. 12 originates from 2 6, were 2 represents that air intake occurs once every 2 revolutions for a four-stroke cycle and 6 to translate rpm to revolutions per second. 3.5 Volumetric efficiency A volumetric efficiency factor, denoted by η vol, is used to describe the ratio between the actual amount of air mass inducted to the cylinder during the intake stroke and the displaced volume V d. The volumetric efficiency is defined as η vol = 12ṁ airr spec,air T im p im N e V d n c, (3.15) where ṁ air is the actual air mass flow. The volumetric efficiency can be calculated using the air mass flow sensor, if measurements are done at steady-state over a wide operating range. With fix valve timing, measurements over a wide range of operating points shows that the volumetric efficiency is highly dependent on engine speed and inlet manifold pressure. This dependency appears to have a square root behavior, as discussed in Eriksson and Nielsen (214). This is valid when not including cam phasing, resulting in modeling η vol as η vol = c + c 1 pim + c 2 Ne, (3.16) where c, c 1 and c 2 are the unknown parameters. This approach, other black-box models, as well as physical models are described by Eriksson and Nielsen (214). However, when including VVT, the volumetric efficiency will depend on the cam phase angles as well.

4 Reference model Today at Scania, commercial vehicles have fix cam phasing and the air mass flow is estimated in the ECU using look-up tables, which is good enough in this case. However, with variable valve timing, the look-up tables do not take opening and closing of the inlet and exhaust valves into consideration. This chapter describes a reference model corresponding to these look-up tables. Results on how well this model estimates the air mass flow with fix valve timing as well as with variable valve timing will be presented. From (3.14) and (3.16) in Section 3.4 and 3.5 a parametric model p ṁ air = η im N e V d n c vol (4.1) 12R spec,air T im for the air mass flow in the cylinder was derived. Here V d is constant and calculated as in (3.8) with θ = π. The intake manifold pressure, p im is given as a mean value over one whole engine cycle. 4.1 Validation with fix valve timing This section shows how accurately the reference model estimates the air mass flow with fix valve timing. No measurements with fix valve timing, i.e. α i = α e =, are available, therefore only operating points with small valve angles are considered. The valve angles at each operating point can be seen in Figure 4.1. Angles are considered small if α i < 1 and α e > -1. Table 4.1 below shows the validation result for the reference model with the parameters c, c 1 and c 2 estimated when only small valve angles are considered and the model fit is good. The reference model has a very low mean absolute relative error and the largest absolute relative error is also very small. 19

2 4 Reference model 1 8 6 4 2-2 -4-6 -8-1 2 4 6 8 1 12 14 16 18 Figure 4.1: Valve angles in the validation data, only considering small angles. Table 4.1: Validation results for the reference model for small valve angles. Model fit NRMSE [%] fit NMSE [%] Mean RE [%] Max RE [%] Reference model 95.94 99.84 1.8 9.6 In Figure 4.2 a comparison between the reference model and measurements of the air mass flow on validation data for small valve angles can be seen. The lower right plot shows relative errors for the predicted air mass flow and note that the relative error axis is not centered around %. The relative error is negative if the measured air mass flow is lower than the predicted air mass flow and positive if the measured air mass flow higher than the predicted air mass flow. The reference model has a very low mean absolute relative error and can estimate the air mass flow well in each operating point.

4.2 Validation with variable valve timing 21.5.4.3.5.45.4.35.3.25.2.15.1.5 2 4 6 8 1 12 14 16 18.2.1.1.2.3.4.5 2-2 -4-6 -8-1.1.2.3.4.5 Figure 4.2: Results for the reference model on validation data for small valve angles. The left plot shows a comparison between the reference model output and measurements for each sample. The right top plot shows measured against predicted air mass flow. The bottom right plot shows the relative error for the reference model. 4.2 Validation with variable valve timing This section includes validation of the reference model on all validation data to show how accurately it predicts the air mass flow with variable valve timing. Figure 4.3 shows the valve angles in each operating point for the validation data. Sample 1 to 11 correspond to strategy (c) Early exhaust, sample 12 to 56 correspond to strategy (b) Symmetric phasing and sample 19 to 46 correspond to strategy (a) Valve overlap.

22 4 Reference model 6 4 2-2 -4-6 -8 1 2 3 4 5 6 Figure 4.3: Valve angles in the complete validation data set, where α i and α e are the inlet valve and the exhaust valve angles, respectively. Table 4.2 below shows the validation of the reference model with the parameters c, c 1 and c 2 estimated when valve angles are dual independent. The validation shows that the reference model has a poor model fit and the largest absolute value of the relative error is over 1 %. Table 4.2: Model validation results for the reference model when valve angles are dual independent. Validation Reference model Fit NRMSE [%] 78.83 Fit NMSE [%] 95.52 Mean RE [%] 25.73 Max RE [%] 139 Max positive AE [kg/s].422 Max negative AE [kg/s] -.521 Figure 4.4 shows a comparison between the reference model and measurements of the air mass flow on validation data. The lower right plot shows relative errors for the predicted air mass flow and note that the relative error axis is not centered around %. In the left plot in Figure 4.4, the predicted and measured air mass flow start to differ significantly in sample 12. If looking at Figure 4.3, from sample 11 to sample 12, the inlet valve angle has increased from 6 to 45. Here α i =45 corresponds to very late intake valve opening and closing, causing less fresh air in the cylinder, described in Section 2.3 as (b) Symmetric phasing. Together with early closing of the exhaust valve, trapping residuals in the cylinder, even less air flows into the cylinder. Therefore, the measured air mass flow is very low,

4.2 Validation with variable valve timing 23 while the estimated air mass flow does not change as much since no regard is taken to the cam phasing in the reference model. Sample 12 to 18 have the worst estimated air mass flow, which also can be seen in the lower, right plot, with a cluster with relative error between -86 % and -139 %..6.5.4.6.5.4.3.2.1 1 2 3 4 5 6.3.2.1.1.2.3.4.5.6 25-25 -5-75 -1-125 -15.1.2.3.4.5.6 Figure 4.4: Results for the reference model on validation data. The left plot shows a comparison between the reference model output and measurements for each sample. The right top plot shows measured against predicted air mass flow. The bottom right plot shows the relative error for the reference model. The relative error has an absolute value over 1 %, meaning that the difference between the measured and the estimated air mass flow is greater than the measured air mass flow. This is due to the very low measured air mass flow and much higher estimated air mass flow. If it was the other way around, the absolute value of the relative error would not exceed 1 %. When the predicted air mass flow is lower than the measured air mass flow this could be because of overlap. The air mass flow sensor registers all air mass, and some might flow directly from the intake manifold to the exhaust manifold, earlier referred to as scavenging. The results show that with variable valve timing better models to estimate the air mass flow are needed.

5 The extended models This chapter includes three models which are all extensions of the reference model. Each section in this chapter presents derivation of a model together with results and a discussion. 5.1 Model 1 Dynamic IVC volume In chapter 4 it was verified that the reference model estimates of the air mass flow are inaccurate when dual independent variable valve timing is present and therefore better models are needed. In this section a first model is derived to estimate the air mass flow more accurately than the reference model. Validation and a discussion of the results are presented. 5.1.1 Modeling First of all, the reference model includes the displaced volume, V d, in the cylinder as constant. This is true when the valve angles are fixed, because then the valves always open and close at the same points in the engine cycle. However, with VVT the volume in the cylinder, and therefore how much air that is inducted into the cylinder, depends on when the inlet valve is closing. Therefore, V d is replaced by V d,iv C which is the displaced volume at intake valve closing (IVC). Using the reference model from (4.1) with the substituted displaced volume, the model, which is referred to as Model 1, becomes ṁ air = p imn e V d,iv C n c 12R spec,air T im (c 1 + c 11 pim + c 21 Ne ). (5.1) Here, V d,iv C is calculated using (3.6) with θ = θ IV C + α i, where θ IV C is the default CAD at IVC for zero cam phasing. 25

26 5 The extended models Figure 5.1 shows the volume in the cylinder, according to (3.5) and (3.6), and the valve lift for the intake and exhaust valves during one engine cycle, here for an operating point with strategy (b) Symmetric phasing. The black circle in the upper plot shows which cylinder volume that corresponds to IVC. The figure shows how the cylinder volume changes during one engine cycle, and how the volume depends on when IVC occur. 3 2 1-36 -27-18 -9 9 18 27 36 15 1 5 Intake Exhaust (def) -36-27 -18-9 9 18 27 36 CAD Figure 5.1: The upper plot shows the cylinder volume, V cyl, during one cycle and the black circle corresponds to V cyl at IVC, from (3.5). The lower plot shows the intake and exhaust valve lift during one cycle. 5.1.2 Result and discussion Table 5.1 shows the validation results for Model 1 with the estimated parameters c 1, c 11 and c 21 in (5.1), when valve angles are dual independent. The model fit for Model 1 is better than the fit of the reference model. However, the absolute value of the relative error is still large. Table 5.1: Model 1 validation results when valve angles are dual independent. Validation Model 1 Fit NRMSE [%] 84.96 Fit NMSE [%] 97.74 Mean RE [%] 18.2 Max RE [%] 69.75 Max positive AE [kg/s].34 Max negative AE [kg/s] -.333

5.1 Model 1 Dynamic IVC volume 27 Figure 5.2 shows a comparison between Model 1 outputs and measurements of the air mass flow on validation data. The lower right plot shows relative errors for the predicted air mass flow. Again, note that the relative error axis is not centered around %..5.4.3.5.45.4.35.3.25.2.15.1.5 1 2 3 4 5 6.2.1.1.2.3.4.5 2-2 -4-6 -8.1.2.3.4.5 Figure 5.2: Results for Model 1 for dual independent valve angles on validation data. The left plot shows a comparison between the output from Model 1 and measurements for each sample. The right top plot shows measured against predicted air mass flow. The bottom right plot shows the relative error for Model 1. In the lower right plot, the cluster of the worst relative error, between -29 % and -7 %, corresponds to samples between 1 and 18 in the left plot. As can be seen in Figure 4.3, sample 1 to 11 correspond to strategy (c) and sample 12 to 18 correspond to (b), with large inlet and exhaust cam phase angles. The latter corresponds to very early opening and closing of the exhaust valve together with very late opening and closing of the inlet valve. As for the reference model, the poor estimation could depend on the residual gases remaining in the cylinder from early closing of the exhaust valve, causing less air to be inducted. The difference between strategy (b) and (c) is that for (c) exhausts are breathed out into the intake manifold causing fresh air together with exhaust gases to be drawn into the cylinder next cycle. Model 1 estimates the air mass flow better than the reference model but improvements are still needed since the maximum and mean relative errors are still too large. Also, it is important to estimate the air mass flow accurately for all three strategies, not only an overall good performance.

28 5 The extended models 5.2 Model 2 Cam phase angle augmentation Although Model 1 estimates the air mass flow better than the reference model it still has too poor performance for strategy (c) and large cam phase angles for strategy (b). Another model is made, called Model 2, which extends the reference model with the valve angles. This section includes the derivation of Model 2 together with model validation, results and discussion. 5.2.1 Modeling The volumetric efficiency, η vol, described in Section 3.5, only depends on intake manifold pressure, p im, and rotational engine speed, N e. With variable valve timing, η vol will also be dependent on the angles of the inlet valve, α i, and the exhaust valve, α e. Since the volumetric efficiency is a ratio between the amount of air mass that flows in through the inlet valve and the displaced volume, e.g. the amount of residuals trapped in the cylinder will have an effect. Therefore a second approach will include these angles according to ṁ air = p imn e V d n c 12R spec,air T im (c 2 + c 12 pim + c 22 Ne + c 32 α i + c 42 α e ) (5.2) Note that in this model, V d is constant, as in the reference model. This is to see how much the accuracy of the estimated air mass flow increases when only including the inlet and the exhaust valve angles. 5.2.2 Result and discussion The estimated parameters in Model 2 are c 2, c 12, c 22, c 32 and c 42 in (5.2). Table 5.2 shows the validation results for Model 2 when valve angles are dual independent. Model 2 has a good model fit and a low mean relative error. Table 5.2: Model 2 validation results when valve angles are dual independent. Validation Model 2 Fit NRMSE [%] 95.7 Fit NMSE [%] 99.76 Mean RE [%] 5.25 Max RE [%] 29.26 Max positive AE [kg/s].178 Max negative AE [kg/s] -.11 A comparison between Model 2 outputs and measurements of the air mass flow is shown in Figure 5.3. The lower right plot shows relative errors for the predicted air mass flow.

5.3 Model 3 Dynamic IVC pressure 29.5.4.3.5.45.4.35.2.1.1.2.3.4.5.3.25.2.15.1.5 1 2 3 4 5 6 1-1 -2-3.1.2.3.4.5 Figure 5.3: Results for Model 2 for dual independent valve angles on validation data. The left plot shows a comparison between the output from Model 2 and measurements for each sample. The right top plot shows measured against predicted air mass flow. The bottom right plot shows the relative error for Model 2. In the lower right plot, the cluster of the worst relative error, between approximately -14 % and -29 %, corresponds to samples between 12 and 18 in the left plot. Model 2 has difficulties to estimate the air mass flow in operating points with very large inlet and exhaust cam phase angles, corresponding to strategy (b) Symmetric phasing, as can be seen in Figure 4.3. Model 2 is however able to estimate the air mass flow for strategy (c), early opening and closing of the exhaust valve. 5.3 Model 3 Dynamic IVC pressure This section describes a third model, called Model 3, which is based on Model 1 and Model 2. The model includes the valve angles, like Model 2, as well as an inlet valve angle dependent cylinder volume, like Model 1. Model 3 also includes an intake manifold pressure dependent on inlet valve angles. The third model is derived because physical insight implies that VVT has a larger effect on the air mass flow than previously captured by the models. Model derivation, validation and discussion are presented.

3 5 The extended models 5.3.1 Modeling The pressure in the intake manifold changes over one four-stroke cycle due to pulsations caused by opening and closing of the valves. These pulsations are dependent on for example the engine speed. When variable valve timing is included, these pulsations vary even more, depending on the valve angles. Therefore the mean intake manifold pressure, p im, which is a mean value of one whole cycle, has been replaced by a mean value over a small interval around IVC in Model 3. In Figure 5.4, the lower plot shows the pressure pulsations over one cycle and the black circle corresponds to the pressure in the intake manifold at IVC. 3 2 1-36 -27-18 -9 9 18 27 36 15 1 5 Intake Exhaust (def) -36-27 -18-9 9 18 27 36 CAD 1.1 1.5 1.95-36 -27-18 -9 9 18 27 36 Figure 5.4: The upper plot shows the cylinder volume, V cyl, during one cycle and the black circle corresponds to V cyl at IVC. The middle plot shows the intake and exhaust valve lift during one cycle. The black circle in the lower plot corresponds to the pressure in the intake manifold at IVC. Model 3 is defined by ṁ air = p im,iv CN e V d,iv C n c 12R spec,air T im (c 3 + c 13 pim,iv C + c 23 Ne + c 33 α i + c 43 α e ), (5.3) where p im,iv C and V d,iv C are the intake manifold pressure and the displaced volume at inlet valve closing, respectively.

5.3 Model 3 Dynamic IVC pressure 31 5.3.2 Result and discussion The estimated parameters in Model 3 are c 3, c 13, c 23, c 33 and c 43 in (5.3). Table 5.3 shows the validation results for Model 3 when valve angles are dual independent. The model fit is good and the mean relative error is quite small. Table 5.3: Model 3 validation results when valve angles are dual independent. Validation Model 3 Fit NRMSE [%] 94.41 Fit NMSE [%] 99.69 Mean RE [%] 6.38 Max RE [%] 35.28 Max positive AE [kg/s].184 Max negative AE [kg/s] -.136 Figure 5.5 shows a comparison between Model 3 outputs and measurements of the air mass flow. The lower right plot shows relative errors for the predicted air mass flow..5.4.3.5.45.4.35.3.25.2.15.1.5 1 2 3 4 5 6.2.1.1.2.3.4.5 1-1 -2-3 -4.1.2.3.4.5 Figure 5.5: Results for Model 3 for dual independent valve angles on validation data. The left plot shows a comparison between the output from Model 3 and measurements for each sample. The right top plot shows measured against predicted air mass flow. The bottom right plot shows the relative error for Model 3.

32 5 The extended models In the lower right plot, the cluster of the worst relative error, between -18 % and -35 %, corresponds to samples between 12 and 18 in the left plot. This model should be able to estimate the air mass flow better than Model 2, due to taking both the intake manifold pressure as well as the displaced volume at IVC. However, the model fit is slightly worse for Model 3 than for Model 2, even though it is marginal.

6 Model 4 Division into sub-models Another approach to estimate the air mass flow, also studied by both Leroy et al. (29) and by Thomasson et al. (218), is to divide the estimation of the air mass flow into several parts, each predicting different parts of the four-stroke cycle. Leroy et al. (29) use physical models together with parameter estimation to model in-cylinder air mass on a spark ignition engine with only commercial sensors. Thomasson et al. (218) use physical models together with in-cylinder pressure which is measured with a sensor not provided in commercial engines. The approach studied in Thomasson et al. (218) is used as a reference to validate the three sub-models derived in this work and is referred to when mentioning a reference in Section 6.1 to Section 6.3. By following the principles in Thomasson et al. (218), the air mass flow estimation is divided into three terms. The first term models the total mass trapped in the cylinder at IVC. The second term describes the mass that flows through the valves during the valve overlap. The third term estimates the total mass trapped in the cylinder at EVC. These three terms together describe the air mass in one cylinder as m air = m IV C + m ol m EV C, (6.1) where the direction of m ol is defined positive if the mass flows from the intake manifold to the exhaust manifold and negative if flowing from the exhaust manifold to the intake manifold. The division is partly done because the inlet and exhaust cam phase angles should still affect the air mass flow more than previously modeled, i.e. more than intake manifold pressure and displaced volume. Another benefit is in knowing each of these masses individually. The mass trapped in the cylinder at IVC, m IV C, influences combustion and engine out emissions. The masses m EV C and m ol together give the amount of residual gases that remain in the cylinder from the 33