A three-dimensional aircraft space flow field intelligent reconstruction method based on graph transformer

By reconstructing the 3D space flow field of an aircraft using a lightweight Transformer model, the problems of low reconstruction efficiency and poor accuracy in existing technologies are solved, achieving fast and accurate flow field reconstruction, which is applicable to flow field prediction under different shapes and operating conditions.

CN123181774APending Publication Date: 2026-11-27CHINA ACAD OF AEROSPACE AERODYNAMICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611246428.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to quickly and accurately reconstruct the spatial flow field of three-dimensional aircraft, especially under complex conditions such as variable geometry and cross-velocity domains, and data-driven models are difficult to directly apply to engineering practice.

Method used

A lightweight graph Transformer model is adopted to convert the space unstructured mesh of the aircraft into graph nodes. The wall pressure values ​​are propagated iteratively through the adjacency matrix to construct the input feature vector and target output vector of the graph Transformer model. The flow field features are mapped by encoder and decoder. The flow field features are accurately reconstructed by combining local message passing layer and global Transformer layer.

Benefits of technology

It significantly improves the efficiency and accuracy of flow field reconstruction, can complete flow field reconstruction on a single GPU, with a time much shorter than traditional CFD simulation, and has good generalization ability and robustness, with an error of less than 16%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181774A_ABST
    Figure CN123181774A_ABST
Patent Text Reader

Abstract

The application provides a three-dimensional aircraft space flow field intelligent reconstruction method based on a graph Transformer, adopts an encoder to map graph node and edge features into input feature coding, and then passes through a processor stacked by a local message passing layer and a global Transformer layer to obtain feature coding of an aircraft space flow field, and finally maps the feature coding of the space flow field back to a physical space through a decoder, and outputs all flow field variables after inverse normalization. To alleviate the problem of GPU memory overhead caused by large-scale calculation grids, the model parameter amount of the application is small, the average relative error of the generalization is small when verifying the generalization on a small sample data set, the key flow characteristics such as shock waves and stagnation points can be accurately maintained, the interpolation generalization ability is strong, the reasoning efficiency is extremely high, and the application is suitable for rapid evaluation of aircraft aerodynamic performance and CFD acceleration calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of space flow field reconstruction technology for aircraft, and specifically relates to a three-dimensional space flow field intelligent reconstruction method based on graph Transformer, which is applicable to application scenarios such as rapid aerodynamic performance evaluation and CFD accelerated calculation of aircraft. Background Technology

[0002] Throughout the entire aircraft design phase, rapid and reliable assessment of aircraft aerodynamic performance is a crucial foundation for conducting aerodynamic design, stability design, and control optimization. An aircraft's lift, drag, and torque characteristics directly determine its ballistics, maneuverability, and handling stability. The three-dimensional spatial flow field distribution of an aircraft is essential for exploring its lift and drag mechanisms and guiding refined design.

[0003] However, currently, obtaining the space flow field of an aircraft can only rely on classical computational fluid dynamics (CFD) methods, which are time-consuming and difficult to meet the needs of rapid response and iteration in the aircraft design phase.

[0004] In recent years, the rapid development of data science and artificial intelligence technologies has provided new ideas for improving the efficiency and effectiveness of classic aerodynamic assessment processes. However, due to the enormous grid size (millions of nodes) required for predicting the spatial flow field of three-dimensional aircraft, popular data-driven models, such as Geometric Information Neural Operator (GINO), Neural Operator Transformer (GNOT), and Graph Convolutional Neural Network (GCN), are generally limited to predicting the surface flow field of automobiles and aircraft, and are currently difficult to directly apply to predicting the spatial flow field of complex three-dimensional aircraft. On the other hand, data-driven models cannot guarantee prediction results outside the design space, making it difficult to directly apply them to engineering practice.

[0005] Therefore, exploring the reconstruction of the space flow field of three-dimensional aircraft under complex working conditions such as variable geometry and cross-velocity domain is a demand-driven task with practical value. Summary of the Invention

