The hazards associated with sand liquefaction induced by dynamic events are significant. The study of the dynamic stability in hydraulic structures presents an interdisciplinary challenge encompassing both geotechnical engineering and engineering seismology. This study was based on an actual hydraulic engineering project. To effectively predict changes in pore pressure caused by earthquakes, we integrated the Finn constitutive equations into a distinct lattice spring model (DLSM). In this study, the code was customized to accommodate multiple materials simultaneously participating in the calculations, thus simplifying the solution to complex engineering problems. Initially, we validated the DLSM’s liquefaction equation by comparing it with the finite difference method. Subsequently, we conducted a comparative analysis of liquefaction in an engineering project of sluice using the enhanced DLSM. Our analysis indicates that untreated sand has a severe risk of trending toward liquefaction, presenting a hazard to hydraulic engineering. The incorporation of a gridded concrete framework significantly mitigated the seismic-induced pore pressure accumulation and irreversible deformations caused by vibrations. A comparative study showed that concrete retaining walls with concrete supports are more effective at reducing liquefaction hazards and minimizing irreversible deformations in engineering structures.