Pile foundations are a common foundation form for large dynamic machines, the essential and difficult problem in design is to determine the response characteristics of foundations under dynamic loads. The simulation method of finite solid elements for dynamic machine foundations was constructed based on the interaction of foundation, pile foundations and superstructures, and the modal and steady-state simulations were performed. The simulation results were verified by test results of foundations with double piles on site. Then, the steady state analysis for a foundation of axial flow compressors was performed, and the vibration displacement was calculated. Based on the model, the modal damping ratio of the structure, diameter and length of the foundation piles were taken as variables to analyze the laws for the vibration displacement of the axial flow compressor foundation. And corresponding optimization measures were proposed, which could provide reference to the optimization of similar projects.