[0006] To address the shortcomings of existing technologies, such as low efficiency in acquiring 3D space flow fields for aircraft, difficulty in handling large-scale spatial grids by data-driven models, and limitations of existing flow field reconstruction methods to two-dimensional or surface flow fields, this invention provides an intelligent reconstruction method for 3D space flow fields of aircraft based on a lightweight graph Transformer model. This method can quickly and accurately invert and reconstruct the distribution of all flow field variables (including density, velocity in three directions, and pressure) in the three-dimensional space of the aircraft from pressure distribution data obtained from test measurement points on the aircraft surface or model predictions. It has strong interpolation and generalization capabilities and extremely high inference efficiency, thus providing effective support for the aerodynamic performance evaluation and refined design of aircraft.

[0007] The technical solution provided by this invention is as follows: Firstly, a method for intelligent reconstruction of the spatial flow field of a three-dimensional aircraft based on graph Transformer includes: S1, convert the space unstructured mesh of the spacecraft into graph nodes, and obtain node features and edge features between nodes; S2, the pressure values ​​of the aircraft wall are propagated iteratively through the adjacency matrix to obtain the pressure values ​​of all nodes; S3, standardize the flow field variables at each node, construct the input feature vector of the graph Transformer model using node features, edge features and standardized pressure, and construct the target output vector of the graph Transformer model using standardized density, three-direction velocity and pressure. S4, the encoder using the graph Transformer model maps the input feature vector to the input feature code; S5 uses a graph Transformer model processor to extract the input feature code and obtain the spatial flow field feature code; S6. The decoder of the graph Transformer model is used to encode and map the spatial flow field features back to the physical space to obtain the model prediction results. S7 uses aircraft CFD simulation data as the training data source. Steps S1-S3 are used to construct the input feature vector and target output vector of the graph Transformer model. The input feature vector is used as the input and the target output vector is used as the label to optimize the parameters of the graph Transformer model and obtain the trained model. S8. For the target aircraft's spatial flow field, construct the input feature vector of the graph Transformer model according to steps S1-S3 and input it into the optimized graph Transformer model. Obtain the model prediction results according to steps S4-S6, perform inverse normalization on the prediction results, obtain the three-dimensional spatial flow field variables of the aircraft, and complete the reconstruction of the three-dimensional aircraft spatial flow field.

[0008] Secondly, a three-dimensional space flow field intelligent reconstruction device based on graph Transformer includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the intelligent reconstruction method for three-dimensional space flow fields of aircraft based on graph Transformer as described in the first aspect.

[0009] Thirdly, a readable storage medium storing a computer program that, when executed by a processor, implements the intelligent reconstruction method for three-dimensional spacecraft spatial flow fields based on graph Transformer as described in the first aspect.

[0010] Fourthly, a computer program product comprising: a computer program (also referred to as code or instructions) that, when executed, performs the intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer as described in the first aspect.

[0011] The intelligent reconstruction method for three-dimensional space flow field of an aircraft based on graph Transformer provided by the present invention has the following beneficial effects: (1) The lightweight graph Transformer model architecture proposed in this invention has extremely high efficiency in flow field reconstruction inference. The model has fewer parameters and can complete training and inference on a single GPU. The inference time for a single spatial flow field reconstruction is much lower than that required by traditional CFD numerical simulation, which significantly improves the efficiency of acquiring the spatial flow field of three-dimensional aircraft. Taking a complex three-dimensional aircraft configuration as an example, traditional CFD simulation requires tens of thousands to millions of CPU hours, while the method of this invention can complete the reconstruction of the spatial flow field within 10 seconds.

[0012] (2) The model proposed in this invention has good flow field feature preservation capabilities. Through the combined design of local message passing layer and global Transformer layer, it can simultaneously capture the local detailed features and global large-scale features of the flow field. Numerical experiments show that the flow field reconstructed by the model can accurately preserve the key flow features of the space flow field of the aircraft in different speed domains (subsonic, transonic, and supersonic).

[0013] (3) The model proposed in this invention has a wide range of applications and robust interpolation generalization ability. It can handle the spatial flow field reconstruction task of different shaped aircraft under different flight conditions, and the model maintains a roughly equal error distribution on the training set, validation set and test set. The generalization error is less than 16%, which is within an acceptable error range, thus verifying the robust interpolation generalization ability of the model method of this invention. Attached Figure Description

