1 Introduction

Nowadays the longitudinal train dynamics is almost totally controlled by onboard subsystems, such as Wheel Slide Protection (WSP) braking devices. The study and the development of these systems are fundamental for the vehicle safety, especially at high speeds and under degraded adhesion conditions. On-track tests are currently quite expensive in terms of infrastructure and vehicle management. Consequently, to reduce these costs, full-scale roller-rigs are traditionally employed to investigate the performances of braking subsystems [15]. However, in the presence of degraded adhesion, the use of roller-rigs is still limited to few applications (see, for example, full-scale roller-rigs for the study of the wear [6], HIL systems for WSP tests [7] and full-scale roller-rigs for locomotive tests [7, 8]) because the high slidings between rollers and wheelsets produce wear of the rolling surfaces. This circumstance is very dangerous and not acceptable: the flange wear can lead to the vehicle derailment while the tread wear can produce hunting instability of the vehicle. Furthermore, the wheel flats may generate unsafe vibrations of the vehicle on the roller-rig. Finally, the wear of the rolling surfaces deeply affects the maintenance costs: the rollers have to be frequently turned or substituted.

On the other hand, few applications making use of scaled roller-rigs can be found in the literature. In this regard, interesting HIL systems to study railway traction and braking onboard subsystems have been developed during the last years by the Polytechnic of Turin and Central Queensland University [912].

In this work an innovative Hardware In the Loop (HIL) architecture to test braking onboard subsystems on full-scale roller-rigs is presented by the authors. The new strategy allows reproducing on the roller-rig a generic wheel–rail adhesion pattern and, in particular, degraded adhesion conditions (characterised by adhesion coefficient values equal or less than 0.10). More in detail, the new control architecture performs a simulation of mechanical impedance: the roller motors are controlled to recreate, on the wheelsets, the same angular velocities, applied torques and tangential efforts calculated by the model of a reference virtual railway vehicle moving on the real track under degraded adhesion conditions. The new architecture allows the achievement of this goal by only controlling the roller motors and without having sliding between wheelsets and rollers (and consequently without wear of the contact surfaces). In fact, since the real adhesion coefficient between the rollers and wheelsets surfaces is far higher than the simulated one (greater than 0.40), negligible sliding occurs and almost pure rolling conditions are always present between them.

At this initial phase of the research activity, the described strategy has been completely simulated in the Matlab-Simulink environment [13] through an accurate multibody model of the whole HIL architecture. The system model comprises an innovative contact model to describe the wheel–roller interaction and is developed according to the real characteristics provided by Trenitalia. The proposed approach has been preliminarily validated through a comparison with the experimental data provided by Trenitalia and relative to on-track tests performed on a straight railway track (in Velim, Czech Republic) with a UIC-Z1 coach equipped with a fully-working WSP system [1416]. This initial validation carried out through the HIL model highlights the good performance of the HIL strategy in reproducing on the roller-rig the complex interaction between degraded adhesion conditions and railway vehicle dynamics during the braking manoeuvre.

2 General architecture of the HIL system

In this section the architecture of the Firenze-Osmannoro HIL system is briefly described. Figure 1 schematically shows the main parts of the architecture (both for the hardware and the software components). The models used to simulate all these parts will be better explained in Sect. 3.

Fig. 1
figure 1

General architecture of the HIL system

The architecture comprises four main elements:

1. The test-rig (hardware) composed of two main parts: the UIC-Z1 railway vehicle (equipped with the WSP system) [14, 15] and the Firenze-Osmannoro roller-rig (with the innovative actuation system developed in collaboration with SICME and based on IPM synchronous motor with high performance) [17, 18]. The inputs of the test-rig are the roller control torques while the outputs are the longitudinal reaction forces measured on the roller supports and the measured angular velocities of the rollers;

2. The virtual railway vehicle model (software) representing the model used to simulate the vehicle behaviour on the rails under different adhesion conditions and designed for a real-time implementation. This 2D multibody model simulates the longitudinal dynamics of the vehicle while an innovative 2D adhesion model [19] permits an accurate reproduction of the real behaviour of the adhesion coefficient during braking phases under degraded adhesion conditions. The inputs are the estimated torques on the wheelsets and the outputs are the simulated wheelset angular velocities and the tangential contact forces on the wheelsets;

3. The controllers (software) reproduce on the roller-rig the same dynamical behaviour of the virtual train model (through the roller control torques) in terms of wheelset angular velocities, applied torques and, consequently, tangential forces. Due to the HIL system nonlinearities, a sliding mode approach has been adopted for the controllers [20, 21];

4. The torque estimators (software) – the data measured by the sensors installed on the roller-rig are only the roller angular velocities and the longitudinal reaction forces on the roller supports. No sensors will be placed on the vehicle to speed up the set up process. Starting from these quantities, this block estimates the torques applied on the wheelsets.

3 Modelling of the Firenze-Osmannoro HIL system

In this section the models of the HIL system presented in the previous section (both hardware and software parts) and of all the components of the HIL architecture will be explained in detail. The flow of the data among the model parts is shown in Fig. 2.

Fig. 2
figure 2

Interactions among the models of the various HIL architecture components

3.1 The test-rig model

The inputs of the whole test-rig model are the 8 roller control torques \(u^{l}\), \(u^{r}\) (left and right) evaluated by the controllers to reproduce on the test-rig the same dynamical behaviour of the virtual railway model. The outputs are the 8 roller angular velocities \(\omega_{r}^{l}\), \(\omega_{r}^{r}\) and the longitudinal reaction forces \(T_{\mathrm{mis}}^{l}\), \(T_{\mathrm{mis}}^{r}\) measured on the roller supports. The test-rig model is composed of four parts (Fig. 2):

3.1.1 The vehicle model

The considered railway vehicle is the UIC-Z1 wagon (illustrated in Figs. 3 and 4); its geometrical and physical characteristics are provided by Trenitalia S.p.A. [14].

Fig. 3
figure 3

The UIC-Z1 wagon

Fig. 4
figure 4

Multibody vehicle model

The wagon is composed of one carbody, two bogie frames, eight axleboxes and four wheelsets. The primary suspension, including springs, dampers and axlebox bushings, connects the bogie frame to the four axleboxes while the secondary suspension, including springs, dampers, lateral bump-stops, anti-roll bar and traction rod, connects the carbody to the bogie frames (see Fig. 5). In Table 1, the main properties of the railway vehicle are given. The multibody vehicle model takes into account all the degrees of freedom (DOFs) of the system bodies (one carbody, two bogie frames, eight axleboxes, and four wheelsets). Considering the kinematic constraints that link the axleboxes and the wheelsets (cylindrical 1DOF joints) and without including the wheel–rail contacts, the whole system has 50 DOFs. The main inertial properties of the bodies are summarised in Table 2 [14].

Fig. 5
figure 5

Primary and secondary suspensions

Table 1 Main characteristics of the railway vehicle
Table 2 Inertial properties of the rigid bodies

Both the primary suspension (springs, dampers and axlebox bushings) and the secondary suspension (springs, dampers, lateral bump-stops, anti-roll bar and traction rod) have been modelled through 3D visco-elastic force elements able to describe all the main nonlinearities of the system (see Fig. 5). In Table 3, the characteristics of the main linear elastic force elements of both the suspension stages are reported [14]. The nonlinear elastic force elements have been modelled through nonlinear functions that correlate the displacements and the relative velocities of the force elements connection points to the elastic and damping forces exchanged by the bodies. The inputs of the model are the 4 wheelset torques \(C_{s}\) modulated by the on board WSP and the contact forces calculated by the contact model, while the outputs are the kinematic wheelset variables transmitted to the contact model, the 4 original torques \(C\) (without the on board WSP modulation) and the 4 wheelset angular velocities \(\omega_{w}\). These last two outputs are not accessible by the HIL system.

Table 3 Main linear elastic characteristics of the two stage suspensions

3.1.2 The Wheel Slide Protection system model

