New feature: Hamiltonian Operator Inference from the paper Hamiltonian operator inference: Physics-preserving learning of reduced-order models for canonical Hamiltonian systems by Harsh Sharma (@harsh5332392), Zhu Wang, and Boris Kramer (@bokramer). The goal is to use Operator Inference for a canonical Hamiltonian system to learn a ROM that
- is a canonical Hamiltonian system;
- retains the physical interpretation of the state variables and preserves the coupling structure; and
- respects the symmetric property of structure-preserving space discretizations.
@harsh5332392 will take the lead on this. To begin, the main steps will be creating a SymplecticBasis class (cotangent lift algorithm) and a HamiltonianModel class that does the constrained optimization in fit() and symplectic integration in predict().
Suggested implementation steps:
Basis
Model Class
New feature: Hamiltonian Operator Inference from the paper Hamiltonian operator inference: Physics-preserving learning of reduced-order models for canonical Hamiltonian systems by Harsh Sharma (@harsh5332392), Zhu Wang, and Boris Kramer (@bokramer). The goal is to use Operator Inference for a canonical Hamiltonian system to learn a ROM that
@harsh5332392 will take the lead on this. To begin, the main steps will be creating a
SymplecticBasisclass (cotangent lift algorithm) and aHamiltonianModelclass that does the constrained optimization infit()and symplectic integration inpredict().Suggested implementation steps:
Basis
/src/opinf/basis/_symplectic.pySymplecticBasisclass that inherits fromopinf.basis.LinearBasisand implementfit(). Or, you might be able to do this quickly by inheriting from thePODBasisMulticlass, which represents a block diagonal POD (one POD for each variable)./src/opinf/basis/__init__.py./tests/basis/test_symplectic.py.make docs) and check that the automatically generated documentation page looks good.docs/source/guides/reduction.md. We should probably turn this into a notebook that shows the different kinds of basis functions you get from POD and the symplectic approach.Model Class
/src/opinf/models/multi/_hamiltonian.py.HamiltonianModelclass in the new file.fit()method should take in the data matrices, do the constrained optimizations, and initialize the operators of the ROM.predict()method with a symplectic integrator./tests/models/multi/test_hamiltonian.pydocs/source/tutorials/hamiltonian.ipynbwith the linear wave equation example.