Code accompanying the article "Data-driven adjoint-based calibration of port-Hamiltonian systems in time domain" by Michael Günther, Birgit Jacob and Claudia Totzeck (University of Wuppertal)
To generate the data and plots of article run the batch file "run_all_scripts".
We ran the code examples on a MacBookAir (M1, 2020) with python 3.7.16 installed via Anaconda.