Radiation damage is one major limitation for the use of silicon sensors in High Energy Physics and for research at synchrotron radiation sources and x-ray Free-Electron-Lasers. In this paper we describe the implementation of experimental results on radiation damage by neutrons and by 12 keV x-rays into the commercial simulation program Synopsys-TCAD and simulate the effects of radiation damage for two different sensor types and radiation fields: i) the dark current, the full depletion voltage and the electric field distribution for p + n magnetic Czochralski Si pad sensors irradiated with neutrons, and ii) the electric field distribution and the breakdown voltage for x-ray irradiated n + n FZ Si pixel sensors for the XFEL. The simulations are part of a comprehensive program to optimize the design of silicon sensors with respect to radiation tolerance.