[0014] Figure 1 : A schematic flowchart of the method of the present invention; Figure 2 The dataset contains schematic diagrams of five different aircraft shapes. Figure 3 Figure: Convergence curve of training loss for the Transformer model; Figure 4Figure: Flow field reconstruction results of the Transformer model on training set samples; Figure 5 Figure: Flow field reconstruction results of the Transformer model on validation and test set samples; Figure 6 Figure: The distribution of the average relative error of the Transformer model in the training set; Figure 7 Figure: The average relative error distribution of the Transformer model on the validation and test sets. Detailed Implementation

[0015] The features and advantages of the present invention will become clearer and more apparent from the following detailed description.

[0016] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0017] This invention provides a method for intelligent reconstruction of the three-dimensional space flow field of an aircraft based on graph Transformer, such as... Figure 1 As shown, it includes the following steps: S1. Convert the space unstructured mesh of the spacecraft into graph nodes, and obtain the node features and the edge features between nodes.

[0018] For the unstructured spatial mesh of a 3D aircraft, each mesh is treated as a node in a graph, and edges are established between adjacent meshes that are coplanar. The nodes in the graph are then divided into sets of mesh nodes representing the aircraft's wall boundary. and internal volume mesh node set That is, the set of all nodes. .

[0019] (1) For each node Extract the following node features: Node coordinates ; Node type identifier ;in, t i =1 indicates a boundary mesh node on the aircraft wall. t i =0 indicates an internal volume mesh node; Symbolic distance function value , representing the shortest distance from the node to the boundary of the aircraft wall.

[0020] (2) For each slave node i Pointing to nodej Directed edge Extract the following edge features: relative displacement vector ; Side length , representing the Euclidean distance between nodes; Area of ​​shared surface .

[0021] S2. Propagate the pressure values ​​of the aircraft wall through the adjacency matrix iteratively to obtain the pressure values ​​of all nodes.

[0022] Because surface pressure data is only defined at the boundary grid nodes of the aircraft wall. Above, internal volume mesh nodes The stress values ​​are missing values ​​and cannot be directly input into the model, so missing value completion is required first.

[0023] Define the adjacency matrix of a graph ,in N Let be the total number of nodes in the graph. If the number of nodes is 1, then the total number of nodes in the graph is i With nodes j If there is an edge connecting G, then ij =1, otherwise 0. Define the degree matrix D as a diagonal matrix, where the degree matrix is ​​denoted by 1. i Each diagonal element is a node. i degree Construct a symmetric normalized adjacency matrix. .

[0024] make The initial pressure vector is defined as follows: The actual pressure values ​​are used at the boundary mesh nodes of the aircraft wall, while missing values ​​at the internal volume mesh nodes are initialized with 0. Feature propagation is performed using the following iterative algorithm: In the formula, and The first k and k The global pressure iteration vector of +1 iterations. , and Initial and the first k +1 iterations of the spacecraft wall boundary mesh nodes i Pressure value; That is, the wall pressure value is propagated iteratively through the adjacency matrix, and after each iteration, the pressure of the wall boundary mesh nodes is reset to the initial known value. K Wheel K After 20 iterations, the pressure at the internal volume mesh nodes is smoothly filled by the pressure at the boundary mesh nodes of the adjacent spacecraft wall, generating a definition across all nodes. VInitial pressure estimation .

[0025] S3. Standardize the flow field variables (density, velocity in three directions, and pressure) at each node, construct the input feature vector of the graph Transformer model using the node features, edge features, and standardized pressure, and construct the target output vector of the graph Transformer model using the standardized density, velocity in three directions, and pressure.

[0026] z-score normalization is performed on the pressure data after completion in step S2: In the formula, This represents the statistical mean of the pressure at the boundary grid nodes of the aircraft wall. The statistical standard deviation of the pressure at the boundary grid nodes of the aircraft wall. For standardized nodes i Pressure at the location, p i and p j These are the nodes before standardization. i and j Under pressure, Preset to small positive numbers to prevent division by zero. 10 -8 ~10 -6 Order of magnitude.

[0027] For the density and velocity variables, we normalize them using far-field free flow. Let the density and velocity of the far-field free flow be denoted as follows: and ,but: In the formula, and These are nodes before and after standardization. i Density at that location; , and These are the pre-standardization nodes. i The velocity components of the fluid at a given location along the x, y, z directions; , and These are the standardized nodes. i The velocity components of the fluid at a given location along the x, y, z directions.

