Search

CN-121859447-B - Interaction method, device, equipment and medium suitable for aircraft structural grid software

CN121859447BCN 121859447 BCN121859447 BCN 121859447BCN-121859447-B

Abstract

The application discloses an interaction method, device, equipment and medium suitable for aircraft structural grid software, relating to the technical field of aircrafts, comprising the steps of determining grid block objects, subordinate grid surface objects and grid line objects in a visual interface so as to determine an object to be processed corresponding to a target function; the method comprises the steps of determining each discrete point of an object to be processed, dividing and establishing association of each discrete point according to a UV direction to obtain target dependent information, determining curvature parameters of each object to be processed, sparsely sampling each object to be processed to obtain an object to be captured, determining each object to be added with a dependent relationship based on the target dependent information, adding the object to be added to a preset container to perform collision detection to obtain a target interactive object, applying functional operation to the target interactive object, and sending an operation result to a visual interface to display. To improve the efficiency of interaction of the aircraft structural grid software.

Inventors

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

Assignees

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

Dates

Publication Date
20260512
Application Date
20260313

Claims (10)

  1. 1. An interactive method for aircraft structural grid software, comprising: Determining grid block objects corresponding to grid line objects in a visual interface corresponding to a structural grid of an aircraft, and determining grid line objects corresponding to grid line objects; Determining initial subordinate information comprising grid-plane object subordinate information and grid-line object subordinate information; Determining an object to be processed corresponding to a target function based on the initial subordinate information, wherein the object to be processed is a grid surface object; Determining each discrete point corresponding to the object to be processed, and dividing each discrete point into a first discrete point in the U direction and a second discrete point in the V direction; establishing an association relationship between the first discrete point and the second discrete point to construct target dependent information based on the initial dependent information and the association relationship; Determining curvature parameters corresponding to the objects to be processed, and sparsely sampling the objects to be processed based on the curvature parameters to obtain objects to be captured; Determining each object to be added which has a subordinate relation with the object to be captured based on the target subordinate information so as to add each object to be added and the object to be captured into a preset container; performing collision detection on each object in the preset container by using a collision detection mechanism in the preset container to obtain a target interaction object; And applying corresponding function operation to the target interactive object based on the target function to obtain a function operation result, rendering the function operation result, and sending the rendering result to the visual interface for display.
  2. 2. The method of interaction for aircraft structural grid software of claim 1, wherein said determining, in a visualization interface corresponding to an aircraft structural grid, grid block objects corresponding to each grid face object in the structural grid and determining grid face objects corresponding to each grid line object comprises: in a visual interface corresponding to a structural grid of an aircraft, respectively identifying each grid surface object and each grid block object in the structural grid based on the topological relation of the structural grid to obtain grid block objects respectively corresponding to each grid surface object; In the visual interface, identifying grid line objects and grid surface objects in the structural grid based on the topological relation of the structural grid, and determining grid surface objects corresponding to the grid line objects respectively; accordingly, the determining initial dependency information including grid-plane object dependency information and grid-line object dependency information includes: determining grid surface affiliated information based on the corresponding relation between the grid surface object and each corresponding grid block object; And determining grid line object subordinate information based on the corresponding relation between the grid line objects and the corresponding grid surface objects, and then constructing initial subordinate information based on the grid surface object subordinate information and the grid line object subordinate information.
  3. 3. The method of interaction for aircraft structural grid software according to claim 1, wherein said determining an object to be processed corresponding to a target function based on said initial dependency information comprises: Receiving object determination instructions for all objects of the structural grid in a visual interface of the aircraft structural grid software based on the initial dependency information; And determining an object to be processed corresponding to the target function based on the initial subordinate information and the object determining instruction, and then grouping and scheduling each object to be processed based on the initial subordinate information, wherein the object to be processed comprises a grid point object, a grid line object, a grid surface object, a grid block object, a digital line object and a digital surface object.
  4. 4. The method of claim 1, wherein determining each discrete point corresponding to the object to be processed and dividing each discrete point into a first discrete point in a U-direction and a second discrete point in a V-direction comprises: determining each discrete point in the object to be processed, and dividing each discrete point based on a UV coordinate dividing rule to obtain a U-direction dividing result and a V-direction dividing result; determining a first discrete point based on the U-direction dividing result, and determining a second discrete point based on the V-direction dividing result; correspondingly, the establishing the association relationship between the first discrete point and the second discrete point to construct the target subordinate information based on the initial subordinate information and the association relationship includes: And determining the association relation between each first discrete point and each second discrete point in the U direction and the V direction, so as to construct target subordinate information corresponding to each object in the structural grid software based on the association relation and the initial subordinate information.
  5. 5. The interaction method for aircraft structural grid software according to claim 1, wherein determining curvature parameters corresponding to the objects to be processed, and sparsely sampling the objects to be processed based on the curvature parameters, to obtain objects to be captured, comprises: determining curvature parameters corresponding to the objects to be processed respectively, judging whether the curvature parameters meet preset flat area judging conditions, and if the curvature parameters meet the preset flat area judging conditions, sparsely sampling the objects to be processed by utilizing sampling density meeting preset low sampling density conditions to obtain corresponding objects to be captured; And if the curvature parameter does not meet the preset flat area judgment condition, sparsely sampling the object to be processed by utilizing the sampling density meeting the preset draft sampling density condition to obtain the corresponding object to be captured.
  6. 6. The method of interaction for aircraft structural grid software according to claim 1, wherein determining each object to be added having a dependency relationship with the object to be captured based on the target dependency information to add each object to be added and the object to be captured to a preset container comprises: Determining a preliminary capturing area based on each object to be captured, judging whether the preliminary capturing area meets a preset integrity condition, and if the preliminary capturing area meets the preset integrity condition, performing supplementary capturing on each object to be captured in the preliminary capturing area to obtain a corresponding object set to be captured; And determining each object to be added which has a direct dependency relationship with each object to be captured in the object set to be captured based on the target dependency relationship, so as to add each object to be added and each object to be captured into a preset container for processing.
  7. 7. The interaction method for aircraft structural grid software according to claim 1, wherein said performing collision detection on each object in the preset container by using a collision checking mechanism in the preset container to obtain a target interaction object comprises: in a visual scene provided by a graphic application program interface, generating a detection ray for selecting an object by utilizing the preset container and based on the observation position of the current camera and functional operation coordinates in the visual interface; Performing geometric intersection judgment on the detection ray and each object in the preset container by using a collision checking mechanism in the graphical application program interface to obtain an intersection judgment result, and screening a plurality of target interaction objects intersected with the detection ray from each object in the preset container based on the intersection judgment result; correspondingly, the applying the corresponding function operation to the target interactive object based on the target function to obtain a function operation result, rendering the function operation result, and sending the rendering result to the visual interface for display includes: Applying corresponding functional operation to the target interactive object based on the target function to obtain a functional operation result comprising a preview schematic to be processed, retaining a selected state corresponding to the target interactive object when an object additional operation instruction is received, and generating a corresponding preview schematic to be processed based on the selected state and the preview schematic to be processed; performing object addition and processing operations in the preview schematic to be processed based on the object addition operation instruction to obtain a current preview schematic, rendering the current preview schematic, and sending an obtained rendering result to the visual interface for display; And when a function exit instruction is received, the current preview schematic diagram is reserved.
  8. 8. An interactive apparatus for aircraft structural grid software, comprising: The system comprises a subordinate information establishing module, a subordinate information processing module and a control module, wherein the subordinate information establishing module is used for determining grid block objects corresponding to each grid surface object in a structural grid of an aircraft in a visual interface corresponding to the structural grid, and determining grid surface objects corresponding to each grid line object; a first subordinate information construction module for determining initial subordinate information including grid-plane object subordinate information and grid-line object subordinate information; The object to be processed determining module is used for determining an object to be processed corresponding to a target function based on the initial subordinate information, wherein the object to be processed is a grid surface object; the discrete point dividing module is used for determining each discrete point corresponding to the object to be processed and dividing each discrete point into a first discrete point in the U direction and a second discrete point in the V direction; the second subordinate information construction module is used for establishing an association relation between the first discrete point and the second discrete point so as to construct target subordinate information based on the initial subordinate information and the association relation; the object to be captured determining module is used for determining curvature parameters corresponding to the objects to be processed, and sparsely sampling the objects to be processed based on the curvature parameters to obtain the objects to be captured; The object adding module is used for determining each object to be added which has a subordinate relation with the object to be captured based on the target subordinate information so as to add each object to be added and each object to be captured into a preset container; The collision detection module is used for carrying out collision detection on each object in the preset container by utilizing a collision detection mechanism in the preset container to obtain a target interaction object; And the result display module is used for applying corresponding function operation to the target interactive object based on the target function, obtaining a function operation result, rendering the function operation result, and sending the rendering result to the visual interface for display.
  9. 9. An electronic device, comprising: A memory for storing a computer program; Processor for executing the computer program for implementing the interaction method according to any one of claims 1 to 7, suitable for aircraft structural grid software.
  10. 10. A computer-readable medium for storing a computer program, wherein the computer program, when executed by a processor, implements the interaction method according to any one of claims 1 to 7 for aircraft structural grid software.

