Automatic Decomposition Method of 2D Structural Mesh of Parts with Multiple Inner Holes Based on Neural Network

Through the neural network automatic decomposition method, the problem of low efficiency of manual decomposition in block structured mesh generation of complex models is solved, rapid automatic regional decomposition and mesh generation of multi-hole parts are realized, and the efficiency of simulation analysis is improved.

CN112257202BActive Publication Date: 2024-09-06HANGZHOU DIANZI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011145501.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-23
Publication Date
2024-09-06
Estimated Expiration
2040-10-23

AI Technical Summary

Technical Problem

In the existing technology, block structured mesh generation of complex models requires manual regional decomposition, resulting in low grid generation efficiency. Especially in the design of multi-hole parts, local changes are frequent, making it difficult to achieve automatic decomposition.

Method used

The automatic decomposition method of two-dimensional structural mesh based on neural network is adopted. By learning a large number of regional decomposition data of multi-hole parts, the neural network is trained to identify structural features, realize rapid automatic regional decomposition of similar topology, and generate suitable block structures. Area decomposition data for quadrilateral meshes.

Benefits of technology

It achieves rapid automatic region decomposition of parts with multiple internal holes, improves mesh generation efficiency, can accurately identify potential singular structures, and supports fast and accurate simulation analysis of parts with multiple internal holes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112257202B
    Figure CN112257202B
Patent Text Reader

Abstract

The present invention discloses a method for automatic decomposition of two-dimensional structural grids of multi-porous parts based on neural networks. The introduction of artificial links in the existing block structured grid generation will greatly reduce the grid generation efficiency. The present invention first prepares a sample set for neural network learning two-dimensional regional decomposition, and trains the neural network model through the position information of each grid point in the sample set and the frame vector annotation information of each frame; then, neural network prediction is performed on the predicted sample data of the multi-porous parts to be divided into structural grids, and the predicted sample data is processed using the frame vector annotation information predicted by the neural network to obtain the final regional decomposition data; finally, a mapping method is used to generate a quadrilateral grid of the multi-porous parts to be divided into structural grids. The present invention can realize rapid automatic regional decomposition for new models, which is of great significance for rapid and accurate simulation analysis of multi-porous parts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a regional decomposition process for generating block structured quadrilateral grids in pre-processing of numerical simulation, and in particular to a neural network-based automatic decomposition method for two-dimensional structural grids of parts with multiple inner holes. Background Art

[0002] Commonly used mesh types in numerical simulation analysis include structured, unstructured, nested, rectangular, and hybrid meshes, each with its own advantages and disadvantages. In two-dimensional problems, structured meshes, composed of regularly arranged quadrilateral elements, are highly favored in various simulations due to their high accuracy and minimal element count. However, compared to other mesh types, structured meshes impose strong topological constraints; generating a high-quality structured mesh for complex geometric models is a time-consuming and difficult task. By decomposing the model domain into multiple subdomains and generating a structured mesh within each subdomain, while not requiring the topology between the subdomains to maintain structured properties, a block-structured mesh is generated. This approach reduces the difficulty of mesh generation and avoids the distorted elements that can occur in fully structured meshes. For this reason, block-structured meshes are more widely used than fully structured meshes in practical engineering applications. Currently, generating block-structured meshes for complex models still requires manual domain decomposition and automatic generation of structured meshes for each subdomain. This manual process significantly reduces mesh generation efficiency. For example, local changes in the design of a part with multiple internal holes require re-decomposition of the model area to generate the mesh.

[0003] Artificial intelligence methods, such as neural networks, have achieved significant success in engineering practice. For example, convolutional neural networks are widely used in computer vision and demonstrate exceptional performance in model processing. Leveraging rapidly developing artificial intelligence technologies, automated domain decomposition of complex models through computer-generated learning based on existing data will significantly improve mesh generation efficiency. Summary of the Invention

[0004] The purpose of the present invention is to address the disadvantage that the existing block structured grid generation requires the introduction of artificial regional decomposition, and to provide a neural network-based two-dimensional structural grid automatic decomposition method for multi-porous parts. By learning a large amount of existing multi-porous part regional decomposition data suitable for block structured quadrilateral grid generation, the neural grid is trained to recognize the structural features inside the multi-porous part region, and to achieve rapid automatic regional decomposition of multi-porous parts with similar topology.

