Time-dependent, three-dimensional simulation of free-electron-laser oscillators.