Hamiltonian mechanics
The value of the Hamiltonian is the total energy of the thing  being described. For a closed system, it is the sum of its  kinetic and potential energy. There will be  a set of differential equations known as the Hamilton equations which show how the thing changes through time.