This book systematically introduces readers to computational granular mechanics and its relative engineering applications. Part I describes the fundamentals, such as the generation of irregular particle shapes, contact models, macro-micro theory, DEM-FEM coupling, and solid-fluid coupling of granular materials. It also discusses the theory behind various numerical methods developed in recent years. Further, it provides the GPU-based parallel algorithm to guide the programming of DEM and examines commercial and open-source codes and software for the analysis of granular materials. Part II focuses on engineering applications, including the latest advances in sea-ice engineering, railway ballast dynamics, and lunar landers. It also presents a rational method of parameter calibration and thorough analyses of DEM simulations, which illustrate the capabilities of DEM. The computational mechanics method for granular materials can be applied widely in various engineering fields, such as rock and soil mechanics, ocean engineering and chemical process engineering.