Generalized span categories provide a framework for formalizing mathematical models of open systems in classical mechanics. We introduce LagSy and HamSy that, respectively, categorical the Lagrangian Hamiltonian descriptions mechanical systems. The morphisms correspond to such systems, composition construction from subsystems. Legendre transformation gives rise functor that translates perspecti...