The precise prediction of water inflow in tunnels is a key aspect of civil engineering. It is directly related to the progress of construction, the stability of caverns and the safety of construction personnel. Currently widely used calculation methods include the empirical formula method, the analytical method and the numerical simulation method. In situations where the geological conditions are complex and the boundary conditions are irregular, numerical simulation methods have clear advantages. However, there are still discussions about the rationality, accuracy and applicability of the definition of tunnel boundary conditions in numerical simulation methods. Based on the Groundwater Model System (GMS10.7) software, we investigate the feasibility of using the DRAIN module to describe tunnel boundaries and calculate water inflow. By comparing it with traditional empirical formulas, the feasibility of the method is verified, and the error is about 8%. In addition, this method is applied to predict the water inflow in the construction of an underground pumping station under complex geological conditions and the prediction is compared with the measured water inflow, and the error is about 20%. This article explains the physical meaning and the value method of the relevant parameters of the DRAIN module, providing basic support for the prediction of water inflow in tunnels.