[0005] The technical solution adopted in the present invention is:

[0006] The method for automatic decomposition of a two-dimensional structural grid of a multi-hole part based on a neural network of the present invention is as follows:

[0007] Step 1: Create a sample set for neural network learning two-dimensional domain decomposition, as follows:

[0008] 1.1 Select at least 10 parts with multiple internal holes that have only local changes, and create a training sample data for each part for the neural network to learn two-dimensional region decomposition; the features of each sample point in the training sample data are the frame vector, the position information of the grid point where the frame vector is located, the distance between the grid point where the frame vector is located and the nearest boundary, the distance between the grid point where the frame vector is located and the nearest singular point, and the frame vector label information. The process of creating the training sample data is as follows:

[0009] First, the multi-porous part is discretized into a triangulated mesh and the number of triangulated mesh vertices is constrained to be between 2020 and 2050. Then, a frame field is generated to describe the internal structure of the multi-porous part region (using existing mature technology, each frame consists of four unit vectors, which can be represented by two orthogonal unit vectors). Based on this frame field, regional decomposition data suitable for generating block-structured quadrilateral meshes is generated (using existing mature technology), that is, a singular structure composed of singular lines. Next, the frame vectors at each grid point of the triangulated mesh are annotated as follows: for the frame vectors at the grid points through which the singular lines flow, the frame vectors that are consistent with the flow direction of the singular lines are annotated as 1, and the frame vectors that are inconsistent with the flow direction of the singular lines are annotated as 0; for the frame vectors at the grid points through which the singular lines do not flow, all are annotated as 0. Finally, the position information of the grid point where each frame vector is located, the distance between the grid point where each frame vector is located and the nearest boundary, and the distance between the grid point where each frame vector is located and the nearest singular point are determined, so as to obtain the features contained in each sample point, and finally obtain the training sample data based on all sample points.

[0010] 1.2 In order to obtain a large amount of training data, a mesh deformation operation is performed on the triangulated mesh of each multi-hole part (the mesh deformation operation specifically moves the internal mesh point positions while keeping the boundaries unchanged), and training sample data is also generated for the triangulated mesh after the mesh deformation operation. This can easily and quickly expand the sample set.

[0011] 1.3 All training sample data are classified into sample sets.

[0012] Step 2: Train the neural network model using the position information of each grid point in the sample set and the frame vector annotation information of each frame, as follows:

[0013] Input the multi-hole parts sample set into the neural network model to obtain a second-order tensor T. The first order of tensor T expresses the probability that the frame vector on the grid point is labeled as 0, and the second order expresses the probability that the frame vector on the grid point is labeled as 1. The first order index of tensor T is 0, and the second order index is 1. Then, 80% of the data is randomly selected from the multi-hole parts sample set as the training set and 20% as the test set. The training cycle is set to 200. In each training, the loss of tensor T relative to the labeled information in the sample set is calculated. Then, the neural network parameters are optimized through the backpropagation algorithm to reduce the loss. After the training cycle is reached, the trained neural network model is obtained. The loss calculation process is as follows:

[0014] loss=0.5*loss0+0.5*loss1,

[0015] Among them, loss0 is calculated by the cross entropy loss function, and loss1 is calculated by the Dice loss function;

[0016] loss0=labels*-log(z)+(1-labels)*-log(1-z),

[0017]

[0018] Among them, z = sigmoid(T), that is, the value of z is the result of applying the Sigmoid activation function to the tensor T, labels is the frame vector annotation information of the sample set, and sum is the sum of each element in the tensor.

[0019] Step 3: Perform neural network prediction on the predicted sample data of the multi-hole parts to be divided into structural grids, as follows:

[0020] 3.1 Generate prediction sample data without frame vector annotation information for the multi-porous parts to be divided into structural grids, as follows: discretize the multi-porous parts to be divided into structural grids into triangulated grids and constrain the number of triangular grid vertices to be between 2020 and 2050; then, generate a frame field (using existing mature technology) to characterize the internal structure of the multi-porous part area; finally, obtain the prediction sample data, and the features contained in each sample point of the prediction sample data are the frame vector, the position information of the grid point where the frame vector is located, the distance between the grid point where the frame vector is located and the nearest boundary, and the distance between the grid point where the frame vector is located and the nearest singular point.

