Simulating vortex wakes of flapping plates