A deterministic forcing scheme for direct numerical simulations of turbulence