adding function object for energy dissipation rate