Port-Hamiltonian systems theory provides a structured approach to modelling, optimization and control of multiphysical systems. Yet, its relationship thermodynamics seems be unclear. The Hamiltonian is traditionally thought as energy, although meaning exergy. This insight yields benefits: 1. Links the GENERIC structure are identified, making it relatively easy borrow ideas from popular framewor...