The invention discloses an airspace engine 3D printing thermal
stress distribution control method which comprises the following steps: S1, importing a three-dimensional CAD model of an airspace engine structure, and generating a printing layer set; s2, constructing a three-dimensional node graph structure of a printing layer; s3, inputting the thermodynamic prediction input
tensor into the heterogeneous attention map thermodynamic network to obtain a node-level thermal stress
tensor map; s4, analyzing the node-level thermal stress
tensor diagram, and extracting an optimized region; s5, calling an improved chameleon
search algorithm in the optimization region; s6, optimal printing parameters of the current printing layer are determined; s7, the 3D printing device is controlled based on the optimized printing parameters, and real-time thermal
inductance data are collected; and S8, mapping the thermal
inductance feedback set of the printing layer to the corresponding node, and repeatedly executing the steps S2 to S7 until the whole airspace engine structure is printed. According to the method, the heterogeneous graph network and the improved chameleon
search algorithm are fused, and precise control over the printing thermal stress of the airspace engine is achieved.