Periodic grid generation method, device, electronic device and storage medium
Through the mesh division, copy and transformation operations of the target object, an association relationship is established to generate a third surface mesh that is the same as the first target surface, solving the problem of cumbersome mesh division in the existing technology, simplifying the process and improving efficiency.
Patent Information
- Application Number
- CN202311560186.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-11-21
AI Technical Summary
In the existing technology, the meshing process is cumbersome and difficult, resulting in high cost and long time consumption. Especially in the numerical simulation of aeroengines, it is especially difficult to deal with the correspondence between grid nodes on the periodic surface.
By determining the first target surface of the target object, perform meshing, copy the first surface mesh, perform transformation operations, establish the relationship between the target mesh and the second target surface, and generate the third surface of the second target surface based on this The mesh is made to have the same surface structure as the first target surface, simplifying the mesh generation process and normalizing topological relationships.
It simplifies the mesh generation time, ensures that the mesh topology relationships of the same entity structure on the target object are consistent, facilitates subsequent analysis, and reduces the complexity and cost of mesh division.
Smart Images

Figure CN117574719B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of model processing research, and in particular to a periodic grid generation method, device, electronic device and storage medium. Background Art
[0002] Numerical simulation technology is an important means to promote the development of aero-engines. The pre-processing stage includes geometric preprocessing and meshing process. In the meshing process, it is necessary to ensure that the mesh nodes on the specified periodic surface correspond one to one. However, in the existing technology, the meshing process for special meshes is relatively cumbersome and difficult, and the meshing takes a long time, resulting in high costs. Summary of the invention
[0003] In view of this, the embodiments of the present disclosure provide a periodic grid generation method, device, electronic device and storage medium to solve the problem of cumbersome grid division process for the same surface structure of the target object existing in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, a periodic grid generation method is provided, the method comprising: determining a first target surface of a target object; meshing the first target surface to determine a first surface grid of the first target surface, and copying the first surface grid to obtain a second surface grid; transforming the second surface grid to obtain a target grid; establishing an association relationship between the target grid and the second target surface, wherein the surface structures of the first target surface and the second target surface are the same; and generating a third surface grid of the second target surface based on the association relationship, wherein the third surface grid is the target grid.
[0005] A second aspect of the embodiments of the present disclosure provides a method of a periodic grid generation device, which is applied to the periodic grid generation method of the first aspect, and the device includes: a determination module, which is used to determine a first target surface of a target object;
[0006] A division module is used to divide the first target surface into grids, determine the first surface grid of the first target surface, and copy the first surface grid to obtain a second surface grid; an acquisition module is used to transform the second surface grid to obtain a target grid; an establishment module is used to establish an association relationship between the target grid and the second target surface, wherein the first target surface and the second target surface have the same surface structure; a generation module is used to generate a third surface grid of the second target surface based on the association relationship, wherein the third surface grid is the target grid.
[0007] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising at least one processor; and a memory for storing instructions executable by at least one processor; wherein the at least one processor is used to execute instructions to implement the steps of the above-mentioned periodic grid generation method.
[0008] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the above-mentioned periodic grid generation method.
[0009] At least one of the above technical solutions adopted in the embodiments of the present disclosure can achieve the following beneficial effects: by determining the first target surface of the target object; meshing the first target surface, determining the first surface grid of the first target surface, and copying the first surface grid to obtain the second surface grid; transforming the second surface grid to obtain the target grid; establishing an association relationship between the target grid and the second target surface, wherein the surface structures of the first target surface and the second target surface are the same; generating the third surface grid of the second target surface based on the association relationship, wherein the third surface grid is the target grid. It can be seen that the present disclosure can analyze the target objects with the same physical structure, determine the first surface grid of the first target surface in the same physical structure, copy the first surface grid to obtain the second surface grid, and then transform the second surface grid to obtain the target grid, and finally associate the target grid with the second target surface, and use the target grid as the third surface grid of the second target surface. Based on this, not only can the grid generation time of the target object be simplified, but also the grid topology relationship corresponding to the same physical structure on the target object can be normalized, thereby facilitating the subsequent analysis of the target object. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 A schematic diagram of a periodic grid generation method provided by an exemplary embodiment of the present disclosure;
[0012] Figure 2 A schematic diagram of grid replication provided for an exemplary embodiment of the present disclosure;
[0013] Figure 3 A schematic diagram of performing a rotation operation and a translation operation on a target grid provided by an exemplary embodiment of the present disclosure;
[0014] Figure 4 A schematic diagram of a cyclic symmetric mode provided for an exemplary embodiment of the present disclosure;
[0015] Figure 5A schematic structural diagram of a periodic grid generation device provided by an exemplary embodiment of the present disclosure;
[0016] Figure 6 A schematic diagram of the structure of an electronic device provided for an exemplary embodiment of the present disclosure;
[0017] Figure 7 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0020] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0023] A periodic grid generation method according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0024] Figure 1The structure diagram of a periodic grid generation method provided by an exemplary embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the periodic grid generation method includes:
[0025] S101, determining a first target surface of a target object.
[0026] Specifically, first, the 3D solid modeling component tool (Parasolid) can be used to read the geometric model data of the target object pre-set by the user and save it, so as to facilitate the timely acquisition of relevant data of the set model in the subsequent use of the geometric model and facilitate data editing. It should be understood that the present disclosure is for the target object to contain two or more identical entity parts.
[0027] S102, meshing the first target surface, determining a first surface mesh of the first target surface, and copying the first surface mesh to obtain a target mesh.
[0028] Specifically, meshing is to divide the geometric model into many small units, which is the top priority of finite element analysis pre-processing, and then use mathematical approximation methods to analyze the real geometric model. Since the target object contains two or more identical entities, when meshing the same entity, you can mesh one entity, and the target meshes of the remaining identical entities can be directly copied and pasted, thereby simplifying the process of meshing the target object.
[0029] Figure 2 A schematic diagram of grid replication provided by an exemplary embodiment of the present disclosure. Figure 2 As shown in the figure, the target object is a cube. From the geometric properties of the cube, it can be seen that the six faces of the cube are congruent squares. Therefore, in order to simplify the mesh generation steps, only one face of the cube can be meshed, and then the mesh after division can be copied and directly applied to other faces. This not only simplifies the mesh division process, but also ensures that the mesh topological relationship of all faces of the geometric object corresponding to the target object is consistent, thereby facilitating the subsequent analysis of the target object.
[0030] S103, transforming the second surface mesh to obtain a target mesh.
[0031] Specifically, when the first surface mesh is copied in Parasolid, the copied second surface mesh is the same mesh as the first surface mesh, but the style of the same entity part on the target object may be different, so the second surface mesh cannot be directly applied to the second target surface. Based on this, the second surface mesh can be transformed using a transformation matrix so that the target mesh matches the second target surface.
[0032] S104, establishing an association relationship between the target grid and the second target surface, wherein the first target surface and the second target surface have the same surface structure.
[0033] Specifically, the target grid and the second target surface may be bound based on the association relationship between the target grid and the second target surface, that is, the position of the target grid is determined, and the target grid is used as the grid of the second target surface.
[0034] S105: Generate a third surface mesh of the second target surface based on the association relationship, wherein the third surface mesh is a target mesh.
[0035] It can be seen that the present disclosure can analyze target objects with the same physical structure, determine the first surface mesh of the first target surface in the same physical structure, copy the first surface mesh to obtain the second surface mesh, and then transform the second surface mesh to obtain the target mesh, and finally associate the target mesh with the second target surface, and use the target mesh as the third surface mesh of the second target surface. Based on this, not only can the mesh generation time of the target object be simplified, but also the mesh topology corresponding to the same physical structure on the target object can be normalized, thereby facilitating the subsequent analysis of the target object.
[0036] In some embodiments, the first target surface may be a source surface given by a user, and a surface mesh is then generated for the source surface.
[0037] Specifically, you can use Parasolid to read the target object's geometry model in x_t format, save all entities of the geometry object in Parasolid, and create a special data structure object to store the mesh parameters generated for the geometry model. You can also input the mesh parameter object entered by the user into the mesh generator to generate the surface mesh of the source surface.
[0038] In some embodiments, performing a transformation operation on the second surface mesh to obtain a target mesh includes: acquiring a transformation mode and target data; and constructing a transformation matrix based on the transformation mode and the target data.
[0039] Specifically, the transformation mode includes a translation mode, the target data includes translation vector data and translation distance data, the transformation matrix includes a translation transformation matrix, and the method also includes: constructing a translation transformation matrix based on the translation vector data and translation distance data; and using the translation transformation matrix to translate the target grid.
[0040] In practical applications, the transformation mode can be determined according to the user's selection. When the user selects the transformation mode as the translation mode, the translation transformation matrix can be calculated according to the translation vector and translation distance input by the user, and then the translation operation is performed on the target mesh using the translation transformation matrix.
[0041] Specifically, the transformation mode includes a mirror mode, the target data includes plane normal vector data and plane point data, the transformation matrix includes a mirror transformation matrix, and the method also includes: constructing a mirror transformation matrix based on the plane normal vector data and the plane point data; and using the mirror transformation matrix to perform a mirror operation on the target grid.
[0042] In practical applications, the transformation mode can be determined according to the user's selection. When the user selects the transformation mode as the mirror mode, the mirror transformation matrix can be calculated according to the plane normal vector data and plane point data input by the user, and then the mirror transformation matrix can be used to perform a mirror operation on the target mesh.
[0043] Specifically, the transformation mode includes a rotation mode, the target data includes rotation axis vector data, rotation angle data and rotation axis data, the transformation matrix includes a rotation transformation matrix, and the method also includes: constructing a rotation transformation matrix based on the rotation axis vector data, rotation angle data and rotation axis data; and using the rotation transformation matrix to rotate the target grid.
[0044] In practical applications, the transformation mode can be determined according to the user's selection. When the user selects the transformation mode as the rotation mode, the rotation transformation matrix can be calculated according to the rotation axis vector data, rotation angle data and rotation axis data input by the user, and then the rotation transformation matrix can be used to rotate the target grid.
[0045] Specifically, the transformation mode includes a circular symmetric mode, the target data includes rotation axis data, sector number data and rotation axis data, the transformation matrix includes a circular symmetric transformation matrix, and the method also includes: constructing a circular symmetric transformation matrix based on the rotation axis data, sector number data and rotation axis data; using the circular symmetric transformation matrix to perform circular symmetric operations on the target grid.
[0046] In practical applications, the transformation mode can be determined according to the user's selection. When the user selects the transformation mode as the cyclic symmetry mode, the rotation transformation matrix can be calculated according to the rotation axis data, sector number data and rotation axis data input by the user, and then the cyclic symmetry transformation matrix can be used to perform cyclic symmetry operations on the target grid.
[0047] Figure 3 A schematic diagram of performing a rotation operation and a translation operation on a target grid provided by an exemplary embodiment of the present disclosure. Figure 3As shown, the geometric model includes four identical entity parts A, B, C and D, and the four identical entities form a 90-degree angle between each other. When the mesh corresponding to the surface 301 of the C part is used as the mesh of the target surface 303 of the D part, the surface 301 can be copied first to obtain the target mesh 302, and then the target mesh 302 is rotated using the rotation transformation matrix so that the direction of the target mesh 302 is consistent with the direction of the target surface 303, and then the translation transformation matrix is used again to translate the rotated target mesh 302 so that the target mesh 302 can be accurately covered on the target surface 303, and then subsequent operations can be performed. The target mesh 302 can be directly used as the mesh of the target surface 303. Based on this, this can not only simplify the mesh division process, but also ensure that the mesh topological relationship of all faces of the geometric object corresponding to the target object is consistent, thereby facilitating the subsequent analysis of the target object. It should be understood that Figure 3 This is a hand-drawn figure, and the target grid 302, the surface 301 and the target surface 303 may be different in the grid illustration. In the actual process, the target grid 302, the surface 301 and the target surface 303 should be the same.
[0048] Figure 4 Schematic diagram of a cyclic symmetric pattern provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, when it is necessary to mesh two or more identical entities arranged in a circularly symmetrical manner, first copy the mesh of the surface to obtain the target mesh, and then use the circularly symmetric transformation matrix to perform a circularly symmetric operation on the target mesh, and then perform a translation operation on the target mesh after the circularly symmetric operation to directly cover the target mesh on the target surface.
[0049] Specifically, Figure 4 Including entities A and B placed in a circularly symmetrical manner, when the mesh in entity A needs to be applied to entity B, the surface 401 in entity A can be copied first to obtain the target mesh, and then the circular symmetry transformation matrix is used to perform a circular symmetry operation on the target mesh, and then a translation operation is performed on the target mesh after the circular symmetry operation, so that the target mesh can be directly covered on the target surface 402.
[0050] In some instances, the surface mesh includes a first mesh node and a first mesh unit, the target mesh includes a second mesh node and a second mesh unit, the second surface mesh includes a third mesh node and a third mesh unit, and the method further includes: storing the first mesh node and the first mesh unit based on a first chain access rule, the first chain access rule being used to limit the query order of the first mesh node and the first mesh unit; and storing the second mesh node and the second mesh unit based on a second chain access rule, the second chain access rule being used to limit the query order of the second mesh node and the second mesh unit.
[0051] Specifically, a one-way linked list can be created to store the grid nodes and grid units of the target object, including the grid nodes and grid units before and after the copy, wherein the grid nodes contain information such as node id and node coordinates, and the grid units contain information such as grid unit id, multiple grid node ids in the grid unit, grid unit type, grid unit order, and grid unit shape. It should be understood that after the grid is copied, the data in the one-way linked list will increase. It should be understood that different grid nodes and grid units will be given a unique identity (id) to mark the grid nodes and grid units, and facilitate their use in subsequent data processing.
[0052] In practical applications, different one-way linked lists can be set for different faces of the target object, and each one-way linked list stores the mesh nodes and mesh units corresponding to a face, so as to facilitate the subsequent retrieval of data. For example, a one-way linked list can be established for the first surface mesh of the target object based on the first chain access rule to store the first mesh nodes and the first mesh units included in the first surface mesh; a one-way linked list can be established for the target mesh based on the second chain access rule to store the second mesh nodes and the second mesh units included in the target mesh.
[0053] In practical applications, when establishing a unit association relationship between a target grid unit and a second target surface, it is necessary to create a one-way linked list of grid units and geometric models, and then it is only necessary to query the grid unit id corresponding to the grid unit and the second target surface id corresponding to the second target surface from the one-way linked list to establish an association relationship between the grid unit id and the second target surface id. It should be understood that establishing an association relationship may be establishing a binding relationship, binding the grid unit id and the second target surface id.
[0054] When establishing the association relationship between the target mesh node and the second target surface respectively, since a mesh node may include multiple vertices, multiple edges and one surface, when binding the mesh nodes, a one-way linked list of mesh nodes and geometric models may be created for multiple vertices, multiple edges and one surface and the second target surface. Further, when establishing the association relationship, the vertex id corresponding to the vertex and the second target surface id corresponding to the second target surface may be queried from the one-way linked list to establish an association relationship between the vertex id and the second target surface id; at the same time, the edge id corresponding to the vertex and the second target surface id corresponding to the second target surface may be queried from the one-way linked list to establish an association relationship between the edge id and the second target surface id; at the same time, the face id corresponding to the vertex and the second target surface id corresponding to the second target surface may be queried from the one-way linked list to establish an association relationship between the face id and the second target surface id.
[0055] In practical applications, when editing the geometric model of the target object for the first time, it is necessary to check whether there is an existing mesh on the surface of the geometric model. If so, any form of editing of the face of the geometric model and its sub-entities is prohibited. This process is also implemented through function pointers.
[0056] In some examples, the method exemplarily provided in the present disclosure can also generate the remaining face meshes and volume meshes according to the existing mesh properties. The generation method uses Delaunay, and the subsequent process includes generating high-order units, mesh optimization, including topology optimization and mesh smoothing, mesh quality inspection and repair, mesh file output and memory cleaning, etc. Among them, Delaunay is a collection of a series of connected but non-overlapping triangles, and the circumscribed circles of these triangles do not contain any other points in this face domain. The remaining face meshes and volume meshes of the target object can be generated through these triangles and related data. It should be understood that in order to ensure that the volume mesh can be successfully generated, the mesh unit normal vector of the input target mesh must be an external normal vector pointing to the geometric model entity. Since the pre-generated mesh unit has ensured that the mesh unit normal vector is consistent with the mesh face normal vector, when it is detected that the mesh face normal is opposite to the volume mesh normal, the unit normal can be flipped.
[0057] Specifically, a mesh unit attribute container and a mesh node attribute container can be constructed. The mesh unit attribute container and the mesh node attribute container are essentially two mapping tables, which are used to find the corresponding node and mesh linked list from the database of the geometric model and are stored on the heap to ensure that they will not be released during the mesh generation process. Based on this, after the target object is initialized in Parasolid, the target object can be copied and constructed and placed in the mesh attribute container.
[0058] In some examples, when the target mesh is successfully bound to the second target surface, the mesh generator can query the required mesh from the mesh attribute container according to the geometric model ID, read the node and unit information in the mesh, and convert the node and unit information into the corresponding internal data structure. It should be understood that the query is implemented by passing the function pointer to the mesh generator.
[0059] Figure 5 The following is a schematic diagram of a periodic grid generation device provided by an exemplary embodiment of the present disclosure. Figure 5 As shown, the periodic grid generating device comprises:
[0060] A determination module 501 is used to determine a first target surface of a target object;
[0061] A division module 502 is used to perform mesh division on the first target surface, determine a first surface mesh of the first target surface, and copy the first surface mesh to obtain a second surface mesh;
[0062] An acquisition module 503 is used to perform a transformation operation on the second surface mesh to obtain a target mesh;
[0063] An establishing module 504 is used to establish an association relationship between the target grid and a second target surface, wherein the first target surface and the second target surface have the same surface structure;
[0064] The generating module 505 is configured to generate a third surface mesh of the second target surface based on the association relationship, wherein the third surface mesh is the target mesh.
[0065] As a possible implementation manner, performing a transformation operation on the second surface mesh to obtain a target mesh includes: acquiring a transformation mode and target data; and constructing a transformation matrix based on the transformation mode and target data.
[0066] As a possible implementation manner, the transformation mode includes a translation mode, the target data includes translation vector data and translation distance data, the transformation matrix includes a translation transformation matrix, and the method further includes: constructing the translation transformation matrix based on the translation vector data and the translation distance data; and using the translation transformation matrix to translate the target grid.
[0067] As a possible implementation manner, the transformation mode includes a mirror mode, the target data includes plane normal vector data and plane point data, the transformation matrix includes a mirror transformation matrix, and the method further includes: constructing the mirror transformation matrix based on the plane normal vector data and the plane point data; and using the mirror transformation matrix to perform a mirror operation on the target mesh.
[0068] As a possible implementation manner, the transformation mode includes a rotation mode, the target data includes rotation axis vector data, rotation angle data and rotation axis data, the transformation matrix includes a rotation transformation matrix, and the method further includes: constructing the rotation transformation matrix based on the rotation axis vector data, the rotation angle data and the rotation axis data; and using the rotation transformation matrix to rotate the target grid.
[0069] As a possible implementation manner, the transformation mode includes a cyclic symmetric mode, the target data includes rotation axis data, sector number data and rotation axis data, the transformation matrix includes a cyclic symmetric transformation matrix, and the method further includes: constructing the cyclic symmetric transformation matrix based on the rotation axis data, the sector number data and the rotation axis data; and performing a rotation operation on the target grid using the cyclic symmetric transformation matrix.
[0070] As a possible implementation manner, the first surface mesh includes a first mesh node and a first mesh unit, the target mesh includes a second mesh node and a second mesh unit, and the method further includes: storing the first mesh node and the first mesh unit based on a first chain access rule, the first chain access rule being used to limit the query order of the first mesh node and the first mesh unit; and storing the second mesh node and the second mesh unit based on a second chain access rule, the second chain access rule being used to limit the query order of the second mesh node and the second mesh unit.
[0071] An embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; a memory for storing instructions executable by at least one processor; wherein the at least one processor is used to execute instructions to implement the steps of the above method disclosed in the embodiment of the present disclosure.
[0072] Figure 6 The structure diagram of an electronic device provided by an exemplary embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the electronic device 600 includes at least one processor 601 and a memory 602 coupled to the processor 601 , and the processor 601 can execute corresponding steps in the above method disclosed in the embodiment of the present disclosure.
[0073] The processor 601 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 601 or by instructions in the form of software. The processor 601 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 602, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 601 reads the information in the memory 602 and completes the steps of the method in combination with its hardware.
[0074] In addition, when various operations / processes according to the present disclosure are implemented by software and / or firmware, they can be transmitted from a storage medium or a network to a computer system having a dedicated hardware structure, for example, Figure 7 The computer system 700 shown is installed with the programs constituting the software. When the various programs are installed, the computer system can perform various functions, including the functions described above. Figure 7 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure.
[0075] Computer system 700 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0076] like Figure 7 As shown, the computer system 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0077] A plurality of components in the computer system 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 may be any type of device capable of inputting information to the computer system 700, and the input unit 706 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 707 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 may include, but is not limited to, a disk, an optical disk. The communication unit 709 allows the computer system 700 to exchange information / data with other devices over a network such as the Internet, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, for example, a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0078] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the embodiments of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the above methods disclosed in the embodiments of the present disclosure in any other appropriate manner (e.g., by means of firmware).
[0079] The embodiment of the present disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the embodiment of the present disclosure.
[0080] The computer-readable storage medium in the disclosed embodiments may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0081] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0082] The embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program implements the above method disclosed in the embodiments of the present disclosure when executed by a processor.
[0083] In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.
[0084] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0085] The modules, components or units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.
[0086] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0087] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).
[0088] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A periodic grid generation method, characterized in that: include: determining a first target surface of the target object; Meshing the first target surface to determine a first surface mesh of the first target surface, and copying the first surface mesh to obtain a second surface mesh; Performing a transformation operation on the second surface mesh to obtain a target mesh includes: Get transformation mode and target data; constructing a transformation matrix based on the transformation mode and the target data; Establishing an association relationship between the target grid and a second target surface, wherein the first target surface and the second target surface have the same surface structure; generating a third surface mesh of the second target surface based on the association relationship, wherein the third surface mesh is the target mesh; The establishing of the association relationship between the target grid and the second target surface comprises: Creating a one-way linked list corresponding to the target mesh for the geometric model of the target object, wherein the one-way linked list includes an identity identifier corresponding to the target mesh; Establishing an association relationship between the target grid and the second target surface according to an identity identifier corresponding to the target grid and an identity identifier corresponding to the second target surface; The first surface mesh includes a first mesh node and a first mesh unit, the target mesh includes a second mesh node and a second mesh unit, and the method further includes: storing the first grid node and the first grid unit based on a first chain access rule, wherein the first chain access rule is used to limit a query order of the first grid node and the first grid unit; and The second grid nodes and the second grid units are stored based on a second chain access rule, where the second chain access rule is used to limit a query order of the second grid nodes and the second grid units.
2. The method according to claim 1, characterized in that The transformation mode includes a translation mode, the target data includes translation vector data and translation distance data, the transformation matrix includes a translation transformation matrix, and the method further includes: Constructing the translation transformation matrix based on the translation vector data and the translation distance data; The target grid is translated using the translation transformation matrix.
3. The method according to claim 1, characterized in that The transformation mode includes a mirror mode, the target data includes plane normal vector data and plane point data, the transformation matrix includes a mirror transformation matrix, and the method further includes: Constructing the mirror transformation matrix based on the plane normal vector data and the plane point data; The target mesh is mirrored using the mirror transformation matrix.
4. The method according to claim 1, characterized in that The transformation mode includes a rotation mode, the target data includes rotation axis vector data, rotation angle data and rotation axis data, the transformation matrix includes a rotation transformation matrix, and the method further includes: Constructing the rotation transformation matrix based on the rotation axis vector data, the rotation angle data and the rotation axis data; The target grid is rotated using the rotation transformation matrix.
5. The method according to claim 1, characterized in that: The transformation mode includes a cyclic symmetric mode, the target data includes rotation axis data, sector number data and rotation axis data, the transformation matrix includes a cyclic symmetric transformation matrix, and the method further includes: constructing the cyclic symmetric transformation matrix based on the rotation axis data, the sector quantity data and the rotation axis data; The target grid is rotated using the cyclic symmetric transformation matrix.
6. A periodic grid generation device, characterized in that: include: A determination module, used for determining a first target surface of a target object; A partitioning module, configured to perform mesh partitioning on the first target surface, determine a first surface mesh of the first target surface, and copy the first surface mesh to obtain a second surface mesh; An acquisition module, used for performing a transformation operation on the second surface mesh to obtain a target mesh, the acquisition module is further used for acquiring a transformation mode and target data, and constructing a transformation matrix based on the transformation mode and target data; An establishing module, used for establishing an association relationship between the target grid and a second target surface, wherein the first target surface and the second target surface have the same surface structure; A generating module, configured to generate a third surface mesh of the second target surface based on the association relationship, wherein the third surface mesh is the target mesh; The establishment module is further used to create a one-way linked list corresponding to the target mesh according to the geometric model of the target object, wherein the one-way linked list includes an identity identifier corresponding to the target mesh; and establish an association relationship between the target mesh and the second target surface according to the identity identifier corresponding to the target mesh and the identity identifier corresponding to the second target surface; The partitioning module also includes a storage module, the first surface mesh includes a first mesh node and a first mesh unit, the target mesh includes a second mesh node and a second mesh unit, the storage module is used to store the first mesh node and the first mesh unit based on a first chain access rule, the first chain access rule is used to limit the query order of the first mesh node and the first mesh unit; and store the second mesh node and the second mesh unit based on a second chain access rule, the second chain access rule is used to limit the query order of the second mesh node and the second mesh unit.
7. An electronic device, characterized in that: include: at least one processor; a memory for storing the at least one processor-executable instruction; The at least one processor is used to execute the instructions to implement the steps of the periodic grid generation method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the steps of the periodic grid generation method as described in any one of claims 1 to 5.
