New Python Package: Hamiltonian Lorenz-like Models

Dear All,

We are pleased to share a new Python package that implements Hamiltonian Lorenz-like models—a class of low-order dynamical systems that extend the classical Lorenz-96 and Lorenz-2005 frameworks by adding a Hamiltonian structure. These models are particularly well-suited for studying conservative dynamical systems, shallow-to-intermediate depth wave modelling, geophysical flows, and chaotic transport.

:link: PyPI: HamLorenz·PyPI

For the full mathematical formulation and analysis, see:

Fedele, Chandre, Horvat, and Žagar (2025). Hamiltonian Lorenz-like models, Physica D, Vol. 472, 134494.
:page_facing_up: https://doi.org/10.1016/j.physd.2024.134494

Cheers,
Francesco

HamLorenz 0.1.0 Features

  • Hamiltonian structure: The time evolution of the system is derived from a Hamiltonian, preserving energy exactly as in the continuous-time limit.
  • Casimir invariants: Multiple conserved quantities beyond energy, ensuring the system evolves on a constrained manifold.
  • Symplectic integrators: Optional numerical solvers designed for long-time energy and Casimir invariant preservation.
  • Lyapunov spectrum computation: Quantifies the level of chaos in the system via Lyapunov exponents.
  • Fourier-based desymmetrization: Enables symmetry reduction to study physical variables in a more interpretable form.
  • PDF and time series visualization: Built-in tools to analyze and visualize system statistics and dynamics.