Method, device, equipment and medium for automatically identifying overlapping structure grid grouping information in helicopter simulation
By automatically identifying the grouping information of overlapping structural grids, the error problem caused by manual identification is solved, the simulation calculation efficiency is improved, and fast and accurate grouping information identification is achieved.
Patent Information
- Application Number
- CN202510933722.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-08
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2045-07-08
AI Technical Summary
In the existing technology, the grouping information of overlapping structural grids in helicopter simulations needs to be manually identified, which is prone to errors and affects the efficiency of simulation calculations. It also requires communication with the grid generator to correct errors, resulting in slow progress.
By generating a two-dimensional matrix of grid blocks, adjacent grid blocks are automatically identified based on preset comparison rules, a group grid set is generated, and the set is updated using adjacent grid blocks until all grid blocks are grouped, thereby determining the grouping information of the overlapping structure grid.
It realizes the rapid and automatic identification of the grouping information of overlapping structural grids, avoids manual error correction, and improves the work efficiency of helicopter numerical simulation and separation motion simulation.
Smart Images

Figure CN120429964B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fluid mechanics, and in particular to a method, device, equipment and medium for automatically identifying overlapping structure grid grouping information in helicopter simulation. Background Art
[0002] In computational fluid dynamics numerical simulations, the computational domain must be discretized to generate a computational mesh. Currently, most fluid simulations for practical engineering applications separate the generation of overlapping structural meshes from the numerical simulation process, implementing a streamlined process. This significantly improves the efficiency of numerical simulations. Simulator users can initiate the simulation process after receiving the overlapping structural mesh file and accompanying overlapping grouping information generated by the upstream mesh generator. However, this overlapping grouping information requires the mesh generator to organize and sort all the disorganized mesh blocks after generating the mesh. Furthermore, the 3D geometric details of the simulated objects in real engineering applications are quite detailed, resulting in overlapping mesh files containing hundreds or even thousands of mesh blocks with significant variations in size. Manual identification is prone to errors, leading to subsequent simulation failures. To investigate the cause of the failure, simulation users must communicate with the upstream overlapping mesh generator, provide feedback, and await a solution, or use third-party tools such as mesh generation software or 3D display software to manually identify and correct the overlapping mesh file. This significantly impacts the overall efficiency of the simulation.
[0003] As can be seen from the above, how to quickly and automatically identify all grouping information of overlapping structural grids, avoid the manual error correction process when grouping information transmission errors, and improve the work efficiency of helicopter numerical simulation and separation motion simulation are problems to be solved in this field. Summary of the Invention
[0004] In view of this, the present invention aims to provide a method, device, equipment, and medium for automatically identifying overlapping structural grid grouping information in helicopter simulation. These methods can quickly and automatically identify all grouping information of overlapping structural grids, avoid manual error correction when grouping information transmission errors occur, and improve the efficiency of helicopter numerical simulation and separated motion simulation. The specific solution is as follows:
[0005] In a first aspect, the present application discloses a method for automatically identifying overlapping structure grid grouping information in helicopter simulation, comprising:
[0006] generating a current set of grids to be processed based on grid blocks of overlapping structural grids during helicopter simulation, and extracting peripheral grid surfaces of the grid blocks to generate respective two-dimensional matrices;
[0007] Select a grid block from the current set of grids to be processed as the current grid block to be processed;
[0008] Comparing the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule;
[0009] Determine the two-dimensional matrix corresponding to the other successfully matched grid blocks as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and use the grid blocks corresponding to the target two-dimensional matrix as adjacent grid blocks to be processed;
[0010] Generating a current group of grid sets corresponding to the current grid set to be processed by using the adjacent grid blocks, and deleting the adjacent grid blocks from the current grid set to be processed to obtain an updated current grid set to be processed;
[0011] Comparing the target two-dimensional matrix with the two-dimensional matrices corresponding to the grid blocks in the current set of grids to be processed, and moving the grid blocks corresponding to the successfully compared two-dimensional matrices in the current set of grids to be processed to the current set of grids to obtain a final updated current set of grids;
[0012] Jumping to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed;
[0013] The grouping information of the overlapping structure grids during the helicopter simulation process is determined based on each group of grid sets.
[0014] Optionally, comparing the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule includes:
[0015] If the preset comparison rule is direct comparison, the two-dimensional matrix corresponding to the current grid block to be processed is directly compared with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed;
[0016] If the preset comparison rule is optimized comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are coarsened and boundary elements are eliminated, and the processed two-dimensional matrix corresponding to the current grid block to be processed is compared with the processed two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed.
[0017] Optionally, if the preset comparison rule is direct comparison, the two-dimensional matrix corresponding to the current grid block to be processed is directly compared with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed; if the preset comparison rule is optimized comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are coarsened and boundary elements are eliminated, and the processed two-dimensional matrix corresponding to the current grid block to be processed is compared with the processed two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed, including:
[0018] If the preset comparison rule is direct comparison, the difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed is calculated;
[0019] If the preset comparison rule is optimization comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are advanced at equal intervals to obtain the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed;
[0020] The boundary elements of the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are eliminated to obtain the processed two-dimensional matrix corresponding to the current grid block to be processed and the processed current grid set to be processed, and the difference between the elements in the two-dimensional matrix corresponding to the processed current grid block to be processed and the elements in the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are calculated.
[0021] Optionally, determining the two-dimensional matrix corresponding to the other successfully matched grid blocks as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed includes:
[0022] If the preset comparison rule is direct comparison, the elements whose difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed is 0 are regarded as the elements that have been successfully compared;
[0023] When all elements are compared, the number of elements that have been successfully compared is determined;
[0024] Determine whether the number of elements that have been successfully matched is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed;
[0025] If the number of successfully matched elements is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed, the two-dimensional matrix corresponding to the successfully matched elements is determined as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
[0026] Optionally, determining the two-dimensional matrix corresponding to the other successfully matched grid blocks as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed includes:
[0027] If the preset comparison rule is optimization comparison, the difference between an element selected from the two-dimensional matrix corresponding to the currently processed grid block and an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is calculated;
[0028] If the difference between an element selected from the two-dimensional matrix corresponding to the currently processed grid block and an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is 0, then the element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is taken as a successfully matched element, and the number of currently successfully matched elements is determined;
[0029] Determine whether the number of elements currently matched successfully is greater than a preset threshold;
[0030] If the number of elements currently matched successfully is not greater than a preset threshold, the process jumps to calculating the difference between an element selected from the two-dimensional matrix corresponding to the current grid block to be processed after the processing and an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after the processing, until the number of elements currently matched successfully is greater than the preset threshold;
[0031] The two-dimensional matrix corresponding to the successfully aligned elements is determined as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
[0032] Optionally, determining the grouping information of the overlapping structured grids during the helicopter simulation based on each group of grid sets includes:
[0033] Obtaining grid node information corresponding to each grid set, and using the grid node information to calculate the cuboid parameters of the minimum circumscribed cuboid of the corresponding grid set; the cuboid parameters include length, width, and height;
[0034] The grid set corresponding to the rectangular block parameter with the largest value is used as the background grid set;
[0035] The grouping information of the overlapping structure grids during the helicopter simulation process is determined based on the background grid set and each group of grid sets.
[0036] Optionally, the formula for calculating the parameters of the cuboid is:
[0037] ;
[0038] in, is the maximum value of all grid node coordinates in the i-th grid set, is the minimum value of all grid node coordinates in the i-th grid set, m is the number of grid sets, is the length of the smallest circumscribed cuboid of group i, is the width of the smallest circumscribed cuboid of group i, is the height of the smallest circumscribed cuboid of the i-th group.
[0039] In a second aspect, the present application discloses a device for automatically identifying overlapping structure grid grouping information in helicopter simulation, comprising:
[0040] A two-dimensional matrix generation module is used to generate a current set of grids to be processed based on grid blocks of overlapping structural grids during helicopter simulation, and to extract peripheral grid surfaces of the grid blocks to generate respective two-dimensional matrices;
[0041] A grid block selection module is used to select a grid block from the current set of grids to be processed as the current grid block to be processed;
[0042] A comparison module, configured to compare the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule;
[0043] an adjacent grid block determining module, configured to determine the two-dimensional matrix corresponding to the other grid blocks that have been successfully compared as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and to use the grid blocks corresponding to the target two-dimensional matrix as adjacent grid blocks to the current grid block to be processed;
[0044] a deleting module, configured to generate a current group of grid sets corresponding to the current grid set to be processed by using the adjacent grid blocks, and delete the adjacent grid blocks from the current group of grid sets to be processed to obtain an updated current group of grid sets to be processed;
[0045] An updating module is configured to compare the target two-dimensional matrix with two-dimensional matrices corresponding to grid blocks in the current set of grids to be processed, and move the grid blocks corresponding to the successfully compared two-dimensional matrices in the current set of grids to be processed to the current set of grids, so as to obtain a final updated set of grids in the current set of grids;
[0046] a loop module, configured to jump to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed;
[0047] The grouping information determination module is used to determine the grouping information of the overlapping structure grids during the helicopter simulation process based on each group of grid sets.
[0048] In a third aspect, the present application discloses an electronic device, comprising:
[0049] Memory, used to store computer programs;
[0050] The processor is used to execute the computer program to implement the aforementioned method for automatically identifying overlapping structure grid grouping information in helicopter simulation.
[0051] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned method for automatically identifying overlapping structure grid grouping information in helicopter simulation are implemented.
[0052] It can be seen that the present application provides a method for automatically identifying overlapping structure grid grouping information in helicopter simulation, including generating a current set of grids to be processed based on grid blocks of overlapping structure grids in the helicopter simulation process, extracting peripheral grid surfaces of the grid blocks to generate respective two-dimensional matrices; selecting a grid block from the current set of grids to be processed as the current grid block to be processed; comparing the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current set of grids to be processed based on preset comparison rules; determining the two-dimensional matrices corresponding to the other grid blocks that have been successfully compared as target two-dimensional matrices adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and using the grid blocks corresponding to the target two-dimensional matrix as adjacent grid blocks of the current grid block to be processed; The method comprises the following steps: using the adjacent grid blocks to generate a current group grid set corresponding to the current grid block to be processed, deleting the adjacent grid blocks from the current grid set to be processed, and obtaining an updated current grid set to be processed; comparing the target two-dimensional matrix with the two-dimensional matrix corresponding to the grid blocks in the current grid set to be processed, and moving the grid blocks corresponding to the successfully compared two-dimensional matrices in the current grid set to the current group grid set to obtain a final updated current group grid set; jumping to the step of selecting a grid block from the current grid set to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current grid set to be processed; and determining the grouping information of the overlapping structure grids in the helicopter simulation process based on each group grid set. The present application generates a current set of grids to be processed based on grid blocks of overlapping structural grids in a helicopter simulation process, extracts outer grid surfaces of the grid blocks to generate each two-dimensional matrix, selects a grid block from the current set of grids to be processed as the current grid block to be processed, compares the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current set of grids to be processed based on preset comparison rules, enhances the efficiency and robustness of the automatic recognition method, determines the two-dimensional matrices corresponding to the other grid blocks that have been successfully compared as target two-dimensional matrices adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, groups and updates the current group of grids to obtain an updated current group of grids, jumps to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed, determines the grouping information of the overlapping structural grids in the helicopter simulation process based on each group of grids, quickly and automatically identifies all grouping information of the overlapping structural grids, avoids the manual error correction process when errors in grouping information transmission occur, and improves the work efficiency of helicopter numerical simulation and separation motion simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0054] Figure 1 This is a flow chart of a method for automatically identifying overlapping structure grid grouping information in helicopter simulation disclosed in this application;
[0055] Figure 2 This is an example diagram of a two-dimensional matrix disclosed in this application;
[0056] Figure 3 This is a schematic diagram of the relationship between adjacent two-dimensional matrices in a grid group of a helicopter blade disclosed in this application;
[0057] Figure 4 A schematic diagram of a two-dimensional matrix coarsening disclosed in this application;
[0058] Figure 5 This is a schematic diagram of two non-adjacent two-dimensional matrices ABCD and ADEF sharing an edge AD disclosed in this application;
[0059] Figure 6 An overall view of overlapping grids of a Robin helicopter with a tail rotor disclosed in this application;
[0060] Figure 7 A local grid block view of a rotor and fuselage disclosed in this application;
[0061] Figure 8 This is a schematic diagram of the structure of an automatic identification device for overlapping structure grid grouping information in helicopter simulation disclosed in this application;
[0062] Figure 9 This is a structural diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0063] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0064] In computational fluid dynamics numerical simulations, the computational domain must be discretized to generate a computational mesh. Currently, most fluid simulations for practical engineering applications separate the generation of overlapping structural meshes from the numerical simulation process, implementing a streamlined process. This significantly improves the efficiency of numerical simulations. Simulator users can initiate the simulation process after receiving the overlapping structural mesh file and accompanying overlapping grouping information generated by the upstream mesh generator. However, this overlapping grouping information requires the mesh generator to organize and sort all the disorganized mesh blocks after generating the mesh. Furthermore, the 3D geometric details of the simulated objects in real engineering applications are quite detailed, resulting in overlapping mesh files containing hundreds or even thousands of mesh blocks with significant variations in size. Manual identification is prone to errors, leading to subsequent simulation failures. To investigate the cause of the failure, simulation users must communicate with the upstream overlapping mesh generator, provide feedback, and await a solution, or use third-party tools such as mesh generation software or 3D display software to manually identify and correct the overlapping mesh file. This significantly impacts the overall efficiency of the simulation. As can be seen from the above, how to quickly and automatically identify all grouping information of overlapping structural grids, avoid the manual error correction process when grouping information transmission errors, and improve the work efficiency of helicopter numerical simulation and separation motion simulation are problems to be solved in this field.
[0065] See also Figure 1 As shown, an embodiment of the present invention discloses a method for automatically identifying overlapping structure grid grouping information in helicopter simulation, which may specifically include:
[0066] Step S11: generating a current set of to-be-processed grids based on grid blocks of overlapping structural grids during helicopter simulation, and extracting peripheral grid surfaces of the grid blocks to generate two-dimensional matrices.
[0067] In this embodiment, it is assumed that there is an overlapping structure grid in the helicopter simulation process. The overlapping grid is composed of n grid blocks, and the grid block is defined as , , each grid block is a hexahedron. At this time, all grid blocks are divided into a current grid set to be processed , that is, the current set of grids to be processed .
[0068] Then, the six outer mesh faces of each of the n mesh blocks are extracted to form 6n two-dimensional matrices. The elements of the two-dimensional matrix are the spatial coordinates (x, y, z) of the nodes on the mesh face. An example of a two-dimensional matrix is as follows: Figure 2 As shown, among them, ABCD, etc. are all two-dimensional matrices. Two-dimensional matrices use Indicates that , subscript i represents the block number of the grid block, and subscript k represents the face number of the grid block.
[0069] In this application, the definition of a two-dimensional matrix adjacent to a two-dimensional matrix is as follows: if the elements of two two-dimensional matrices are exactly the same, or the elements of one side completely contain or partially contain the elements of the other side, then the two two-dimensional matrices are said to be two-dimensional matrices adjacent to each other. A two-dimensional matrix can have no adjacent two-dimensional matrices, or it can have only one adjacent two-dimensional matrix, or it can have multiple adjacent two-dimensional matrices, and so on. Because in actual engineering applications, the relationship between adjacent two-dimensional matrices is relatively complex. The grid topology relationship of the overlapping structure grid will cause the final grid topology relationship of the same simulation object to vary greatly with the different research objects, different grid generation software, and different thinking habits of the grid generator, which in turn leads to a very complex relationship between adjacent two-dimensional matrices.
[0070] Take the adjacent two-dimensional matrix relationship in the grid group of a helicopter blade as an example, the relationship is shown as follows Figure 3 As shown, Figure 3 This is a grid group containing a helicopter blade, consisting of 8 grid blocks. The thick line represents grid block 8, among which grid blocks 2, 3, 4, 5, and 7 are all open C-shaped hexahedron grid blocks. Grid blocks 1 and 6 are airfoil-shaped grid blocks, which are respectively wrapped inside the C-shaped grid blocks 2 and 7, with only the sides and trailing edge sections exposed. C-shaped grid blocks 3, 4, and 5 do not have any grid blocks wrapped inside (the hollow inside represents the helicopter blade). Figure 3 It can be seen that the top surface of grid block 8 is adjacent to grid blocks 1-7, that is, the two-dimensional matrix of its top surface has 7 adjacent two-dimensional matrices, while the two-dimensional matrices of the other five surfaces have 0 adjacent two-dimensional matrices.
[0071] Step S12: Select a grid block from the current set of grids to be processed as the current grid block to be processed.
[0072] In this embodiment, in the aforementioned overlapping grid with n grid blocks, take out The first grid block in the group As the current grid block to be processed, The corresponding two-dimensional matrix is .
[0073] Step S13: comparing the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule.
[0074] In this embodiment, if the preset comparison rule is direct comparison, the two-dimensional matrix corresponding to the current grid block to be processed is directly compared with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed; if the preset comparison rule is optimized comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are coarsened and boundary elements are eliminated, and the processed two-dimensional matrix corresponding to the current grid block to be processed is compared with the processed two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed.
[0075] Specifically, if the preset comparison rule is direct comparison, the difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed is calculated; if the preset comparison rule is optimization comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are advanced at equal intervals to obtain the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed; the boundary elements of the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are eliminated to obtain the processed two-dimensional matrix corresponding to the current grid block to be processed and the processed current grid set, and the difference between the elements in the two-dimensional matrix corresponding to the processed current grid block to be processed and the elements in the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are calculated.
[0076] In this embodiment, As the current grid block to be processed, The corresponding two-dimensional matrix is Based on , the process of direct comparison is: let The 6(n-1) two-dimensional matrices of the remaining n-1 grid blocks in the current grid set to be processed are respectively Compare one by one. The comparison method is Each element in Subtract each element in , if the result is 0, it means that the current element is successfully matched. After all elements in the grid are compared, if the number of elements with a result of 0 is equal to the current grid block to be processed The corresponding two-dimensional matrix The number of elements, then is with Adjacent target 2D matrix.
[0077] In this application, a direct comparison method is used, which requires each of the 6n two-dimensional matrices to be compared one by one with all 6(n-1) two-dimensional matrices except the block in which it is located. A total of 36n(n-1) adjacent two-dimensional matrix relationship determinations need to be performed. At the same time, in order to improve the accuracy of flow field simulation, simulation users often encrypt grid nodes in key areas of focus. This will result in a large number of elements in some two-dimensional matrices. Point-by-point comparisons are slower, and the number of times neighbor relationship determinations is larger. The efficiency of automatically identifying grouped information will become very low due to the large amount of calculation.
[0078] In order to overcome this shortcoming and enhance the efficiency and robustness of the automatic recognition method, an optimized comparison method can also be used. As the current grid block to be processed, The corresponding two-dimensional matrix is Based on this, the process of optimizing the comparison is as follows:
[0079] (1) Coarsening the two-dimensional matrix. Since one two-dimensional matrix needs to be compared with 6(n-1) two-dimensional matrices, the amount of calculation is large. In order to improve the efficiency of the comparison calculation, the condition of "point-by-point comparison" can be relaxed and the comparison can be advanced at equal intervals, that is, the grid can be coarsened, some element nodes can be skipped, and the number of comparisons can be reduced. This process does not affect the comparison results. The schematic diagram of the two-dimensional matrix coarsening is shown in the figure below. Figure 4 As shown, the two-dimensional matrix corresponding to the current grid block to be processed after coarsening, and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed after coarsening;
[0080] (2) Set the minimum number of elements that can be successfully matched (i.e., the preset threshold). After the face matrix is coarsened, all the remaining element nodes still need to be successfully matched. When there are still many remaining node elements, the matching speed will be affected. In this case, this condition can also be relaxed, i.e., a preset threshold. Once the number of elements that can be successfully matched exceeds the preset threshold, the matching will be stopped and the matching will be determined. is with Adjacent target 2D matrix.
[0081] (3) Eliminate boundary elements. Relaxing the conditions in (2) requires taking into account the following situations: two non-adjacent two-dimensional matrices ABCD and ADEF share an edge AD, as shown in the following example: Figure 5As shown in the figure, two two-dimensional matrices ABCD and ADEF share an edge AD. When the preset threshold is less than or equal to the number of nodes on this edge, the above-mentioned relaxed condition will result in a misjudgment, misjudging the two-dimensional matrices ABCD and ADEF as being adjacent, when in fact they are not. Therefore, when using the "preset threshold" speed-up method, you can first remove the boundary nodes of all two-dimensional matrices, that is, all boundary elements of the two-dimensional matrix are not involved in the comparison. This can both speed up the comparison and eliminate misjudgments. For example, when comparing, remove the boundaries AB, BC, CD, and DA of the two-dimensional matrix ABCD, and the boundaries AD, DF, FE, and EA of the two-dimensional matrix ADEF, and only compare the nodes within the four boundaries.
[0082] Step S14: Determine the two-dimensional matrix corresponding to the other successfully matched grid blocks as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and use the grid blocks corresponding to the target two-dimensional matrix as the adjacent grid blocks of the current grid block to be processed.
[0083] In this embodiment, the process of determining the target two-dimensional matrix includes:
[0084] If the preset comparison rule is direct comparison, the elements with a difference of 0 between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed are regarded as successfully matched elements; when all elements are compared, the number of successfully matched elements is determined; and it is judged whether the number of successfully matched elements is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed; if the number of successfully matched elements is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed, the two-dimensional matrix corresponding to the successfully matched elements is determined as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
[0085] If the preset comparison rule is optimization comparison, the difference between an element selected from the two-dimensional matrix corresponding to the current grid block to be processed after processing and an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after processing is calculated; if the difference between an element selected from the two-dimensional matrix corresponding to the current grid block to be processed after processing and an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after processing is 0, an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after processing is used as a successfully compared element, and the number of currently successfully compared elements is determined; it is judged whether the number of currently successfully compared elements is greater than a preset threshold; if the number of currently successfully compared elements is not greater than the preset threshold, the process jumps to the step of calculating the difference between an element selected from the two-dimensional matrix corresponding to the current grid block to be processed after processing and an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after processing, until the number of currently successfully compared elements is greater than the preset threshold; the two-dimensional matrix corresponding to the successfully compared element is determined as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
[0086] Step S15: using the adjacent grid blocks to generate a current group grid set corresponding to the current grid block to be processed, and deleting the adjacent grid blocks from the current grid set to be processed to obtain an updated current grid set to be processed.
[0087] In this embodiment, the current grid block to be processed and After comparing all grid blocks except itself, determine Corresponding The adjacent target two-dimensional matrix, the adjacent grid blocks corresponding to the target two-dimensional matrix and Place it in a new The corresponding current group grid set Li, defined as ,in, . At the same time, the adjacent grid blocks from , and obtain the updated current set of grids to be processed.
[0088] Step S16: Compare the target two-dimensional matrix with the two-dimensional matrices corresponding to the grid blocks in the current grid set to be processed, and move the grid blocks corresponding to the successfully compared two-dimensional matrices in the current grid set to be processed to the current group grid set to obtain the final updated current group grid set.
[0089] In this embodiment, Remove The remaining target two-dimensional matrix The corresponding target two-dimensional matrix is updated one by one Compare the two-dimensional matrices corresponding to the remaining grid blocks in the grid, and the successfully matched grid blocks are also obtained from Move in , and get the final updated .
[0090] Step S17: Jump to the step of selecting a grid block from the current grid set to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current grid set to be processed.
[0091] In this embodiment, from Take any grid block again and repeat the above operation to get each grid set .if only If there are still grid blocks in the set, that is, it is not an empty set, continue to repeat the above grouping operation until When there is no grid block in the group or there is only one grid block left, the grouping stops. When there is only one grid block left, the grid block becomes a separate group. A total of m groups are divided, namely .
[0092] Step S18: determining the grouping information of the overlapping structure grids during the helicopter simulation process based on each group of grid sets.
[0093] In this embodiment, the grid node information corresponding to each group of grid sets is obtained, and the cuboid parameters of the minimum circumscribed cuboid of the corresponding grid set are calculated using the grid node information; the cuboid parameters include length, width, and height; the grid set corresponding to the cuboid parameter with the largest numerical value is used as the background grid set; based on the background grid set and each group of grid sets, the grouping information of the overlapping structural grids during the helicopter simulation process is determined.
[0094] The formula for calculating the parameters of the cuboid is:
[0095] ;
[0096] in, is the maximum value of all grid node coordinates in the i-th grid set, is the minimum value of all grid node coordinates in the i-th grid set, m is the number of grid sets, is the length of the smallest circumscribed cuboid of group i, is the width of the smallest circumscribed cuboid of group i, is the height of the smallest circumscribed cuboid of the i-th group.
[0097] In overlapping grids, the background grid set is special and needs to be extracted separately. It forms a spatial interpolation relationship with the rest of the grid groups. In actual engineering applications, the background grid set usually represents the entire simulation domain, so each The minimum circumscribed cuboid of the background grid set. The spatial range of the background grid set can encompass all other group grid sets.
[0098] Taking the automatic recognition of overlapping structural grid information of a single-rotor helicopter with a tail rotor as an example, the overall view of the overlapping grid of a Robinson helicopter with a tail rotor is as follows: Figure 6 As shown in the figure, the interior includes a helicopter fuselage, a pair of four-blade main rotors and a pair of four-blade tail rotors. The local grid block view near the rotor and fuselage is shown in the figure. Figure 7 As shown, the entire overlapping grid file contains 108 grid blocks of varying sizes, and the order of the grid blocks in the overlapping structure grid file is unknown.
[0099] By applying the technical solution of the present application, the overlapping structure grid grouping information can be automatically identified, and the overlapping structure grid grouping information is shown in Table 1:
[0100] Table 1
[0101]
[0102] After successful recognition, the grid blocks in each group are sequentially numbered from 1 to 108. As shown in Table 1, this overlapping grid consists of nine grid groups. The background grid group has grid block numbers ranging from 65 to 108, with the fuselage located within the background grid group. Besides the background grid group, there are eight sub-grid groups, numbered 33 to 40, 41 to 48, 49 to 56, and 57 to 64, and four groups, numbered 1 to 8, 9 to 16, 17 to 24, and 25 to 32.
[0103] The method proposed in this application for automatically identifying overlapping structure grid grouping information has the characteristic of not requiring separate manual generation of overlapping grouping information parameters. It can quickly and automatically identify all grouping information of overlapping grids, and provide background grid group information and non-background grid group information. At the same time, it can avoid the manual error correction process when errors occur in the transmission of grouping information, and significantly improve the work efficiency of helicopter numerical simulation and separation motion simulation.
[0104] In this embodiment, a current set of grids to be processed is generated based on grid blocks of overlapping structural grids in a helicopter simulation process, and outer grid surfaces of the grid blocks are extracted to generate respective two-dimensional matrices; a grid block is selected from the current set of grids to be processed as the current grid block to be processed; based on a preset comparison rule, the two-dimensional matrix corresponding to the current grid block to be processed is compared with the two-dimensional matrices corresponding to other grid blocks in the current set of grids to be processed; the two-dimensional matrices corresponding to the other grid blocks that have been successfully compared are determined as target two-dimensional matrices adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and the grid blocks corresponding to the target two-dimensional matrix are used as adjacent grid blocks of the current grid block to be processed; the adjacent grid blocks are used to generate a target two-dimensional matrix adjacent to the current grid block to be processed. Processing the current group grid set corresponding to the grid block, and deleting the adjacent grid blocks from the current grid set to be processed to obtain an updated current grid set to be processed; comparing the target two-dimensional matrix with the two-dimensional matrices corresponding to the grid blocks in the current grid set to be processed, and moving the grid blocks corresponding to the successfully compared two-dimensional matrices in the current grid set to be processed to the current group grid set to obtain a final updated current group grid set; jumping to the step of selecting a grid block from the current grid set to be processed as the current grid block to be processed until there is no grid block or only one grid block in the current grid set to be processed; and determining the grouping information of the overlapping structure grids in the helicopter simulation process based on each group grid set. The present application generates a current set of grids to be processed based on grid blocks of overlapping structural grids in a helicopter simulation process, extracts outer grid surfaces of the grid blocks to generate each two-dimensional matrix, selects a grid block from the current set of grids to be processed as the current grid block to be processed, compares the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current set of grids to be processed based on preset comparison rules, enhances the efficiency and robustness of the automatic recognition method, determines the two-dimensional matrices corresponding to the other grid blocks that have been successfully compared as target two-dimensional matrices adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, groups and updates the current group of grids to obtain an updated current group of grids, jumps to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed, determines the grouping information of the overlapping structural grids in the helicopter simulation process based on each group of grids, quickly and automatically identifies all grouping information of the overlapping structural grids, avoids the manual error correction process when errors in grouping information transmission occur, and improves the work efficiency of helicopter numerical simulation and separation motion simulation.
[0105] See also Figure 8 As shown, the embodiment of the present invention discloses an automatic identification device for overlapping structure grid grouping information in helicopter simulation, which may specifically include:
[0106] A two-dimensional matrix generation module 11 is used to generate a current set of grids to be processed based on grid blocks of overlapping structural grids during helicopter simulation, and extract peripheral grid surfaces of the grid blocks to generate respective two-dimensional matrices;
[0107] A grid block selection module 12 is used to select a grid block from the current set of grids to be processed as the current grid block to be processed;
[0108] A comparison module 13 is configured to compare the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule;
[0109] An adjacent grid block determining module 14 is configured to determine the two-dimensional matrix corresponding to the other grid blocks that have been successfully compared as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and to use the grid blocks corresponding to the target two-dimensional matrix as adjacent grid blocks to the current grid block to be processed;
[0110] A deleting module 15 is configured to generate a current group of grid sets corresponding to the current grid set to be processed by using the adjacent grid blocks, and delete the adjacent grid blocks from the current group of grid sets to be processed to obtain an updated current group of grid sets to be processed;
[0111] An updating module 16 is configured to compare the target two-dimensional matrix with two-dimensional matrices corresponding to grid blocks in the current set of grids to be processed, and move the grid blocks corresponding to the successfully compared two-dimensional matrices in the current set of grids to be processed to the current set of grids, so as to obtain a final updated set of grids in the current set of grids;
[0112] A loop module 17 is configured to jump to the step of selecting a grid block from the current set of grid blocks to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grid blocks to be processed;
[0113] The grouping information determining module 18 is configured to determine the grouping information of the overlapping structured grids during the helicopter simulation process based on each grid set.
[0114] In this embodiment, a current set of grids to be processed is generated based on grid blocks of overlapping structural grids in a helicopter simulation process, and outer grid surfaces of the grid blocks are extracted to generate respective two-dimensional matrices; a grid block is selected from the current set of grids to be processed as the current grid block to be processed; based on a preset comparison rule, the two-dimensional matrix corresponding to the current grid block to be processed is compared with the two-dimensional matrices corresponding to other grid blocks in the current set of grids to be processed; the two-dimensional matrices corresponding to the other grid blocks that have been successfully compared are determined as target two-dimensional matrices adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and the grid blocks corresponding to the target two-dimensional matrix are used as adjacent grid blocks of the current grid block to be processed; the adjacent grid blocks are used to generate a target two-dimensional matrix adjacent to the current grid block to be processed. Processing the current group grid set corresponding to the grid block, and deleting the adjacent grid blocks from the current grid set to be processed to obtain an updated current grid set to be processed; comparing the target two-dimensional matrix with the two-dimensional matrices corresponding to the grid blocks in the current grid set to be processed, and moving the grid blocks corresponding to the successfully compared two-dimensional matrices in the current grid set to be processed to the current group grid set to obtain a final updated current group grid set; jumping to the step of selecting a grid block from the current grid set to be processed as the current grid block to be processed until there is no grid block or only one grid block in the current grid set to be processed; and determining the grouping information of the overlapping structure grids in the helicopter simulation process based on each group grid set. The present application generates a current set of grids to be processed based on grid blocks of overlapping structural grids in a helicopter simulation process, extracts outer grid surfaces of the grid blocks to generate each two-dimensional matrix, selects a grid block from the current set of grids to be processed as the current grid block to be processed, compares the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current set of grids to be processed based on preset comparison rules, enhances the efficiency and robustness of the automatic recognition method, determines the two-dimensional matrices corresponding to the other grid blocks that have been successfully compared as target two-dimensional matrices adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, groups and updates the current group of grids to obtain an updated current group of grids, jumps to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed, determines the grouping information of the overlapping structural grids in the helicopter simulation process based on each group of grids, quickly and automatically identifies all grouping information of the overlapping structural grids, avoids the manual error correction process when errors in grouping information transmission occur, and improves the work efficiency of helicopter numerical simulation and separation motion simulation.
[0115] In some specific embodiments, the comparison module 13 may specifically include:
[0116] A direct comparison module is used to directly compare the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed if the preset comparison rule is direct comparison;
[0117] The optimization comparison module is used to, if the preset comparison rule is optimization comparison, perform coarsening and boundary element elimination processing on the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed, and compare the processed two-dimensional matrix corresponding to the current grid block to be processed with the processed two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed.
[0118] In some specific embodiments, the comparison module 13 may specifically include:
[0119] A direct comparison difference calculation module is used to calculate the difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed if the preset comparison rule is direct comparison;
[0120] A coarsening processing module is configured to advance the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed at equal intervals if the preset comparison rule is optimization comparison, to obtain the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed;
[0121] The elimination processing module is used to eliminate the boundary elements of the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed, so as to obtain the processed two-dimensional matrix corresponding to the current grid block to be processed and the processed current grid set to be processed, and calculate the difference between the elements in the two-dimensional matrix corresponding to the processed current grid block to be processed and the elements in the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed.
[0122] In some specific embodiments, the adjacent grid block determination module 14 may specifically include:
[0123] a direct comparison successful element determination module, configured to, if the preset comparison rule is direct comparison, determine as a successfully compared element the element for which the difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed is 0;
[0124] The quantity determination module is used to determine the number of elements that have been successfully matched after all elements have been matched;
[0125] A quantity judgment module is used to judge whether the number of elements that have been successfully matched is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed;
[0126] The target two-dimensional matrix determination module is used to determine the two-dimensional matrix corresponding to the successfully matched elements as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed if the number of successfully matched elements is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed.
[0127] In some specific embodiments, the adjacent grid block determination module 14 may specifically include:
[0128] an optimized comparison successful element calculation module, configured to calculate the difference between an element selected from the two-dimensional matrix corresponding to the currently processed grid block and an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set, if the preset comparison rule is optimized comparison;
[0129] an optimized successfully matched element determination module, configured to, if the difference between an element selected from the two-dimensional matrix corresponding to the currently processed grid block and an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is 0, use an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set as a successfully matched element, and determine the number of currently successfully matched elements;
[0130] A quantity judgment module is used to judge whether the number of elements currently matched successfully is greater than a preset threshold;
[0131] a jump module configured to jump to the difference between an element selected from the two-dimensional matrix corresponding to the current grid block to be processed after the calculation process and an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after the calculation process, if the number of elements currently successfully matched is not greater than a preset threshold, until the number of elements currently successfully matched is greater than the preset threshold;
[0132] The target two-dimensional matrix determination module is used to determine the two-dimensional matrix corresponding to the successfully matched element as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
[0133] In some specific embodiments, the group information determination module 18 may specifically include:
[0134] A cuboid parameter calculation module is used to obtain grid node information corresponding to each grid set, and use the grid node information to calculate the cuboid parameters of the minimum circumscribed cuboid of the corresponding grid set; the cuboid parameters include length, width, and height;
[0135] A background grid set determination module, configured to use the grid set corresponding to the rectangular parallelepiped parameter with the largest value as the background grid set;
[0136] The overlapping structure grid grouping information determination module is used to determine the grouping information of the overlapping structure grids during the helicopter simulation process based on the background grid set and each group of grid sets.
[0137] In some specific embodiments, the formula for calculating the parameters of the cuboid is:
[0138] ;
[0139] in, is the maximum value of all grid node coordinates in the i-th grid set, is the minimum value of all grid node coordinates in the i-th grid set, m is the number of grid sets, is the length of the smallest circumscribed cuboid of group i, is the width of the smallest circumscribed cuboid of group i, is the height of the smallest circumscribed cuboid of the i-th group.
[0140] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the method for automatically identifying overlapping structured grid grouping information in a helicopter simulation performed by the electronic device as disclosed in any of the aforementioned embodiments.
[0141] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0142] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0143] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, so as to enable the processor 21 to calculate and process data 223 in the memory 22. The operating system 221 can be Windows, Unix, Linux, etc. In addition to including computer programs capable of implementing the method for automatically identifying overlapping structural grid grouping information in helicopter simulations performed by the electronic device 20 as disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs capable of performing other specific tasks. In addition to data transmitted from external devices by the device for automatically identifying overlapping structural grid grouping information in helicopter simulations, the data 223 can also include data collected by its own input / output interface 25.
[0144] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0145] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the method for automatically identifying overlapping structure grid grouping information in helicopter simulation disclosed in any of the aforementioned embodiments are implemented.
[0146] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0147] The above is a detailed introduction to the method, device, equipment and storage medium for automatically identifying overlapping structure grid grouping information in helicopter simulation provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for automatically identifying overlapping structure grid grouping information in helicopter simulation, characterized in that: include: generating a current set of grids to be processed based on grid blocks of overlapping structural grids during helicopter simulation, and extracting peripheral grid surfaces of the grid blocks to generate respective two-dimensional matrices; Select a grid block from the current set of grids to be processed as the current grid block to be processed; Comparing the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule; Determine the two-dimensional matrix corresponding to the other successfully matched grid blocks as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and use the grid blocks corresponding to the target two-dimensional matrix as adjacent grid blocks to be processed; Generating a current group of grid sets corresponding to the current grid set to be processed by using the adjacent grid blocks, and deleting the adjacent grid blocks from the current grid set to be processed to obtain an updated current grid set to be processed; Comparing the target two-dimensional matrix with the two-dimensional matrices corresponding to the grid blocks in the current set of grids to be processed, and moving the grid blocks corresponding to the successfully compared two-dimensional matrices in the current set of grids to be processed to the current set of grids to obtain a final updated current set of grids; Jumping to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed; The grouping information of the overlapping structure grids during the helicopter simulation process is determined based on each group of grid sets.
2. The method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to claim 1, characterized in that: The comparing, based on a preset comparison rule, the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed includes: If the preset comparison rule is direct comparison, the two-dimensional matrix corresponding to the current grid block to be processed is directly compared with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed; If the preset comparison rule is optimized comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are coarsened and boundary elements are eliminated, and the processed two-dimensional matrix corresponding to the current grid block to be processed is compared with the processed two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed.
3. The method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to claim 2, characterized in that: If the preset comparison rule is direct comparison, the two-dimensional matrix corresponding to the current grid block to be processed is directly compared with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed; if the preset comparison rule is optimized comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are coarsened and boundary elements are eliminated, and the processed two-dimensional matrix corresponding to the current grid block to be processed is compared with the processed two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed, including: If the preset comparison rule is direct comparison, the difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed is calculated; If the preset comparison rule is optimization comparison, the two-dimensional matrix corresponding to the current grid block to be processed and the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are advanced at equal intervals to obtain the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed; The boundary elements of the coarsened two-dimensional matrix corresponding to the current grid block to be processed and the coarsened two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are eliminated to obtain the processed two-dimensional matrix corresponding to the current grid block to be processed and the processed current grid set to be processed, and the difference between the elements in the two-dimensional matrix corresponding to the processed current grid block to be processed and the elements in the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed are calculated.
4. The method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to claim 3, characterized in that: The step of determining the two-dimensional matrix corresponding to the other successfully compared grid blocks as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed includes: If the preset comparison rule is direct comparison, the elements whose difference between each element in the two-dimensional matrix corresponding to the current grid block to be processed and each element in the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed is 0 are regarded as the elements that have been successfully compared; When all elements are compared, the number of elements that have been successfully compared is determined; Determine whether the number of elements that have been successfully matched is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed; If the number of successfully matched elements is equal to the number of elements in the two-dimensional matrix corresponding to the current grid block to be processed, the two-dimensional matrix corresponding to the successfully matched elements is determined as the target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
5. The method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to claim 3, characterized in that: The step of determining the two-dimensional matrix corresponding to the other successfully compared grid blocks as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed includes: If the preset comparison rule is optimization comparison, the difference between an element selected from the two-dimensional matrix corresponding to the currently processed grid block and an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is calculated; If the difference between an element selected from the two-dimensional matrix corresponding to the currently processed grid block and an element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is 0, then the element selected from the two-dimensional matrix corresponding to other grid blocks in the currently processed grid set is used as a successfully matched element, and the number of currently successfully matched elements is determined; Determine whether the number of elements currently matched successfully is greater than a preset threshold; If the number of elements currently matched successfully is not greater than a preset threshold, the process jumps to calculating the difference between an element selected from the two-dimensional matrix corresponding to the current grid block to be processed after the processing and an element selected from the two-dimensional matrix corresponding to other grid blocks in the current grid set to be processed after the processing, until the number of elements currently matched successfully is greater than the preset threshold; The two-dimensional matrix corresponding to the successfully aligned elements is determined as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed.
6. The method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to any one of claims 1 to 5, characterized in that: The determining of the grouping information of the overlapping structured grids during the helicopter simulation process based on each group of grid sets includes: Obtaining grid node information corresponding to each grid set, and using the grid node information to calculate the cuboid parameters of the minimum circumscribed cuboid of the corresponding grid set; the cuboid parameters include length, width, and height; The grid set corresponding to the rectangular block parameter with the largest value is used as the background grid set; The grouping information of the overlapping structure grids during the helicopter simulation process is determined based on the background grid set and each group of grid sets.
7. The method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to claim 6, characterized in that: The formula for calculating the parameters of a cuboid is: ; in, is the maximum value of all grid node coordinates in the i-th grid set, is the minimum value of all grid node coordinates in the i-th grid set, m is the number of grid sets, is the length of the smallest circumscribed cuboid of group i, is the width of the smallest circumscribed cuboid of group i, is the height of the smallest circumscribed cuboid of group i.
8. An automatic identification device for overlapping structure grid grouping information in helicopter simulation, characterized in that: include: A two-dimensional matrix generation module is used to generate a current set of grids to be processed based on grid blocks of overlapping structural grids during helicopter simulation, and to extract peripheral grid surfaces of the grid blocks to generate respective two-dimensional matrices; A grid block selection module is used to select a grid block from the current set of grids to be processed as the current grid block to be processed; A comparison module, configured to compare the two-dimensional matrix corresponding to the current grid block to be processed with the two-dimensional matrices corresponding to other grid blocks in the current grid set to be processed based on a preset comparison rule; an adjacent grid block determining module, configured to determine the two-dimensional matrix corresponding to the other grid blocks that have been successfully compared as a target two-dimensional matrix adjacent to the two-dimensional matrix corresponding to the current grid block to be processed, and to use the grid blocks corresponding to the target two-dimensional matrix as adjacent grid blocks to the current grid block to be processed; a deleting module, configured to generate a current group of grid sets corresponding to the current grid set to be processed by using the adjacent grid blocks, and delete the adjacent grid blocks from the current group of grid sets to be processed to obtain an updated current group of grid sets to be processed; An updating module is configured to compare the target two-dimensional matrix with two-dimensional matrices corresponding to grid blocks in the current set of grids to be processed, and move the grid blocks corresponding to the successfully compared two-dimensional matrices in the current set of grids to be processed to the current set of grids, so as to obtain a final updated set of grids in the current set of grids; a loop module, configured to jump to the step of selecting a grid block from the current set of grids to be processed as the current grid block to be processed, until there is no grid block or only one grid block in the current set of grids to be processed; The grouping information determination module is used to determine the grouping information of the overlapping structure grids during the helicopter simulation process based on each group of grid sets.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that Used to store a computer program; wherein, when the computer program is executed by a processor, the method for automatically identifying overlapping structure grid grouping information in helicopter simulation according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A Parallel Method for Overlapping Hybrid Mesh in Helicopter Flow Fields under a Two-Time-Step Approach
CN110135067B
Ship fluid CAE (Computer Aided Engineering) mesh generation and three-dimensional visualization tool and method
CN118965858A