https://medium.com/@monocosmo77/how-port-hamiltonian-systems-work-part1-dynamical-systems-2023-b6be83acc0e4