The WSP device installed on the UIC-Z1 coach [15, 22] allows the control of the torques applied to the wheelsets, to prevent macro-sliding during the braking phase. In Fig. 6, the logical scheme and an image of the WSP device are shown. The inputs are the braking torques \(C\) and the wheelset velocities \(\omega_{w}\), while the outputs are the modulated braking torques \(C_{s}\). The WSP system working principle can be divided into three different tasks: the evaluation of the reference vehicle velocity \(V_{\mathrm{ref}}\) and acceleration \(a_{\mathrm{ref}}\) based on the wheelset angular velocities \(\omega_{w}\) and accelerations \(\dot{\omega}_{w}\); the computation of the logical sliding state \(\mathit{state}_{\mathrm{WSP}}\) (equal to 1 if sliding occurs and 0 otherwise) and the consequent torque modulation, through a speed and an accelerometric criterion and by means of a suitable logical table [22]; the periodic braking release to bring back the perceived adhesion coefficient to the original value (often used when degraded adhesion conditions are very persistent and the WSP logic tends to drift).

Fig. 6
figure 6

WSP device and its logical scheme

3.1.3 The roller-rig model

The 3D multibody model of the roller-rig (see Fig. 7 and Table 4) consists of 8 independent rollers with a particular roller profile able to exactly reproduce the UIC60 rail pattern with different laying angles \(\alpha_{p}\) [17]. The railway vehicle is axially constrained on the rollers using two axial links (front and rear) modelled by means of 3D force elements with linear stiffness and damping. The inputs of the test-rig model are the 8 torques \(u^{l}\), \(u^{r}\) evaluated by the controllers and the contact forces calculated by the contact model; the outputs are the roller angular velocities \(\omega _{r}^{l}\), \(\omega_{r}^{r}\), the longitudinal reaction forces \(T_{\mathrm{mis}}^{l}\), \(T_{\mathrm{mis}}^{r}\) measured on the roller supports and the kinematic wheelset variables transmitted to the contact model. The roller-rig actuation system consists of 8 synchronous motors, especially designed and developed in cooperation with SICME [18] for this kind of application. The HIL architecture includes a direct-drive connection between the roller and the electrical machine. The synchronous motors have high efficiency associated with high torque density and flux weakening capability. Furthermore, to reach the dynamical and robustness performances required by the railway full-scale roller-rig, the motors are designed with a multilayer-rotor characterised by a high saliency ratio \(\xi\) and Interior Permanent Magnets (IPM). The IPM motors are controlled in real-time through vector control techniques; more particularly, the vector control is a torque-controlled drive system in which the controller follows a desired torque [18, 2326]. The main sensors installed on the roller-rig are the absolute encoders and the 3-axial load cells on the roller supports. These sensors are employed both in the torque estimators and in the controllers and measure, respectively, the roller angular velocities \(\omega_{r}^{l}\), \(\omega_{r}^{r}\) and the longitudinal reaction forces \(T_{\mathrm{mis}}^{l}\), \(T_{\mathrm{mis}}^{r}\) on the roller supports.

Fig. 7
figure 7

The right side of roller-rig system with the synchronous motors and the rollers placed in the semi-anechoic room of the Research and Approval Center of Firenze-Osmannoro

Table 4 Main characteristics of the roller-rig system and of the wheelsets

3.1.4 The wheel–roller contact model

The 3D contact model evaluates the contact forces \(\mathbf{N} _{c}^{l/r}\), \(\mathbf{T}_{c}^{l/r}\) for all the 8 wheel–roller pairs starting from the kinematic variables of the wheelsets and of the rollers: their positions \(\mathbf{G }_{w}\), \(\mathbf{G }_{r}^{l/r}\), orientations \(\mathbf{\phi }_{w}\), \(\mathbf{\phi}_{r}^{l/r}\), velocities \(\mathbf{v }_{w}\), \(\mathbf{v }_{r}^{l/r}\) and angular velocities \(\mathbf {\omega }_{w}\), \(\mathbf{\omega }_{r}^{l/r}\). The wheel–roller contact model is an improvement of previous models developed for the wheel–rail pair and detailed in [2729]. The contact model can be logically divided into two parts: the contact point detection between two revolute surfaces and the calculation of the normal and tangential contact forces.

There are different strategies in the literature [30, 31] to find the contact points. The one adopted in the roller-rig simulator is based on semi-analytical procedures and satisfies the following requirements:

  • The contact detection algorithm between revolute surfaces is fully 3D and does not introduce simplifying assumptions on the problem geometry and kinematics;

  • Generic wheel–roller profiles;

  • Accurate management of the multiple contact points without limits on the point number;

  • High computational efficiency needed for the online implementation within multibody models.

The research of the contact points is based on the consideration that the contact points between the wheel surface and the roller surface are located where the distance between the two surfaces assumes a stationary point. The following conditions allow finding these points:

  1. 1.

    Parallelism Condition between the normal unitary vector to the roller surface and the normal unitary vector to the wheel surface;

  2. 2.

    Parallelism Condition between the normal unitary vector to the roller surface and the vector representing the distance \(\mathbf{d}^{r}\) between the generic point of the wheel and the rail surfaces.

Going through the details of the procedure, a fixed reference system \(O_{r} x_{r} y_{r} z_{r}\) is defined, with its origin located on the roller rotation axis and the axis \(y_{r}\) parallel to the rotation axis (Fig. 8). The local reference system \(O_{w} x_{w} y_{w} z_{w}\) is defined on the wheelset, with the axis \(y_{w}\) coincident with the rotation axis of the wheelset. The origin \(O_{w}\) coincides with the common point between the nominal rolling plane and the wheelset axis.

Fig. 8
figure 8

Fixed reference system and local reference system

The vector \(\mathbf{O}_{w}^{r}\) is the position of the local references system with respect to the fixed one and \([\mathbf{R}]\) is the rotation matrix that represents the relative orientations. In the local system, the axle can be described by a revolution surface. The generative function is indicated with \(w(y_{w})\).

In the local reference frame, the position of a generic point of the wheel surface is described by the following analytic expression:

$$ \mathbf{p}_{w}^{w}({x_{w}},{y_{w}}) = \Bigl[{x_{w}} \quad {{y_{w}}} \quad { - \sqrt {w{{({y_{w}})}^{2}} - x_{w}^{2}} } \Bigr]^{T} , $$
(1)

while in the fixed reference system the same position is given by

$$ \mathbf{p}_{w}^{r}({x_{w}},{y_{w}}) = \mathbf{O}_{w}^{r} + [ \mathbf{R} ]\mathbf{p}_{w}^{w}({x_{w}},{y_{w}}). $$
(2)

Similarly, the roller can be described by a revolution surface with respect to the fixed reference system (the generative function is indicated by \(r(y_{r})\), see Fig. 8). The main difference with respect to the method presented in [2729] is obviously the geometry of the contact bodies. Since the semi-analytic methods are based on a preliminary algebraic simplification of the above introduced geometrical conditions and since the contact geometries have necessarily different mathematical representations, the method presented in [2729] has to be properly modified. The position of a generic point of the roller surface has the following analytic expression:

$$ \mathbf{p}_{r}^{r}({x_{r}},{y_{r}}) = \Bigl[{x_{r}} \quad {{y_{r}}} \quad {+ \sqrt{r{{({y_{r}})}^{2}} - x_{r}^{2}} } \Bigr]^{T} . $$
(3)

The outgoing normal unit vector to the wheel surface in the local system is defined by \(\mathbf{n}_{w}^{w}(\mathbf{p}_{w}^{w})\) while, in the fixed reference system, it will be

$$ \mathbf{n}_{w}^{r}\bigl(\mathbf{p}_{w}^{r} \bigr) = [ \mathbf{R} ]\mathbf {n}_{w}^{w}\bigl( \mathbf{p}_{w}^{w}\bigr). $$
(4)

In the fixed reference system, the outgoing normal unitary vector to the rail surface is defined as \(\mathbf{n}_{r}^{r}(\mathbf {p}_{r}^{r})\). The complete expressions of the normal unit vectors are:

$$ \mathbf{n}_{w}^{w} \bigl(\mathbf{p}_{w}^{w}\bigr) = \frac{ - \bigl( {\frac{{\partial \mathbf{p}_{w}^{w}}}{{\partial{x_{w}}}} \times\frac{{\partial\mathbf {p}_{w}^{w}}}{{\partial{y_{w}}}}} \bigr)}{\bigl\| {\frac{{\partial\mathbf {p}_{w}^{w}}}{{\partial{x_{w}}}} \times\frac{{\partial\mathbf {p}_{w}^{w}}}{{\partial{y_{w}}}}} \bigr\| }, \qquad {\mathbf {n}_{r}^{r}\bigl(\mathbf{p}_{r}^{r} \bigr) = \frac{{ \bigl( {\frac{{\partial\mathbf {p}_{r}^{r}}}{{\partial{x_{r}}}} \times\frac{{\partial\mathbf {p}_{r}^{r}}}{{\partial{y_{r}}}}} \bigr)}}{{\bigl\| {\frac{{\partial\mathbf {p}_{r}^{r}}}{{\partial{x_{r}}}} \times\frac{{\partial\mathbf {p}_{r}^{r}}}{{\partial{y_{r}}}}} \bigr\| }}} . $$
(5)

The distance vector between two generic points belonging to the wheel surface and the roller surface is defined as

$$ {\mathbf{d}^{r}}({x_{w}},{y_{w}},{x_{r}},{y_{r}}) = \mathbf{p}_{w}^{r}({x_{w}},{y_{w}}) - \mathbf{p}_{r}^{r}({x_{r}},{y_{r}}) ; $$
(6)

as can be seen, the distance vector is a function of four parameters.

The Parallelism Conditions can be formally written as follows:

$$\begin{aligned} \mathbf{n}_{r}^{r}\bigl(\mathbf{p}_{r}^{r} \bigr)\parallel\mathbf{n}_{w}^{r}\bigl(\mathbf{p}_{w}^{r} \bigr) &\quad \rightarrow\quad \mathbf{n}_{r}^{r} \bigl(\mathbf{p}_{r}^{r}\bigr) \times [ \mathbf{R} ] \mathbf{n}_{w}^{w}\bigl(\mathbf{p}_{w}^{w} \bigr) = \mathbf{0}, \end{aligned}$$
(7)
$$\begin{aligned} \mathbf{n}_{r}^{r}\bigl(\mathbf{p}_{r}^{r} \bigr)\parallel\mathbf{d}^{r} &\quad \rightarrow\quad \mathbf{n}_{r}^{r}\bigl(\mathbf{p}_{r}^{r} \bigr) \times [ \mathbf{R} ]\mathbf{d}^{r} = \mathbf{0}. \end{aligned}$$
(8)

These conditions could be replaced by the Orthogonality Condition between the tangent plane to the roller surface in \(\mathbf{p}_{r}^{r}\) and \(\mathbf{d}^{r}(x_{w},y_{w},x_{r},y_{r})\) and the Orthogonality Condition between the tangent plane to the wheel surface in \(\mathbf{p}_{w}^{r}\) and \(\mathbf{d}^{r}(x_{w},y_{w},x_{r},y_{r})\). In this case, the formulation turns out to be analytically more complicated than the previous one, and therefore it has not been employed.

The conditions defined in Eqs. (7)–(8) are an algebraic system of 6 equations (of which only 4 are independent; for example, the first two components of each vectorial equation) in 4 unknowns. However, as will be shown in the following, the original 4D system can be analytically reduced to one single scalar equation \(F(y_{w})=0\) (that, at this point, can be easily solved numerically) by expressing the variables \(x_{w}\), \(x_{r}\), \(y_{r}\) as a function of \(y_{w}\). The reduction of the algebraic problem dimension (from 4D to 1D) represents the most innovative feature of the algorithm; the main benefits of the new approach are:

  • High computational efficiency,

  • Easy management of the multiple solutions, and also

  • Simplified algorithm (like the grid method) can be numerically efficient if applied to the scalar problem.

The solutions of Eqs. (7)–(8) have to be checked in order to avoid the physically meaningless solutions. The first condition to check is the indentation condition. The \(i\)th solution \(x_{\mathrm{wi}}^{C}\), \(y_{\mathrm{wi}}^{C}\), \(x_{\mathrm{ri}}^{C}\), \(y_{\mathrm{ri}}^{C}\) (\(\mathbf {p}_{\mathrm{wi}}^{r,C}\), \(\mathbf{p}_{\mathrm{ri}}^{r,C}\) in terms of contact points) can be accepted only if the indentation between the wheel surface and the roller surface is negative (with respect to the adopted convection):

$$ {p_{\mathrm{ni}}} = \mathbf{d}_{i}^{r,C} \cdot \mathbf{n}_{r}^{r}\bigl(\mathbf {p}_{\mathrm{ri}}^{r,C} \bigr) \le0 $$
(9)

where \(\mathbf{n}_{r}^{r}(\mathbf{p}_{\mathrm{ri}}^{r,C})\) is the outgoing normal unitary vector to the roller surface in the candidate solution and \(\mathbf{d}_{i}^{r,C}\) is the distance between \(\mathbf {p}_{\mathrm{wi}}^{r,C}\) and \(\mathbf{p}_{\mathrm{ri}}^{r,C}\). Otherwise the solution must be rejected.

The \(i\)th solution has to satisfy also the convexity condition. This condition constrains the curvature radii of the roller profile to be smaller than the curvature radii of the wheel profile; see Fig. 9. This condition can be expressed by the following relations:

$$ k_{1\mathrm{ri}}^{C} + {k_{1\mathrm{wi}}^{C}} > 0,\qquad {k_{2\mathrm{ri}}^{C}} + {k_{2\mathrm{wi}}^{C}} > 0 $$
(10)

where \({k_{1\mathrm{ri}}^{C}}\), \({k_{1\mathrm{wi}}^{C}}\), \({k_{2\mathrm{ri}}^{C}}\), \({k_{2\mathrm{ri}}^{C}}\) are the normal curvatures of the surfaces in the longitudinal and lateral directions calculated in the candidate solution. The complete expression of surface curvatures is described in [27].

Fig. 9
figure 9

Curvature condition

Finally, the solutions with algebraic multiplicity larger than one have to be reduced to a unique solution, rejecting the physically meaningless solutions. As said before, the 4D problem can be reduced to a 1D scalar problem expressing the variables \(x_{w}\), \(x_{r}\), \(y_{r}\) as functions of \(y_{w}\). In order to determine \(x_{w}\) as a function of \(y_{w}\), the quantity \(\frac {x_{r}}{\sqrt{r(y_{r})^{2}-x_{r}^{2}}}\) can be expressed as a function of \(x_{w}\), \(y_{w}\) both from the second components of Eq. (7) and from the second components of Eq. (8): \(\frac{x_{r}}{\sqrt {r(y_{r})^{2}-x_{r}^{2}}}=f_{1}(x_{w},y_{w})\), \(\frac{x_{r}}{\sqrt {r(y_{r})^{2}-x_{r}^{2}}}=f_{2}(x_{w},y_{w})\). Comparing the two expressions (\(f_{1}(x_{w},y_{w})=f_{2}(x_{w},y_{w})\)), the following equation can be found:

$$ B\sqrt{{A^{2}} - x_{w}^{2}} = C{x_{w}} - D, $$
(11)

where

$$\begin{aligned} A ={}& w({y_{w}}), \end{aligned}$$
(12)
$$\begin{aligned} B ={}& {-} {G_{x}} {r_{33}} - {y_{w}} {r_{12}} {r_{33}} + w({y_{w}})w'({y_{w}}){r_{13}} {r_{32}} \\ &{} +{G_{z}} {r_{13}} + {y_{w}} {r_{13}} {r_{32}} - w({y_{w}})w'({y_{w}}){r_{12}} {r_{33}}, \end{aligned}$$
(13)
$$\begin{aligned} C ={}& w({y_{w}})w'({y_{w}}){r_{11}} {r_{32}} + {G_{z}} {r_{11}} + {y_{w}} {r_{11}} {r_{32}}, \end{aligned}$$
(14)
$$\begin{aligned} D = {}&{-} {G_{x}}w({y_{w}})w'({y_{w}}){r_{32}} + {G_{z}}w({y_{w}})w'({y_{w}}){r_{12}}, \end{aligned}$$
(15)