[0021] 3.2 Input the predicted sample data into the trained neural network model to obtain a second-order probability vector containing the probability of the frame vector annotation information at each grid point in the predicted sample data. The index of the element with the largest probability in the second-order probability vector is the frame vector annotation information predicted by the neural network.

[0022] Step 4: Use the frame vector annotation information predicted by the neural network to process the predicted sample data to obtain the final regional decomposition data, as follows:

[0023] 4.1 Determine the location of the singular point and the initial flow direction of the singular line. Define the vector field u(x,y), where (x,y) is the two-dimensional coordinate of the grid point; given the triangulated grid point (x p ,y p ), if u(x p ,y p )=0, then the grid point is a singular point; then, according to the valence of the singular point, the intersection point of the ray extending from the singular point and the grid edge of the grid where the singular point is located is calculated, and the vector pointing from the singular point to the intersection point is used as the initial flow direction vector of the singular line.

[0024] 4.2 Find the discrete points that form the singular lines in the triangulated mesh of the multi-hole part to be divided into the structural mesh, as follows:

[0025] 4.2.1 Let the previous discrete point p of the singular line be i1-1 Points to the current discrete point p i1 The vector is Except for the discrete point p1 whose current flow direction vector is set as the initial flow direction vector of the singular line, the other discrete points p i1 The current flow vector That is the discrete point p i1 Frame vector; where, when i1=1, the discrete point p0 is a set imaginary point, the discrete point p1 is the singular point, and the discrete point p0 is a point that satisfies the following conditions: the vector from the discrete point p0 to the discrete point p1 is a unit vector collinear with the initial flow direction vector of the singular line; i1 The m nearest neighbor points are divided into n result point sets with frame vectors labeled as 1 according to the frame vector annotation information predicted by the neural network and a set of non-result points with mn frame vectors marked as 0 m=15; then, find P i1 Frame vector collection on Each element in 1≤j1≤n and The minimum angle between the element and The minimum angle sum between P′ i1 Frame vector collection on Each element in 1≤j2≤n and The minimum angle between the element and The minimum angle sum between Then, ask for The minimum value θ among 1≤j1≤n i1 ,as well as The minimum value θ in 1≤j2≤n ′i1 ; If θ i1 >θ ′i1 And θ i1 >35°, then θ ′i1 The corresponding element in the non-result point set is used as the next discrete point of the singular line. as the current flow direction vector of the next discrete point; otherwise, select θ i1 The corresponding element in the result point set is used as the next discrete point of the singular line. The current flow direction vector for the next discrete point.

[0026] 4.2.2 Repeat step 4.2.1 until all the discrete points that make up the entire singular line are determined, thus obtaining the entire singular line.

[0027] 4.3 Repeat steps 4.1 and 4.2 to obtain the positions of all singular points and all singular lines.

[0028] 4.4 Merge the repeated singular lines in the multi-hole parts to be divided into structural meshes. After merging, smooth all the singular lines to obtain the singular structure. The criterion for judging whether the singular line S0 and the singular line S1 are repeated is as follows: take the total number of discrete points of the singular line S0, divide it by 2, and round it down to the nearest integer, and the corresponding discrete point q i2 (That is, set the discrete point q i2 is the i2th point on the singular line S0), extract q from the discrete point set of all singular lines i2 The set Q of k' nearest neighbor points, k'=15, if there is a discrete point q' in Q j3 , the q′ j3 The initial point of the singular line S1 is the end point of the singular line S0, and the end point of the singular line S1 is the starting point of the singular line S0, and Then S0 and S1 are repeated singular lines; where q′ j3-1 is a discrete point q′ on the singular line S1 j3 The previous discrete point of q i2 The normal vector of the mesh, q′ j3 The normal vector of the mesh.

[0029] Step 5: Based on the singular structure generated in step 4, the quadrilateral mesh of the multi-hole part to be divided into the structural mesh is generated using the mapping method.

[0030] Preferably, the main structural design of the neural network model is as follows:

