Finite element pre-processing geometric defect automatic repair method, equipment and storage medium
By automatically trimming gaps and overlapping parts on the curved surface of the automobile structure and constructing a patching surface, the problem of difficulty in repairing surface geometric defects in wind resistance/wind noise simulation tests in the existing technology is solved, and high-quality finite element mesh generation and simulation tests are realized. Improved accuracy and efficiency.
Patent Information
- Application Number
- CN202410675244.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing finite element mesh pre-processing tools cannot effectively repair surface geometric defects in wind resistance/wind noise simulation tests of automobile structures, resulting in simulation test errors, and manual repairs are time-consuming and labor-intensive.
By automatically trimming gaps and overlapping parts on the curved surface of the automobile structure, and constructing a seam patch surface, we ensure high-quality generation of finite element meshes and improve the data authenticity and reliability of simulation tests.
It realizes the automatic trimming of surface geometric defects, generates high-quality finite element mesh, improves the accuracy and efficiency of wind resistance/wind noise simulation tests, reduces the intensity of manual operations, and saves research and development costs.
Smart Images

Figure CN118278253B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle body structure simulation, and in particular to a method, device and storage medium for automatic correction of geometric defects in finite element pre-processing. Background Art
[0002] In the process of automobile body structure development, CAE (Computer Aided Engineering) performance simulation is an indispensable link. Almost all automobile structure CAE performance simulations need to face the problem of finite element mesh pre-processing, that is, pre-processing the surface before generating finite element mesh on the surface of the structure. The mainstream pre-processing method is to manually use professional mesh pre-processing tools to achieve automobile structure finite element mesh pre-processing, such as Altair's Hypermesh and BETA's ANSA.
[0003] Researchers found that when conducting wind resistance / wind noise simulation tests on aerodynamic modeling of the entire vehicle, the existing pre-processing tools could not achieve the required results, resulting in errors in wind resistance / wind noise simulation tests. Manually repairing the defective structure of the surface is very time-consuming and usually requires engineers to invest a lot of manpower. Therefore, how to solve the problem of repairing the surface geometry during wind resistance / wind noise simulation tests is an urgent problem to be solved in automobile development.
[0004] In view of this, the present invention is proposed. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a method, equipment and storage medium for automatic trimming of geometric defects in finite element pre-processing, which automatically trims gaps and overlapping parts on the curved surface of the automobile structure to ensure that the outer surface of the vehicle is tightly fitted without redundant surfaces, thereby ensuring the generation of high-quality finite element meshes; at the same time, it can simulate the smooth sealing effect of the entire vehicle surface, which is beneficial to the authenticity and reliability of data in the whole vehicle wind resistance simulation test or the whole vehicle wind noise simulation test.
[0006] An embodiment of the present invention provides a method for automatically correcting geometric defects in finite element pre-processing, the method comprising:
[0007] Acquire a first target curved surface and a second target curved surface generated according to the vehicle body structure, wherein there is a gap between the first target curved surface and the second target curved surface;
[0008] Selecting a first boundary line on the first target surface and a second boundary line on the second target surface according to the distance and angle between any two boundary lines on different target surfaces;
[0009] constructing a repair surface through the first boundary line and the second boundary line;
[0010] A finite element mesh is constructed on the first target curved surface, the second target curved surface and the patched surface for use in a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test.
[0011] Optionally, constructing a repairing surface through the first boundary line and the second boundary line includes:
[0012] According to the curvature characteristics of the first target curved surface, the curved surface is extended from the first boundary line toward the second boundary line until it intersects with the second boundary line, and the curved surface formed by the extension is the repairing surface.
[0013] Optionally, constructing a repairing surface through the first boundary line and the second boundary line includes:
[0014] Projecting two endpoints of the first boundary line onto the second boundary line to form a first repair line passing through the projection points or the endpoints of the second boundary line;
[0015] Projecting two endpoints of the second boundary line onto the first boundary line to form a second stitching line passing through the projection points or the endpoints of the first boundary line;
[0016] A mending surface is constructed between the first mending line and the second mending line.
[0017] Optionally, after constructing the repair surface through the first boundary line and the second boundary line, the method further includes:
[0018] If the gap width is smaller than the set value, the intersecting line segments between the patching surface and the first target curved surface are deleted to form a new curved surface between the patching surface and the first target curved surface; or, the intersecting line segments between the patching surface and the second target curved surface are deleted to form a new curved surface between the patching surface and the second target curved surface;
[0019] The constructing of finite element meshes on the first target curved surface, the second target curved surface and the seam patching surface comprises:
[0020] A finite element mesh is constructed on the new surface, and a finite element mesh is constructed on a target surface other than the new surface.
[0021] Optionally, if the gap width is greater than or equal to the set value, constructing a finite element mesh on the first target curved surface, the second target curved surface and the seam patching surface includes:
[0022] Constructing finite element meshes on the first target curved surface, the second target curved surface and the seam patching surface respectively;
[0023] The set value is equal to the width of a finite element mesh.
[0024] Optionally, before the distance and angle between any two boundary lines on different target surfaces, the method further includes:
[0025] Determine whether there is overlap in the normal direction of any target surface;
[0026] If there is overlap, the overlapping surfaces are trimmed.
[0027] Optionally, clip overlapping surfaces including:
[0028] Projecting an edge on the first target curved surface onto the second target curved surface to form at least one first overlapping surface passing through the projected edge or the edge of the second target curved surface;
[0029] Projecting the edge on the second target curved surface onto the first target curved surface to form at least one second overlapping surface passing through the projected edge or the edge of the first target curved surface;
[0030] Selecting two target overlapping surfaces having a mutual projection relationship from at least one first overlapping surface and at least one second overlapping surface;
[0031] The target overlapping surface on the inner side of the vehicle is selected from the two target overlapping surfaces for cutting.
[0032] An embodiment of the present invention provides a method for automatically correcting geometric defects in finite element pre-processing, comprising:
[0033] Acquire a first target curved surface and a second target curved surface generated according to the vehicle body structure;
[0034] Determine whether there is overlap in the normal direction of different target surfaces, and whether there are gaps between different target surfaces;
[0035] If there is overlap but no gap, trim the overlapping surfaces;
[0036] A finite element mesh is constructed on the trimmed target surface for whole vehicle wind resistance simulation test or whole vehicle wind noise simulation test.
[0037] An embodiment of the present invention provides an electronic device, including:
[0038] Memory, processor and computer program;
[0039] The computer program is stored in the memory and is configured to be executed by the processor to implement an automated method for correcting geometric defects in finite element pre-processing.
[0040] An embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program; the computer program is executed by a processor to implement a method for automatically correcting geometric defects in finite element pre-processing.
[0041] The embodiments of the present invention have the following technical effects:
[0042] (1) The present invention automatically determines the position where the seam repair surface needs to be constructed through the distance and angle between the boundary lines on the curved surface, eliminating the need for manual operation.
[0043] (2) The present invention constructs a patching surface at the gap between the curved surfaces to make the curved surfaces smoothly connected, thereby simulating the smooth sealing effect of the entire vehicle surface. Thereafter, a finite element mesh is generated and used for a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test, thereby providing the authenticity and reliability of the test data.
[0044] (3) The present invention increases the overall surface area and reduces the faults between the surfaces by connecting the surfaces, which is conducive to generating high-quality regularized grids on this basis.
[0045] (4) The present invention adopts an intelligent algorithm combined with ANSA software to realize the functions of automatic stitching and automatic meshing of the geometric structure of the automobile exterior shape, which can effectively improve the efficiency of automobile simulation, reduce the intensity of finite element meshing personnel, save enterprise R&D costs, and improve product competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 is a schematic diagram of a first target curved surface and a second target curved surface having a gap provided by an embodiment of the present invention;
[0048] Figure 2 It is a flow chart of a method for automatic repairing geometric defects in finite element pre-processing provided by an embodiment of the present invention;
[0049] Figure 3 is a schematic diagram of a first sewing line and a second sewing line provided by an embodiment of the present invention;
[0050] Figure 4 is a schematic diagram of constructing a seam repair surface provided by an embodiment of the present invention;
[0051] Figure 5 is a schematic diagram of overlapping curved surfaces with gaps provided by an embodiment of the present invention under one viewing angle;
[0052] Figure 6 is a schematic diagram of overlapping curved surfaces with gaps provided by an embodiment of the present invention from another perspective;
[0053] Figure 7 is a schematic diagram of an overlapping surface provided by an embodiment of the present invention;
[0054] Figure 8 is a flow chart of another method for automatic repairing geometric defects in finite element pre-processing provided by an embodiment of the present invention;
[0055] Fig. 9 is a schematic diagram of a completely fitted curved surface provided by an embodiment of the present invention;
[0056] Fig.10 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0058] The method for automatically trimming geometric defects in finite element pre-processing provided by an embodiment of the present invention is applicable to the case where the surface of the vehicle body structure is automatically trimmed after it is constructed in a simulation environment and before the finite element mesh is generated. The trimming can be performed in a simulation environment, such as in ANSA software. The trimmed surface is used to generate a finite element mesh, which is then used in a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test, and data on each mesh, such as pressure, resistance, etc., is collected to evaluate the aerodynamic performance of the whole vehicle in a simulation environment.
[0059] Embodiment 1
[0060] Figure 1 is a schematic diagram of a first target curved surface and a second target curved surface having a gap provided by an embodiment of the present invention. This embodiment aims to connect the two target curved surfaces. Figure 2 : is a flow chart of a method for automatic repairing geometric defects in finite element pre-processing provided by an embodiment of the present invention. The method specifically includes:
[0061] S110 , obtaining a first target curved surface and a second target curved surface generated according to the vehicle body structure, wherein a gap exists between the first target curved surface and the second target curved surface.
[0062] In the simulation environment, each individual body structure is generated into a surface with matching curvature and shape. The body structure includes doors, longitudinal beams, hood, roof, etc. Some adjacent body structures are sealed with glue or plastic, and the sealing material will not generate corresponding surfaces. In this way, there will be gaps between adjacent target surfaces in the simulation environment. For example, there is a rubber strip between the window and the A-pillar, but only the window and the A-pillar are constructed in the simulation environment, and there is a gap of a certain width between the two. Other gaps include between doors, between doors and windows, between B-pillars and windows, between C-pillars and windows, between trunk lid and body, between fuel tank cap and body, etc.
[0063] Optionally, based on experience, it can be considered that the curved surfaces corresponding to two adjacent structures that are sealed with glue or plastic are respectively the first target curved surface and the second target curved surface.
[0064] S120 . Select a first boundary line on the first target curved surface and a second boundary line on the second target curved surface according to the distance and angle between any two boundary lines on different target curved surfaces.
[0065] See also Figure 1 Each target surface has a peripheral boundary line (such as a red line and a green line). The boundary line can be a straight line or a curve.
[0066] Before connecting the two current surfaces, it is necessary to first determine the two edges that are closest to each other. Specifically, calculate the distance and angle between each edge on the first target surface and each edge on the second target surface. The distance and angle are weighted and summed, and the weighted sum values are sorted from small to large to obtain the smallest set of edges, namely the first boundary line and the second boundary line. Among them, the angle is given a higher weight than the distance to ensure that the closest edge pair is selected.
[0067] S130: construct a repair surface through the first boundary line and the second boundary line.
[0068] A patching surface can be constructed through two boundary lines in space. The patching surface can be a plane or a curved surface. The function of the patching surface is to connect two target curved surfaces with a gap, and the curvature is substantially the same as that of the two target curved surfaces to achieve a smooth effect. Preferably, this embodiment provides the following two implementations.
[0069] The first implementation method: according to the curvature characteristics of the first target surface (or the second target surface), extend from the first boundary line (or the second boundary line) in the direction of the second boundary line (or the first boundary line) until it intersects with the second boundary line (or the first boundary line), and the surface formed by the extension is the repair surface.
[0070] Specifically, the curvatures in all directions on the surface can be calculated using simulation software, so the curvature of the points on the first boundary line in the normal direction of the second boundary line can also be obtained. Then, the points on the first boundary line are copied and extended according to the aforementioned curvature until they intersect with the second boundary line. If the curvatures of the two target surfaces in the normal direction of the second boundary line are the same or close, the extended surface will intersect with the second boundary line. In the application scenario of the present invention, the curvatures of the two structures of glue sealing or plastic sealing are generally the same or similar. The extension in this embodiment is essentially an isotropic extension of the first target surface.
[0071] The second implementation method: project the two endpoints of the first boundary line onto the second boundary line to form a first seam line passing through the projection point or the endpoint of the second boundary line; project the two endpoints of the second boundary line onto the first boundary line to form a second seam line passing through the projection point or the endpoint of the first boundary line; construct a seam surface between the first seam line and the second seam line, and the first seam line and the second seam line can be obtained by projecting each other.
[0072] In some cases, the two target surfaces are not aligned, and the newly constructed patch surface should only play a connecting role and should not generate new edges. Therefore, for the two unaligned target surfaces, a patch surface is constructed between the parts where the first boundary line and the second boundary line overlap in space. Figure 3 Schematic diagram of the first stitching line and the second stitching line provided by an embodiment of the present invention. Endpoints A and C on the first boundary line are projected onto the second boundary line to obtain C1, and point A is not projected onto it. Endpoints B and D on the second boundary line are projected onto the first boundary line to obtain B1, and point D is not projected onto it. In this way, a line segment BC1 is formed on the first boundary line, and a line segment B1C is formed on the second boundary line, which can be projected onto each other, that is, they have a mutual projection relationship. A stitching surface is constructed between line segment BC1 and line segment B1C. The effect after construction can be seen in Figure 4 .
[0073] Optionally, if the gap width is less than a set value, the intersecting line segments of the patch surface and the first target surface are deleted to form the patch surface and the first target surface into one surface; or, the intersecting line segments of the patch surface and the second target surface are deleted to form a new surface. The set value is equal to the width of a finite element mesh. If the gap width is greater than the set value, at least one mesh can be created on the patch surface, and a composite surface is not required.
[0074] The gap width can be obtained by measuring the width of the patch surface through software. If the gap width is less than the set value, it means that the patch surface formed is not enough to create a grid, and it needs to be combined with the first target surface or the second target surface to form a large surface. In the simulation software, it is necessary to build a grid on the closed surface surrounded by the curve, so if you want to synthesize the surface, you only need to delete one of the patch lines.
[0075] S140, constructing a finite element mesh on the first target curved surface, the second target curved surface and the patched surface for a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test.
[0076] If the gap width is greater than or equal to the set value, that is, the first target surface, the second target surface and the patch surface are all independent surfaces, then finite element meshes are constructed separately. If the gap width is less than the set value, a finite element mesh is constructed on the new surface, and a finite element mesh is constructed on the target surface outside the new surface. For example, the patch surface and the first target surface form a new surface, and the surface outside the new surface is the second target surface; the patch surface and the second target surface form a new surface, and the surface outside the new surface is the third target surface.
[0077] The embodiments of the present invention have the following technical effects:
[0078] (1) The present invention automatically determines the position where the seam repair surface needs to be constructed through the distance and angle between the boundary lines on the curved surface, eliminating the need for manual operation.
[0079] (2) The present invention constructs a patching surface at the gap between the curved surfaces to make the curved surfaces smoothly connected, thereby simulating the smooth sealing effect of the entire vehicle surface. Thereafter, a finite element mesh is generated and used for a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test, thereby providing the authenticity and reliability of the test data.
[0080] (3) The present invention increases the overall surface area and reduces the faults between the surfaces by connecting the surfaces, which is conducive to generating high-quality regularized grids on this basis.
[0081] (4) The present invention adopts an intelligent algorithm combined with ANSA software to realize the functions of automatic stitching and automatic meshing of the geometric structure of the automobile exterior shape, which can effectively improve the efficiency of automobile simulation, reduce the intensity of finite element meshing personnel, save enterprise R&D costs, and improve product competitiveness.
[0082] Embodiment 2
[0083] This embodiment adds a processing step for overlapping surfaces based on the above embodiment. Specifically, after obtaining the first target surface and the second target surface generated according to the vehicle body structure, it is determined whether there is overlap in the normal direction of any target surface according to the distance and angle between any two boundary lines on different target surfaces; if there is overlap, the overlapping surface is clipped.
[0084] This embodiment is applicable to the case where there are overlaps and gaps between the first target curved surface and the second target curved surface. The overlap phenomenon needs to be eliminated first, and then the patching surface is constructed. The overlap here refers to the overlap with the second target curved surface in the normal direction of the first target curved surface. In layman's terms, it means the overlap between the upper and lower surfaces, and there is an extra curved surface on the outer surface of the vehicle. Figure 5 is a schematic diagram of overlapping curved surfaces with gaps provided by an embodiment of the present invention from a viewing angle, Figure 6 is a schematic diagram of overlapping curved surfaces with gaps provided by an embodiment of the present invention from another perspective, Figure 5 and Figure 6 The coordinate system in the software is shown in the upper right corner to illustrate the viewing angle. Figure 5 and Figure 6 The two target surfaces are shown from two perspectives to make it easier to see that the two target surfaces have overlaps and gaps.
[0085] Since the simulation software has the position data of each point on the surface, the normal direction of each point on the surface can be calculated by the simulation software, so as to determine whether there is a point on another target surface in the normal direction of a target surface, and if so, there is overlap.
[0086] Specifically, an edge on the first target surface is projected onto the second target surface to form at least one first overlapping surface passing through the projection edge or the edge of the second target surface; an edge on the second target surface is projected onto the first target surface to form at least one second overlapping surface passing through the projection edge or the edge of the first target surface; two target overlapping surfaces having a mutual projection relationship are selected from at least one first overlapping surface and at least one second overlapping surface; and a target overlapping surface on the inner side of the vehicle is selected from the two target overlapping surfaces for cropping, while retaining the target overlapping surface on the outer side of the vehicle.
[0087] See also Figure 7, project the edges HG, HJ, GK and JK on the first target surface onto the second target surface respectively, and obtain projection edge 1, projection edge 2 and projection edge 3. Edge HG is not projected onto the second target surface. Projection edge 1, projection edge 2 and projection edge 3 and the four edges on the second target surface will form multiple closed surfaces, called first overlapping surfaces. Similarly, project the edges MP, PQ, NQ and MN on the second target surface onto the first target surface respectively, and obtain projection edge 4. Edge MP, PQ and NQ are not projected onto the first target surface. Projection edge 4 and the four edges on the first target surface will form multiple closed surfaces, called second overlapping surfaces. Comparing the first overlapping surfaces and the second overlapping surfaces pairwise, we obtain two target overlapping surfaces with mutual projection relationship, that is, Figure 7 When any of the two white curved surfaces is projected onto the target curved surface on the opposite side, another white curved surface will be obtained. Since the present invention simulates the curved surface of the vehicle body structure surface, retaining the target overlapping surface on the outside of the vehicle can reduce the distance from other curved surfaces, making it easier to perform gap trimming later.
[0088] This embodiment can reduce the workload of generating finite element meshes and improve simulation efficiency by trimming the overlapping parts of the two target surfaces, retaining the surface of the vehicle, and removing the internal overlapping surfaces that have no effect on the aerodynamic test; at the same time, it provides a better geometric basis for subsequent gap trimming, and the patching surface can be minimized.
[0089] Embodiment 3
[0090] See also Figure 8 The embodiment of the present invention provides a method for automatically correcting geometric defects in finite element pre-processing, which is applicable to the situation where different target surfaces overlap and have no gaps in the normal direction, and includes the following steps:
[0091] S210: Acquire a first target curved surface and a second target curved surface generated according to the vehicle body structure.
[0092] S220 , determining whether there is overlap in the normal direction of different target curved surfaces, and whether there is a gap between different target curved surfaces.
[0093] S210 and S220 refer to the description of the above embodiment and will not be described in detail here.
[0094] S230: If there is overlap but no gap, trim the overlapping surfaces.
[0095] If there is a gap but no overlap, the solution of the first embodiment is followed; if there is a gap and overlap, the solution of the second embodiment is followed.
[0096] See also Fig. 9In this embodiment, the two target surfaces are completely aligned. The operation of cutting the overlapping surfaces is described in Example 2. The overlapping surfaces are Fig. 9 Since the two target surfaces fit perfectly, either overlapping surface can be trimmed.
[0097] S240: construct a finite element mesh on the trimmed target surface for a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test.
[0098] Embodiment 4
[0099] Fig.10 Schematic diagram of an electronic device according to an embodiment of the present invention is shown. Fig.10As shown, the electronic device may include: a processor 310, a memory 320, an input / output interface 330, a communication interface 340 and a bus 350. The processor 310, the memory 320, the input / output interface 330 and the communication interface 340 are connected to each other through the bus 350. The processor 310 can be implemented by a general CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing relevant programs to implement the technical solutions provided in the embodiments of this specification. The memory 320 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 320 can store operating systems and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 320 and are called and executed by the processor 310. The input / output interface 330 is used to connect the input / output module to implement information input and output. The input / output module can be configured as a component in an electronic device (not shown in the figure), or it can be externally connected to an electronic device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc. The communication interface 340 is used to connect a communication module (not shown in the figure) to realize communication interaction between the electronic device and other devices. The communication module can realize communication through a wired method (such as USB, network cable, etc.) or through a wireless method (such as mobile network, WIFI, Bluetooth, etc.). The bus 350 includes a channel to transmit information between various components of the electronic device (such as a processor 310, a memory 320, an input / output interface 330, and a communication interface 340).
[0100] The embodiment of the present invention also provides a non-transitory readable storage medium, which stores instructions, and the instructions are used to enable the electronic device to perform a method according to an embodiment of the present invention. The readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape disk storage, etc.
[0101] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.
[0102] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. 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 it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatic trimming of geometric defects in finite element pre-processing, characterized in that: include: Acquire a first target curved surface and a second target curved surface generated according to the vehicle body structure, wherein there is a gap between the first target curved surface and the second target curved surface; Determine whether there is overlap in the normal direction of any target surface; If there is overlap, projecting the edge on the first target curved surface onto the second target curved surface to form at least one first overlapping surface passing through the projected edge or the edge of the second target curved surface; Projecting the edge on the second target curved surface onto the first target curved surface to form at least one second overlapping surface passing through the projected edge or the edge of the first target curved surface; Selecting two target overlapping surfaces having a mutual projection relationship from at least one first overlapping surface and at least one second overlapping surface; Selecting the target overlapping surface on the inner side of the vehicle from among the two target overlapping surfaces for cutting; Selecting a first boundary line on the first target surface and a second boundary line on the second target surface according to the distance and angle between any two boundary lines on different target surfaces; constructing a repair surface through the first boundary line and the second boundary line; If the gap width is less than the set value, delete the intersecting line segments between the patch surface and the first target surface to form a new surface between the patch surface and the first target surface; or, delete the intersecting line segments between the patch surface and the second target surface to form a new surface between the patch surface and the second target surface; construct a finite element mesh on the new surface, and construct a finite element mesh on the target surface outside the new surface; if the gap width is greater than or equal to the set value, construct finite element meshes on the first target surface, the second target surface and the patch surface respectively; used for a whole vehicle wind resistance simulation test or a whole vehicle wind noise simulation test; wherein the set value is equal to the width of a finite element mesh.
2. The method according to claim 1, characterized in that Constructing a repairing surface through the first boundary line and the second boundary line, comprising: According to the curvature characteristics of the first target curved surface, the curved surface is extended from the first boundary line toward the second boundary line until it intersects with the second boundary line, and the curved surface formed by the extension is the repairing surface.
3. The method according to claim 1, characterized in that Constructing a repairing surface through the first boundary line and the second boundary line, comprising: Projecting two endpoints of the first boundary line onto the second boundary line to form a first repair line passing through the projection points or the endpoints of the second boundary line; Projecting two endpoints of the second boundary line onto the first boundary line to form a second stitching line passing through the projection points or the endpoints of the first boundary line; A mending surface is constructed between the first mending line and the second mending line.
4. A method for automatic trimming of geometric defects in finite element pre-processing, characterized in that: include: Acquire a first target curved surface and a second target curved surface generated according to the vehicle body structure; Determine whether there is overlap in the normal direction of different target surfaces, and whether there are gaps between different target surfaces; If there is overlap but no gap, trim the overlapping surfaces; Construct a finite element mesh on the trimmed target surface for the whole vehicle wind resistance simulation test or the whole vehicle wind noise simulation test; Among them, the surfaces that are clipped and overlapped include: Projecting an edge on the first target curved surface onto the second target curved surface to form at least one first overlapping surface passing through the projected edge or the edge of the second target curved surface; Projecting the edge on the second target curved surface onto the first target curved surface to form at least one second overlapping surface passing through the projected edge or the edge of the first target curved surface; Selecting two target overlapping surfaces having a mutual projection relationship from at least one first overlapping surface and at least one second overlapping surface; Select any one of the two target overlapping surfaces for cropping.
5. An electronic device, characterized in that: include: Memory, processor and computer program; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program; the computer program is executed by a processor to implement the method according to any one of claims 1 to 4.
