Improved averaging method for turbulent flow simulation