[0031] Structure ①: Global feature extraction layer. The first layer of global feature extraction layer X 1 It is obtained by convolution operation on the sample set; when l≥2, the lth global feature extraction layer is obtained by convolution operation on the l-1th layer feature tensor, and the convolution formula is X l =conv(F l-1 ), X l Represents the feature tensor of the lth layer global feature extraction layer, conv() represents the convolution operation, F l-1 Represents the feature tensor of the l-1th feature extraction layer.

[0032] Structure ②: Local feature extraction layer. Define the i-th sample point F′ i The k nearest neighboring points (with the sample point F′ i The set of the nearest k sample points) is 1≤j≤k, k is between 20-30; i traverses all grid points in the sample set; let the jth local feature of the first layer be The jth local feature of the l-1th layer is Then the feature tensor of the first local feature extraction layer is When l≥2, the feature tensor of the local feature extraction layer at layer l

[0033] Structure ③: Feature concatenation layer. This layer concatenates the global features X obtained in structure ①. l , l≥1 and the local feature Y obtained in structure ② l , l≥1, and we get F l =concat(X l +Y l ), where concat() is a feature concatenation operation.

[0034] Structure ④: Structure ①, structure ②, and structure ③ are combined into a feature combination layer, with a total of three consecutive feature combination layers. A maximum pooling layer is connected after the three feature combination layers to reduce parameters; then, a convolution layer and a Dropout operation layer are connected after the maximum pooling layer.

[0035] The beneficial effects of the present invention are as follows: the present invention trains a neural grid to identify the structural features inside the region of multi-porous parts by learning a large amount of existing multi-porous part region decomposition data suitable for block structured quadrilateral grid generation; and uses a neural network to train smooth frame field information that characterizes the boundary features and internal structural features of the geometric model, predicts and identifies the distribution of potential singular structures, and extracts complete singular structures from the neural network results, thereby achieving rapid and automatic region decomposition for new models, which is of great significance for the rapid and accurate simulation analysis of multi-porous parts. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Flowchart of the present invention.

[0037] Figure 2 The figure shows the frame field and local magnified view of the internal structure of the four-inner-hole part area generated by the present invention.

[0038] Figure 3 This is a diagram of the neural network structure used in the present invention.

[0039] Figure 4 This is a visualization result diagram of all frame vector annotation information of a four-inner-hole part predicted by the neural network of the present invention.

[0040] Figure 5 This is the final singular structure diagram of the four-multiple-inner-hole part generated by the present invention.

[0041] Figure 6 This is a quadrilateral mesh diagram of a part with four inner holes generated using the present invention. DETAILED DESCRIPTION

[0042] The present invention will be further described below with reference to the accompanying drawings.

[0043] like Figure 1 As shown, the method for automatic decomposition of two-dimensional structural grid of multi-hole parts based on neural network of the present invention is as follows:

[0044] Step 1: Create a sample set for neural network learning two-dimensional domain decomposition, as follows:

[0045] 1.1 Select more than 10 multi-hole parts with only local changes (this embodiment uses a four-hole cylindrical part), and create a training sample data for each multi-hole part for the neural network to learn two-dimensional region decomposition; each sample point of the training sample data contains the features of the frame vector, the position information of the grid point where the frame vector is located, the distance between the grid point where the frame vector is located and the nearest boundary, the distance between the grid point where the frame vector is located and the nearest singular point, and the frame vector annotation information. The process of creating the training sample data is as follows:

[0046] First, the multi-hole part is discretized into a triangulated mesh and the number of triangulated mesh vertices is constrained to be between 2020 and 2050. Then, a frame field is generated to describe the internal structure of the multi-hole part region (using existing mature technology, each frame consists of four unit vectors, which can be represented by two orthogonal unit vectors, such as Figure 2 As shown), and based on the frame field, regional decomposition data suitable for block structured quadrilateral grid generation is generated (using existing mature technology), that is, a singular structure composed of singular lines. Next, the frame vectors located at each grid point of the triangulated grid are labeled as follows: for the frame vectors located at the grid points through which the singular lines flow, the frame vectors that are consistent with the flow direction of the singular lines are labeled as 1, and the frame vectors that are inconsistent with the flow direction of the singular lines are labeled as 0; for the frame vectors at the grid points through which the singular lines do not flow, all are labeled as 0. Finally, the position information of the grid points where each frame vector is located, the distance between the grid points where each frame vector is located and the nearest boundary, and the distance between the grid points where each frame vector is located and the nearest singular point are determined, so as to obtain the features contained in each sample point, and finally obtain the training sample data based on all the sample points.

