Search

CN-121835033-B - Interaction method, device, equipment and medium suitable for unstructured grid software of aircraft

CN121835033BCN 121835033 BCN121835033 BCN 121835033BCN-121835033-B

Abstract

The application discloses an interaction method, device, equipment and medium suitable for non-structural grid software of an aircraft, which relate to the technical field of the aircraft and comprise the steps of constructing a directed bounding box based on model size and position, equally dividing the directed bounding box into a plurality of hexahedrons comprising triangular patches to construct a to-be-processed fork tree, and establishing a bidirectional tie relation between each triangular patch object in the non-structural grid of the aircraft and a corresponding grid surface object; an acceleration list is established between the CPU and the GPU, a function mode label selects an object to be converted when a target function is not activated, the object to be converted comprises a triangular patch object and a grid surface object, and the object to be converted is converted into an operable object in the function by a preset converter when the target function is activated. And determining the object to be detected through the link relation, adding the object to be detected into a detection container for collision detection, obtaining the interactive object to be operated so as to execute functional operation, and improving the efficiency of optimizing the interaction between the unstructured grid software of the aircraft.

Inventors

  • LIU YANG
  • ZHANG HONGHONG
  • TANG MING
  • Tang Menzong
  • CHEN CHAO
  • TENG FAN
  • YANG LU
  • ZHANG YONGJIE

Assignees

  • 中国空气动力研究与发展中心计算空气动力研究所

Dates

Publication Date
20260512
Application Date
20260313

