Numerical simulation of unsteady separated flows