It is clear that the total energy in a full gravitating $N$-body simulation should be conserved, but what about the energy of an individual particle? Is this not conserved, since the potential is itself time-dependent (due to interactions between particles)?
Alternatively, is the hamiltonian for a single particle in an $N$-body system conserved?