Mapped SI Engine
Sparkignition engine model using lookup tables
 Library:
Powertrain Blockset / Propulsion / Combustion Engines
Vehicle Dynamics Blockset / Powertrain / Propulsion
Description
The Mapped SI Engine block implements a mapped sparkignition (SI) engine model using power, air mass flow, fuel flow, exhaust temperature, efficiency, and emission performance lookup tables. You can use the block for:
Hardwareintheloop (HIL) engine control design
Vehiclelevel fuel economy and performance simulations
The block enables you to specify lookup tables for these engine characteristics. The lookup tables, developed with the ModelBased Calibration Toolbox™, are functions of commanded torque, T_{cmd}, brake torque, T_{brake}, and engine speed, N. If you select Input engine temperature, the tables are also a function of engine temperature, Temp_{Eng}.
Table  Input Engine Temperature Parameter Setting  

off  on  
Power  ƒ(T_{cmd},N)  ƒ(T_{cmd},N,Temp_{Eng}) 
Air  ƒ(T_{brake},N)  ƒ(T_{brake},N,Temp_{Eng}) 
Fuel  
Temperature  
Efficiency  
HC  
CO  
NOx  
CO2  
PM 
To bound the Mapped SI Engine block output, the block does not extrapolate the lookup table data.
Virtual Calibration
If you have ModelBased Calibration Toolbox, click Calibrate Maps to virtually calibrate the 2D lookup tables using measured data. The dialog box steps through these tasks.
Task  Description  

Import firing data  Import this loss data from a file. For example, open
For more information, see Using Data (ModelBased Calibration Toolbox).
Collect firing data at steadystate operating conditions when injectors deliver the fuel. Data should cover the engine speed and torque operating range. ModelBased Calibration Toolbox uses the firing data boundary as the maximum torque. To filter or edit the data, select Edit in Application. The ModelBased Calibration Toolbox Data Editor opens.  
Import nonfiring data  Import this nonfiring data from a file. For example, open
Collect nonfiring (motoring) data at steadystate operating conditions when fuel is cut off. All nonfiring torque points must be less than zero. Nonfiring data is a function of engine speed only.  
Generate response models  For both firing and nonfiring data, the ModelBased Calibration Toolbox uses test plans to fit data to Gaussian process models (GPMs). To assess or adjust the response model fit, select Edit in Application. The ModelBased Calibration Toolbox Model Browser opens. For more information, see Model Assessment (ModelBased Calibration Toolbox).  
Generate calibration  ModelBased Calibration Toolbox calibrates the firing and nonfiring response models and generates calibrated tables. To assess or adjust the calibration, select Edit in Application. The ModelBased Calibration Toolbox CAGE Browser opens. For more information, see Calibration Lookup Tables (ModelBased Calibration Toolbox).  
Update block parameters  Update the block lookup table and breakpoint parameters with the calibration. 
Cylinder Air Mass
The block calculates the normalized cylinder air mass using these equations.
$$\begin{array}{l}{M}_{Nom}=\frac{{P}_{std}{V}_{d}}{{N}_{cyl}{R}_{air}{T}_{std}}\\ L=\frac{\left(\frac{60s}{min}\right)Cps\cdot {\dot{m}}_{air}}{\left(\frac{1000g}{Kg}\right){N}_{cyl}\cdot N\cdot {M}_{Nom}}\end{array}$$
The equations use these variables.
L  Normalized cylinder air mass 
${M}_{Nom}$  Nominal engine cylinder air mass at standard temperature and pressure, piston at bottom dead center (BDC) maximum volume, in kg 
$$Cps$$  Crankshaft revolutions per power stroke, rev/stroke 
${P}_{std}$  Standard pressure 
${T}_{std}$  Standard temperature 
${R}_{air}$  Ideal gas constant for air and burned gas mixture 
${V}_{d}$  Displaced volume 
${N}_{cyl}$  Number of engine cylinders 
N  Engine speed 
${\dot{m}}_{intk}$  Engine air mass flow, in g/s 
Turbocharger Lag
To model turbocharger lag, select Include turbocharger lag effect. During throttle control, the time constant models the manifold filling and emptying dynamics. When the torque request requires a turbocharger boost, the block uses a larger time constant to represent the turbocharger lag. The block uses these equations.
Dynamic torque 
$$\frac{d{T}_{brake}}{dt}=\frac{1}{{\tau}_{eng}}({T}_{stdy}{T}_{brake})$$

Boost time constant 
$${\tau}_{bst}=\{\begin{array}{c}{\tau}_{bst,rising}\text{when}{T}_{stdy}{T}_{brake}\\ {\tau}_{bst,falling}\text{when}{T}_{stdy}\le {T}_{brake}\end{array}$$

Final time constant 
$${\tau}_{eng}=\{\begin{array}{c}{\tau}_{thr}\text{when}{T}_{brake}{f}_{bst}(N)\\ {\tau}_{bst}\text{when}{T}_{brake}\ge {f}_{bst}(N)\end{array}$$

The equations use these variables.
T_{brake} 
Brake torque 
T_{stdy}  Steadystate target torque 
τ_{bst} 
Boost time constant 
τ_{bst,rising}, τ_{bst,falling} 
Boost rising and falling time constant, respectively 
τ_{eng} 
Final time constant 
τ_{thr}  Time constant during throttle control 
ƒ_{bst}(N)  Boost torque speed line 
N  Engine speed 
Fuel Flow
To calculate the fuel economy for highfidelity models, the block uses the volumetric fuel flow.
$${Q}_{fuel}=\frac{{\dot{m}}_{fuel}}{\left(\frac{1000kg}{{m}^{3}}\right)S{g}_{fuel}}$$
The equation uses these variables.
$${\dot{m}}_{fuel}$$  Fuel mass flow 
Sg_{fuel}  Specific gravity of fuel 
Q_{fuel}  Volumetric fuel flow 
Power Accounting
For the power accounting, the block implements these equations.
Bus Signal  Description  Equations  



 Crankshaft power  ${\tau}_{eng}\omega $ 

 Fuel input power  ${\dot{m}}_{fuel}LHV$  
 Power loss  ${\tau}_{eng}\omega {\dot{m}}_{fuel}LHV$  
 Not used 
The equations use these variables.
LHV  Fuel lower heating value 
ω  Engine speed, rad/s 
$${\dot{m}}_{fuel}$$  Fuel mass flow 
τ_{eng}  Fuel mass per injection time constant 
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2017a