[0028] Finally, construct the input feature vector. and Target output vector .

[0029] S4. An encoder using a graph Transformer model maps the input feature vectors to the latent space to obtain the input feature encoding.

[0030] The graph Transformer model adopts an overall encoder-processor-decoder architecture. The encoder consists of two independent multilayer perceptrons (MLPs): a node encoder and an edge encoder.

[0031] The node encoder takes the input features of each node. Mapped to d 3D input feature encoding: The edge encoder will define the features of each directed edge. Mapped to d 3D input feature encoding: In the formula, For nodes i Initial node feature encoding at the location; For edge ( i,j Edge feature encoding at position ) and Each contains L enc Each layer consists of a fully connected layer, and each layer includes a linear transformation, a ReLU activation function, and layer normalization.

[0032] S5. The input feature code is extracted using a graph Transformer model processor to obtain the spatial flow field feature code.

[0033] The processor is made by L A local message passing layer and T It consists of stacked global Transformer layers.

[0034] (1) The local message passing layer uses a generalized convolutional module (GENConv) as the message passing operator. l layer( L =0,1,…, L The processing procedure for -1) is as follows: Calculate each edge ( j , i The original message: In the formula, Represents the edge ( j , i The original message; Indicates the process l Nodes after the local message passing layer j Node feature encoding at the location; For a preset small positive number, 10 -8 ~10 -6 Order of magnitude.

[0035] Employ learnable parameters β The softmax function weights messages from different neighbors: In the formula, Represents the edge ( j , i The message weight is a d A dimensional vector, with each dimension independently subjected to softmax normalization; N ( i ) represents a node i All neighboring nodes.

[0036] Messages from different neighbors are weighted and aggregated according to their weights: In the formula, Indicates a node i All neighboring nodes j The weighted average of the above messages; This represents element-wise product.

[0037] The aggregated message is added to the node's own feature encoding and then connected through a residual network: In the formula, and They were respectively through l Layers and l+ Nodes after the first layer of local message passing i Node feature encoding at the location; This is an MLP that includes linear transformation, ReLU, and layer normalization.

[0038] (2) The global Transformer layer uses a Galerkin-type linear attention module. Let the node feature encoding matrix after passing through the local message passing layer be... ,set up H There are 1 attention head, and each attention head has 1 dimension. d h = d / H .

[0039] For each attention headh Calculate the Q, K, and V matrices: In the formula, These are learnable projection weights.

[0040] For each attention head h Calculate Galerkin-type attention: In the formula, first calculate get d h × d h 1-order matrix, then left-multiply Finally, divide by N Normalize.

[0041] Will H The outputs of each attention head are concatenated and passed through a linear layer. Gain overall attention: The attention output is added to the original node feature encoding, then layer normalized, and further transformed through a feedforward network (FFN), followed by residual connections and layer normalization again. In the formula, This represents the overall attention block obtained by concatenating all attention heads; Indicates intermediate temporary matrix variables; The final node physical feature encoding matrix is ​​represented by the following form: , Represents a node i The final node physical feature encoding at the location.

[0042] S6. The decoder of the graph Transformer model is used to encode and map the spatial flow field features back to the physical space to obtain the model prediction results.

[0043] The decoder is a node decoder that encodes the node physical features output by the processor. Mapping back to physical space: In the formula, For inclusion L dec An MLP with fully connected layers, the last layer having no activation function and layer normalization to allow for unbounded regression values ​​to be output.

[0044] S7. Using aircraft CFD simulation data as the training data source, construct the input feature vector and target output vector of the graph Transformer model using steps S1-S3. Use the input feature vector as input and the target output vector as label to optimize the parameters of the graph Transformer model and obtain the trained model.

[0045] The dataset used to train the model in this invention contains a total of 120 high-precision CFD simulation data points with different shapes and flight conditions. The dataset includes a total of 5 different aircraft shapes (e.g., ...). Figure 2 As shown), each aircraft shape takes into account 24 different flight conditions, which are full factor combinations of the following parameters: (1) Mach number (2) Angle of attack For each Mach number condition mentioned above, we matched it with a corresponding flight altitude condition, namely, altitudes of 10km, 12km, 15km, 20km, 30km, and 35km respectively.

[0046] Each example in the dataset was numerically simulated using a CFD solver. The governing equations were steady-state compressible RANS equations, and the unstructured mesh for the spacecraft was an automatically generated hybrid mesh (triangular prisms in the boundary layer region and unstructured tetrahedrons in other regions). Finally, 100 samples were randomly selected from the dataset for model training, 15 samples for model validation, and 5 samples for model testing.

[0047] Regarding model hyperparameters, set the model hyperparameters as small as possible to alleviate the memory overhead problem during model training: (1) Set the number of MLP layers of nodes and edges in the encoder to be respectively set to The latent space dimension of encoding d =20 (2) The number of layers of the GENConv operator in the processor is set to L =2, the number of layers in the Galerkin Transformer is set to 1, and the number of attention heads is set to... H =2, the dimension of each attention head is d h =10; (3) The number of MLP layers in the decoder is set to 10; Ultimately, the graph Transformer model has only 6,133 parameters, making it an extremely lightweight model.

[0048] The model training uses a data reconstruction loss function to train the Transformer model: In the formula, For data reconstruction loss function; The graph shows the prediction results of the Transformer model.

[0049] Finally, the AdamW optimizer was used to optimize the model parameters. The model training results, as well as the model's prediction performance and error distribution on the training set, validation set, and test set, are shown below. Figure 3-7 As shown in Table 1, the error statistics are presented in the table.

[0050] S8. For the target aircraft's spatial flow field, construct the input feature vector of the graph Transformer model according to steps S1-S3 and input it into the optimized graph Transformer model. Obtain the model prediction results according to steps S4-S6, perform inverse normalization on the prediction results, obtain the three-dimensional spatial flow field variables of the aircraft, and complete the reconstruction of the three-dimensional aircraft spatial flow field.

[0051] Based on the standardized parameters and far-field free flow information from step S3, the standardized physical variables output by the model are inversely normalized: The final output is the physical variables on each grid cell. This completes the reconstruction of the three-dimensional space flow field of the aircraft.

[0052] The present invention also provides a three-dimensional spacecraft space flow field intelligent reconstruction device based on graph Transformer, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the intelligent reconstruction method for three-dimensional space flow fields of aircraft based on graph Transformer as described in the first aspect.

[0053] The present invention also provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer as described in the first aspect.

[0054] The readable storage media include, but are not limited to, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0055] The present invention also provides a computer program product, the computer program product comprising: a computer program (also referred to as code or instructions), which, when the computer program is run, executes the intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer described in the first aspect.

[0056] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) means.