[0047] 1.2 To obtain a large amount of training data, a mesh deformation operation is performed on each multi-hole part (the mesh deformation operation specifically moves the internal mesh point positions while keeping the boundaries unchanged), and training sample data is also generated for the triangulated mesh after the mesh deformation operation. This can easily and quickly expand the sample set.

[0048] 1.3 All training sample data are classified into sample sets.

[0049] Step 2: Train the neural network model using the position information of each grid point in the sample set and the frame vector annotation information of each frame, as follows:

[0050] 2.1 As Figure 3 As shown in the figure, the neural network model designed contains the following main structures:

[0051] Structure ①: Global feature extraction layer. The first layer of global feature extraction layer X 1 It is obtained by convolution operation on the sample set; when l≥2, the lth global feature extraction layer is obtained by convolution operation on the l-1th layer feature tensor, and the convolution formula is X l =conv(F l-1 ), X l Represents the feature tensor of the lth layer global feature extraction layer, conv() represents the convolution operation, F l-1 Represents the feature tensor of the l-1th feature extraction layer.

[0052] Structure ②: Local feature extraction layer. Define the i-th sample point F′ i The k nearest neighboring points (with the sample point F′i The set of the nearest k sample points) is 1≤j≤k, k is between 20-30; i traverses all grid points in the sample set; let the jth local feature of the first layer be The jth local feature of the l-1th layer is Then the feature tensor of the first local feature extraction layer is When l≥2, the feature tensor of the local feature extraction layer at layer l

[0053] Structure ③: Feature concatenation layer. This layer concatenates the global features X obtained in structure ①. l , l≥1 and the local feature Y obtained in structure ② l , l≥1, and we get F l =concat(X l +Y l ), where concat() is a feature concatenation operation.

[0054] Structure ④: Structure ①, structure ②, and structure ③ are combined into a feature combination layer, with a total of three consecutive feature combination layers. A maximum pooling layer is connected after the three feature combination layers to reduce parameters; then, a convolution layer and a Dropout operation layer are connected after the maximum pooling layer.

[0055] 2.2 Obtaining the trained neural network model: Input the multi-hole parts sample set into the neural network model to obtain a tensor T with a second-order feature. The first order of tensor T expresses the probability that the frame vector on the grid point is marked as 0, and the second order expresses the probability that the frame vector on the grid point is marked as 1; the first order index of tensor T is 0, and the second order index is 1; then, 80% of the data is randomly selected from the multi-hole parts sample set as the training set and 20% as the test set. The training cycle is set to 200. In each training, the loss of tensor T relative to the labeled information in the sample set is calculated, and then the neural network parameters are optimized through the back propagation algorithm to reduce the loss; after the training cycle is reached, the trained neural network model is obtained. The loss calculation process is as follows:

[0056] loss=0.5*loss0+0.5*loss1,

[0057] Among them, loss0 is calculated by the cross entropy loss function, and loss1 is calculated by the Dice loss function;

[0058] loss0=labels*-log(z)+(1-labels)*-log(1-z),

[0059]

[0060] Among them, z = sigmoid(T), that is, the value of z is the result of applying the Sigmoid activation function to the tensor T, labels is the frame vector annotation information of the sample set, and sum is the sum of each element in the tensor.

[0061] Step 3: Perform neural network prediction on the predicted sample data of the multi-hole parts to be divided into structural grids, as follows:

[0062] 3.1 Generate prediction sample data without frame vector annotation information for the multi-porous parts to be divided into structural grids, as follows: discretize the multi-porous parts to be divided into structural grids into triangulated grids and constrain the number of triangular grid vertices to be between 2020 and 2050; then, generate a frame field (using existing mature technology) to characterize the internal structure of the multi-porous part area; finally, obtain the prediction sample data, and the features contained in each sample point of the prediction sample data are the frame vector, the position information of the grid point where the frame vector is located, the distance between the grid point where the frame vector is located and the nearest boundary, and the distance between the grid point where the frame vector is located and the nearest singular point.

