Local-average based numerical simulation of turbulent flows