IM3D is a massively parallel, open-source, 3D Monte Carlo code for simulating the transport of ions and the production of primary defects in different materials. It is developed based on the standard SRIM databases, the fast database indexing technique and MPI parallel algorithm as well as the 3D structural algorithms of Constructive Solid Geometry (CSG) and Finite Element Triangulated Mesh (FETM) methods which can model arbitrarily complex 3D targets made of different geometric elements, each composed of different materials. Both the 3D distribution of ions and the material evolution associated with the ion's energy loss, such as displacement, sputtering, damage, ionization, and phonon production, can be modeled by IM3D with local rules. IM3D code thus provides a general and robust theoretical approach to analysis the effects in primary damage processes and the corresponding 3D space-distributions of primary defects in complex materials under ion irradiation. |