In this study, a π-shaped main beam with typical geometric characteristic parameters was selected for conducting wind tunnel tests, and the characteristics of the buffeting force were measured. Based on the measured results, numerical expansion research was conducted using the narrowband synthetic random flow generation (NSRFG) turbulent inlet method, and a grid strategy was provided. By changing the geometric characteristic parameters of the π-shaped girder, a comparative study was conducted using proper orthogonal decomposition (POD) and dynamic mode decomposition (DMD) methods, revealing the influence of cross-sectional geometric characteristic parameters on the buffeting force characteristics and analyzing their mechanism of action. The results indicate that the inlet wind parameters of the NSRFG need to be adapted to the grid size. The grid filter size at the front end of the model should be smaller than 0.193 of the along-wind turbulence integral scale, which can then be used to solve for 80% of the turbulent kinetic energy. The smaller the aspect ratio is, the larger the buffeting force spectrum is, and the smaller the opening ratio is, the smaller the buffeting force spectrum is. The opening ratio strongly influences the buffeting lift spectrum, and the aspect ratio strongly influences the buffeting drag spectrum. The POD decomposition indicates that the geometric characteristic parameters affect the shape, strength, position, and direction of vortices at the section opening. DMD decomposition indicates that geometric feature parameters affect the frequency and growth rate of dominant modes as well as the directionality and regularity of vortex distribution.