Claims (10)

  1. 1. An interactive method for unstructured grid software of an aircraft, comprising: Constructing a directed bounding box based on the model size and the position corresponding to the non-structural grid of the aircraft, equally dividing the directed bounding box into a plurality of hexahedrons comprising triangular patches based on the number of preset fork tree nodes, and constructing a fork tree to be processed based on each hexahedron; establishing a bidirectional tie relation between each triangular patch object in the unstructured grid of the aircraft and the corresponding grid surface object; Establishing an acceleration list between a CPU (Central processing Unit) and a GPU (graphics processing Unit) corresponding to unstructured grid software of an aircraft, and determining a function mode label corresponding to a target function so as to select an object to be converted corresponding to the target function based on the bidirectional link relation, the function mode label and the acceleration list when the target function is not activated; when the target function is activated, converting each object to be converted into an intra-function operable object corresponding to the target function by using a preset converter; Determining each node to be processed corresponding to the fork tree to be processed based on the functional operable object, and determining a corresponding object to be detected from each node to be processed based on the bidirectional link relation; and adding each object to be detected into a detection container for collision detection to obtain an interactive object to be operated so as to perform functional operation on the interactive object to be operated.
  2. 2. The interactive method for the non-structural grid software of the aircraft according to claim 1, wherein the constructing a directional bounding box based on the model size and the position corresponding to the non-structural grid of the aircraft to divide the directional bounding box into a plurality of hexahedrons including triangular patches based on the number of preset cross tree nodes, and constructing a to-be-processed cross tree based on each hexahedron includes: Determining a model file corresponding to the aircraft, constructing a current directed bounding box based on the model file and model sizes and positions corresponding to unstructured grids of the aircraft, setting the current directed bounding box as a current root node, and determining a level threshold based on the number of preset cross tree nodes; equally dividing the current directed bounding box into a preset number of current hexahedrons comprising triangular patches at a current level from a current root node by using a top-down recursion division mode, and binding each current hexahedron with child nodes of the current root node; Judging whether the current level is smaller than the level threshold, if so, updating the current level, setting each current hexahedron as a new current directed bounding box, and then re-jumping to the step of setting the current directed bounding box as a current root node until the current level is not smaller than the level threshold, so as to obtain a to-be-processed fork tree, wherein the size corresponding to each node in each to-be-processed fork tree is consistent with the size of the corresponding triangular patch.
  3. 3. The method for interaction with non-structural grid software for an aircraft according to claim 1, wherein said establishing a bidirectional tie relationship between each triangular patch object in the non-structural grid of the aircraft and a corresponding grid surface object comprises: identifying each triangular patch object and each grid surface object in the unstructured grid of the aircraft in a visual interface corresponding to the unstructured grid of the aircraft to obtain corresponding triangular patch objects and grid surface objects; Setting the triangular patch object as a first tie starting point, constructing a first tie relation with the corresponding grid surface object based on the first tie starting point, setting the grid surface object as a second tie starting point, and constructing a second tie relation with the corresponding triangular patch object based on the second tie starting point, so as to construct a bidirectional tie relation based on the first tie relation and the second tie relation.
  4. 4. The method according to claim 1, wherein the step of creating an acceleration list between the CPU and the GPU corresponding to the non-structural grid software of the aircraft and determining a function mode tag corresponding to a target function to select an object to be converted corresponding to the target function based on the bidirectional link relation, the function mode tag and the acceleration list when the target function is not activated comprises: Determining a CPU and a GPU corresponding to unstructured grid software, constructing an acceleration list for accelerating data interaction between the CPU and the GPU running the unstructured grid software, and then receiving initial object selection instructions for all objects of the unstructured grid of the aircraft in a visual interface of the unstructured grid software in a state that any function of the unstructured grid software of the aircraft is not activated; And determining a function mode label corresponding to a target function, and determining an object to be converted corresponding to the target function based on the bidirectional link relation, the initial object selection instruction and the function mode label, so as to group and schedule each object to be converted by utilizing the acceleration list and based on the bidirectional link relation, wherein the object to be converted comprises a grid point object, a grid line object, a grid surface object, a grid block object, a digital-to-analog line object, a digital-to-analog surface object and a triangular surface piece object.
  5. 5. The method of interaction for aircraft unstructured grid software of claim 1, wherein said determining each of the pending nodes corresponding to the pending fork tree based on the functionally operable objects and determining a corresponding object to be detected from each of the pending nodes based on the bi-directional ligament relationship comprises: Judging whether the to-be-processed fork tree exists or not, if not, re-jumping to the step of constructing the to-be-processed fork tree based on each hexahedron, and if so, generating a sight ray based on screen coordinates corresponding to a trigger instruction when the trigger instruction corresponding to the user behavior is received, so as to perform collision detection with the to-be-processed fork tree by utilizing the sight ray to obtain a to-be-processed node; Determining triangular patch objects corresponding to the nodes to be processed, constructing an initial capturing set based on the triangular patch objects, and determining grid surface objects to be added corresponding to the triangular patch objects based on the bidirectional link relation and the initial capturing set; And determining corresponding grid line objects to be added and grid block objects to be added based on the bidirectional tie relation and the grid surface objects to be added, so as to determine corresponding objects to be detected based on the triangular patch objects, the grid surface objects to be added, the grid line objects to be added and the grid block objects to be added.
  6. 6. The method for interaction of unstructured grid software for an aircraft according to claim 5, wherein adding each object to be detected to a detection container for collision detection to obtain an interaction object to be operated, so as to perform functional operation on the interaction object to be operated, comprises: Adding each triangular patch object, each grid surface object to be added, each grid line object to be added and each grid block object to be added into a detection container so as to determine the corresponding geometric structure of each object to be detected by using the detection container; And performing collision detection on the sight rays and the objects to be detected based on the geometric structure by using a collision detection mechanism and an image rendering technology to obtain interactive objects to be operated, and performing functional operation on the interactive objects to be operated based on the functional operation corresponding to the target function, wherein the functional operation comprises visual highlighting, attribute editing and dynamic removal of the interactive objects to be operated from a three-dimensional scene.
  7. 7. An interactive apparatus for unstructured grid software of an aircraft, comprising: The method comprises the steps of constructing a directed bounding box based on model sizes and positions corresponding to the non-structural grids of the aircraft, equally dividing the directed bounding box into a plurality of hexahedrons comprising triangular patches based on the number of preset cross tree nodes, and constructing a to-be-processed cross tree based on each hexahedron; the bidirectional tie relation generating module is used for establishing bidirectional tie relations between each triangular patch object in the unstructured grid of the aircraft and corresponding grid surface objects; the function mode label determining module is used for establishing an acceleration list between a CPU (Central processing Unit) corresponding to the unstructured grid software of the aircraft and a GPU (graphics processing Unit), determining a function mode label corresponding to a target function, and selecting an object to be converted corresponding to the target function based on the bidirectional link relation, the function mode label and the acceleration list when the target function is not activated; the operable object determining module is used for converting each object to be converted into an intra-function operable object corresponding to the target function by using a preset converter when the target function is activated; The object to be detected determining module is used for determining each node to be processed corresponding to the fork tree to be processed based on the functional operable object and determining the corresponding object to be detected from each node to be processed based on the bidirectional link relation; and the interactive object determining module is used for adding each object to be detected into a detection container to perform collision detection to obtain an interactive object to be operated so as to perform functional operation on the interactive object to be operated.
  8. 8. The interactive apparatus for aircraft unstructured grid software of claim 7, wherein the functional mode label determination module comprises: The acceleration list construction unit is used for determining a CPU and a GPU corresponding to the unstructured grid software, constructing an acceleration list for accelerating data interaction between the CPU and the GPU running the unstructured grid software, and then receiving initial object selection instructions for all objects of the unstructured grid of the aircraft in a visual interface of the unstructured grid software in a state that any function of the unstructured grid software of the aircraft is not activated; the object to be converted determining unit is configured to determine a function mode tag corresponding to a target function, and determine an object to be converted corresponding to the target function based on the bidirectional link relation, the initial object selection instruction, and the function mode tag, so as to group and schedule each object to be converted by using the acceleration list and based on the bidirectional link relation, where the object to be converted includes a grid point object, a grid line object, a grid plane object, a grid block object, a digital-to-analog line object, a digital-to-analog plane object, and a triangle patch object.
  9. 9. An electronic device, comprising: A memory for storing a computer program; A processor for executing the computer program for implementing the interaction method for unstructured grid software of an aircraft according to any one of claims 1 to 6.
  10. 10. A computer-readable medium for storing a computer program, wherein the computer program, when executed by a processor, implements the interaction method for unstructured grid software of an aircraft according to any of claims 1 to 6.

