 Research
 Open access
 Published:
Multirate DAEsimulation and its application in system simulation software for the development of electric vehicles
Journal of Mathematics in Industry volume 12, Article number: 11 (2022)
Abstract
This work is devoted to the efficient simulation of large multiphysical networks stemming from automated modelling processes in system simulation software. The simulation of hybrid, battery and fuel cell electric vehicle applications requires the coupling of electrical, mechanical, fluid, and thermal networks. Each network is established by combining the connection structure of a graph with physical equations of elementary components and resulting in a DAE (differential algebraic equation). To speed up the simulation a noniterative multirate time integration cosimulation method for the system of coupled DAEs is established. The power of the multirate method is shown via two representative examples of battery powered electric vehicle with a cooling system for the battery pack and a three phase inverter with a cooling system. This work is an extended version of (Kolmbauer et al. in Scientific Computing in Electrical Engineering (SCEE 2020), Springer, Cham, pp. 231–240, 2021).
Stateoftheart modelling and simulation packages such as AVL CRUISE™M,^{Footnote 1} Dymola,^{Footnote 2} or Amesim^{Footnote 3} offer many concepts for the automatic generation of dynamic system models. Modelling is done in a modularized way, based on a network of subsystems which again consists of simple standardized subcomponents. In this work network modelling approaches are presented for electric, fluid and thermal solid networks, which are already known in literature, cf. [2–4]. These approaches can be extended to gas, mechanical and control systems to model multiphysical systems. For instance, in case of HEVs (hybrid electric vehicles), BEVs (battery electric vehicles), cf. [2], and FCEVs (fuel cell electric vehicles) these can be the vehicle chassis, the drive line, the air path of the ICE (internal combustion engine) including combustion and exhaust aftertreatment, the cooling and lubrication system of the ICE and battery packs, the electrical propulsion system including the engine and a battery pack, the air conditioning and passenger cabin models, cf. [5], waste heat recovery and finally according control systems. Due to the complex interaction of the subsystems, the challenges in the development of future power trains do not only lie in the design of individual components but in the assessment of the power train as a whole. On a system engineering level, it is required to optimize individual components globally and to balance the interaction of different subsystems. Due to the increasing complexity of the models, the systems exhibit largely varying time scales and are difficult in the numerical simulation. A mainly automatized multirate approach is a promising way to decrease the computational effort. One possible implementation for this is the time integration via a cosimulation approach, cf. [6–8].
The structure of the work is the following: In Sect. 1 the individual physical networks are introduced, and the coupling conditions are stated in order to obtain a fully coupled system of network DAEs. The multirate time integration technique for the coupled system of network DAEs is described in Sect. 2 and the corresponding numerical results are presented in Sect. 3 and Sect. 4. Finally we conclude in Sect. 5.
1 Problem formulation
In the following, a network is discussed that consists of several multiphysical elements. The network elements describing the electric contribution are provided by current sources, voltage sources, nodes, ground, resistors, capacitors, and inductors. The fluid network consists of pipes, pumps, demands, junctions, and reservoirs. The electrothermal coupling is established by lumped mass elements representing the pipe wall and the masses from the battery and heat transfer connections. The individual components are assembled to a network \(\mathcal{N}\), which is represented by a linear directed graph. The graph structure is described by an incidence matrix A, which can be used for the model descriptions, cf. [9]. In the following we state the DAEs for the three main involved physical networks.
Electrical network
The electrical network \(\mathcal{N}_{E} = \lbrace R, C, L, V, I, N, G, B \rbrace \) is composed of resistors R, capacitors C, inductors L, voltage sources V, current sources I, nodes N, grounds G and batteries B. The DAE for the network in \(\mathcal{N}_{E}\) in inputoutput form is given by: For predefined continuous inputs \(u=(u_{R}^{T}, u_{C}^{T}, u_{B}^{T})^{T}\) find the potentials \(e = (e_{N}^{T}, e_{G}^{T})^{T}\), the currents \(j = (j_{R}^{T}, j_{C}^{T}, j_{L}^{T}, j_{V}^{T}, j_{B}^{T})^{T}\) and the outputs \(y = y_{R}\), such that
for given boundary conditions \(e_{G} = 0\) and predefined resistance r, capacitance c and inductance l as well as prescribed currents \(\bar{j}_{I}\) and prescribed voltages \(\bar{v}_{V}\) and \(\bar{v}_{B}\). The coupling variables are expressed as temperature of the resistor \(u_{R}\), the capacitor \(u_{C}\) and the battery \(u_{B}\) as well as the energy flux of the resistor \(y_{R}\), where ∘ denotes the Hadamard product, i.e. the elementwise vector product, and \(\cdot \) the elementwise absolute value.
Solid network
We consider a solid network \(\mathcal{N}_{S} = \lbrace SW, LW, HT, HS, TB \rbrace \) that includes solid walls SW, lumped walls LW, heat transfers HT, heat sources HS and temperature boundaries TB. The DAE for the network \(\mathcal{N}_{S}\) in inputoutput form is specified by: For predefined continuous inputs \((u_{Hs_{S}}^{T},u_{Tb_{S}}^{T})^{T}\), find the temperatures \((T_{Sw}^{T}, T_{Lw}^{T})^{T}\), the heat fluxes \(H_{Ht_{S}}\) and the outputs \((y_{Sw}^{T}, y_{Lw}^{T}, y_{Ht_{S}}^{T})^{T}\), such that
for given boundary conditions \(H_{Hs} = \bar{H}_{Hs}\) and \(T_{Tb} = \bar{T}_{Tb}\) and predefined positive definite coefficient matrices \(m_{Sw}\), \(c_{p,Sw}\) and \(c_{Ht_{S}}\). The coupling variables are expressed as the energy fluxes \(u_{Hs_{S}}\) and \(u_{Tb_{S}}\) and the temperatures \(y_{Sw}\), \(y_{Lw}\) and \(y_{Ht_{S}}\).
Fluid network
The fluid network \(\mathcal{N}_{F} = \lbrace PI, PU, DE, VJ, LJ, RE, HT, TB \rbrace \) consists of pipes PI, pumps PU, demands DE, volume junctions VJ, lumped junctions LJ, reservoirs RE, heat transfers HT and temperature boundaries TB. The DAE for the network \(\mathcal{N}_{F}\) in inputoutput form is given by: For predefined continuous inputs \((u_{Hs_{F}}^{T},u_{Tb_{F}}^{T})^{T}\), find the pressures \((p_{Lj}^{T}, p_{Vj}^{T})^{T}\), the mass flows \((q_{Pi}^{T}, q_{Pu}^{T})^{T}\), the temperatures \((T_{Vj}^{T}, T_{Lj}^{T})^{T}\), the heat fluxes \((H_{Ht_{F}}^{T}, H_{Pu}^{T}, H_{Pi}^{T})^{T}\) and the outputs \((y_{Vj}^{T}, y_{Lj}^{T}, y_{Ht_{F}}^{T})^{T}\), such that
for given boundary conditions \(q_{De} = \bar{q}_{De}\), \(H_{De} = \bar{H}_{De}\), \(p_{Re} = \bar{p}_{Re}\) and \(T_{Re} = \bar{T}_{Re}\) and predefined coefficients \(c_{1,Pi}\), \(c_{2,Pi}\), \(c_{3,Pi}\), \(m_{Vj}\), \(c_{p, Vj}\) and \(c_{Ht_{F}}\) as well as provided functions \(f_{Pu}\). The function \(B_{Jc}\) checks for the sign of the mass flow \(q_{Pi}\), cf. [3]. The coupling variables are expressed as the temperatures \(u_{Hs_{F}}\) and \(u_{Tb_{F}}\) and the energy fluxes \(y_{Vj}\), \(y_{Lj}\) and \(y_{Ht_{F}}\).
Multiphysical model
The multiphysical model is derived by combining (1), (2) and (3) with appropriate coupling conditions. The coupling conditions describe the relation between the inputs and outputs of the individual models. For the model used in Sect. 3 and Sect. 4, the following coupling conditions are used, see e.g. [2].
The connectivity equation (4) represents the electrothermal coupling of the electrical network and the cooling systems. Combining all subsystems and their connectivity equations (4) yields a DAE:
Find
such that
DAEs resulting from automated modelling software typically obtain a structure with dindex (differentiation index) greater than 1, cf. [3, 4, 10] and hence are not suitable for a direct simulation with standard solvers. In the setup of multiple physical networks, it is not sufficient, that the full DAE (5) can be reduced to a dindex 1. Additionally, each subsystem, to which a solver is applied, has to fulfill dindex 1 conditions as well, cf. [7, 11]. In our applications an automatic index reduction is performed if the electric or the fluid system are detected to be of dindex 2. This is achieved by providing surrogate models according the corresponding literature, cf. [3, 4], which enables additionally a consistent definition of initial values. Similarly, it is possible to describe the coupling of thermal solid systems with gas systems. An approach for coupling fluid, gas and thermal solid systems can be found in [5].
2 Multirate integration for coupled network DAEs
In our multirate approach the full DAE (5) is partitioned due to the physical background to \(n\in \mathbb{N}\) subsystems (typically \(n \gg 2\)). Each subsystem is index reduced according to the available literature, cf. [3, 4, 10]. Since in the global network the individual subsystems are interacting with each other, i.e. inputs and outputs are connected according to the connectivity equation (4), it is necessary to put it into an inputoutput form. For this purpose, each subsystem \(i=1,\ldots ,n\) classifies its inputs \(u_{i}\), state variables \(x_{i}\), algebraic variables \(a_{i}\) and outputs \(y_{i}\). To conclude, this approach yields a coupled system of n semiexplicit DAEs in inputoutput form of dindex 1. For inputs \(u_{i}\) specified by equation (4), find \(x_{i}\), \(\dot{x}_{i}\), \(a_{i}\) and \(y_{i}\), such that
for \(i = 1, \ldots , n\). A careful choice of the connectivity matrix given in (4) guarantees that the coupled system obtains dindex 1 as well, cf. [2, 7]. E.g. one possible choice is the usage of differential states, which are not involved in any index reduction, as coupling variables.
For each subsystem (6) an arbitrary RungeKutta method with microstep sizes \(h_{i}\) is used, cf. Fig. 1, in an indirect approach, cf. [12]. This means that just the differential part is solved using a RungeKutta scheme, while the algebraic part is solved for each given time and differential state. The choice of the actual integration technique depends on the properties of the underlying system and can be explicit, implicit, fixed, or adaptive. The whole system (5) is integrated via a noniterative cosimulation technique with macrostep size \(H = \max (h_{i})\). All systems are updated at the end of each macrostep. This principle relates to synchronous communication and we refer to these points in time as synchronization times, cf. Fig. 1. In the general case, the individual time steps vary significantly, which means that a global synchronization time quickly pushes the multirate approach to its limits. A hierarchical modelling approach allows for defining individual synchronization times for coupled subsystems. A partitioning algorithm detects cosimulation components that can exchange information on smaller synchronization step sizes. By grouping on multiple levels, multiple synchronization times can be configured. This allows higher frequency subsystems to be exchanged on lower time scales. The evaluation of each macrostep of the subsystems is done in a sequential GaussSeidelapproach. The values \(u_{i}\) are handled with appropriate interpolation or extrapolation techniques, depending on the slow or active characteristic of the interacting subsystems. To support energy conservation across circuit borders, fluxes are integrated and interpolated accordingly such that incoming and outgoing energies are identical. It is important to mention that for our multiphysical model (5), we always have cyclic dependencies between the coupled physical domains. For example, the temperature and the heat flux are exchanged when coupling electric and solid systems. Therefore, extrapolation is always needed at some point. Nevertheless, it is possible to state convergence order results of the method for slowfirst, fastfirst and fully decoupled cosimulation approaches for \(n=2\), cf. [7]. Due to \(n \gg 2\) this approach is generalized to a more general one. This is done by establishing an evaluation order for all subsystems. By defining dependencies within and between the subsystems, it is possible to analyze the evaluation order based on a graph on multiple levels. According to this graph, an algorithm computes a valid evaluation order. In most relevant cases, this satisfies the conditions, cf. [7], such that the cosimulation approach has convergence order p if the RungeKutta method has convergence order p and the interpolation is of order \(p1\). This applies to the examples presented in Sect. 3 and 4.
3 Simulation of a BEV with cooling system
The given BEV example demonstrates the modelling of an electrical system linked with the required cooling system, cf. Fig. 2. The model consists of an electrical propulsion and two cooling circuits. An oil circuit is used for cooling of the electric machine and a coolant circuit is used for cooling of the battery pack, inverter, and DCDC converter. The involved subsystem of the coupled electrothermal model can be reduced to DAEs of dindex 1.
The multirate approach presented in Sect. 2 is put into context with the reference solution of a single solver approach (both sequential/single CPU). In this example eight thermal circuits of the form (2), three mechanical circuits, an electric circuit of the form (1), 14 gas circuits given in [5] and two fluid (oil and cooling and lubrication) circuits of the form (3) are present which represent in total 461 equations. The preferred choice of solvers for both, the single solver approach and the multirate approach are adaptive explicit solvers [13] but are compared for completeness with a fixed step singlerate approach as benchmark solution. Hence the step size of the single solver is limited to the minimum step size of all subdomains, while the multirate approach is limited to the synchronization time and the characteristic of the global domain. Four different solver parametrizations were simulated and compared. The first parametrization is a fixed step singlerate solver with a time step of 1 ms. We refer to this in the charts and tables as Singlerate (Fixed: 1 ms). The second one is an adaptive singlerate solver with a maximum time step of 50 ms, referenced by Singlerate (Adaptive: 50 ms). In this example no singlerate parametrization was found that achieves a better performance. On the other hand, we have two multirate solvers which use the benefit of adaptive solvers. In the first approach, which is called Multirate (Synctime: 20 ms), the electric, gas and oil circuits use a maximum step size of 10 ms while cooling and lubrication, mechanical and thermal domains use a maximum step size of 20 ms. Here the information is exchanged at a global synchronization time of 20 ms. The last parametrization (Multirate (Synctime: multiple)) uses a maximum step size of 10 ms again for the electric, gas and oil circuits. For mechanical and thermal it uses 20 ms and for the cooling and lubrication it uses 40 ms as a maximum step size. In this constellation two interacting subsystems derive their synchronization time from the highest maximum step size of both parametrizations. Thus, synchronization times of 10 ms, 20 ms and 40 ms are used. Since many physical subsystems are involved, the overall evaluation sequence of the individual physical domains is complex to visualize. We give a simplified list of the evaluation order with the main contributions:

