Compressor for boosted engines
Powertrain Blockset / Propulsion / Combustion Engine Components / Boost
The Compressor block simulates engine boost by using the drive shaft energy to increase the intake manifold pressure. The block is a component of supercharger and turbocharger models. The block uses twoway ports to connect to the inlet and outlet control volumes and the drive shaft. The control volumes provide the pressure, temperature, and specific enthalpy for the compressor to calculate the mass and energy flow rates. To calculate the torque and flow rates, the drive shaft provides the speed to the compressor. Typically, compressor manufacturers provide the mass flow rate and efficiency tables as a function of corrected speed and pressure ratio. You can specify the lookup tables to calculate the mass flow rate and efficiency. The block does not support reverse mass flow.
If you have ModelBased Calibration Toolbox™, click Calibrate Performance Maps to virtually calibrate the mass flow rate and turbine efficiency lookup tables using measured data.
The mass flows from the inlet control volume to the outlet control volume.
If you have ModelBased Calibration Toolbox, click Calibrate Performance Maps to virtually calibrate the mass flow rate and turbine efficiency lookup tables using measured data. The dialog box steps through these tasks.
Task  Description  

Import compressor data  Import this compressor data from a file. For more information, see Using Data (ModelBased Calibration Toolbox).
ModelBased Calibration Toolbox limits the speed and pressure ratio breakpoint values to the maximum values in the file. To filter or edit the data, select Edit in Application. The ModelBased Calibration Toolbox Data Editor opens.  
Generate response models  ModelBased Calibration Toolbox fits the imported data to the response models.
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 response model 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 Tables (ModelBased Calibration Toolbox).  
Update block parameters  Update these mass flow rate and efficiency parameters with the calibration.

The block uses these equations to model the thermodynamics.
Calculation  Equations 

Forward mass flow  ${\dot{m}}_{comp}>0$ ${p}_{01}={p}_{inlet}$ ${p}_{02}={p}_{outlet}$ ${T}_{01}={T}_{inlet}$ ${h}_{01}={h}_{inlet}$ 
First law of thermodynamics  ${\dot{W}}_{comp}={\dot{m}}_{comp}{c}_{p}\left({T}_{01}{T}_{02}\right)$ 
Isentropic efficiency  ${\eta}_{comp}=\frac{{h}_{02s}{h}_{01}}{{h}_{02}{h}_{01}}=\frac{{T}_{02s}{T}_{01}}{{T}_{02}{T}_{01}}$ 
Isentropic outlet temperature, assuming ideal gas and constant specific heats  ${T}_{02s}={T}_{01}{\left(\frac{{p}_{02}}{{p}_{01}}\right)}^{\frac{\gamma 1}{\gamma}}$ 
Specific heat ratio  $\gamma =\frac{{c}_{p}}{{c}_{p}R}$ 
Outlet temperature  ${T}_{02}={T}_{01}+\frac{{T}_{01}}{{\eta}_{comb}}\left\{{\left(\frac{{p}_{02}}{{p}_{01}}\right)}^{\frac{\gamma 1}{\gamma}}1\right\}$ 
Heat flows  ${q}_{inlet}={\dot{m}}_{comp}{h}_{01}$ ${q}_{outlet}={\dot{m}}_{comp}{h}_{02}={\dot{m}}_{comp}{c}_{p}{T}_{02}$ 
Corrected mass flow rate  ${\dot{m}}_{corr}={\dot{m}}_{comp}\frac{\sqrt{{T}_{01}/{T}_{ref}}}{{p}_{01}/{p}_{ref}}$ 
Corrected speed  ${\omega}_{corr}=\frac{\omega}{\sqrt{{T}_{01}/{T}_{ref}}}$ 
Pressure ratio  ${p}_{r}=\frac{{p}_{01}}{{p}_{02}}$ 
The equations use these variables.
${p}_{\text{inlet}}$, ${p}_{01}$  Inlet control volume total pressure 
${T}_{inlet}$, ${T}_{01}$  Inlet control volume total temperature 
${h}_{inlet}$, ${h}_{01}$  Inlet control volume total specific enthalpy 
${p}_{outlet}$, ${p}_{02}$  Outlet control volume total pressure 
${T}_{outlet}$  Outlet control volume total temperature 
${h}_{outlet}$  Outlet control volume total specific enthalpy 
${\dot{W}}_{comp}$  Drive shaft power 
${T}_{02}$  Outlet total temperature 
${h}_{02}$  Outlet total specific enthalpy 
${\dot{m}}_{comp}$  Mass flow rate through compressor 
${q}_{inlet}$  Inlet heat flow rate 
${q}_{outlet}$  Outlet heat flow rate 
${\eta}_{comp}$  Compressor isentropic efficiency 
${T}_{02s}$  Isentropic outlet total temperature 
${h}_{02s}$  Isentropic outlet total specific enthalpy 
$R$  Ideal gas constant 
${c}_{p}$  Specific heat at constant pressure 
$\gamma $  Specific heat ratio 
${\dot{m}}_{corr}$  Corrected mass flow rate 
$\omega $  Drive shaft speed 
${\omega}_{corr}$  Corrected drive shaft speed 
${T}_{ref}$  Lookup table reference temperature 
${P}_{ref}$  Lookup table reference pressure 
${\tau}_{comp}$  Compressor drive shaft torque 
${p}_{r}$  Pressure ratio 
${\eta}_{comb,tbl}$  Compressor efficiency 3D lookup table 
${\dot{m}}_{corr,tbl}$  Corrected mass flow rate 3D lookup table 
${\omega}_{corr,bpts1}$  Corrected speed breakpoints 
${p}_{r,bpts2}$  Pressure ratio breakpoints 
For the power accounting, the block implements these equations.
Bus Signal  Description  Equations  


 PwrDriveshft  Power transmitted from the shaft  ${\dot{W}}_{turb}$ 
 Heat flow rate at port A  ${q}_{outlet}$  
PwrHeatFlwOut  Heat flow rate at port B  ${q}_{outlet}$  
 PwrLoss  Power loss  ${q}_{inlet}{q}_{outlet}+{\dot{W}}_{turb}$  
 Not used 
The equations use these variables.
${\dot{W}}_{turb}$  Drive shaft power 
${q}_{outlet}$  Total outlet heat flow rate 
${q}_{inlet}$  Total inlet heat flow rate 
[1] Heywood, John B. Internal Combustion Engine Fundamentals. New York: McGrawHill, 1988.
[2] Eriksson, Lars and Lars Nielsen. Modeling and Control of Engines and Drivelines. Chichester, West Sussex, United Kingdom: John Wiley & Sons Ltd, 2014.