Numerical simulation of a forced and freely-vibrating cylinder at supercritical Reynolds numbers