Are you ready to talk?

Using Dymola for the modelling of fluid machinery: the example of a turbocharger

Table of contents

Whilst historically turbochargers were mainly used in engines with high top-end performance, nowadays they are also used as part of the engine downsizing process. Along with other technologies and devices, turbochargers can help automotive manufacturers to build more efficient engines and thus cope with ever more stringent emissions regulations. Being able to model a turbocharger in a physical and reliable way is of paramount importance in predicting the flow through the intake and exhaust systems of the engine.

In this blog post we will see how we can use Dymola for the modelling of fluid turbomachinery using the practical example of a turbocharger.

Let's consider the three main components of the turbocharger:

  1. The compressor
  2. The turbine
  3. The turbocharger shaft
Turbocharger model in Dymola showing compressor, turbine and shaft components

Figure 1: Turbocharger model in Dymola: compressor (1), turbine (2) and shaft (3).

1. Compressor

The compressor can be modelled in Dymola using the compressor map provided by the manufacturer:

Centrifugal compressor map showing pressure ratio versus mass flow rate

Figure 2: Compressor map.

The compressor map shows the relationship between the total pressure ratio and the air mass flow rate through the compressor for different operating speeds. The x axis is usually a function of the actual mass flow rate in corrected or non-dimensional form and each curve relates to a particular corrected or non-dimensional rotational speed.

Figure 2 shows a compressor map with corrected variables. In this case, the relationship between the corrected mass flow rate and speed and the actual ones is:

Equations showing corrected mass flow rate and speed variables for compressor modelling in Dymola

Where the superscript degrees stands for total conditions, the subscript in stands for inlet conditions and the subscript ref stands for reference conditions (provided with the map).

The compressor model can be implemented in Dymola as a flow model in which the boundary conditions are the inlet and outlet pressures and the inlet temperature (for a definition of flow model please refer to a previous blog post on fluid components). The inlet pressure corresponds to the pressure after the air filter, while the outlet pressure corresponds to the intercooler inlet pressure (see figure 3). The compressor model sets the mass flow rate from the momentum balance, according to the compressor characteristics in the compressor map.

Turbocharged engine model in Dymola showing intake and exhaust system layout

Figure 3: Turbocharged engine model in Dymola.

The data from the manufacturer is often in the form of tables as the ones in Figure 4:

Typical table format for compressor manufacturer data used in Dymola modelling

Figure 4: Typical format for the compressor manufacturer data.

It is possible to directly use the data from the manufacturer in the Dymola model, performing an interpolation from the look-up table. However, it is good practice in dynamic simulations to avoid repeated interpolations so as to not compromise the model robustness.

An efficient approach is to use an equation within the Dymola model that represents the set of curves of the compressor characteristics. More specifically, the compressor characteristics can be described as a set of ellipses in the form:

Ellipse equation used to describe compressor characteristics in Dymola

Where a, b and z are functions of the corrected or non dimensional speed n:

Compressor parameter equations for a, b and z as functions of corrected speed in Dymola

Following this approach, the corrected mass flow rate of Figure 2 can be defined as:

Equation defining corrected mass flow rate using ellipse compressor characteristics in Dymola

Where PR stands for total pressure ratio:

Total pressure ratio equation for compressor modelling in Dymola

where the subscript out stands for outlet conditions.

Then, the actual mass flow rate flowing through the compressor can be calculated using equation 1.

The parameters a and b in equation 3 represent the intersection points of the compressor characteristics with the axes x and y. The parameter z defines the profile of the curves, as described in figure 5:

Influence of parameter z on the set of compressor characteristic curves in Dymola

Figure 5: Influence of the parameter z in the set of curves.

Using equation 3, is possible to define the set of compressor characteristics with a relatively high level of accuracy, as shown in figure 6:

Centrifugal compressor map comparing manufacturer data with ellipse equation curves in Dymola

Figure 6: Solid lines: manufacturer data, dashed lines: curves from equation 3.

As far as the energy balance is concerned, the isentropic enthalpy change can be calculated using equation 4:

Isentropic enthalpy change equation for compressor energy balance in Dymola

The power transmitted to the fluid is then:

Power transmitted to fluid equation for compressor modelling in Dymola

Which in Dymola translates in:

// Energy balance:
port_a.h_outflow = inStream(port_b.h_outflow);
port_b.h_outflow = inStream(port_a.h_outflow) - dh_isentropic*eta_isentropic;

2. Turbine

The turbine can be modelled in Dymola in a similar way to the compressor, starting from the turbine map.

Radial flow turbine map showing mass flow rate versus pressure ratio for turbocharger modelling in Dymola

Figure 7: Turbine map.

In the same way as for the compressor, the turbine characteristics can be approximated using an ellipse in the form:

Ellipse equation used to approximate turbine characteristics in Dymola

In particular, the turbine behaviour can be expressed with the following set of equations:

Turbine characteristic equations for Dymola turbocharger model

where x0 is the x coordinate of the ellipse centre and PR is defined as:

Pressure ratio equation for turbine modelling in Dymola

Equation 5 allows the definition of the turbine characteristics with a relatively high level of fidelity, as shown in figure 8:

Radial flow turbine characteristics comparing manufacturer data with ellipse equation curves in Dymola

Figure 8: Solid lines: manufacturer data, dashed blue line: curve from equation 5, dashed grey line: ellipse curve for PR>X0.

In this example, the turbine map uses the non-dimensional variables:

Non-dimensional variable equations for turbine map used in Dymola turbocharger modelling

As far as the energy balance is concerned:

Isentropic enthalpy change equation for turbine energy balance in Dymola

The power extracted from the fluid is then:

Power extracted from fluid equation for turbine modelling in Dymola
// Energy balance:
port_a.h_outflow = inStream(port_b.h_outflow);
port_b.h_outflow = inStream(port_a.h_outflow) - dh_isentropic*eta_isentropic;

Both turbine and compressor models need to include a volume, representing the volume of fluid within the components. This volume is very important from a simulation point of view, as it influences the amplitude of the pressure and mass flow rate oscillations.

Compressor and turbine then need to be connected through a shaft with a specific inertia and friction, as shown in figure 1.

Let's test the turbocharger in a I4 SI TC 1800cc Crank-Angle Resolved engine model:

I4 SI TC 1800cc engine test rig model in Dymola

Figure 9: I4 SI TC 1800cc engine test rig.

When running the engine at constant speed (2000 rpm) and wide open throttle, the resulting mass flow rates and pressure ratios in the turbocharger are:

Compressor and turbine mass flow rates and pressure ratio results for I4 CAREM engine in Dymola

Figure 10: Compressor and turbine mass flow rates and pressure ratio in a I4 CAREM.

Figure 11 shows the effect of the volume size on the amplitude of the oscillations:

Amplitude of mass flow rate oscillations for different intake and exhaust plenum volumes in Dymola

Figure 11: Amplitude of mass flow rate oscillations for different intake and exhaust plenum volumes.

All the Dymola models used for this blog post are from the VeSyMA-Engines library developed by Claytex. Please do not hesitate to contact sales@claytex.com for more information.

Please get in touch if you have any questions or have got a topic in mind that you would like us to write about. You can submit your questions / topics via: Tech Blog Questions / Topic Suggestion

Need to talk to an expert?

Our engineering teams are on hand to provide tailored guidance and support with a deep knowledge of the full Dassault Systèmes portfolio.

Want to receive more content like this?

Sign up to receive a weekly roundup of Expert insights as they are published...

  • Related news & articles straight to your inbox
  • Hints, tips & how-tos
  • Thought leadership articles