Operator splitting for coupled linear port-Hamiltonian systems
Abstract
Operator splitting methods tailored to coupled linear port-Hamiltonian systems are developed. We present algorithms that are able to exploit scalar coupling, as well as multirate potential of these coupled systems. The obtained algorithms preserve the dissipative structure of the overall system and are convergent of second order. Numerical results for coupled mass-spring-damper chains illustrate the computational efficiency of the splitting methods compared to a straight-forward application of the implicit midpoint rule to the overall system.
keywords:
port-Hamiltonian systems, operator splitting, multiple time stepping.[BUW]organization=Bergische Universität Wuppertal, IMACM, addressline=Gaußstraße 20, city=Wuppertal, postcode=D-42119, country=Germany
1 Introduction
Many (complex) physical systems can be modeled as linear port-Hamiltonian systems (PHS) of ordinary differential equations (ODEs) [1]
(1a) | ||||
(1b) |
with state variable , quadratic Hamiltonian , skew-symmetric, positive semi-definite, input and output , as well as the port matrix . Supposing sufficient regularity of the input, there exists an unique solution that satisfies the energy balance condition
(2) |
The dissipation inequality (2) can also be stated in integral form, i.e., . We demand numerical solutions of (1) that preserve the energy balance (2) at a discrete level. This can be achieved, for example, by using discrete gradient methods [2]. Furthermore, we are aiming at deriving efficient numerical integration schemes which exploit the fine structure of the PHS. In this paper, we consider systems (1) with finer structure
(3a) | ||||
(3b) |
where are skew-symmetric, are positive semi-definite matrices, and , . This structure typically arises by coupling linear PHS via port matrices, e.g. in the modeling of electric circuits [3, Remark 7], and then shifting the coupling in the off-diagonal blocks of the skew-symmetric matrix.
Operator splitting techniques [4] enable the exploitation of the particular structure by additively splitting the right-hand side of (3). Recently, operator splitting techniques have been applied successfully to linear port-Hamiltonian ODE systems by splitting the PHS into its energy-conservative and energy-dissipative parts [5]. In this work, we will consider different splitting approaches that split the overall system (3) into its subsystems. Nonetheless, we want to emphasize that the resulting subsystems in our approach can be split further into their conservative and dissipative parts by applying the approaches introduced in [5] in a hierarchical manner.
The paper is organized as follows. In Section 2 we give a brief overview on operator splitting techniques and dissipativity-preserving numerical integration schemes for linear PHS. Section 3 is devoted to the special case where the matrix introduces a scalar coupling. Often, the port-Hamiltonian subsystems have transient behavior that is characterized by different time scales. In Section 4, we will develop multiple time stepping schemes that are integrating the subsystems using different step sizes. The proposed splitting methods are applied to coupled mass-spring-damper chains in Section 5. The paper closes with a summary and an outlook for future research.
2 Operator Splitting for Linear PHS
Operator splitting [4] is a framework to efficiently solve additively partitioned initial-value problems (IVPs) of ODEs
(4) |
where the right-hand side is split into two different parts w.r.t., for example, stiffness, nonlinearity, dynamical behavior and computational cost. Rewriting (4) in the homogeneous form
(5) |
operator splitting techniques approximate the exact flow of the dynamical system (5) by composing the flows and of the subsystems and , respectively [5]. Splitting methods of order require negative weights [6], which violates the dissipativity inequality and thus introduces an order barrier. The paper aims at developing efficient splitting methods of order that are tailored to the specific structure of the linear PHS (3). For this purpose, we consider the Strang splitting [7]
(6) |
Assuming that both subsystems are linear PHS, splitting methods satisfy the dissipativity inequality at a discrete level since the composition of dissipativity preserving maps is again dissipativity preserving.
Instead of using the exact flows and , we can replace them by numerical approximations and , respectively. If these are obtained by discrete gradient methods of order , it does not affect the convergence order, as well as the energy balance of the splitting method. For linear PHS (1), the implicit midpoint rule defines a discrete gradient method of order ,
(7a) | |||||||
with . In particular, the midpoint is a discrete approximation of the gradient for the quadratic Hamiltonian . As a discrete gradient, it satisfies , which implies the energy balance [8] | |||||||
By defining , the update of the state variable can be written as | |||||||
(7b) |
emphasizing its close connection to the Cayley transform. The next two sections will discuss different splittings of the partitioned linear PHS (3) exploiting the fine structure of the system, resulting in an efficient computational process.
3 Coupled Linear PHS with Scalar Coupling
In this section, we consider the linear PHS (3) as an additively partitioned ODE system (4) with splitting
(8) |
This splitting preserves the port-Hamiltonian structure in each subsystem, allowing the preservation of the energy balance (2) of the system using appropriate numerical integration schemes. Moreover, we can consider the subsystem as the internal evolution equation of the systems and as the coupling part.
Computational complexity. Considering the implicit midpoint rule and the computation of the update (7b) via an LU-decomposition, the splitting approach is generally more complex than the straight-forward application of the implicit midpoint rule to the overall system. The situation changes if we make further assumptions on the coupling.
Definition 1.
The system (8) is scalar coupled, if the coupling matrix has just one non-zero above, as well as below the diagonal.
Scalar coupling occurs in many use cases of linear PHS. We can exploit this structure to reduce the computational cost to compute (7b) for the second subsystem. As we have seen in (7b), the implicit midpoint rule demands the solution of a linear system of equations. Scalar coupling enables us to compute the transformation directly in a numerical stable way with no need of a matrix decomposition. Let be the non-zero value below and the non-zero value above the diagonal of . Then, it holds
Applying the implicit midpoint rule (7a) to the overall system (1) demands the computation of and , and the LU decomposition of the first matrix, resulting in setup costs of . Moreover, one time step of the implicit midpoint rule requires operations. In contrast, the splitting method (6) with splitting (8) and assuming scalar coupling has setup costs of size and demands operations per time step. Since it usually holds , the splitting approach becomes more efficient. Particularly, a straight-forward computation shows that the splitting method requires less operations, provided that and .
4 Coupled Linear PHS with Multirate Potential
In this section, we consider linear PHS (3), and we introduce the splitting approach
(9) |
where is characterized by slow dynamics and by fast dynamics. Moreover, we assume . To exploit this sort of multirate behavior, we aim at using a large macro-step size for the slow subsystem
(10a) | |||
and a small micro-step size for the fast subsystem | |||
(10b) |
This can be achieved by using the impulse method, a multirate generalization to the Strang splitting [9]. It reads
(11) |
and computes the numerical approximation by composing (approximated) flows of the subsystems (10a) and (10b).
Since the integrator (11) is a composition of flows of the subsystems (10a) and (10b) that are port-Hamiltonian and all weights are positive, the numerical approximation satisfies the dissipativity inequality.
Computational complexity. Due to the simple structure of , the fast subsystem (10b) simplifies to
(12) |
with , denoting the first components and denoting the first components of .
Neglecting the setup costs, computing one time step of the impulse method (11) with macro-step size demands operations. In contrast, computing steps of the implicit midpoint rule (7a) with step size to resolve the fast dynamics accurately enough demands operations. If the system (9) exhibits multirate potential so that and , the multiple time stepping approach requires less operations.
Remark 2.
An alternative approach would shift the coupling part into the fast subsystem. However, this would imply that the fast subsystem is of full dimension so that the evaluations of the fast flow would become more expensive, resulting in a less efficient computational process.
5 Numerical Results
A frequently used benchmark problem for linear PHS is given by a mass-spring-damper chain111https://algopaul.github.io/PortHamiltonianBenchmarkSystems.jl/ (MSD-chain) [10]. We consider two coupled MSD-chains, consisting of and mass-spring-damper elements, respectively. The two chains are coupled via a spring with stiffness , see Fig. 1. The first chain consists of homogeneous masses , mass-less springs , and damping . For the second chain, we have homogeneous parameters , , and . Introducing positions and momenta , , we can formulate the equations of motion as a PHS of the form (3) by setting as the coupling variables, resulting in [3]
where the two matrices are given by
The state variables are .
5.1 The singlerate case
In a first simulation, we choose , , , , and as initial value at we choose zero, apart from . We perform numerical simulations on the time interval using the implicit midpoint rule without any splitting approach (7a), as well as the Strang splitting (6) with splitting (8) and approximation of the flows via the implicit midpoint rule. For both approaches, we investigate the global error at vs. the total number of operations for different step sizes . The results are depicted in Fig. 2, emphasizing the efficiency of the splitting method.
5.2 The multirate case
In a second example, we choose , , , , , , , and . Consequently, the masses of the first chain are characterized by faster dynamics than the masses of the second chain, introducing multirate potential that motivates the use of multiple time stepping techniques like the impulse method (11). Again, we choose zero as the initial value, apart from and we perform numerical simulations on the time interval using the implicit midpoint rule (7a), as well as the impulse method (11) with splitting (9) and approximation of the flows via the implicit midpoint rule. Analogously to the previous example, we compare the efficiency of the splitting approach compared to a straight-forward application of the implicit midpoint rule. As multirate factor, we choose and perform numerical simulations using the implicit midpoint rule (7a) and the impulse method (11) with (macro) step sizes , . The results in Fig. 3 highlight that the multiple time stepping approach results in a more efficient computational process.
6 Conclusion and Outlook
In this work, we developed splitting methods tailored to coupled linear port-Hamiltonian systems. The resulting algorithms are dissipativity-preserving and convergent of second order. The investigations also include multiple time stepping techniques, enabling the use of different step sizes for the subsystems. Numerical results emphasize the efficiency of the proposed splitting methods compared to a straight-forward application of the implicit midpoint rule.
Future research will deal with the derivation of more advanced decomposition algorithms for linear PHS, particularly by using the (constant) Hessian of the Hamiltonian [11], enabling the derivation of fourth-order decomposition algorithms without using negative weights [12, 13] and thus satisfying the energy balance at a discrete level. We will moreover investigate the proposed splitting methods within the generalized additive Runge–Kutta (GARK) framework [14, 15] that allows to couple certain steps which may result, for example, in improved stability properties.
Acknowledgements
This work is supported by the German Research Foundation (DFG) research unit FOR5269 ”Future methods for studying confined gluons in QCD”.
References
- [1] A. Van Der Schaft, Port-Hamiltonian systems: an introductory survey, in: Proceedings of the International Congress of Mathematicians, Vol. 3, Marta Sanz-Sole, Javier Soria, Juan Luis Verona, Joan Verdura, Madrid, Spain, 2006, pp. 1339–1365. doi:10.4171/022-3/65.
- [2] O. Gonzalez, Time integration and discrete Hamiltonian systems, Journal of Nonlinear Science 6 (5) (1996) 449–467. doi:10.1007/BF02440162.
- [3] A. Bartel, M. Günther, B. Jacob, T. Reis, Operator splitting based dynamic iteration for linear differential-algebraic port-hamiltonian systems, Numerische Mathematik 155 (1) (2023) 1–34. doi:10.1007/s00211-023-01369-5.
- [4] R. I. McLachlan, G. R. W. Quispel, Splitting methods, Acta Numerica 11 (2002) 341–434. doi:10.1017/S0962492902000053.
- [5] A. Frommer, M. Günther, B. Liljegren-Sailer, N. Marheineke, Operator splitting for port-Hamiltonian systems (2023). arXiv:2304.01766.
- [6] M. Suzuki, General theory of fractal path integrals with applications to many-body theories and statistical physics, Journal of Mathematical Physics 32 (2) (1991) 400–407. doi:10.1063/1.529425.
- [7] G. Strang, On the construction and comparison of difference schemes, SIAM Journal on Numerical Analysis 5 (3) (1968) 506–517. doi:10.1137/0705041.
- [8] A. Macchelli, Control design for a class of discrete-time port-Hamiltonian systems, IEEE Transactions on Automatic Control 68 (12) (2023) 8224–8231. doi:10.1109/TAC.2023.3292180.
- [9] E. Hairer, C. Lubich, G. Wanner, Geometric numerical integration: structure-preserving algorithms for ordinary differential equations, 2nd Edition, Vol. 31 of Springer Ser. Comput. Math., Springer-Verlag, Berlin, 2006. doi:10.1007/3-540-30666-8.
- [10] S. Gugercin, R. V. Polyuga, C. Beattie, A. van der Schaft, Structure-preserving tangential interpolation for model reduction of port-hamiltonian systems, Automatica 48 (9) (2012) 1963–1974. doi:10.1016/j.automatica.2012.05.052.
- [11] M. Mönch, N. Marheineke, Commutator-based operator splitting for linear port-Hamiltonian systems (2024). arXiv:2405.17106.
- [12] I. Omelyan, I. Mryglod, R. Folk, Symplectic analytically integrable decomposition algorithms: classification, derivation, and application to molecular dynamics, quantum and celestial mechanics simulations, Computer Physics Communications 151 (3) (2003) 272–314. doi:10.1016/S0010-4655(02)00754-3.
- [13] K. Schäfers, J. Finkenrath, M. Günther, F. Knechtli, Hessian-free force-gradient integrators (2024). arXiv:2403.10370.
- [14] M. Günther, A. Sandu, K. Schäfers, A. Zanna, Symplectic GARK methods for partitioned Hamiltonian systems (2023). arXiv:2103.04110.
- [15] K. Schäfers, M. Günther, A. Sandu, Symplectic multirate generalized additive Runge-Kutta methods for Hamiltonian systems (2023). arXiv:2306.04389.