[0057] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0058] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0059] The present invention has been described in detail above with reference to specific embodiments and exemplary examples; however, these descriptions should not be construed as limiting the present invention. Those skilled in the art will understand that various equivalent substitutions, modifications, or improvements can be made to the technical solutions and embodiments of the present invention without departing from the spirit and scope of the invention, and all such modifications and improvements fall within the scope of the present invention. The scope of protection of the present invention is defined by the appended claims.

[0060] The contents not described in detail in this specification are common knowledge to those skilled in the art.

Claims

1. A method for intelligent reconstruction of the spatial flow field of a three-dimensional aircraft based on graph Transformer, characterized in that, include: S1, convert the space unstructured mesh of the spacecraft into graph nodes, and obtain node features and edge features between nodes; S2, the pressure values ​​of the aircraft wall are propagated iteratively through the adjacency matrix to obtain the pressure values ​​of all nodes; S3, standardize the flow field variables at each node, construct the input feature vector of the graph Transformer model using node features, edge features and standardized pressure, and construct the target output vector of the graph Transformer model using standardized density, three-direction velocity and pressure. S4, the encoder using the graph Transformer model maps the input feature vector to the input feature code; S5 uses a graph Transformer model processor to extract the input feature code and obtain the spatial flow field feature code; S6. The decoder of the graph Transformer model is used to encode and map the spatial flow field features back to the physical space to obtain the model prediction results. S7 uses aircraft CFD simulation data as the training data source. Steps S1-S3 are used to construct the input feature vector and target output vector of the graph Transformer model. The input feature vector is used as the input and the target output vector is used as the label to optimize the parameters of the graph Transformer model and obtain the trained model. S8. For the target aircraft's spatial flow field, construct the input feature vector of the graph Transformer model according to steps S1-S3 and input it into the optimized graph Transformer model. Obtain the model prediction results according to steps S4-S6, perform inverse normalization on the prediction results, obtain the three-dimensional spatial flow field variables of the aircraft, and complete the reconstruction of the three-dimensional aircraft spatial flow field.

2. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 1, characterized in that, The step of converting the space unstructured mesh of the spacecraft into graph nodes and obtaining node features and edge features between nodes is implemented in the following manner: For the unstructured spatial mesh of a three-dimensional aircraft, each mesh is treated as a node in a graph, and edge connections are established between adjacent meshes that have a coplanar relationship. The nodes in the diagram are divided into sets of spacecraft wall boundary mesh nodes. and internal volume mesh node set That is, the set of all nodes. ; For each node Extract the following node features: Node coordinates ; Node type identifier ;in, t i =1 indicates a boundary mesh node on the aircraft wall. t i =0 indicates an internal volume mesh node; Symbolic distance function value , representing the shortest distance from the node to the boundary of the aircraft wall; For each slave node i Pointing to node j directed edges Extract the following edge features: relative displacement vector ; Side length , representing the Euclidean distance between nodes; Area of ​​shared surface .

3. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 2, characterized in that, The step of iteratively propagating the pressure values ​​of the aircraft wall through the adjacency matrix to obtain the pressure values ​​of all nodes is implemented in the following manner: Define the adjacency matrix of a graph ,in N Let be the total number of nodes in the graph. If the number of nodes is 1, then the total number of nodes in the graph is 2. i With nodes j If there is an edge connecting G, then ij =1, otherwise 0; define the degree matrix D as a diagonal matrix, whose degree is 1. i Each diagonal element is a node. i degree Construct a symmetric normalized adjacency matrix ; make The initial pressure vector is defined as follows: The actual pressure values ​​are used at the boundary mesh nodes of the aircraft wall, while missing values ​​at the internal volume mesh nodes are initialized with 0. Feature propagation is performed using the following iterative algorithm: In the formula, and The first k and k The global pressure iteration vector of +1 iterations. , and Initial and the first k +1 iterations of the spacecraft wall boundary mesh nodes i Pressure value; That is, the wall pressure value is propagated iteratively through the adjacency matrix, and the pressure of the wall boundary grid nodes is reset to the initial known value after each iteration; go through K After rounds of iteration, the pressure of the internal volume mesh nodes is smoothly filled by the pressure at the boundary mesh nodes of the adjacent spacecraft wall, generating a definition in all nodes. V Initial pressure estimation .

4. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 3, characterized in that, The steps of standardizing the flow field variables at each node, constructing the input feature vector of the graph Transformer model using node features, edge features, and standardized pressure, and constructing the target output vector of the graph Transformer model using standardized density, three-directional velocity, and pressure are implemented in the following manner: z-score standardization of the stress data: In the formula, This represents the statistical mean of the pressure at the boundary grid nodes of the aircraft wall. The statistical standard deviation of the pressure at the boundary grid nodes of the aircraft wall. For standardized nodes i Pressure at the location, p i and p j These are the nodes before standardization. i and j Under pressure, Preset to small positive numbers to prevent division by zero. 10 -8 ~10 -6 Order of magnitude; For the density and velocity variables, we use far-field free flow for standardization; let the density and velocity of the far-field free flow be denoted as follows: and ,but: In the formula, and These are nodes before and after standardization. i Density at that location; , and These are the pre-standardization nodes. i The velocity components of the fluid at a given location along the x, y, z directions; , and These are the standardized nodes. i The velocity components of the fluid at a given location along the x, y, z directions; Finally, construct the input feature vector. and Target output vector .

5. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 1, characterized in that, The step of mapping the input feature vector to the input feature code using the graph Transformer model encoder is implemented in the following manner: The graph Transformer model adopts an overall architecture of encoder-processor-decoder; the encoder consists of two independent multilayer perceptrons (MLPs): a node encoder and an edge encoder. The node encoder takes the input features of each node. Mapped to d 3D input feature encoding: The edge encoder will define the features of each directed edge. Mapped to d 3D input feature encoding: In the formula, For nodes i Initial node feature encoding at; The image src='' class="img-anchor" img-id="QLYQS_50" / > represents the edge ( i,j Edge feature encoding at position ); < img src='' class="img-anchor" img-id="QLYQS_51" / >and Each contains L enc Each layer consists of a fully connected layer, and each layer includes a linear transformation, a ReLU activation function, and layer normalization.

6. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 1, characterized in that, The step of extracting the input feature code using the processor employing the graph Transformer model to obtain the spatial flow field feature code is implemented in the following manner: The processor is made of L A local message passing layer and T It consists of stacked global Transformer layers; (1) The local message passing layer uses a generalized convolutional module as the message passing operator, let l =0,1,…, L -1, no. l The layer processing procedure is as follows: Calculate each edge ( j , i The original message: In the formula, Represents the edge ( j , i The original message; Indicates the process l Nodes after the local message passing layer j Node feature encoding at the location; The `img src='' class="img-anchor" img-id="QLYQS_56" / >` attribute represents a preset small positive number. 10 -8 ~10 -6 Order of magnitude; Employ learnable parameters β The softmax function weights messages from different neighbors: In the formula, Represents the edge ( j , i The message weight is a d A dimensional vector, with each dimension independently subjected to softmax normalization; N ( i ) represents a node i All neighboring nodes; Messages from different neighbors are weighted and aggregated according to their weights: In the formula, Indicates a node i All neighboring nodes j The weighted average of the above messages; Represents element-wise product; The aggregated message is added to the node's own feature encoding and then connected through a residual network: In the formula, and They were respectively through l Layers and l+ Nodes after the first layer of local message passing i Node feature encoding at the location; The image src='' class="img-anchor" img-id="QLYQS_66" / > represents an MLP that includes linear transformation, ReLU, and layer normalization; (2) The global Transformer layer uses a Galerkin-type linear attention module; let the node feature encoding matrix after passing through the local message passing layer be... ,set up H There are 1 attention head, and each attention head has 1 dimension. d h = d / H ; For each attention head h Calculate the Q, K, and V matrices: In the formula, These are learnable projection weights; For each attention head h Calculate Galerkin-type attention: In the formula, first calculate get d h × d h 1-order matrix, then left-multiply Finally, divide by N Perform normalization; Will H The outputs of each attention head are concatenated and passed through a linear layer. Gain overall attention: The attention output is added to the original node feature encoding, then layer normalization is performed, followed by further transformation through a feedforward network (FFN), and residual connections and layer normalization are performed again. In the formula, This represents the overall attention block obtained by concatenating all attention heads; Indicates intermediate temporary matrix variables; The final node physical feature encoding matrix is ​​represented by the following form: , Represents a node i The final node physical feature encoding at the location.

7. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 1, characterized in that, The decoder using the graph Transformer model encodes and maps spatial flow field features back to physical space to obtain model prediction results, which is implemented in the following way: The decoder is a node decoder that encodes the node physical features output by the processor. Mapping back to physical space: In the formula, For inclusion L dec An MLP with fully connected layers, the last layer having no activation function and layer normalization to allow for unbounded regression values ​​to be output.

8. The intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer according to claim 1, characterized in that, The step of performing inverse normalization on the prediction results to obtain the three-dimensional space flow field variables of the aircraft is implemented in the following manner: Based on the standardized parameters and far-field free flow information from step S3, the standardized physical variables output by the model are inversely normalized: The final output is the physical variables on each grid cell. This completes the reconstruction of the three-dimensional space flow field of the aircraft.

9. A three-dimensional space flow field intelligent reconstruction device based on graph Transformer, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the intelligent reconstruction method for three-dimensional space flow fields of aircraft based on graph Transformer as described in any one of claims 1 to 8.

10. A computer program product, characterized in that, The computer program product includes: a computer program that, when the computer program is run, executes the intelligent reconstruction method for three-dimensional spacecraft spatial flow field based on graph Transformer as described in any one of claims 1 to 8.