SRIM is a popular program used to simulate the transport of ion in matter. The program was originally created by James F. Ziegler and Jochen P. Biersack and is available for free download at srim.org.
For more information about the program and its underlying theory, see the SRIM website, the Wikipedia article, or the textbook.