Discrete energy-conservation properties in the numerical simulation of the Navier-Stokes equations