This document presents an immersed boundary method to solve fluid-structure interaction problems involving a moving rigid solid object. The method treats the solid object as fluid governed by the Navier-Stokes equations, and adds virtual force and heat source terms to model the solid object's prescribed velocity and temperature. The method was validated on benchmark forced and natural convection problems, and used to study a mixed convection problem of a heated cylinder moving inside an enclosure. The immersed boundary method avoids dynamic grid generation and provides efficient computation of thermal and flow fields caused by fluid-structure interaction.