The present invention relates to an adaptive grid generating method and an adaptive grid generating system, and more particularly, to an adaptive grid generating method and an adaptive grid generating system capable of cleaning and repairing grids.
The rapid development of computer systems provides a powerful tool for engineering analysis, so engineers may use numerical simulation methods to simulate the actual problems encountered in the structure of products. For example, when designing the structure of a product, the finite element structure analysis software ABAQUS is used to analyze the grid model of the structure. However, if the structure of the product is very complex, too much information is involved when ABAQUS analyzes the grid model of the structure. Under this circumstance, how to appropriately simplify the structure of the product, and then execute ABAQUS analysis of the grid model to balance efficiency and quality has become a goal of the industry.
The present invention is to provide an adaptive grid generating method and an adaptive grid generating system to solve the above problems.
The present invention provides an adaptive grid generating method, including obtaining a first three-dimensional grid of a target structure; importing the first three-dimensional grid into a computer-aided engineering software to obtain a first two-dimensional planar grid; importing the first two-dimensional planar grid into a grid cleaning software to obtain a second two-dimensional planar grid; and importing the second two-dimensional planar grid into the computer-aided engineering software to obtain a second three-dimensional grid.
The present invention provides an adaptive grid generating system, including a processor; and a memory, configured to store a program code for instructing the processor to execute an adaptive grid generating method, and the adaptive grid generating method comprises obtaining a first three-dimensional grid of a target structure; importing the first three-dimensional grid into a computer-aided engineering software to obtain a first two-dimensional planar grid; importing the first two-dimensional planar grid into a grid cleaning software to obtain a second two-dimensional planar grid; and importing the second two-dimensional planar grid into the computer-aided engineering software to obtain a second three-dimensional grid.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, hardware manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are utilized in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Please refer to
The adaptive grid generating method executed by the adaptive grid generating system 1 may be summarized as a process 2, as shown in
According to the process 2, in step S202, the adaptive grid generating system 1 exports the first three-dimensional grid of the target structure by a drawing software. For example, please refer to
In step S206, the adaptive grid generating system 1 imports the first two-dimensional planar grid into the grid cleaning software and executes a grid cleaning method to perform grid-clean to the first two-dimensional planar grid, so that the first two-dimensional planar grid may be simplified to the second two-dimensional planar grid. For example, the grid cleaning software may be a Python-based PyMesh suite, which is a rapid prototyping platform for geometry processing and is mainly used in 3D printing. In short, the adaptive grid generating system 1 uses the grid cleaning method in the PyMesh suite to perform grid-clean to the first two-dimensional planar grid and obtain the second two-dimensional planar grid in the STL format.
Specifically, after the above steps, compared with the first two-dimensional planar grid, the second two-dimensional planar grid has removed a part that is suitable to be simplified. Therefore, in step S208, the adaptive grid generating system 1 may import the second two-dimensional planar grid into the computer-aided engineering software ABAQUS to obtain the second three-dimensional grid. In this way, the computer-aided engineering software ABAQUS may analyze the grid model of the target structure according to the second three-dimensional grid and take into account both an analysis efficiency and an analysis quality.
For example, the target structure may be a C component of a notebook. Please refer to
In another embodiment, the grid cleaning method executed by the adaptive grid generating system 1 may be summarized as a process 3, as shown in
In step S300, the adaptive grid generating system 1 may set the grid cleaning coefficient, and execute the grid cleaning method to the first two-dimensional planar grid according to the grid cleaning coefficient to obtain the approximate two-dimensional planar grid. In step S302, the adaptive grid generating system 1 compares the area change rate of the first two-dimensional planar grid and the approximate two-dimensional planar grid. When the area change rate of the first two-dimensional planar grid and the approximate two-dimensional planar grid is greater than a predetermined change rate, the adaptive grid generating system 1 adjusts the grid cleaning coefficient of the grid cleaning method, and executes the process 3 again. When the area change rate of the first two-dimensional planar grid and the approximate two-dimensional planar grid is smaller than the predetermined change rate, the adaptive grid generating system 1 inputs the approximate two-dimensional planar grid as the second two-dimensional planar grid. For example, the adaptive grid generating system 1 sets the predetermined change rate to 3%. When the area change rate is greater than 3%, the adaptive grid generating system 1 adjusts the grid cleaning coefficient, and executes the process 3 again. When the area change rate is smaller than 3%, the adaptive grid generating system 1 inputs the approximate two-dimensional planar grid as the second two-dimensional planar grid.
It should be noted that the adaptive grid generating system 1 is an embodiment of the present invention. Those skilled in the art should readily make combinations, modifications and/or alterations on the abovementioned description and examples. The abovementioned description, steps, procedures and/or processes including suggested steps can be realized by means that could be hardware, software, firmware (known as a combination of a hardware device and computer instructions and data that reside as read-only software on the hardware device), an electronic system, or combination thereof. Examples of hardware can include analog, digital and mixed circuits known as microcircuit, microchip, or silicon chip. Examples of the electronic system may include a system on chip (SoC), system in package (SiP), a computer on module (CoM) and the electronic system. Any of the abovementioned procedures and examples above may be compiled into program codes or instructions that are stored in the memory 20. The memory 20 may include read-only memory (ROM), flash memory, random access memory (RAM), subscriber identity module (SIM), hard disk, floppy diskette, or CD-ROM/DVD-ROM/BD-ROM, but not limited thereto. The processor 10 may read and execute the program codes or the instructions stored in the memory 20 for realizing the abovementioned functions.
In summary, compared to the prior art, the adaptive grid generating system of the present invention may use the grid cleaning software to clean the grid model of the target structure, and then import into the computer-aided engineering software to analyze the target structure, so as to reduce a large amount of calculations of the analysis software and take into account the accuracy of the analysis.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
202211112136.2 | Sep 2022 | CN | national |