[0063] 3.2 Input the predicted sample data into the trained neural network model to obtain the second-order probability vector containing the probability of the frame vector annotation information at each grid point in the predicted sample data. The index of the element with the largest probability in the second-order probability vector is the frame vector annotation information predicted by the neural network. The visualization results of all the frame vector annotation information generated in this embodiment are as follows: Figure 4 shown.

[0064] Step 4: Use the frame vector annotation information predicted by the neural network to process the predicted sample data to obtain the final region decomposition result, as follows:

[0065] 4.1 Determine the location of the singular point and the initial flow direction of the singular line. Define the vector field u(x,y), where (x,y) is the two-dimensional coordinate of the grid point; given the triangulated grid point (x p ,y p ), if u(x p ,y p )=0, then the grid point is a singular point; then, according to the valence of the singular point, the intersection point of the ray extending from the singular point and the grid edge of the grid where the singular point is located is calculated, and the vector pointing from the singular point to the intersection point is used as the initial flow direction vector of the singular line.

[0066] 4.2 Find the discrete points that form the singular lines in the triangulated mesh of the multi-hole part to be divided into the structural mesh, as follows:

[0067] 4.2.1 Let the previous discrete point p of the singular line be i1-1 Points to the current discrete point p i1The vector is Except for the discrete point p1 whose current flow direction vector is set as the initial flow direction vector of the singular line, the other discrete points p i1 The current flow vector That is the discrete point p i1 Frame vector; where, when i1=1, the discrete point p0 is a set imaginary point, the discrete point p1 is the singular point, and the discrete point p0 is a point that satisfies the following conditions: the vector from the discrete point p0 to the discrete point p1 is a unit vector collinear with the initial flow direction vector of the singular line; i1 The m nearest neighbor points are divided into n result point sets with frame vectors labeled as 1 according to the frame vector annotation information predicted by the neural network and a set of non-result points with mn frame vectors marked as 0 m=15; then, find P i1 Frame vector collection on Each element in 1≤j1≤n and The minimum angle between the element and The minimum angle sum between P′ i1 Frame vector collection on Each element in 1≤j2≤n and The minimum angle between the element and The minimum angle sum between Then, ask for The minimum value θ among 1≤j1≤n i1 ,as well as The minimum value θ in 1≤j2≤n ′i1 ; If θ i1 >θ ′i1 And θ i1 >35°, then θ ′i1 The corresponding element in the non-result point set is used as the next discrete point of the singular line. as the current flow direction vector of the next discrete point; otherwise, select θ i1 The corresponding element in the result point set is used as the next discrete point of the singular line. The current flow direction vector for the next discrete point.

[0068] 4.2.2 Repeat step 4.2.1 until all the discrete points that make up the entire singular line are determined, thus obtaining the entire singular line.

[0069] 4.3 Repeat steps 4.1 and 4.2 to obtain the positions of all singular points and all singular lines.

[0070] 4.4 Merge the repeated singular lines in the multi-hole parts to be divided into structural grids. After merging, smooth all the singular lines to obtain the singular structure, such as Figure 5 The criterion for judging whether the singular line S0 and the singular line S1 are repeated is as follows: the total number of discrete points of the singular line S0 is divided by 2 and rounded down to the corresponding discrete point q i2 (That is, set the discrete point q i2 is the i2th point on the singular line S0), extract q from the discrete point set of all singular lines i2 The set Q of k' nearest neighbor points, k'=15, if there is a discrete point q' in Q j3 , the q′ j3 The initial point of the singular line S1 is the end point of the singular line S0, and the end point of the singular line S1 is the starting point of the singular line S0, and Then S0 and S1 are repeated singular lines; where q′ j3-1 is a discrete point q′ on the singular line S1 j3 The previous discrete point of q i2 The normal vector of the mesh, q′ j3 The normal vector of the mesh.

[0071] Step 5: Based on the singular structure generated in step 4, the quadrilateral mesh of the multi-hole part is generated using the mapping method, such as Figure 6 shown.

Claims

