post process energy calculation