The Photon Simulator (PhoSim) is a set of fast photon Monte Carlo codes used to calculate the physics of the atmosphere and a telescope & camera in order to simulate realistic astronomical images. PhoSim generates images by collecting photons into pixels.  Please follow the link below to obtain and learn how to use PhoSim.