\(r_{jk}\) is the generic element of the rotation matrix \([ \mathbf{R} ]\), \(w'\) is the wheel profile derivative and \(G_{x}\), \(G_{y}\), \(G_{z}\) are the components of \(\mathbf{O}_{w}^{r}\). The solutions of Eq. (11) define \(x_{w}\) as a function of \(y_{w}\) (there are two values of \(x_{w}\) for each value of \(y_{w}\)):

$$ {x_{w1,2}}({y_{w}}) = \frac{{CD \pm\sqrt{{C^{2}}{D^{2}} - ({C^{2}} + {A^{2}})({D^{2}} - {A^{2}}{B^{2}})} }}{{{C^{2}} + {A^{2}}}}. $$
(16)

At this point, the quantity \(\frac{x_{r}}{\sqrt {r(y_{r})^{2}-x_{r}^{2}}}=f_{1}(x_{w1,2}(y_{w}),y_{w})\), which is only a function of \(y_{w}\), can be related to the quantity in \(\frac{r(y_{r})}{\sqrt {r(y_{r})^{2}-x_{r}^{2}}}\) because:

$$ \small \frac{{r({y_{r}})}}{{\sqrt{r{{({y_{r}})}^{2}} - x_{r}^{2}} }} = \sqrt{1 + {{ \biggl( {\frac{{{x_{r}}}}{{\sqrt{r{{({y_{r}})}^{2}} - x_{r}^{2}} }}} \biggr)}^{2}}}; $$
(17)

therefore, also \(\frac{{r({y_{r}})}}{{\sqrt{r{{({y_{r}})}^{2}} - x_{r}^{2}} }} = f_{3}(y_{w})\) will be a function of \(y_{w}\) only. Subsequently, to determine \(y_{r}\) as a function of \(y_{w}\), Eq. (17) can be inserted into the first component of the vectorial equation (7):

$$ \small{ r'{({y_{r}})_{1,2}} = - { f_{3}(y_{w})^{ - 1}} \cdot \frac{{{x_{w1,2}}({y_{w}}){r_{21}} - w({y_{w}})w'({y_{w}}){r_{22}} - {r_{23}}\sqrt{w{{({y_{w}})}^{2}} - {x_{w1,2}}{{({y_{w}})}^{2}}} }}{{ - w({y_{w}})w'({y_{w}}){r_{32}} - {r_{33}}\sqrt{w{{({y_{w}})}^{2}} - {x_{w1,2}}{{({y_{w}})}^{2}}} }}}. $$
(18)

Usually, the function \(r'{({y_{r}})}\) has a monotonically descending trend; therefore, it can be numerically inverted in order to obtain \(y_{r1,2}{({y_{w}})}\); if \(r'{({y_{r}})}\) is not monotonically descending, the function can still be inverted but a further multiplication of the solution number is needed.

From the second component of Eq. (7) and Eq. (17), \(x_{r1,2}{({y_{w}})}\) can be calculated as a function of \(y_{w}\):

$$ \small{ {x_{r1,2}}({y_{w}}) = \frac{r(y_{r1,2}(y_{w}))}{f_{3}({y_{w}})} \cdot \frac{{{G_{x}} + {x_{w1,2}}({y_{w}}){r_{11}} + {y_{w}}{r_{12}} - {r_{13}}\sqrt{w{{({y_{w}})}^{2}} - {x_{w1,2}}{{({y_{w}})}^{2}}} }}{{{G_{z}} + {y_{w}}{r_{32}} - {r_{33}}\sqrt{w{{({y_{w}})}^{2}} - {x_{w1,2}}{{({y_{w}})}^{2}}} }} }. $$
(19)

Finally, replacing the relations \(x_{w1,2}(y_{w})\), \(y_{r1,2}(y_{w})\), \(x_{r1,2}(y_{w})\) in the first component of Eq. (8), the following scalar equation can be obtained where the unique unknown is \(y_{w}\):

$$\begin{aligned} F_{1,2}(y_{w})= {}&- r'{({y_{r}}_{1,2})}r{({y_{r}}_{1,2})} \Bigl( {{G_{z}} + {y_{w}} {r_{32}} - {r_{33}}\sqrt{w{{({y_{w}})}^{2}} - x_{w1,2}^{2}} - \sqrt {r{{({y_{r}})}^{2}} - x_{r}^{2}} } \Bigr) \\ {}&- \sqrt{r{{({y_{r}}_{1,2})}^{2}} - x_{r}^{2}} \Bigl( {{G_{x}} + {x_{w1,2}} {r_{11}} + {y_{w}} {r_{12}} - {r_{13}} \sqrt{w{{({y_{w}})}^{2}} - x_{w1,2}^{2}} - {y_{r}}} \Bigr) = 0. \end{aligned}$$
(20)

Replacing the solutions \(y_{\mathrm{wi}}^{C}\) of the scalar equations \(F_{1}(y_{w})=0\) and \(F_{2}(y_{w})=0\) in Eqs. (16), (18) and (19), the values of the other variables can be obtained:

$$ \bigl(x_{\mathrm{wi}}^{C}, y_{\mathrm{wi}}^{C}, x_{\mathrm{ri}}^{C}, y_{\mathrm{ri}}^{C}\bigr), \quad i = 1,2,\dots,n, $$
(21)

and consequently, the positions of the corresponding contact points on the wheel and on the roller:

$$ \mathbf{p}_{\mathrm{wi}}^{r,C} = \mathbf{p}_{w}^{r} \bigl(x_{\mathrm{wi}}^{C},y_{\mathrm{wi}}^{C}\bigr), \mathbf {p}_{\mathrm{ri}}^{r,C} = \mathbf{p}_{r}^{r} \bigl(x_{\mathrm{ri}}^{C},y_{\mathrm{ri}}^{C}\bigr), \quad i = 1,2,\dots,n. $$
(22)

Since Eq. (11) has irrational terms, the following analytical conditions have to be satisfied:

  • The solutions \(x_{\mathrm{wi}}^{C}\), \(y_{\mathrm{wi}}^{C}\), \(x_{\mathrm{ri}}^{C}\), \(y_{\mathrm{ri}}^{C}\) must be real numbers;

  • The solutions must not generate complex terms by means of the radicals;

  • The solutions of Eq. (20) have to be effective solutions of Eqs. (7) and (8) (they might not be valid due to removal of the radicals by squaring).

The second part of the contact model is the adhesion model. For each contact point calculated by the previous method, it is necessary to compute the forces and the torque applied on the wheelset. The procedure used in this work consists of two different steps: the normal problem and the tangential problem. The normal contact problem has been solved according to the Hertz theory while the tangential contact forces and the spin moment have been calculated by means of the Kalker linear theory [32, 33].

In particular, the Hertz theory allows evaluating the normal contact force in the contact point as follows:

$$ N = k_{h}|{p_{n}}|^{\gamma}-{k_{v}} {V_{n}}, $$
(23)

where

  • \(V_{\mathrm{sl},n}\) is the normal component of the penetration velocity \(V_{n}=\mathbf{V}_{w}^{r} \cdot\mathbf{n}_{r}^{r}(\mathbf{P}_{r}^{r,C})\) and \(\mathbf{V}_{w}^{r}\) is the velocity of the contact point rigidly connected to the wheel (referred to the roller system);

  • \(p_{n}\) is the penetration between roller and wheel (see Eq. (9));

  • \(k_{h}\) is the Hertz constant (depending on the materials, the contact area dimensions and the surface curvatures);

  • \(k_{v}\) is the damping contact constant.

Hertz theory allows also evaluating the ellipse semi-axes \(a\) and \(b\) that are functions of the curvatures and of the material properties. According to the linear Kalker theory, the longitudinal component of the tangential force \(T_{x}^{*}\), the lateral component of the tangential force \(T_{y}^{*}\) and the spin moment \(M_{\mathrm{sp}}\) can be evaluated as follows:

$$ T_{x}^{*} = - {f_{11}} {\varepsilon_{x}}, \qquad T_{y}^{*} = - {f_{22}} {\varepsilon_{y}} - {f_{23}} {\varepsilon_{\mathrm{sp}}}, \qquad {M_{\mathrm{sp}}} = {f_{23}} - {f_{33}} { \varepsilon_{\mathrm{sp}}} , $$
(24)

with

$$ f_{11}=a b G C_{11}, \qquad f_{22}=abGC_{22},\qquad f_{23}=ab^{3/2}GC_{23},\qquad f_{33}=ab^{2}GC_{33}, $$
(25)

where

  • \(G\) is the shear modulus;

  • \(C_{ij}\) are the Kalker coefficient tabulated with respect to the Poisson’s coefficient and to the ratio \(a/b\);

  • \(a\), \(b\) are the ellipse semi-axes;

  • \(\varepsilon _{x}\), \(\varepsilon _{y}\), \(\varepsilon _{\mathrm{sp}}\) represent the virtual creepages \(\varepsilon _{x}=(\mathbf{V}_{w}^{r} \cdot\mathbf{i}_{r})/v_{\mathrm{ow}}\), \(\varepsilon _{y}=(\mathbf{V}_{w}^{r} \cdot\mathbf{t}_{r})/v_{\mathrm{ow}}\) and \(\varepsilon _{\mathrm{sp}}=(\mathbf{\omega}_{w}^{r} \cdot\mathbf{n}_{r})/v_{\mathrm{ow}}\) where \(v_{\mathrm{ow}}\) is the magnitude of the wheelset centre of mass velocity, and \(\mathbf {\omega}_{\mathrm{sl}}\) is the wheelset angular velocity;

  • \(\mathbf{i}_{r}\), \(\mathbf{t}_{r}\) and \(\mathbf{n}_{r}\) are the three fundamental unitary vectors (longitudinal, transversal and normal) of the wheel surface.

The above description is referred to as the linear theory of Kalker that is applicable only in case of limited sliding; therefore, the total creep force \(T^{*}=\sqrt{(T_{x}^{*})^{2}+(T_{y}^{*})^{2}}\) has to be saturated so that the resultant force does not exceed the pure slip value depending on the adhesion coefficient, \(T_{S}=\mu N\). If the creep force saturation coefficient \(\xi\) is defined as follows:

$$\begin{aligned} \xi =& \frac{{{T_{S}}}}{{{T^{*}}}} \biggl[ { \biggl( {\frac{{{T^{*}}}}{{{T_{S}}}}} \biggr) - \frac{1}{3}{{ \biggl( {\frac{{{T^{*}}}}{{{T_{S}}}}} \biggr)}^{2}} + \frac{1}{{27}}{{ \biggl( {\frac{{{T^{*}}}}{{{T_{S}}}}} \biggr)}^{3}}} \biggr] \quad \text{if} \ T^{*}\leq3T_{S}, \end{aligned}$$
(26a)
$$\begin{aligned} \xi =& \frac{{{T_{S}}}}{{{T^{*}}}} \quad \text{if} \ T^{*}>3T_{S}, \end{aligned}$$
(26b)

the saturated creep forces in longitudinal and lateral directions are given by:

$$\begin{aligned} T_{x} =&\xi T_{x}^{*}, \end{aligned}$$
(27a)
$$\begin{aligned} T_{y} =&\xi T_{y}^{*}. \end{aligned}$$
(27b)

3.2 The virtual railway vehicle model

The virtual railway vehicle model simulates the dynamical behaviour of the railway vehicle during a braking phase under degraded adhesion conditions. The model, designed for a real-time implementation, is composed of two parts: the 2D vehicle model and the 2D adhesion model. The inputs are the 4 estimated torques \(\widehat{C}_{s}\) to be applied to the wheelsets while the outputs are the 4 simulated tangential contact forces \(T_{\mathrm{sim}}\) and the 4 simulated wheel angular velocities \(\omega_{\mathrm{ws}}\).

3.2.1 The virtual vehicle model

The 2D vehicle model of the considered railway vehicle (UIC-Z1 coach) is a simplified 2D multibody model of the longitudinal train dynamics (only 3 DOFs for each body are taken into account) [14]. The model (see Fig. 10) consists of a carbody, two bogies and four wheelsets, held by the primary and secondary suspensions. Starting from the estimated torques \(\widehat{C}_{s}\), the model evaluates the kinematic variables of the 4 wheelsets \(v _{\mathrm{ws}}\), \(\omega_{\mathrm{ws}}\) and the 4 normal contact forces \(N_{\mathrm{cs}}\) to be passed to the adhesion model and receives the 4 tangential contact forces \(T_{\mathrm{sim}}\).

Fig. 10
figure 10

The virtual railway vehicle model

3.2.2 The adhesion model

The adhesion model has been especially developed to describe degraded adhesion conditions [19, 3437] and calculates, for all the 4 wheelset–rail pairs, the tangential contact forces \(T_{\mathrm{sim}}\) starting from the wheelset kinematic variables \(v _{\mathrm{ws}}\), \(\omega_{\mathrm{ws}}\) and the normal contact forces \(N_{\mathrm{cs}}\) (see Fig. 11).

Fig. 11
figure 11

The adhesion model

The main phenomena characterising the degraded adhesion are the large sliding occurring at the contact interface and, consequently, the high energy dissipation. Such a dissipation causes a cleaning effect on the contact surfaces, and finally an adhesion recovery due to the removal of the external contaminants. When the specific dissipated energy \(W_{\mathrm{sp}}\) is low, the cleaning effect is almost absent, the contaminant level \(h\) does not change, and the adhesion coefficient \(f\) is equal to its original value \(f_{d}\) in degraded adhesion conditions \(f_{d}\). As the energy \(W_{\mathrm{sp}}\) increases, the cleaning effect increases too, the contaminant level \(h\) becomes thinner, and the adhesion coefficient \(f\) rises. In the end, for large values of \(W_{\mathrm{sp}}\), all the contaminant is removed (\(h\) is null) and the adhesion coefficient \(f\) reaches its maximum value \(f_{r}\); the adhesion recovery due to the removal of external contaminants is now completed. At the same time, if the energy dissipation begins to decrease, due to a, for example, lower sliding, the reverse process occurs (see Fig. 11).

Since the contaminant level \(h\) and its characteristics are usually totally unknown, it is useful to try to experimentally correlate the adhesion coefficient \(f\) directly with the specific dissipated energy \(W_{\mathrm{sp}}\):

$$ {W_{\mathrm{sp}} = T_{\mathrm{sim}} e = fN_{\mathrm{cs}} e} {f = \frac{{T_{\mathrm{sim}} }}{{N_{\mathrm{cs}} }}} $$
(28)

where the creepage \(e\) is defined as

$$ e = \frac{s}{{v_{\mathrm{ws}} }} = \frac{{v_{\mathrm{ws}} - r_{w} \omega_{\mathrm{ws}} }}{{v_{\mathrm{ws}} }}, $$
(29)

\(s\) is the sliding and \(r_{w}\) is the wheel radius. This way the specific dissipated energy \(W_{\mathrm{sp}}\) can also be interpreted as the energy dissipated at the contact for unit of distance travelled by the railway vehicle.

To reproduce the qualitative trend previously described and to allow the adhesion coefficient to vary between the extreme values \(f_{d}\) and \(f_{r}\), the following expression for \(f\) is proposed:

$$ f = \bigl[1 - \lambda(W_{\mathrm{sp}} )\bigr]f_{d} + \lambda(W_{\mathrm{sp}} )f_{r} $$
(30)

where \(\lambda(W_{\mathrm{sp}} )\) is an unknown transition function between degraded adhesion and adhesion recovery while the adhesion levels \(f_{d}\), \(f_{r}\) can be evaluated according to [3133, 3840] as functions of \(e\), \(N_{\mathrm{cs}}\) and the track friction coefficients \(\mu_{d}\), \(\mu_{r}\) (corresponding to degraded adhesion and full adhesion recovery, respectively). The function \(\lambda(W_{\mathrm{sp}})\) has to be positive and monotonously increasing; moreover, the following boundary conditions are supposed to be verified: \(\lambda(0)=0\) and \(\lambda(+\infty)=1\).

This way, the authors suppose that the transition between degraded adhesion and adhesion recovery only depends on \(W_{\mathrm{sp}}\). This hypothesis is obviously only an approximation but, as it will be clearer in the next sections, it describes the adhesion behaviour well. Initially, to catch the physical essence of the problem without introducing a large number of unmanageable and unmeasurable parameters, the authors have chosen the following simple expression for \(\lambda (W_{\mathrm{sp}} )\):

$$ \lambda(W_{\mathrm{sp}} ) = 1 - e^{ - \tau W_{\mathrm{sp}} } $$
(31)

where \(\tau\) is now the only unknown parameter to be tuned on the basis of the experimental data (in this case \(\tau=1.9\cdot 10^{-4}\ \mathrm{m}/\mathrm{J}\)) [16, 19, 41, 42].

In this research activity, the two main adhesion coefficients \(f_{d}\) and \(f_{r}\) (degraded adhesion and adhesion recovery) have been calculated according to Polach [3033, 3840]:

$$ \begin{aligned} f_{d} &= \frac{{2\mu_{d} }}{\pi} \biggl[ {\frac{k_{\mathrm{ad}} \varepsilon_{d} }{1 + (k_{\mathrm{ad}} \varepsilon_{d} )^{2} } + \arctan(k_{\mathrm{sd}} \varepsilon_{d} )} \biggr], \\ f_{r} &= \frac{2\mu_{r} }{\pi} \biggl[ {\frac{k_{\mathrm{ar}} \varepsilon_{r} }{1 + (k_{\mathrm{ar}} \varepsilon_{r} )^{2} } + \arctan(k_{\mathrm{sr}} \varepsilon_{r} )} \biggr] \end{aligned} $$
(32)

where

$$ \varepsilon_{d} = \frac{2}{3}\frac{{C\pi a^{2} b }}{{\mu_{d} N_{c} }}e, \qquad {\varepsilon_{r} = \frac{2}{3}\frac{C\pi a^{2} b }{\mu _{r} N_{c} }e} . $$
(33)

The quantities \(k_{\mathrm{ad}}\), \(k_{\mathrm{sd}}\) and \(k_{\mathrm{ar}}\), \(k_{\mathrm{sr}}\) are the Polach reduction factors (for degraded adhesion and adhesion recovery, respectively) and \(\mu_{d}\), \(\mu_{r}\) are the friction coefficients defined as follows:

$$ {\mu_{d} = \biggl( { \frac{{\mu_{\mathrm{cd}} }}{{A_{d} }} - \mu_{\mathrm{cd}} } \biggr)e^{ - \gamma_{d} s} + \mu_{\mathrm{cd}} }, \qquad {\mu_{r} = \biggl( { \frac{{\mu_{\mathrm{cr}} }}{{A_{r} }} - \mu_{\mathrm{cr}} } \biggr)e^{ - \gamma_{r} s} + \mu_{\mathrm{cr}} } $$
(34)

in which \(\mu_{\mathrm{cd}}\), \(\mu_{\mathrm{cr}}\) are the kinetic friction coefficients, \(A_{d}\), \(A_{r}\) are the ratios between the kinetic friction coefficients and the static ones, and \(\gamma_{d}\), \(\gamma_{d}\) are the friction decrease rates. The Polach approach (see Eq. (32)) has been followed since it permits describing the decrease of the adhesion coefficient with increasing creepage and better fitting the experimental data (see Fig. 11).

Finally, it has to be noticed that the semi-axes \(a\) and \(b\) of the contact patch (see Eq. (33)) depend only on the material properties, the contact point position \(P_{c}\) on wheel and rail (through the curvatures of the contact surfaces in the contact point) and the normal force \(N_{c}\), while the contact shear stiffness \(C\) (\(\mathrm{N}/\mathrm{m}^{3}\)) is a function only of material properties, the contact patch semi-axes \(a\) and \(b\) and the creepages. More particularly, the following relation holds [30]:

$$ C = \frac{{3G}}{{8a}}\sqrt{ \biggl( {c_{11} \frac{{e_{x} }}{e}} \biggr)^{2} + \biggl( {c_{22} \frac{{e_{y} }}{e}} \biggr)^{2} } $$
(35)

where \(c_{11} = c_{11} (\sigma,a/b)\) and \(c_{22} = c_{22} (\sigma ,a/b)\) are the Kalker coefficients.

In the end, the desired values of the adhesion coefficient \(f\) and of the tangential contact force \(T_{\mathrm{sim}} = fN_{\mathrm{cs}}\) can be evaluated by solving the nonlinear algebraic Eq. (30) in which the explicit expression of \(W_{\mathrm{sp}}\) has been inserted (see Eq. (28)):

$$ f = \Im(f ,t ) $$
(36)

where \(\Im\) indicates the generic functional dependence. Due to the simplicity of the transition function \(\lambda(W_{\mathrm{sp}} )\), the solution can be easily obtained through standard nonlinear solvers [43].

3.3 The controllers

The controllers have to reproduce on the roller-rig the dynamical behaviour of the virtual railway vehicle under degraded adhesion conditions in terms of angular velocities \(\omega_{w}\), applied torques \(C_{s}\) and, consequently, tangential contact forces \(T_{c}^{l/r}\). The inputs of the controller are the simulated tangential forces \(T_{\mathrm{sim}}\), the simulated wheelset angular velocities \(\omega_{\mathrm{ws}}\), the estimated wheel angular velocities \(\widehat{\omega}_{w}\), the estimated motor torques \(\hat{C}_{S}\) and the roller angular velocities \(\omega _{r}^{l/r}\). The outputs are the 8 roller control torques \(u^{l/r}\).

The controller layout consists of 8 independent controllers (one for each roller) and makes use of a sliding mode strategy based on the dynamical equations of the roller rig; this way, it is possible to reduce the disturbance effects due to the system nonlinearities and the parameter uncertainties [20, 21]. The total control torques \(u^{l/r}\) are defined as

$$ {u^{l/r}} = {u}_{\mathrm{cont}}^{l/r} + {u}_{\mathrm{disc}}^{l/r} + {u}_{\mathrm{diff}}^{l/r} $$
(37)

where the continuous control part \({u}_{\mathrm{cont}} ^{l/r}\) is built starting from the approximated 1D models of wheelset and rollers and by supposing the slidings between the contact surfaces negligible (on the roller-rig the adhesion conditions are good, with a friction coefficient \(\mu_{\mathrm{roll}}\) equal to 0.3):

$$ \begin{gathered} {C_{s} = J_{w} \dot{\omega}_{w} - T_{c}^{l} r_{w} - T_{c}^{r} r_{w} }, \\ {u^{l} = J_{r} \dot{\omega}_{r}^{l} - T_{c}^{l} r_{w} }, \qquad {u^{r} = J_{r} \dot{\omega}_{r}^{r} - T_{c}^{r} r_{w} }, \\ {\omega_{r}^{l} = - \frac{{r_{w} }}{{r_{r} }}\omega_{w} }, \qquad {\dot{\omega}_{r}^{l} = - \frac{{r_{w} }}{{r_{r} }}\dot{\omega}_{w} }, \\ {\omega_{r}^{r} = - \frac{{r_{w} }}{{r_{r} }}\omega_{w} }, \qquad {\dot{\omega}_{r}^{r} = - \frac{{r_{w} }}{{r_{r} }}\dot{\omega}_{w} } \\ \end{gathered} $$
(38)

in which \(r_{r}\), \(r_{w}\) are the roller and wheelset radii and \(J_{r}\), \(J_{w}\) are their inertias. By removing \(T_{c}^{l}\) and \(T_{c}^{r}\) in Eq. (38), the following relation is obtained:

$$ {C_{s} - \frac{{r_{w} }}{{r_{r} }} \bigl(u^{l} + u^{r} \bigr) = J_{\mathrm{tot}} \dot{\omega}_{w} } {J_{\mathrm{tot}} = J_{w} + 2 \biggl( { \frac{{r_{w} }}{{r_{r} }}} \biggr)^{2} J_{r} } $$
(39)

where \({J}_{\mathrm{tot}}\) is the total inertia of the rollers and the wheelset reduced to the wheelset rotation axis. Subsequently, the desired wheelset dynamics is considered as

$$ \hat{C}_{s} = J_{w} \dot{\omega}_{\mathrm{ws}} + T_{\mathrm{sim}} r_{w}, $$
(40)

together with the sliding surface \(S= \omega_{\mathrm{ws}}-\omega_{w} =0\) and its time derivative \(\dot{S}=\dot{\omega}_{\mathrm{ws}} - \dot{\omega}_{w}\). If the torque estimation \(\hat{C}_{s} \simeq C_{s}\) is accurate enough, the sliding condition \(\dot{S} = 0 \) can be obtained, starting from Eqs. (39) and (40), by taking

$$ \begin{gathered} {u = \frac{{r_{r} }}{{r_{w} }} \biggl[ { \biggl( {1 - \frac{{J_{\mathrm{tot}} }}{{J_{s} }}} \biggr)\hat{C}_{s} + \frac{{J_{\mathrm{tot}} }}{{J_{s} }}T_{\mathrm{sim}} r_{w} } \biggr]}, \\ {u^{l} = \frac{u}{2}},\qquad {u^{r} = \frac{u}{2}} . \end{gathered} $$
(41)

On the other hand, \({u}_{\mathrm{disc}}^{l/r}\) is the discontinuous control part related to the rejection of the disturbancies:

$$ {u}_{\mathrm{disc}}^{l}={u}_{\mathrm{disc}}^{r} = k \Re ( \omega_{\mathrm{ws}} - \widehat{\omega}_{w}). $$
(42)

The discontinuous controls \({u}_{\mathrm{disc}}^{l/r}\) are characterised by the gain \(k\) and the function \(\Re\) shown in Fig. 12 (the dead zone amplitude \(\delta\) and the slope \(\sigma\) are control parameters to be tuned).

Fig. 12
figure 12

Discontinuous and auxiliary control characteristics

Finally, \({u}_{\mathrm{diff}}^{l/r}\) is an auxiliary control part aimed at synchronising the roller angular velocities \(\omega_{r}^{l}\), \(\omega_{r}^{r}\):

$$ {u_{\mathrm{diff}}^{l} = - k_{d} \aleph\bigl(\omega_{r}^{l} - \omega_{r}^{r} \bigr)}, \qquad {u_{\mathrm{diff}}^{r} = k_{d} \aleph\bigl(\omega_{r}^{l} - \omega_{r}^{r} \bigr).} $$
(43)

The function \(\Re\) is reported in Fig. 12, while the parameters \(k_{d}\), \(\delta_{d}\) and \(\sigma_{d}\) have to be tuned. The controller performances will be evaluated by means of the angular velocity error \(e_{\omega} = \omega_{\mathrm{ws}} - \omega_{w}\) and the torque estimation error \(e_{c} = \hat{C}_{s} - C_{s}\). Limited values of the previous errors \(e_{\omega}\), \(e_{c}\) assure a good estimation of the tangential contact forces \(T_{c}^{l/r}\).

3.4 The torque estimators

The estimators aim at evaluating the wheelset angular velocities \(\widehat{\omega}_{w}\) and the torques applied to the wheelset \(\widehat {C}_{s}\) starting from the roller angular velocities \(\omega_{r}^{l/r}\) and the longitudinal reaction forces \(T_{\mathrm{mis}}^{l/r}\) on the roller supports. Since the slidings between wheelset and rollers can be neglected, the following estimations approximately hold:

$$ {\hat{\omega}_{w} = - \frac{{r_{r} }}{{r_{w} }}\frac{{\omega_{r}^{l} + \omega _{r}^{r} }}{2}}, \qquad{\hat{\dot{\omega}} _{w} = - \frac{{r_{r} }}{{r_{w} }}\frac {{\dot{\omega}_{r}^{l} + \dot{\omega}_{r}^{r} }}{2}}, \qquad{\hat{T}_{c}^{l/r} = T_{\mathrm{mis}}^{l/r} } . $$
(44)

Of course, the derivative operation \(\frac{d}{dt}\) has to be robust, taking into account the numerical noise affecting \(\omega_{r}^{l/r}\). At this point, to estimate the motor torque applied to the wheelset, the estimator employs the simplified dynamical model of the wheelset:

$$ \hat{C}_{s} = J_{w} {\hat{\dot{\omega}}} _{w} - \hat{T}_{c}^{l} r_{w} - \hat{T}_{c}^{r} r_{w} . $$
(45)

It is worth noting that, in this kind of applications, the estimators have to be necessarily simple because they are thought for a real-time implementation and, at the same time, the physical characteristics of the railway vehicle on the roller-rig are generally unknown.

3.5 The numerical implementation of the model

Concerning computational load and memory consumption, the only parts of the HIL architecture (see Fig. 1) that have to run in real-time are the virtual railway vehicle model, the controllers and the torque estimators. The numerical models related to these parts are quite simple and fast, and allow a good compromise between accuracy and efficiency. During the preliminary tests of the proposed HIL system, the efficiency of the previous models enabled the use of fixed step numerical integrators (in particular, the Dormand–Prince ODE5 integrator [44]). The main features of the chosen integrator are summarised in Table 5.

Table 5 Characteristics of the numerical integrator

The choice of the integration step is mainly due to the stiffness of the contact and adhesion models inside the virtual railway vehicle model and to the delays characterising controllers and actuators. Such an integrator, up to now, turned out to be quite effective and robust in facing the problems caused by the stiffness, delays and the noise typical of these systems.

4 Experimental data

The HIL model performance have been validated by means of the comparison with the experimental data, provided by Trenitalia S.p.A. [16] and coming from on-track braking tests carried out in Velim (Czech Republic) with the coach UIC-Z1 [14]. The considered vehicle is equipped with a fully-working WSP system [15]. These experimental tests have been carried out on a straight railway track. The wheel profile is the ORE S1002 (with a wheelset width \(d_{w}\) equal to \(1.5\ \mathrm{m}\)) while the rail profile is the UIC60 (with a gauge \(d_{r}\) equal to 1\(.435\ \mathrm{m}\) and a laying angle \(\alpha _{p}\) equal to \(1/20\ \mathrm{rad}\)).

The main characteristics of the braking test, considered as benchmark in this paper, are summarised in Table 6 (comprising the main wheel, rail and contact parameters; see Sect. 3.2.2) [3133, 3840, 45]. The value of the kinetic friction coefficient under degraded adhesion conditions \(\mu_{\mathrm{cd}}\) depends on the test performed on the track; the degraded adhesion conditions are usually reproduced using a watery solution containing surface-active agents, e.g. a solution sprinkled by a specially provided nozzle directly on the wheel–rail interface on the first wheelset in the running direction. The surface-active agent concentration in the solution varies according to the type of test and the desired friction level. The value of the kinetic friction coefficient under full adhesion recovery \(\mu_{\mathrm{cr}}\) corresponds to the classical kinetic friction coefficient under dry conditions.

Table 6 Main wheel, rail and contact parameters

During the preliminary tests of the proposed HIL system, the physical parameters of the adhesion model were identified through suitable tests performed on railway lines (see [1416, 41]) and on test-rigs (see [17]). In some cases, the first attempt values of the physical parameters were initially taken from the literature (see [31, 38]).

First, the vehicle and wheelset velocities \(v^{\mathrm{sp}}\), \(v_{\mathrm{wi}}^{\mathrm{sp}}=r_{w} \omega_{\mathrm{wi}}^{\mathrm{sp}}\) (\(i=1,\dots,4\)) are taken into account (see Fig. 13). Both the WSP intervention and the adhesion recovery in the second part of the braking maneuver are clearly visible. Second, the slidings among the wheelsets and the rails have been considered: \(s_{i}^{\mathrm{sp}} = v^{\mathrm{sp}} - r_{w} \omega_{\mathrm{wi}}^{\mathrm{sp}} = v^{\mathrm{sp}} - v_{\mathrm{wi}}^{\mathrm{sp}}\) (see Figs. 16, 17, 18, and 19). However, these physical quantities cannot be locally compared to each other because of the complexity and the chaoticity of the system due to, for instance, the presence of discontinuous and threshold elements like the WSP. To better evaluate the behaviour of \(s_{i}^{\mathrm{sp}}\) from a global point of view, it is useful to introduce the statistical means \({\bar{s}_{i}^{\mathrm{sp}} }\) and the standard deviations \({\varDelta _{i}^{\mathrm{sp}} }\) of the considered variables:

$$ \begin{gathered} {\bar{s}_{i}^{\mathrm{sp}} = \frac{1}{{T_{F} - T_{I} }} \int_{T_{I} }^{T_{F} } {s_{i}^{\mathrm{sp}}\, dt,} } \\ {\varDelta _{i}^{\mathrm{sp}} = \sqrt{\frac{1}{{T_{F} - T_{I} }} \int_{T_{I} }^{T_{F} } {\bigl(s_{i}^{\mathrm{sp}} - \bar{s}_{i}^{\mathrm{sp}} \bigr)^{2} \,dt} } } \end{gathered} $$
(46)

where \(T_{I}\) and \(T_{F}\) are respectively the initial and final times of the simulation (see Table 8).

Fig. 13
figure 13

Experimental vehicle and wheelset velocities \(v^{\mathrm{sp}}\), \(v_{\mathrm{wi}}^{\mathrm{sp}}=r_{w} \omega_{\mathrm{wi}}^{\mathrm{sp}}\)

5 The model validation

In this section, the whole HIL architecture model is simulated and validated. More precisely, both the dynamical and the control performances of the system will be analysed. The main control parameters are summarised in Table 7 (see Sect. 3.3) [44]. The simulated vehicle and wheelset velocities \(v_{s}\), \(v_{\mathrm{wsi}}=r_{w} \omega _{\mathrm{wsi}}\) are reported in Fig. 14. Figures 13 and 14 highlight a good qualitative match between experimental and simulated data, both concerning the WSP intervention and the adhesion recovery in the second part of the braking maneuver. The direct comparison between the experimental and simulated train velocities \(v^{\mathrm{sp}}\), \(v_{s}\) is illustrated in Fig. 15 and shows also a good quantitative agreement between the considered quantities. Subsequently, according to Sect. 4, the simulated slidings among wheelsets and rails \(s_{\mathrm{si}} = v_{s} - r_{w} \omega_{\mathrm{wsi}} = v_{s} - v_{\mathrm{wsi}}\) are taken into account and compared to the experimental ones \(s_{i}^{\mathrm{sp}}\) (see Figs. 16, 17, 18, and 19).

Fig. 14
figure 14

Simulated vehicle and wheelset velocities \(v_{s}\), \(v_{\mathrm{wsi}}=r_{w} \omega_{\mathrm{wsi}}\)

Fig. 15
figure 15

Experimental and simulated train velocities \(v^{\mathrm{sp}}\), \(v_{s}\)

Fig. 16
figure 16

Experimental and simulated train slidings \(s_{1}^{\mathrm{sp}}\), \(s_{s1}\) for the first wheelset

Fig. 17
figure 17

Experimental and simulated train slidings \(s_{2}^{\mathrm{sp}}\), \(s_{s2}\) for the second wheelset

Fig. 18
figure 18

Experimental and simulated train slidings \(s_{3}^{\mathrm{sp}}\), \(s_{s3}\) for the third wheelset

Fig. 19
figure 19

Experimental and simulated train slidings \(s_{4}^{\mathrm{sp}}\), \(s_{s4}\) for the fourth wheelset

Table 7 Main control parameters

The match between experimental and simulated slidings is qualitatively good. However, since these physical quantities cannot be locally compared to each other because of the complexity and the chaoticity of the system, the statistical means \({\bar{s}_{\mathrm{si}} }\) and the standard deviations \({\varDelta _{\mathrm{si}} }\) of the simulated slidings \(s_{\mathrm{si}}\) are introduced (according to Eq. (46)) to better evaluate the global behaviour of analysed variables. The comparison between experimental \({\bar{s}_{i}^{\mathrm{sp}} }\), \({\varDelta _{i}^{\mathrm{sp}} }\) and simulated \({\bar{s}_{\mathrm{si}} }\), \({\varDelta _{\mathrm{si}} }\) statistical indices is reported in Table 8 and highlights also a good quantitative match between the studied quantities. The controller performances are evaluated in terms of angular velocity error \(e_{\omega} = \omega_{\mathrm{ws}} - \omega_{w}\) and the torque estimation error \(e_{c} = \hat{C}_{s} -C_{s} \). Small values of the errors \(e_{\omega}\), \(e_{c}\) assure a good estimation of the tangential contact forces \(T_{c}^{l/r}\). The time history of the angular velocity error \(e_{\omega}\) is plotted in Fig. 20 and shows the control capability of stabilising the system and rejecting the disturbancies produced by the initial transient and the adhesion recovery in the second phase of the braking manoeuvre. The torque estimation error \(e_{c} = \hat{C}_{s} - C_{s}\) and the real torques applied to the wheelset \({C}_{s}\) are respectively reported in Figs. 21 and 22. Also in this case, the controllers turn out to be effective in reproducing the real torques applied to the wheelsets of the vehicle. Finally, the result analysis highlights the control capability of reproducing on the roller-rig a generic wheel–rail degraded adhesion pattern calculated by the reference virtual railway vehicle model (in terms of angular velocities \(\omega_{w}\), applied torques on the wheelsets \(C_{s}\) and, consequently, in terms of tangential efforts \(T_{c}^{l/r}\) exchanged between the wheelsets and the rails).

Fig. 20
figure 20

Angular velocity error \(e_{\omega} = \omega_{\mathrm{ws}} - \omega _{w}\)

Fig. 21
figure 21

Torque estimation error \(e_{c} = \hat{C}_{s} - C_{s}\)

Fig. 22
figure 22

Torque applied to the wheelset \({C}_{s}\)

Table 8 Experimental \({\bar{s}_{i}^{\mathrm{sp}} }\), \({\varDelta _{i}^{\mathrm{sp}} }\) and simulated \({\bar{s}_{\mathrm{si}} }\), \({\varDelta _{\mathrm{si}} }\) statistical indices

6 Conclusions and further developments

In this work, the authors described an innovative Hardware In the Loop (HIL) architecture to test braking onboard subsystems on full-scale roller-rigs under good and degraded adhesion conditions. The new strategy allows reproducing on the roller-rig a generic wheel–rail adhesion pattern and, in particular, degraded adhesion conditions. An accurate multibody model of the whole system has been developed, including an innovative contact model to describe the wheel–roller interaction. The proposed approach has been preliminarily validated through the experimental data provided by Trenitalia and highlighted good performance in reproducing on the roller-rig the complex interaction between degraded adhesion conditions and railway vehicle dynamics during the braking manoeuvre.

Many further developments of this research activity are scheduled for the future and will regard the implementation of the control strategy and the virtual vehicle model on the Firenze-Osmannoro roller-rig. This way, firstly a further validation of the proposed HIL approach will be possible through experimental tests performed directly on the roller-rig. The new tests, currently on-going, will allow a deeper investigation of the degraded adhesion model and an improvement of the model parameters identification. Subsequently, the whole HIL system will be employed to design and test new on board subsystems such as WSP, antiskid, etc.

7 Disclosure of potential conflicts of interest

The authors declare that they have no conflict of interest. Furthermore, the authors did not receive funding from any agencies.