Description

Interaction method, device, equipment and medium suitable for unstructured grid software of aircraft Technical Field The invention relates to the technical field of aircrafts, in particular to an interaction method, device, equipment and medium suitable for unstructured grid software of an aircraft. Background At present, for unstructured grids, the interactive mode of the standard software is to select an object to be operated outside the function and enter the function to perform the adjustment operation of the object, and the mode has the defect that in the same function, a user cannot replace the object, if other objects need to be switched, the function must be exited, other objects are selected, and the corresponding function is re-entered, so that the operation brings inconvenience to the user. Aiming at the current demands of users, the new mode provides a mode of carrying out detailed operation on the interactive object in the function and a mode of carrying out one-key operation on part of the function. The new interaction mode adopts a mode of starting the selection of all objects outside the function, realizing the conversion from the objects outside the function to the objects inside the function through a converter according to the function operated by the user, and starting the selection of the related objects inside the function only. However, the configuration of the user computer graphics card is uneven, the interaction technology is limited, and the prior art cannot capture and pick up the data volume up to tens of millions of man-machine interaction software, especially in the field of CFD (Computational Fluid Dynamics ), at the same time under the condition of starting multiple selected objects. From the above, how to improve the efficiency of optimizing the interaction pattern between the unstructured grid software of an aircraft in the interaction process applicable to the unstructured grid software of the aircraft is a problem to be solved at present. Disclosure of Invention In view of the above, the present invention aims to provide an interaction method, device, equipment and medium suitable for non-structural grid software of an aircraft, which can improve the efficiency of optimizing the interaction between the non-structural grid software of the aircraft in the interaction process suitable for the non-structural grid software of the aircraft. The specific scheme is as follows: In a first aspect, the present application provides an interaction method for unstructured grid software of an aircraft, comprising: Constructing a directed bounding box based on the model size and the position corresponding to the non-structural grid of the aircraft, equally dividing the directed bounding box into a plurality of hexahedrons comprising triangular patches based on the number of preset fork tree nodes, and constructing a fork tree to be processed based on each hexahedron; establishing a bidirectional tie relation between each triangular patch object in the unstructured grid of the aircraft and the corresponding grid surface object; Establishing an acceleration list between a CPU (Central processing Unit) and a GPU (graphics processing Unit) corresponding to unstructured grid software of an aircraft, and determining a function mode label corresponding to a target function so as to select an object to be converted corresponding to the target function based on the bidirectional link relation, the function mode label and the acceleration list when the target function is not activated; when the target function is activated, converting each object to be converted into an intra-function operable object corresponding to the target function by using a preset converter; Determining each node to be processed corresponding to the fork tree to be processed based on the functional operable object, and determining a corresponding object to be detected from each node to be processed based on the bidirectional link relation; and adding each object to be detected into a detection container for collision detection to obtain an interactive object to be operated so as to perform functional operation on the interactive object to be operated. Optionally, the constructing a directional bounding box based on the model size and the position corresponding to the non-structural grid of the aircraft, so as to divide the directional bounding box equally into a plurality of hexahedrons including triangular patches based on the number of preset fork tree nodes, and constructing a to-be-processed fork tree based on each hexahedron, including: Determining a model file corresponding to the aircraft, constructing a current directed bounding box based on the model file and model sizes and positions corresponding to unstructured grids of the aircraft, setting the current directed bounding box as a current root node, and determining a level threshold based on the number of preset cross tree nodes; equally dividing the current dir