Exergetic Port-Hamiltonian Systems Modeling Language
Markus Lohmayer, Owen Lynch, Sigrid Leyendecker
TL;DR
EPHS address the challenge of modeling complex multiphysical systems by introducing a compositional, thermodynamically consistent language that unifies energy-based storage, reversible Dirac-structure interchanges, and irreversible Onsager exchanges within a graphical framework. The approach leverages interconnection patterns built from an operad of undirected wiring diagrams to ensure power preservation and thermodynamic compliance, offering a flexible path from simple primitives to complex composites. By situating EPHS among bond graphs, port-Hamiltonian systems, and metriplectic/GENERIC formalisms, the paper highlights its modularity, hierarchical composition, and explicit exergy semantics, demonstrated through a shunt motor example. The work lays the groundwork for category-theoretic formalization, software implementation, and potential integration with discretization and machine learning, enabling scalable, thermodynamically sound modeling of engineered and physical systems.
Abstract
Mathematical modeling of real-world physical systems requires the consistent combination of a multitude of physical laws and phenomenological models. This challenging task can be greatly simplified by hierarchically decomposing systems into ultimately simple components. Moreover, the use of diagrams for expressing the decomposition helps make the process more intuitive and facilitates communication, even with non-experts. As an important requirement, models have to respect fundamental physical laws such as the first and the second law of thermodynamics. While some existing modeling frameworks make such guarantees based on structural properties of their models, they lack a formal graphical syntax. We present a compositional and thermodynamically consistent modeling language with a graphical syntax. In terms of its semantics, we essentially endow port-Hamiltonian systems with additional structural properties and a fixed physical interpretation, ensuring thermodynamic consistency in a manner closely related to the metriplectic or GENERIC formalism. While port-Hamiltonian systems are inspired by graphical modeling with bond graphs, neither the link between the two, nor bond graphs themselves, can be easily formalized. In contrast, our syntax is based on a refinement of the well-studied operad of undirected wiring diagrams. By combining a compositional, graphical syntax with an energy-based, thermodynamic approach, the presented modeling language simplifies the understanding, reuse, and modification of complex physical models.
