Vakonomic Fluids
We introduce a novel structure-preserving simulation of incompressible fluid flow by discretizing it as a Hamiltonian system on a space of matrices, based on Koopman operator theory. This places our method in the family of matrix hydrodynamics methods, and like them it preserves the geometric structure of the underlying physics, including Casimir invariants and a discrete version of Kelvin's circulation theorem. As a result, it captures intricate vortical structures while remaining numerically stable even on coarse meshes.