Abstract:A digital teaching platform for rock underground engineering was constructed using Fast Lagrangian Analysis of Continua (FLAC) and Mathematica software. Through FLAC modeling, the stress redistribution in surrounding rock after tunneling can be directly perceived, and the principle of the primary supporting of New Austrian Tunnelling Method can be explained visually. Through visually processing the theoretical formula for underground engineering using Mathematica, the influence of rock mechanical parameters on the stress redistribution can be understood easily. The results are important for undergraduates to enhance the interests in learning, improve the understanding of the theory, and develop the knowledge of numerical analysis.