CAE-based method and device for batch removal of grids
By using HyperMesh and the batch mesh removal method of Tcl/Tk language in CAE analysis, the problem of parts being stored in one component is solved, automated processing is realized, fragmented surface generation is reduced, and analysis accuracy is improved.
Patent Information
- Application Number
- CN201910704451.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-07-31
Smart Images

Figure CN112395783B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of CAE technology, and in particular to a method for batch removal of grids based on CAE, a computer-readable storage medium, a computer device, and a device for batch removal of grids based on CAE. Background Art
[0002] When simulation engineers use finite element software to perform CAE (computer aided engineering) analysis and modeling on automotive structural parts, they generally store the meshes of different parts in different components. However, the geometric models provided by design engineers are often lost during the modeling process due to various reasons. After being imported into the finite element analysis software, all parts are stored in one component. The method generally adopted by simulation engineers is to divide the meshes of such geometric models, and then manually move the meshes of different parts to different components one by one. The latest version of CAE analysis pre-processing software HyperMesh can automatically move multiple solid parts stored in one component to multiple components, but this method often results in the generation of many broken surfaces, the area of which is very small, sometimes as many as thousands, and subsequent processing is very complicated. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0004] To this end, the first object of the present invention is to propose a method for batch mesh removal based on CAE to achieve batch and automatic mesh removal, which can reduce the generation of broken surfaces and improve the accuracy of CAE analysis.
[0005] A second object of the present invention is to provide a computer-readable storage medium.
[0006] A third object of the present invention is to provide a computer device.
[0007] The fourth objective of the present invention is to provide a device for batch removal of grids based on CAE.
[0008] To achieve the above-mentioned purpose, the first aspect of the present invention proposes a method for batch removal of grids based on CAE, comprising the following steps: using CAE analysis pre-processing software HyperMesh to import a geometric model whose grids need to be removed; meshing the geometric model, wherein the geometric model includes at least one component; selecting the components whose grids need to be removed and displaying them; performing multiple grouping processes on the displayed grids, and removing the grid groups obtained by each grouping.
[0009] According to the CAE-based vehicle durability condition creation method of the embodiment of the present invention, batch and automatic mesh removal is achieved, which can reduce the generation of broken surfaces and improve the accuracy of CAE analysis.
[0010] In addition, the method for creating a vehicle durability condition based on CAE according to the above embodiment of the present invention may also have the following additional technical features:
[0011] According to an embodiment of the present invention, the displayed grids are grouped multiple times, and the grid groups obtained by each grouping are removed, including:
[0012] Step 1: Let i=1;
[0013] Step 2: Select one of the displayed grids and mark all the grids connected to it. The selected grid and the marked grids connected to it are recorded as the i-th grid group;
[0014] Step 3: Create a new i-th component, move the i-th grid group into the i-th component and hide it;
[0015] Step 4: Determine whether there is still a displayed grid, if yes, go to step 5, if no, go to step 6;
[0016] Step 5: Set i=i+1 and return to step 2;
[0017] Step 6: Confirm that all grids that need to be moved have been moved.
[0018] According to one embodiment of the present invention, the newly created i-th component is named comp_i.
[0019] According to an embodiment of the present invention, each component in the geometric model includes at least one solid part, wherein the component including the solid part is different from the component including the mesh group.
[0020] According to one embodiment of the present invention, meshing the geometric model includes: meshing each entity in each component in the geometric model.
[0021] According to an embodiment of the present invention, the component name is composed of a mixture of English characters, Arabic numerals and Chinese characters, and the label and the working condition name are both composed of a mixture of English characters and Arabic numerals.
[0022] According to one embodiment of the present invention, the script file of the CAE-based batch mesh removal method is written in Tcl / Tk language.
[0023] To achieve the above objectives, the second embodiment of the present invention proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the CAE-based batch grid removal method proposed in the first embodiment of the present invention.
[0024] The computer-readable storage medium of the embodiment of the present invention can realize batch and automatic mesh removal when the computer program thereof is executed by a processor, thereby reducing the generation of broken surfaces and improving the accuracy of CAE analysis.
[0025] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a computer device, including a memory, a processor and a computer program stored in the memory. When the processor executes the computer program, the CAE-based batch grid removal method proposed in the first aspect of the present invention is implemented.
[0026] The computer device of the embodiment of the present invention can realize batch and automatic mesh removal when its computer program is executed by the processor, reduce the generation of broken surfaces, and improve the accuracy of CAE analysis.
[0027] To achieve the above-mentioned purpose, the fourth aspect of the present invention proposes a device for batch removal of grids based on CAE, including: an import module, used to import a geometric model whose grids need to be removed using CAE analysis pre-processing software HyperMesh; a division module, used to mesh the geometric model, wherein the geometric model includes at least one component; a selection module, used to select and display the components whose grids need to be removed; and a processing module, used to perform multiple grouping processing on the displayed grids, and remove the grid groups obtained by each grouping.
[0028] The device for batch removal of meshes based on CAE according to the embodiment of the present invention can realize batch and automatic removal of meshes, reduce the generation of broken surfaces, and improve the accuracy of CAE analysis.
[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0031] Figure 1 A flowchart of a method for batch evacuation of grids based on CAE according to an embodiment of the present invention;
[0032] Figure 2 A specific flow chart of moving out processing according to an embodiment of the present invention;
[0033] Figure 3 is a structural block diagram of a computer device according to an embodiment of the present invention;
[0034] Figure 4 It is a structural block diagram of a device for batch evacuation of grids based on CAE according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0036] Figure 1 The figure is a flow chart of a method for batch evacuating grids based on CAE according to an embodiment of the present invention.
[0037] like Figure 1 As shown, the CAE-based batch grid removal method includes the following steps:
[0038] S1, use CAE analysis pre-processing software HyperMesh to import the geometric model that needs to be meshed.
[0039] Specifically, the geometric model that needs to be meshed is imported into the pre-processing software HyperMesh. The geometric model can be a CAD model or a file in the format of UG, CATIA, Pro / E, etc. When importing the geometric model, geometric cleaning is required to avoid loss or dislocation of geometric information, improve the topological relationship of the geometric model, and obtain a high-quality mesh.
[0040] S2, meshing a geometric model, wherein the geometric model includes at least one component.
[0041] In one embodiment, each component in the geometric model includes at least one solid part, wherein the component including the solid part is different from the component including the mesh group.
[0042] Furthermore, meshing the geometric model may include: dividing each solid part in each component in the geometric model into interconnected and uninterrupted mesh units according to certain sizes and proportions, so as to make it a mechanical model that can be calculated and analyzed for subsequent finite element calculations.
[0043] Specifically, after the geometric model is imported, the geometric model is first processed (quick edit), and then each entity part of each component in the geometric model is meshed, wherein the entity part can generally be a component with complex structure such as a simulated casting.
[0044] S3, select the components that need to be moved out of the grid and display them.
[0045] Specifically, components that need to be moved out of the grid are displayed, and unselected components that do not need to be moved out of the grid are hidden.
[0046] S4, performing grouping processing on the displayed grids for multiple times, and performing removal processing on the grid groups obtained by each grouping.
[0047] Specifically, a new component may be created, and mesh groups may be moved to the new component in sequence, until no meshes are displayed in the current geometric model, and it is confirmed that all meshes that need to be moved have been moved.
[0048] In this way, the mesh can be removed in batches and automatically, the generation of broken surfaces can be reduced, and the accuracy of CAE analysis can be improved.
[0049] In one embodiment of the present invention, Figure 2 As shown, the displayed grids are grouped multiple times, and the grid groups obtained by each grouping are removed respectively, that is, the above step S4 may include the following steps:
[0050] S41: let i=1;
[0051] S42: Select one of the displayed grids and mark all grids connected to it, and record the selected grid and the marked grids connected to it as the i-th grid group;
[0052] S43: Create a new i-th component, move the i-th grid group to the i-th component and hide it;
[0053] S44: Determine whether there is still a displayed grid, if yes, execute step S45, if no, execute step S46;
[0054] S45: Set i=i+1, and return to step S42;
[0055] S46: Confirm that all grids that need to be moved have been moved.
[0056] Furthermore, the newly created i-th component is named comp_i.
[0057] That is to say, the displayed n grid groups are moved to the first component comp_1, the second component comp_2, the third component comp_3, ..., the nth component comp_n in turn to complete batch and automatic grid movement.
[0058] In one embodiment of the present invention, a script file of a method for batch removing grids based on CAE is written in Tcl / Tk language.
[0059] Tcl (Tool Command Language) is a commonly used operation interface design language. Tk is a graphics development toolbox based on Tcl and an important component of Tcl. Tcl / Tk language has the advantages of short development and application cycle, suitable for developing graphical user interfaces, flexible integration functions, easy debugging, etc. It can also be a scripting language that meets the needs of enterprise reference programs.
[0060] In summary, the CAE-based batch mesh removal method of the embodiment of the present invention can realize batch and automatic mesh removal, reduce the generation of broken surfaces, and improve the accuracy of CAE analysis; the script file is written in Tcl / Tk language, which can meet the needs of enterprises.
[0061] Furthermore, the present invention proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the CAE-based batch grid removal method of the above embodiment.
[0062] The computer-readable storage medium of the embodiment of the present invention, when the computer program corresponding to the above-mentioned CAE-based batch mesh removal method stored thereon is executed, can realize batch and automatic mesh removal, reduce the generation of broken surfaces, and improve the accuracy of CAE analysis.
[0063] Figure 3 4 is a structural block diagram of a computer device according to an embodiment of the present invention.
[0064] like Figure 3 As shown, the computer device 1 includes a memory 11, a processor 12 and a computer program 13 stored in the memory 11. When the processor 12 executes the computer program 13, the CAE-based batch grid removal method proposed in the embodiment of the first aspect of the present invention is implemented.
[0065] The computer device of the embodiment of the present invention can realize batch and automatic mesh removal when the computer program corresponding to the above-mentioned CAE-based batch mesh removal method stored thereon is executed, thereby reducing the generation of broken surfaces and improving the accuracy of CAE analysis.
[0066] Figure 4It is a structural block diagram of a device for batch evacuation of grids based on CAE according to an embodiment of the present invention.
[0067] like Figure 4 As shown, the CAE-based batch grid removal device 100 includes: an import module 10, a division module 20, a selection module 30, and a processing module 40.
[0068] Among them, the import module 10 is used to import the geometric model that needs to be meshed using the CAE analysis pre-processing software HyperMesh; the division module 20 is used to mesh the geometric model, wherein the geometric model includes at least one component; the selection module 30 is used to select and display the components that need to be meshed; the processing module 40 is used to perform multiple grouping processes on the displayed mesh, and respectively perform mesh removal processing on the mesh groups obtained in each grouping.
[0069] It should be noted that the above explanation of the embodiment of the method for batch relocation of grids based on CAE is also applicable to the device for batch relocation of grids based on CAE of this embodiment, and will not be repeated here.
[0070] The device for batch removal of meshes based on CAE according to the embodiment of the present invention can realize batch and automatic removal of meshes, reduce the generation of broken surfaces, and improve the accuracy of CAE analysis.
[0071] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0072] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0073] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0074] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0075] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0076] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0077] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0078] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for batch removal of grids based on CAE. It is characterized in that The following steps are involved: Use CAE analysis pre-processing software HyperMesh to import the geometric model that needs to be meshed; Meshing the geometric model, wherein the geometric model includes at least one component; Select the components that need to be moved out of the grid and display them; Performing multiple grouping processing on the displayed grids, and removing the grid groups obtained by each grouping respectively; Performing multiple grouping processing on the displayed grids, and removing the grid groups obtained by each grouping respectively, including: Step 1: Let i=1; Step 2: Select one of the displayed grids and mark all the grids connected to it. The selected grid and the marked grids connected to it are recorded as the i-th grid group; Step 3: Create a new i-th component, move the i-th grid group into the i-th component and hide it; Step 4: Determine whether there is still a displayed grid, if yes, go to step 5, if no, go to step 6; Step 5: Set i=i+1 and return to step 2; Step 6: Confirm that all grids that need to be moved have been moved.
2. The method for batch removal of grids based on CAE as claimed in claim 1, It is characterized in that The newly created i-th component is named comp_i.
3. The method for batch removal of grids based on CAE as claimed in claim 1, It is characterized in that Each component in the geometric model includes at least one solid part, wherein the component including the solid part is different from the component including the mesh group.
4. The method for batch removal of grids based on CAE as claimed in claim 3, It is characterized in that Meshing the geometric model includes: Each solid part in each component in the geometric model is meshed.
5. The method for batch removal of grids based on CAE according to any one of claims 1 to 4, It is characterized in that The script file of the CAE-based batch mesh removal method is written in Tcl / Tk language.
6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for batch evacuation of grids based on CAE as described in any one of claims 1 to 5 is implemented.
7. A computer device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that When the processor executes the computer program, the method for batch evacuation of grids based on CAE as described in any one of claims 1 to 5 is implemented.
8. A device for batch removal of grids based on CAE, It is characterized in that include: Import module, used to import the geometric model that needs to be meshed using CAE analysis pre-processing software HyperMesh; A partitioning module, used for performing mesh partitioning on the geometric model, wherein the geometric model includes at least one component; The selection module is used to select the components that need to be moved out of the grid and display them; A processing module, used for performing multiple grouping processing on the displayed grids, and performing removal processing on the grid groups obtained by each grouping; Perform multiple grouping processes on the displayed grids, and perform removal processes on the grid groups obtained in each grouping, including: Step 1: Let i=1; Step 2: Select one of the displayed grids and mark all the grids connected to it. The selected grid and the marked grids connected to it are recorded as the i-th grid group; Step 3: Create a new i-th component, move the i-th grid group into the i-th component and hide it; Step 4: Determine whether there is still a displayed grid, if yes, go to step 5, if no, go to step 6; Step 5: Set i=i+1 and return to step 2; Step 6: Confirm that all grids that need to be moved have been moved.
Citation Information
Patent Citations
Complete vehicle electromagnetic compatibility (EMC) model building method applicable to complex automobile structure
CN104408261A
IFC-standard-based analysis model working method applied to engineering project
CN106528760A
Finite element modeling method for human head for researching collision damage of automobile
CN106777473A
Power network graph automatic generation method and apparatus
CN106960103A
A fan blade modeling method
CN107169191A