1. A method for automatic decomposition of two-dimensional structural grids of parts with multiple internal holes based on neural networks, characterized in that: The method is as follows: Step 1: Prepare a sample set for neural network learning two-dimensional region decomposition, as follows: 1.1 Select more than 10 multi-hole parts with only local changes, and make a training sample data for neural network learning two-dimensional region decomposition for each multi-hole part; the features contained in each sample point of the training sample data are frame vector, position information of the grid point where the frame vector is located, the distance between the grid point where the frame vector is located and the nearest boundary, the distance between the grid point where the frame vector is located and the nearest singular point, and the frame vector labeling information; the production process of the training sample data is: First, the multi-porous parts are discretized into triangulated meshes and the number of triangulated mesh vertices is constrained to be between 2020 and 2050. Then, a frame field is generated to characterize the internal structure of the multi-porous parts region, and based on the frame field, regional decomposition data suitable for block structured quadrilateral mesh generation is generated, that is, a singular structure composed of singular lines. Next, the frame vectors located at each grid point of the triangulated mesh are labeled as follows: for the frame vectors located at the grid points through which the singular lines flow, the frame vectors that are consistent with the flow direction of the singular lines are labeled as 1, and the frame vectors that are inconsistent with the flow direction of the singular lines are labeled as 0; for the frame vectors at the grid points through which the singular lines do not flow, all are labeled as 0. Finally, the position information of the grid points where each frame vector is located, the distance between the grid points where each frame vector is located and the nearest boundary, and the distance between the grid points where each frame vector is located and the nearest singular point are determined, so as to obtain the features contained in each sample point, and finally obtain the training sample data based on all the sample points. 1.2 Perform mesh deformation operation on the triangulated mesh of each multi-hole part, and also generate training sample data for the triangulated mesh after the mesh deformation operation; 1.3 All training sample data are classified into the sample set; Step 2: Train the neural network model using the location information of each grid point in the sample set and the frame vector annotation information of each frame, as follows: Input the multi-hole parts sample set into the neural network model to obtain a tensor T with a second-order feature. The first order of tensor T expresses the probability that the frame vector on the grid point is marked as 0, and the second order expresses the probability that the frame vector on the grid point is marked as 1; the first order index of tensor T is 0, and the second order index is 1; then, 80% of the data is randomly selected from the multi-hole parts sample set as the training set, and 20% as the test set. The training cycle is set to 200. In each training, the loss of tensor T relative to the labeled information in the sample set is calculated, and then the neural network parameters are optimized through the back propagation algorithm to reduce the loss; after reaching the training cycle, the trained neural network model is obtained; the calculation process of loss is as follows: loss=0.5*loss0+0.5*loss1, Among them, loss0 is calculated by the cross entropy loss function, and loss1 is calculated by the Dice loss function; loss0=labels*(-log(z))+(1-labels)*(-log(1-z)), Among them, z = sigmoid (T), that is, the value of z is the result of applying the Sigmoid activation function to the tensor T, labels is the frame vector labeling information of the sample set, and sum is the sum of each element in the tensor; Step 3: Perform neural network prediction on the predicted sample data of the multi-hole parts to be divided into structural grids, as follows: 3.1 Generate prediction sample data without frame vector annotation information for the multi-porous parts to be divided into structural grids, as follows: discretize the multi-porous parts to be divided into structural grids into triangulated grids and constrain the number of triangulated grid vertices to be between 2020 and 2050; then, generate a frame field that describes the internal structure of the multi-porous parts region; finally, obtain prediction sample data, each sample point of which contains the features of the frame vector, the position information of the grid point where the frame vector is located, the distance between the grid point where the frame vector is located and the nearest boundary, and the distance between the grid point where the frame vector is located and the nearest singular point; 3.2 Input the predicted sample data into the trained neural network model to obtain a second-order probability vector containing the probability of the frame vector annotation information at each grid point in the predicted sample data. The index of the element with the largest probability in the second-order probability vector is the frame vector annotation information predicted by the neural network; Step 4: Use the frame vector annotation information predicted by the neural network to process the predicted sample data to obtain the final regional decomposition data, as follows: 4.1 Determine the position of the singular point and the initial flow direction of the singular line; define the vector field u(x, y), where (x, y) is the two-dimensional coordinate of the grid point; given the triangulated grid points (x p ,y p ), if u(x p ,y p )=0, then the grid point is a singular point; then, according to the valence of the singular point, the intersection point of the ray extending from the singular point and the grid edge of the grid where the singular point is located is calculated, and the vector pointing from the singular point to the intersection point is used as the initial flow direction vector of the singular line; 4.2 Find the discrete points that form the singular lines in the triangulated mesh of the multi-hole part to be divided into structural meshes, as follows: 4.2.1 Let the previous discrete point p of the singular line be i1-1 Points to the current discrete point p i1 The vector is Except for the discrete point p1 whose current flow direction vector is set as the initial flow direction vector of the singular line, the other discrete points p i1 The current flow vector That is, the discrete point p i1 The frame vector of ; where When i1=1, the discrete point p0 is a set virtual point, and the discrete point p1 is a singular point. The discrete point p0 is a point that satisfies the following conditions: the vector from the discrete point p0 to the discrete point p1 is a unit vector that is collinear with the initial flow direction vector of the singular line; i1 The m nearest neighbor points are divided into n result point sets with frame vectors labeled as 1 according to the frame vector labeling information predicted by the neural network and a set of non-result points with mn frame vectors marked as 0 m = 15; Then, find P i1 Vector collection of frames on Each element in and The minimum angle between the element and The minimum angle between P′ i1 Vector collection of frames on Each element in and The minimum angle between the element and The minimum angle between Next, ask for The minimum value θ in i1 ,as well as The minimum value θ′ in i1 ; If θ i1 >θ′ i1 And θ i1 >35°, then θ′ i1 The corresponding element in the non-result point set is used as the next discrete point of the singular line. as the current flow direction vector of the next discrete point; otherwise, select θ i1 The corresponding element in the result point set is used as the next discrete point of the singular line. The current flow direction vector as the next discrete point; 4.2.2 Repeat step 4.2.1 until all the discrete points constituting the entire singular line are determined, thereby obtaining the entire singular line; 4.3 Repeat steps 4.1 and 4.2 to obtain the positions of all singular points and all singular lines; 4.4 Merge the repeated singular lines in the multi-hole parts to be divided into structural grids. After merging, smooth all singular lines to obtain singular structures. The criterion for judging whether the singular lines S0 and S1 are repeated is as follows: the total number of discrete points of the singular line S0 is divided by 2 and rounded down to the corresponding discrete point q i2 , extract q from the discrete point set of all singular lines i2 The set Q of k' nearest neighboring points, k' = 15, if there is a discrete point q' in Q j3 , the q′ j3 The initial point of the singular line S1 is the end point of the singular line S0, and the end point of the singular line S1 is the starting point of the singular line S0, and Then S0 and S1 are repeated singular lines; where q′ j3-1 is a discrete point q′ on the singular line S1 j3 The previous discrete point of Q i2 The normal vector of the mesh, is q′ j3 The normal vector of the mesh; Step 5: Based on the singular structure generated in step 4, a quadrilateral mesh of the multi-porous part to be divided into structural meshes is generated using the mapping method.

