The invention discloses an airspace engine 3D printing deformation compensation method. The method comprises the following steps that S1, a three-dimensional CAD model is constructed, and a printing layer set is generated; s2, obtaining
residual stress tensor fields of the current printing layer and the historical printing layer; s3, constructing a stress
shadow mapping tensor; s4, inputting the stress
shadow mapping tensor and the current printing layer parameter into the reverse stress propagation neural
network model, and outputting a deformation prediction
vector field; s5, performing geometric compensation
processing on the geometric area of the printing layer according to the deformation prediction
vector field; s6, generating a printing code according to the compensated geometric model; and S7, carrying out error comparison on the actual
deformation vector field and the overall prediction
deformation vector field, if the error is greater than a preset tolerance threshold value, feeding back error information to the step S5, and repeatedly executing the steps S5 to S7 until the error
vector field does not exceed the tolerance threshold value. According to the method,
residual stress modeling and the reverse stress propagation neural network are fused, and 3D printing deformation compensation of the airspace engine is achieved.