compute averaged enstrophy