2. The method for automatic decomposition of two-dimensional structural grids of parts with multiple inner holes based on neural networks according to claim 1, characterized in that: The structure design of the neural network model is as follows: Structure ①: Global feature extraction layer; Layer 1 global feature extraction layer X 1 It is obtained by convolution operation on the sample set; when l≥2, the lth global feature extraction layer is obtained by convolution operation on the l-1th feature tensor, and the convolution formula is X l =conv(F l -1 ), X l represents the feature tensor of the lth global feature extraction layer, conv() represents the convolution operation, and F l-1 Represents the feature tensor of the l-1th feature extraction layer; Structure ②: Local feature extraction layer; define the i-th sample point F′ i The set of k nearest neighbor points of is k takes values ​​between 20 and 30; i traverses all grid points in the sample set; let the jth local feature of the first layer be The jth local feature of the l-1th layer is Then the feature tensor of the first local feature extraction layer is When l≥2, the feature tensor of the local feature extraction layer at the lth level Structure ③: feature splicing layer; This layer obtains the global feature X in structure ① l , l≥1 and the local feature Y obtained in structure ② l , l≥1 for splicing, and get F l =concat(X l +Y l ), where concat() is a feature concatenation operation; Structure ④: Structure ①, structure ② and structure ③ are combined into a feature combination layer, with a total of three consecutive feature combination layers, and a maximum pooling layer is connected after the three feature combination layers to reduce parameters; then, the convolution layer and the Dropout operation layer are connected in sequence after the maximum pooling layer.