Based on the idea of modularization, the three-dimensional icing calculation research code for aircraft and aero-engine is developed by using the secondary development features (UDF) of FLUENT. By analyzing the physical process of aircraft and engine inlet parts icing, two-phase flow field calculation, water droplets collect calculation, thermodynamic calculation of icing, wall mesh calculation program is compiled, four calculation modules of icing calculation program were realized. By solving the key problem of data exchange and control solution process between the secondary development program and the four calculation modules, the module integration is completed and the three-dimensional icing numerical simulation of icing components of aircraft and aero-engine was realized. The calculation of icing on NACA0012 3D airfoil is carried out, and compared with the experimental results in literature. The results show that the maximum icing thickness is in good agreement with the experimental results, and the predicted ice shape is consistent with the experimental ice shape development trend. The calculation results show that the proposed three-dimensional icing calculation method is effective and reliable. On the basis of this, numerical simulation of icing was carried out on the trailing adjusted strut of aero-engine inlet with a tail angle of 0 °, and the water collection coefficient of the strut wall and the icing area of the strut at different time were obtained. It provides a new method for pre-researching aircraft and aero-engine icing.