Simulation of the Lyot Coronograph