1.
Cooling and lubrication circuit

2.
Oil circuit

3.
Electrical circuit

4.
Mechanical circuits

5.
Gas and thermal solid circuits
This evaluation order is valid for both the Multirate (Synctime: 20 ms) and Multirate (Synctime: multiple) approaches. In the Multirate (Synctime: multiple) approach the oil and electric circuit are exchanging data at synchronization time 10 ms and form a new group. This itself is coupled to the mechanical, gas and thermal solid circuits with a synchronization time of 20 ms and again creates a new group. At the end for the coupling with the cooling and lubrication circuit a synchronization time of 40 ms is applied.
A comparison of the results in the heat flow between the battery and the cooling system shows that the two singlerate solutions differ from the multirate solutions, cf. Fig. 3. Because of the information exchange on macro step size, multirate approaches are more inert in the simulation. For realtime simulations, such deviations in results are usually not of major importance. It is more important that the overall model is calculated in an energy conserving manner to avoid unphysical effects and unrealistic controller behaviours. This is achieved by using flux averaging techniques similar to the more advanced approach in [14] for mechanical couplings. The verification of the energy conservation is mainly done empirically and with aposteriori consistency checks. The energy loss in the electrical system shows that there is no difference between singlerate and multirate solvers, cf. Fig. 4. The multirate solvers provide sufficiently accurate results.
Besides accuracy, performance is an important criterion for realtime applications. Both, simulation time and realtime factor (RTF) are interesting characteristics to assess the performance. The realtime factor is calculated based on the computation time \(S_{i}\) for each individual time window \([t_{i},t_{i}+h_{i}]\) by
This value can be used to evaluate the realtime capability of a simulation. In Table 1 the simulation time and average RTF of the singlerate cases is compared with those of the multirate case, cf. Fig. 5. A significant speed up in the calculation time can be achieved and one can see that this is achieved per time step not only in some critical areas. Using multiple synchronization times, another 10% of the computing time can be saved compared to the standard multirate approach. In total, the computation time can be reduced to a fifth of the best singlerate case.
4 Simulation of a three phase inverter with cooling system
We consider a detailed physical model of an inverter with transitors, IGBT (insulatedgate bipolar transistor), switches, an RC (resistorcapacitor) filter as well as a 3 phase ohmic load. The inverter is used to convert a DC (direct current) voltage through timed switching of the six transistors into a PWM (pulse width modulation) signal. The RC filter then averages the PWM and thus creates a 3 phase AC (alternating current) voltage, cf. Fig. 6.
In total this example consists of 178 equations which are spread over 20 solvers. A fluid circuit described by (3), seven gas circuits modeled like in [5] and eleven solid thermal circuits of the form (2) are responsible for modelling the cooling of the electric system (1).
In this example three solver constellations are compared. The reference solution (Singlerate (Fixed: 1 μs)) of the system is using an explicit fixed step solver with 1 μs. In the first multirate scheme (Multirate (Synctime: 1 ms)) each physical domain is solved using again an explicit fixed step method. A step size of 1 μs is applied for the electric system. All other domains take 1 ms as step size. Again, an explicit fixed step method is used, whereby the chosen step size is now 1 μs. The information exchange takes place after each macrostep of 1 ms. The second multirate scheme (Multirate (Synctime: Multiple)) uses, again as in the previous example, multiple synchronization times. The electric system is still solved with 1 μs. But now, only the solid thermal circuits apply steps of 1 ms. The gas and fluid circuit use a step size of 5 ms. Therefore, within the system two synchronization times are used, 1 ms and 5 ms. Again, like in the previous example a simplified evaluation order can be given by:

1.
Electric circuit

2.
Gas circuits

3.
Fluid circuit

4.
Thermal solid circuits
This model is of special interest, since the electrical network and all other domains run on completely different time scales (of order \(\mathcal{O}(1000)\)). The results of an IGBT show that the temperature is the same in all three constellations, cf. Fig. 7. In general, the results of the multirate solvers are sufficiently accurate in this example.
Again, significant speed up in the calculation time can be achieved, cf. Fig. 8. The multirate approaches are more than 6 times faster than the singlerate approach, cf. Table 2. Comparing the two multirate solutions with each other, it can be seen that the use of different synchronization times does not provide any further significant improvement. This is because the thermal networks of fluid, gas and solid circuits require to be resolved on almost the same time scale compared to the electric system. In general, the RTFs for this example are very high as the electrical system must be resolved very accurately. Thus, despite enormous performance improvements, the simulation is still far from being realtime capable, which means that further improvements both on modelling side as well as the solver side are necessary.
5 Conclusion
As shown, the multirate approach offers a possibility to reduce computation time considerably. Its can be adapted to the requirements of the model to be simulated. Any physical system can be accompanied by a solver tailored to its own needs. If the solver step sizes in the model vary strongly between the different solvers (\(n\gg 2\)), a stable solution can still be guaranteed by a hierarchical synchronization approach. To ensure a stable simulation, automatic index reduction of the physical networks, appropriate solver settings for each subsystem and an adequate coupling procedure, are important. For the correct choice a significant speed up can be achieved, while satisfying the accuracy requirements. Despite the considerable improvements using the presented cosimulation approach, this still can be improved. Thus, there is the possibility to save additional computation time by parallelisation and intelligent inter/extrapolation methods. However, further analysis of the considered systems and the applied methods are necessary to achieve this properly.
Availability of data and materials
Not applicable.
Abbreviations
 AC:

Alternating current
 BEV:

Battery electric vehicle
 dindex:

Differential index
 DAE:

Differentialalgebraic equation
 DC:

Direct current
 FCEV:

Fuel cell electric vehicle
 HEV:

Hybrid electric vehicle
 ICE:

Internal combustion engine
 IGBT:

Insulatedgate bipolar transistor
 PWM:

Pulse width Modulation
 RC:

Resistorcapacitor
 RTF:

Real time factor
References
Kolmbauer M, Offner G, Pfau RU, Pöchtrager B. Multirate DAEsimulation and its application in system simulation software for the development of electric vehicles. In: Scientific computing in electrical engineering (SCEE 2020). Cham: Springer; 2021. p. 231–40.
Kolmbauer M, Offner G, Pöchtrager B. Topological index analysis and its application to multiphysical systems in system simulation software. In: Cruz M, Parés C, Quintela P, editors. Progress in industrial mathematics: success stories. Cham: Springer; 2021. p. 171–91.
Baum AK, Kolmbauer M, Offner G. Topological solvability and DAEindex conditions for mass flow controlled pumps in liquid flow networks. Electron Trans Numer Anal. 2017;46:394–423.
Estévez Schwarz D, Tischendorf C. Structural analysis of electric circuits and consequences for MNA. Int J Circuit Theory Appl. 2000;28(2):131–62.
Kolmbauer M, Offner G, Pöchtrager B. Multirate DAEsimulation and its application in system simulation software for the development of hvac systems. (ECMI 2021). Springer. (accepted for publication).
Maten EJW, Brachtendorf HG, Pulch R, Schoenmaker W, De Gersem H. Nanoelectronic coupled problems solutions. Mathematics in industry. Heidelberg: Springer; 2019.
Bartel A, Günther M. Inter/extrapolationbased multirate schemes: a dynamiciteration perspective. In: Reis T, Grundel S, Schöps S, editors. Progress in differentialalgebraic equations II. Cham: Springer; 2020. p. 73–90.
Bartel A, Günther M. Multirate Schemes – An Answer of Numerical Analysis to a Demand from Applications. University of Wuppertal; 2019. IMACM Preprint, No. 201912.
Jansen L, Tischendorf C. A unified (P)DAE modeling approach for flow networks. In: Schöps S, Bartel A, Günther M, ter Maten EJW, Müller PC, editors. Progress in differentialalgebraic equations. Berlin: Springer; 2014. p. 127–51.
Grundel S, Jansen L, Hornung N, Clees T, Tischendorf C, Benner P. Model order reduction of differential algebraic equations arising from the simulation of gas transport networks. In: Schöps S, Bartel A, Günther M, ter Maten EJW, Müller PC, editors. Progress in differentialalgebraic equations. Berlin: Springer; 2014. p. 183–205.
Bartel A, Günther M. PDAEs in refined electrical network modeling. SIAM Rev. 2018;60(1):56–91.
Kunkel P, Mehrmann V, Mehrmann VL, Society EM. Differentialalgebraic equations: analysis and numerical solution. EMS textbooks in mathematics. Helsinki: Eur. Math. Soc.; 2006.
Hindmarsh AC, Brown PN, Grant KE, Lee SL, Serban R, Shumaker DE, Woodward CS. Sundials: suite of nonlinear and differential/algebraic equation solvers. ACM Trans Math Softw. 2005;31(3):363–96.
Benedikt M, Watzenig D, Zehentner J, Hofer A. NEPCE – a nearly energypreserving coupling element for weakcoupled problems and cosimulations. In: Idelsohn S, Papadrakakis M, Schrefler B, editors. V international conference on computational methods for coupled problems in science and engineering coupled problems. 2013.
Acknowledgements
None.
Funding
Part of this work has been supported by the government of Upper Austria within the programme Innovatives Oberösterreich.
Author information
Authors and Affiliations
Contributions
MK and BP provided the theory and numerical tests for this publication. GO and RUP contributed their expertise in vehicle simulation and reviewed and discussed all stages of the development. RUP contributed in the implementation of the approach in AVL CRUISE™M and featured numerical examples with reference solutions. GO was responsible for the conception of the project. GO and RUP contributed to the writing of the paper. All authors have read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Kolmbauer, M., Offner, G., Pfau, R.U. et al. Multirate DAEsimulation and its application in system simulation software for the development of electric vehicles. J.Math.Industry 12, 11 (2022). https://doi.org/10.1186/s1336202200126x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1336202200126x