To test the validity of the digital twin and its hydraulics, a comprehensive real-world validation of the digital twin’s articulated joint was performed.
The comprehensive validation of the digital articulated joint was performed in preparation for upcoming ViL tests in the NUVE-LAB in Oulu, Finland, where wheel-hub mounted dynamometers will be used to include the physical driveline into the simulation loop. The physical driveline thereby replaces the digital driveline in the simulation, with the exception of the tires, as the wheel-hub mounting prevents inclusion of the physical tires into the simulation.
The ViL setup does not allow the physical vehicle to turn, which means that the digital articulated joint and its hydraulics are instead used in the ViL simulation. Therefore, in preparation for the ViL tests, ensuring the validity of the digital articulated joint was a high priority.
3.1. Real-Time Capability and Computational Requirements
All simulations described in this paper used a time step of 1 ms for the main simulation and 33 μs for the hydraulics simulation. It was observed that the digital twin could be run in real time with these time steps on a workstation PC with an Intel 10900KF CPU, an NVIDIA RTX 2080 SUPER GPU, and 32 GB of RAM. This is promising, as this workstation PC is from 2020, and more capable computer hardware already exists.
Other vehicle platforms or configurations could also be modeled and would be expected to be real-time capable with the same time steps if they were of the same level of complexity as the described digital twin. This makes the described framework generalizable.
Another factor that impacts the computational load is the complexity and level of detail of the virtual environment. The real-time capability of the digital twin in this study was tested in the scanned virtual environment described in [
24], which was to be used in upcoming ViL testing. This environment is a UAV scan of a 57 × 103 m part of the OuluZone test track in Oulu, Finland. It contains asphalt roads with varying slopes between two grassy areas with slopes and ditches, as well as a few buildings and objects. The environment collision mesh used for tire contact detection consisted of 25,633 triangle elements. Testing the limitations on environment complexity was outside the scope of this study; however, at a high enough level of detail the real-time capability will be compromised. This depends also on, e.g., the complexity of the vehicle and tire models, the chosen time steps, the computer hardware, and collision detection optimization techniques, such as disabling collision graphics located further away from the vehicle.
The level of detail of the visualization can also impact the real-time capability. However, even if the simulation is run on a single computer, the visualization is mostly handled by the graphics card, while the physics calculations are mostly handled by the CPU. Therefore, as they were handled by different hardware, there was usually no trade-off to be considered between visual and physical model fidelity. Furthermore, if co-simulation with Unity is utilized for maximal visual fidelity, weather effects, and visual sensor emulation (see
Section 2.2) the Unity visualization can be run on a separate computer, which should eliminate any trade-offs between visual and physical fidelity. However, if either the physical or visual simulation cannot be computed within the chosen time step, the real-time capability of the entire simulation is compromised. Therefore, the level of detail of the visualization can still impact the real-time capability.
The visual fidelity was not a priority in this study. Instead, visualizing the collision graphics was prioritized to enable seeing the collision graphics that were in contact with the tires, thus impacting the vehicle dynamics. However, significantly more detailed visualization graphics have previously been used, such as in [
9] and to some extent in [
24]. Therefore, using considerably more detailed visualization graphics would not have been expected to impact the real-time capability in this case.
3.2. Flow Rate of the Physical Vehicle’s Articulated Joint
The articulated joint’s flow rate during a full left turn at standstill, on flat ground, at full turning speed, is presented in
Figure 10. The flow rate is based on the low-pass filtered angular data and the articulated joint’s geometry, as described in
Section 2.10.
Figure 10 also shows the calculated mean flow rate (70.6 L/min) required to complete the turn within the measured turn duration, which was 1.98 s. The required mean flow rate was calculated by dividing the volume of oil that needed to be transferred by the turn duration (see
Section 2.9.1). It can be seen that after the second overshoot at 0.7 s, the flow rate stabilizes close to the required mean flow rate, which is desirable. The mean flow rate of the steady-state period between 0.95 s and 1.82 s is 69.0 L/min. However, the amplitude of the two first overshoots and the first undershoot should ideally be lower, to enable a more consistent and predictable turning velocity. The relatively high amplitudes could indicate some underlying issues, such as air in the articulated joint’s hydraulic system, or sub-optimal pump regulation, for example. Potential root causes are discussed further in
Section 3.4.
As mentioned in
Section 2.10, the low-pass filtering introduces some temporal smearing, which spreads out the flow rate slightly over the time axis, thereby making the turn appear to start just before 0 s and end just after 2 s.
As noted in
Section 2.10, some of the perceived angular sensor noise is intentionally preserved in
Figure 10 to avoid filtering out components of the original flow rate curve. Oscillations regarded as being caused by noise appear, for example, at negative time values before the start of the turn, when the vehicle is at a complete standstill. They are attributed to sensor noise because they occur even when no vehicle movement or vibration can be visually perceived, and because they do not appear to dampen out over time. These oscillations also seem to be present during the steady-state period between 0.95 s and 1.82 s, as well as after the turn is completed.
With the current low-pass filter applied, the oscillations are mainly around 6 Hz. However, higher frequencies were also observed when using different filter settings, mainly around 15 Hz and 25–33 Hz. The span 25–33 Hz derives from periods of 0.04 s and 0.03 s, and reflects the limited frequency resolution imposed by the 100 Hz sampling rate.
The root cause of the noise remains to be determined. The noise between 25 and 33 Hz could likely originate in the generator, which at the current engine speed of 1595 RPM has a rotational frequency of 26.6 Hz. Since low-pass filtering of the analog sensor signal prior to sampling is yet to be implemented, the other frequencies could likely be due to aliasing, caused by noise above the current Nyquist frequency of 50 Hz.
How the signal noise affects the validation of the digital twin’s flow rate curve is discussed in
Section 3.3.
3.3. Validation of the Digital Twin’s Articulated Joint Flow Rate
The articulated joint flow rates of the digital twin and the physical vehicle were compared for full left turns, at standstill, on flat ground. Full turns, i.e., from the rightmost position to the leftmost position, were chosen since utilizing the end positions made the physical tests more repeatable.
The flow rate of the digital twin’s articulated joint was validated at three different turning speed input values: 100%, 75%, and 50%. The digital twin was mainly calibrated at full (100%) turning speed (see
Section 2.9), as this was to be the predominant operating speed of the currently utilized tracking algorithm. The most important validation was therefore at full turning speed.
In the discussion of the validation results, assessments of whether the agreement is satisfactory are made, based on previous experience with testing the current physical vehicle. The assessments are made in the context of whether the agreement is expected to be satisfactory for making R&D design decisions, and for having potential transferability of ML from digital training to real-world applications. If the digital twin’s results are seen as highly likely to be within run-to-run variance of physical tests, both conditions are expected to be met, and the agreement is considered excellent. If the results are considered potentially within run-to-run variance, and likely useful for various R&D design decisions, the results are considered good. Future work is expected to delve further into this topic through real-world case studies of transferability of ML (as in [
9]), and through quantitative comparisons between the digital twin’s results and run-to-run variance between physical tests.
3.3.1. Articulated Joint Flow Rate Validation at Full Turning Speed
The articulated joint flow rates of the digital twin and the physical vehicle during full-speed left turns, are presented in
Figure 11.
Figure 11 shows that the flow rate curve of the digital twin at full turning speed shares many characteristics with the corresponding flow rate curve of the physical vehicle, while some differences can also be observed. From 0.8 s and onward both curves reach a steady-state close to the required mean flow rate (see
Section 2.9.1 and
Section 3.2).
When comparing the two curves, the focus was on seven key metrics, loosely ordered based on perceived importance, with the most important being listed first: time required to complete a turn, mean flow rate, mean steady-state flow rate, first overshoot peak, first overshoot time, lowest undershoot, and overshoot peak at ~0.7 s.
The metrics “Time to complete turn” and “Mean flow rate” are directly proportional, hence one of them could be omitted. However, “Time to complete turn” was retained as it was seen as the most important and practically relatable metric, while “Mean flow rate” was retained to enable comparison with the other flow rate metrics.
The steady-state mean flow rates were measured between the first local maxima and the last local minima of the steady-state periods. This meant between 0.96 s and 1.82 s for the physical vehicle, and between 1.06 s and 1.93 s for the digital twin.
The signal noise present in the physical vehicle’s flow rate curves, described in
Section 3.2, currently prevents more in-depth analyses from being accurate, such as comparing the peak-to-peak amplitudes and frequencies of the steady-state period oscillations. Transient properties, such as overshoot and undershoot values and timings, must also be treated with caution, as they are also susceptible to noise.
The seven key metrics of the two flow rate curves are listed in
Table 3.
Since the digital twin was calibrated to perform a full turn at full turning speed in the same amount of time as the physical vehicle, their time to complete the turn and their mean flow rate, by definition, are equal (see
Section 2.9.2). These two metrics are thus more interesting to compare at 50% and 75% turning speed input signal, for which they were not directly calibrated. However, the metrics still illustrate that the calibration results are in perfect agreement for the two most important attributes of the turn, which measure the overall turning velocity.
The steady-state mean flow rate, on the other hand, was not explicitly calibrated for. The fact that this metric was within 0.35% between the physical vehicle and the digital twin, at 69.0 L/min and 68.8 L/min, respectively, is considered excellent agreement.
The first overshoot peaks are relatively similar, with the physical vehicle peaking at 104.4 L/min and the digital twin at 99.1 L/min, which is 5.10% lower than the physical vehicle. The physical vehicle has its first overshoot peak at 0.15 s while the digital twin has its peak at 0.10 s. This means that the peaks happen relatively close in time, although the peak of the physical vehicle occurs 50 ms later. The overshoot timing is discussed further in
Section 3.3.2.
Between the first overshoot and the steady-state period, the two curves have similar characteristics but also some differences, mainly regarding amplitudes.
Both curves have a second local maximum around 0.4 s, although this peak is significantly more pronounced for the digital twin. Subsequently, the lowest undershoot of the digital twin (62.8 L/min) is less pronounced than for the physical vehicle (46.8 L/min). The digital twin’s lowest undershoot value is thus 34.2% higher than that of the physical vehicle.
Both curves also have an overshoot at ~0.7 s, where the overshoot of the digital twin (76.8 L/min) is less pronounced than for the physical vehicle (88.7 L/min), making the digital twin’s overshoot 13.4% lower. It is plausible that signal noise could contribute to these differences, since the local maximum and minimum are transient properties.
Potential root causes behind the remaining differences between the two flow rate curves are investigated and discussed further in
Section 3.4.
3.3.2. Articulated Joint Flow Rate Validation at 75% Turning Speed
The articulated joint flow rates of the digital twin and the physical vehicle during full left turns at 75% turning speed are presented in
Figure 12.
The seven key metrics that were used in
Section 3.3.1 are presented for 75% turning speed input signal in
Table 4.
Figure 12 and
Table 4 show a correspondence between the digital twin and the physical vehicle at 75% input signal similar to that observed at 100% input signal.
Table 4 shows that the first three metrics, considered the most important, display agreement that is regarded as good to excellent. The metrics “Time to complete a turn” and “Mean flow rate” from the digital twin are within 1.58% of the values from the physical vehicle, while the “Steady-state mean flow rate” is within 2.65%. The fact that none of these metrics were explicitly calibrated for at 75% input signal makes the level of agreement especially noteworthy.
The first overshoot peak of the digital twin (83.7 L/min) is again lower than that of the physical vehicle (92.3 L/min). This makes the peak of the digital twin 9.30% lower than that of the physical vehicle, which is more than the 5.10% difference observed at 100% input signal. The digital twin’s first overshoot peak again occurs slightly earlier than for the physical vehicle. The separation between the peaks, 50 ms, is identical to what was observed for 100% input signal. However, both peaks occur 10 ms earlier than they did for 100% input signal. These slightly earlier peaks are likely due to their lower peak values, since with the same ramp-up rate and a lower peak, the peak will occur earlier. This could also partly explain why the physical vehicle’s higher peaks occur later than their lower digital twin counterparts, but it does not appear to explain the entire difference.
The lowest undershoot is again the metric with the largest difference between the digital twin and the physical vehicle, which it also was at 100% input signal. However, the digital twin’s undershoot flow rate is only 22.4% higher than that of the physical vehicle, considerably less than the 34.2% difference seen at 100% input signal.
The overshoot peaks at ~0.7 s are significantly less pronounced for both the digital twin and the physical vehicle at 75% input signal compared to at 100% input signal. The peak values are close to identical, with the digital twin’s overshoot peak being 0.39% lower, which can be compared to 13.4% lower at 100% input signal. Thus, at 75% input signal the agreement of the digital twin’s “Overshoot peak at ~0.7 s” metric is seen as excellent.
3.3.3. Articulated Joint Flow Rate Validation at 50% Turning Speed
The articulated joint flow rates of the digital twin and the physical vehicle during full left turns at 50% turning speed are presented in
Figure 13.
Table 5 shows that the digital twin performs the turn 7.87% faster than the physical vehicle at 50% input signal. By comparing their “Mean flow rate” and “Steady-state mean flow rate” metrics, and observing
Figure 13, this is concluded to be caused by the digital twin having both higher “Steady-state mean flow rate” and higher flow rate around the first overshoot. The “Steady-state mean flow rate” is 6.44% higher for the digital twin. As the digital twin very rarely operates at as low of a speed input signal as 50%, the 7.87% difference in mean flow rate is likely a negligible issue. However, if improved agreement is needed, the simplest solution would be to adjust the nominal flow rate curve described in
Section 2.9.1. Yet, further analyzing the root cause behind the difference instead could yield valuable insights.
For the first time the “First overshoot peak” metric is higher for the digital twin, showing a difference of 45%. Based on the validations at 100% and 75% input signal, the large difference is due to the digital twin having an unexpectedly large overshoot peak, in relation to the steady-state mean flow rate.
This is also the first occurrence of both vehicles having their first overshoot peaks at the same time (at 0.08 s), instead of the digital twin having its peak earlier. This is more expected, however, based on the digital twin having a substantially higher first overshoot peak than the physical vehicle. The same ramp-up rate and a higher peak will make the peak occur later, as discussed in
Section 3.3.2.
Neither of the two vehicles displays significant flow rate undershoot at the start of the turn at 50% input signal. Their lowest values, 15.4 L/min for the physical vehicle and 18.7 L/min for the digital twin, are relatively close to their steady-state mean flow rates of 19.9 L/min and 21.2 L/min, respectively. Therefore, to prevent later oscillations (suspected to be signal noise, see
Section 3.2) from affecting the metric “Lowest undershoot”, local minima after 0.7 s were not considered, thereby preserving the intent of the metric.
The oscillation amplitudes during the steady-state period are larger at 50% input signal compared to at 100% and 75% input signal. The largest peak-to-peak amplitude at 50% input signal was 18.5 L/min, while at 100% it was 12.1 L/min. However, no such speed variations can be visually observed, which strengthens the hypothesis that the oscillations are caused by signal noise. Therefore, further investigation of the larger oscillations was not considered worthwhile. Future work will focus on trying to mitigate the perceived noise, for example, through low-pass filtering of the analog signal, as discussed in
Section 3.2.
As for 75% input signal, the overshoot peak around 0.7 s was relatively low also at 50% input signal. The digital twin’s peak value of 24.1 L/min showed good agreement with the physical vehicle’s peak value of 24.7 L/min, yielding a difference of −2.53%.
3.4. Investigation of Differences Between the Digital and Physical Articulated Joint Flow Rate Curves
In
Section 3.3, three main differences between the digital and physical articulated joint flow rate curves were observed.
The first difference was that the digital twin usually had a lower first overshoot, occurring slightly later (except at 50% input signal).
The second difference was that the digital twin had a more pronounced second local maximum.
The third difference was that the digital twin had a less pronounced undershoot.
At 100% and 75% input signal, the digital twin’s flow rate curves exhibited all three of these differences with respect to their physical counterparts. At 50% input signal, the digital and physical curves also differed in a similar way, except regarding the first overshoot, for which the digital twin’s curve was an outlier. This was discussed in
Section 3.3.3 and will also be addressed further in this section.
To identify potential root causes behind the observed differences, the effect of various model parameters on the flow rate curve of the digital twin was investigated at 100% input signal.
It was observed that increasing the disc brake force resulted in a less pronounced second local maximum.
As discussed in
Section 3.2, the unexpectedly pronounced and sub-optimal overshoot and undershoot observed in the flow rate curve of the physical vehicle at 100% input signal were suspected to potentially be caused by some underlying issue, such as air in the articulated joint hydraulics. Air in a hydraulic system is known to significantly reduce the effective oil bulk modulus [
34]. It was also observed that decreasing the oil bulk modulus in the simulation resulted in a more pronounced overshoot and undershoot, leading to a flow rate curve that is more similar to that of the physical vehicle.
Figure 14 illustrates the effects of increasing the disc brake force and decreasing the oil bulk modulus on the flow rate curves of the digital twin. The modified versions of the digital twin were also calibrated to perform the full turn at full turning speed in 1.98 s, in the same way as the original version (see
Section 2.9.2).
Figure 14 shows that increasing the disc brake force by a factor of 4 mainly yields a less pronounced and earlier second local maximum, more similar to that of the physical vehicle.
Figure 14 also shows that combining the increased disc brake force with an oil bulk modulus multiplied by a factor of 0.28 results in a flow rate curve that strongly resembles the curve of the physical vehicle.
Table 6 presents the seven flow rate key metrics from
Section 3.3 for the physical vehicle, the digital twin, and the digital twin with the disc brake force and oil bulk modulus multiplied by the factors 4 and 0.28, respectively.
Table 6 shows that the last three key metrics, which are all related to the three observed main differences between the curves, display improved agreement with the multiplication factors implemented. For the other four key metrics, the agreement is equal or similar to that of the original digital twin.
The multiplication factors used in
Figure 14 and
Table 6 were selected through manual iteration to demonstrate that disc brake force and oil bulk modulus are strong candidates for explaining the three observed differences between the digital and physical flow rate curves. Further tuning of the multiplication factors would likely produce even better agreement, but this was deemed unnecessary for the purposes of this investigation.
Given that the digital articulated joint cylinder pressures mainly range from 5 bar to 15 bar during the overshoot and undershoot, the oil bulk modulus multiplication factor of 0.28 corresponds to an air content of about 1% according to [
35], and this conclusion is further supported by [
34]. Higher air contents could explain even more significant reductions in the effective oil bulk modulus, as air contents of up to 5% were studied in [
34,
35]. Hence, the used multiplication factor of 0.28 appears realistic if the hydraulic system contains some air.
When driving on flat ground at a constant speed of 0.75 m/s (see
Section 2.8) the used disc brake force multiplication factor of 4 results in the pressure drop over the hydraulic motors increasing by a factor of 2.86. This indicates that the total driveline resistance is increased by approximately the same factor at similar speeds. During the full left turn at full turning speed, the tires reach angular velocities corresponding to driving at a speed of 0.74 m/s.
It is not clear whether the physical driveline resistance could be higher by a factor of 2.86 when comparing the turning test to the rolling resistance test at 0.75 m/s (described in
Section 2.8). However, it is considered likely that the perceived higher resistance when turning could be caused by the tires needing to slide on the ground in order to reorient from forward-facing to pointing sideways. Because the tires are 530 mm wide, reorienting the physical tires to point sideways requires rotating an up to 530 mm wide contact patch, which likely demands considerable torque. The digital twin’s tires, on the other hand, are currently modeled to have only a single point of contact with the ground at each time step. This likely leads to significantly less torque being required to reorient the tires, as only a single point of contact needs to be rotated, as opposed to an up to 530 mm wide contact patch.
It is also plausible that the rolling resistance starting from a standstill could be higher than at a steady-state speed [
36,
37].
Other factors relating to the vehicle dynamics and the hydraulic driveline could also influence the perceived higher resistance, although this is considered less likely.
Further investigation of the driveline resistance during turning is planned for future work, e.g., through ViL testing. It is possible that this could necessitate exploring new ways of modeling the tires or the resistance during turning.
Three other parameters with some influence on the digital articulated joint flow rate curve were the time constant of the L90LS spool, the tire stiffness, and to a lesser extent the tire damping coefficient. None of them appeared to be causal for the three observed main differences. However, as they had some influence, these parameters should still be considered in future work.
To further test the hypothesis that improved agreement can be achieved by multiplying the disc brake force and oil bulk modulus by the factors 4 and 0.28, respectively, these multiplication factors were also evaluated at 75% and 50% input signal.
The effects of applying the multiplication factors at 75% input signal are illustrated in
Figure 15.
Figure 15 shows that for 75% turning speed input signal, applying the multiplication factors also appears to increase the agreement between the digital and physical curves, particularly regarding the three observed main differences.
Table 7 presents the seven flow rate key metrics at 75% turning speed input signal for the physical vehicle, the digital twin, and the digital twin with the disc brake force and oil bulk modulus multiplied by the factors 4 and 0.28, respectively.
Table 7 shows that metrics 4–6 of the seven flow rate key metrics, which all relate to the three observed main differences, display improved agreement when the multiplication factors are applied. The last key metric “Overshoot peak at ~0.7 s” shows worse agreement, since the original agreement was already seen as excellent. The remaining three key metrics display identical or similar agreement to that of the original digital twin.
Overall, the agreement is considered better with the multiplication factors applied, as was also illustrated in
Figure 15.
Finally, the effect of applying the multiplication factors is evaluated at 50% turning speed input signal, and the resulting flow rate curves are presented in
Figure 16.
Figure 16 shows that, with the multiplication factors applied, the second local maximum of the digital twin occurs after the curve first drops below the steady-state mean flow rate. This is in contrast to the curve of the original digital twin, and more closely resembles the curve of the physical vehicle.
A comparison of the seven flow rate key metrics, at 50% turning speed input signal, is presented in
Table 8. To preserve the original intent of the metric “Lowest undershoot”, local minima occurring after 0.7 s were not considered, which was explained in further detail in
Section 3.3.3.
Table 8 highlights that, other than regarding the previously mentioned second local maximum, most of the remaining differences resulting from applying the multiplication factors are relatively minor. The most prominent of these remaining differences is in the metric “First overshoot time”, which is increased from 0.08 s to 0.10 s. This increase appears to be mainly caused by a higher first overshoot peak.
Unlike at 75% and 100% input signal, the original digital twin’s first overshoot peak was not lower than that of the physical vehicle, but was instead significantly higher. Therefore, when applying the multiplication factors further increased the height of the overshoot peak, this led to worse agreement with the physical vehicle’s curve. However, the main issue does not appear to lie in the multiplication factors, but rather in pre-existing differences in first overshoot behavior at 50% input signal.
Although input signals as low as 50% are rarely utilized, the root cause behind this difference should still be investigated in future work, as it could reveal some underlying details that differ between the digital and physical articulated joint hydraulics.
For the remaining five flow rate key metrics, only minor differences from applying the multiplication factors were observed, most of which led to slight improvements in agreement. However, the significance of these differences is considered minimal.
In summary, multiplying the disc brake force by 4 and the oil bulk modulus by 0.28 led to better agreement between the digital and physical articulated joint flow rate curves, across all three tested input signal levels. The improved agreement was observed particularly for the three previously identified main differences between the physical and original digital curves. These differences were that the digital twin usually had a lower first overshoot occurring slightly later, a more pronounced second local maximum, and a less pronounced undershoot.
The improved agreement from reducing the oil bulk modulus strengthens the hypothesis that air may be present in the articulated joint’s hydraulic system.
Higher disc brake force also improving the agreement suggests that the total driveline resistance derived from straight-line driving might not fully account for the resistance encountered when turning, especially with the currently used tire modeling strategy. These new insights gained from the validation of the digital twin provide new directions for future research, and give strong indications of where opportunities for improvement of the digital model may lie.
Planned future work includes studying the articulated joint hydraulics in a ViL setup, using wheel-hub mounted dynamometers. Wheel-hub mounted dynamometers eliminate the influence of the physical tires and their ground contact, which is expected to be helpful in further analyses, especially when it comes to studying the resistance encountered when turning.