Description

Interaction method, device, equipment and medium suitable for aircraft structural grid software Technical Field The invention relates to the technical field of aircrafts, in particular to an interaction method, device, equipment and medium suitable for aircraft structural grid software. Background At present, for unstructured grid benchmarking software, an interaction mode is to select an object to be operated outside a function and enter the function to perform 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 entered again, so that inconvenience is brought to the user. In addition, because the configuration of the user computer graphics card is uneven, the interactive technology is limited, and the existing interactive technology cannot meet the requirements of all users. From the above, how to improve the efficiency of optimizing the interaction of the aircraft structural grid software in the interaction process applicable to the aircraft structural grid software 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 aircraft structural grid software, which can improve efficiency of optimizing interaction of the aircraft structural grid software in an interaction process suitable for the aircraft structural grid software. The specific scheme is as follows: In a first aspect, the present application provides an interaction method for aircraft structural grid software, comprising: Determining grid block objects corresponding to grid faces in a structural grid of an aircraft in a visual interface corresponding to the structural grid, and determining grid face objects corresponding to grid line objects to establish subordinate information comprising grid face object subordinate information and grid line object subordinate information; establishing an acceleration list between a CPU (Central processing Unit) and a GPU (graphics processing Unit) corresponding to aircraft structural grid software, and selecting an object to be processed corresponding to a target function based on the subordinate information and the acceleration list when the target function is not activated; when the target function is activated, converting each object to be processed into an intra-function operable object corresponding to the target function by using a preset converter, and determining a corresponding object to be processed from the intra-function operable objects in the target function, wherein the object to be processed is a grid surface object; Determining curvature parameters corresponding to the objects to be processed, sparsely sampling the objects to be processed based on the curvature parameters to obtain objects to be captured, determining the objects to be added which have a subordinate relation with the objects to be captured, adding the objects to be added and the objects to be captured into a preset container, and performing collision detection on the objects in the preset container by using a collision detection mechanism in the preset container to obtain target interaction objects; And applying corresponding function operation to the target interactive object based on the target function to obtain a function operation result, rendering the function operation result, and sending the rendering result to the visual interface for display. Optionally, determining, in a visual interface corresponding to a structural grid of the aircraft, a grid block object corresponding to each grid surface object in the structural grid, and determining a grid surface object corresponding to each grid line object, so as to establish subordinate information including grid surface object subordinate information and grid line object subordinate information, including: in a visual interface corresponding to a structural grid of an aircraft, identifying each grid-face object in the structural grid based on the topological relation of the structural grid to obtain grid block objects respectively corresponding to each grid-face object; in the visual interface, identifying grid line objects in the structural grid based on the topological relation of the structural grid, and determining grid surface objects corresponding to the grid line objects respectively; And determining grid-plane object dependent information based on the corresponding relation between the grid-plane object and the grid block object, determining grid-line object dependent information based on the corresponding relation between the grid-line object and the grid-plane object, and then constructing dependent information based on the grid-plane object dependent information and the grid-line object dependent information. Optionally, the establish