Numerical simulation of flow and heat transfer for a cylinder in free vibration