Mesh division method and device for nut of vehicle, equipment, medium and product

By using the target envelope surface and geometric axis for grid division in vehicle simulation, the problem of low efficiency of geometric data grid division of casing-type welded nuts is solved, and the efficiency of vehicle simulation modeling is improved.

CN119442731APending Publication Date: 2025-02-14ZHEJIANG LEAPMOTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411327772.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The prior art has low efficiency in meshing the geometric data of casing weld nuts, resulting in low efficiency in vehicle simulation modeling methods.

Method used

By determining the target nut based on vehicle structure information, grid division is performed using the target envelope surface and geometric axis to generate grid data of the target nut. Specific steps include determining the target envelope surface, determining the geometric axis, cutting the nut cross-section and meshing.

Benefits of technology

The efficiency of geometric data grid division of casing-type welded nuts is improved, thereby improving the efficiency of vehicle simulation modeling, shortening modeling time, and improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119442731A_ABST
    Figure CN119442731A_ABST
Patent Text Reader

Abstract

The invention relates to a mesh generation method and device for a nut of a vehicle, equipment, a medium and a product. The method comprises the steps of determining a plurality of target nuts in a vehicle according to structure information of the vehicle; determining a geometric axis of each target nut according to the target envelope surfaces of the plurality of target nuts; and performing grid division on the corresponding target nuts according to the geometric axes to obtain grid data corresponding to the target nuts. By adopting the method, the geometric axes of the multiple target nuts can be automatically determined in batches according to the target envelope surfaces of the multiple target nuts, so that the corresponding target nuts can be automatically subjected to grid division in batches according to the geometric axes of the target nuts, and therefore, the grid division efficiency is improved. According to the method, the efficiency of grid division on the geometric data of the sleeve type welding nut can be improved, so that the efficiency of finite element simulation modeling on a vehicle can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle simulation technology, and in particular to a method, device, equipment, medium and product for meshing a nut of a vehicle. Background Art

[0002] With the rapid development of the automobile industry, more and more cars are put into production and operation, which will cause more and more safety hazards. Therefore, it is very necessary to simulate and model the vehicle structure before the car leaves the factory. In the process of simulating and modeling the vehicle structure, the geometric data of the sleeve weld nut needs to be divided into hexahedral grids to improve the accuracy of vehicle simulation.

[0003] However, the current method of meshing the geometric data of the sleeve-type weld nut is inefficient, resulting in the problem of low efficiency in the above-mentioned vehicle simulation modeling method. Summary of the invention

[0004] Based on this, it is necessary to provide a meshing method, device, equipment, medium and product for vehicle nuts in response to the above-mentioned technical problems, which can improve the efficiency of meshing the geometric data of sleeve-type welded nuts, thereby improving the efficiency of vehicle simulation modeling methods.

[0005] In a first aspect, the present application provides a method for meshing a nut of a vehicle, comprising:

[0006] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0007] Determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts;

[0008] The corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts.

[0009] In one embodiment, determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts includes:

[0010] Determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints;

[0011] According to each of the at least two arcs, a geometric axis of the corresponding target nut is determined.

[0012] In one embodiment, determining the geometric axis of the corresponding target nut according to each of the at least two arcs includes:

[0013] For each target nut, according to the identifiers of each arc in the target nut, determine the center of each arc;

[0014] The centers of the circles are connected to obtain the geometric axis of the target nut.

[0015] In one embodiment, the method for determining the target envelope surface of the target nut includes:

[0016] The envelope surface with the largest area among the envelope surfaces of the target nut is determined as the target envelope surface.

[0017] In one embodiment, the grid division of the corresponding target nut according to each of the geometric axes to obtain grid data corresponding to each of the target nuts includes:

[0018] For each target nut, cutting the target nut according to the direction vector of the geometric axis in the target nut to obtain a nut cross section;

[0019] The target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut.

[0020] In one embodiment, the gridding of the target nut according to the nut cross section to obtain grid data corresponding to the target nut includes:

[0021] Meshing the cross section of the nut to obtain cross section mesh data;

[0022] The cross-sectional mesh data is rotated with the geometric axis as a rotation axis to obtain mesh data corresponding to the target nut.

[0023] In a second aspect, the present application also provides a grid division device for a nut of a vehicle, comprising:

[0024] A first determination module, configured to determine a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0025] A second determination module, configured to determine a geometric axis of each of the target nuts according to a target envelope surface of the plurality of target nuts;

[0026] The mesh division module is used to perform mesh division on the corresponding target nut according to each of the geometric axes to obtain mesh data corresponding to each of the target nuts.

[0027] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0028] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0029] Determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts;

[0030] The corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts.

[0031] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0032] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0033] Determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts;

[0034] The corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts.

[0035] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0036] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0037] Determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts;

[0038] The corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts.

[0039] The meshing method, device, equipment, medium and product of the nuts of the above-mentioned vehicle determine multiple target nuts in the vehicle according to the structural information of the vehicle; determine the geometric axis of each target nut according to the target envelope surface of the multiple target nuts; mesh the corresponding target nuts according to each geometric axis to obtain mesh data corresponding to each target nut. The embodiment of the present application can automatically and batch-determine the geometric axes of multiple target nuts according to the target envelope surface of multiple target nuts, thereby automatically and batch-mesh the corresponding target nuts according to the geometric axis of each target nut. In this way, the efficiency of meshing the geometric data of the sleeve-type welded nuts can be improved, thereby improving the efficiency of finite element simulation modeling of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A diagram showing an application environment of a meshing method for a nut of a vehicle in one embodiment;

[0042] Figure 2 A schematic flow chart of a method for meshing a nut of a vehicle in one embodiment;

[0043] Figure 3 is a schematic diagram of geometric data of a target nut in one embodiment;

[0044] Figure 4 A schematic flow chart of a target envelope surface determination step in one embodiment;

[0045] Figure 5 A schematic flow chart of a step of determining a geometric axis in one embodiment;

[0046] Figure 6 A schematic flow chart of an arc determination step in one embodiment;

[0047] Figure 7 A schematic diagram of a flow chart of a mesh division step in an embodiment;

[0048] Figure 8 is a schematic diagram of a cutting plane in an exemplary embodiment;

[0049] Fig. 9 is a schematic diagram of grid division in an exemplary embodiment;

[0050] Fig.10 A schematic flow chart of a method for meshing a nut of a vehicle in another embodiment;

[0051] Fig.11 It is a structural block diagram of a meshing device for a nut of a vehicle in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0054] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] With the rapid development of the automobile industry, more and more cars are put into production and operation, which will cause more and more safety hazards. Therefore, it is very necessary to simulate and model the vehicle structure before the car leaves the factory. In the process of simulating and modeling the vehicle structure, the geometric data of the sleeve weld nut needs to be divided into hexahedral grids to improve the accuracy of vehicle simulation.

[0057] However, the current finite element simulation modeling methods mostly rely on manual modeling by engineers. When faced with a large number of sleeve-type weld nuts of different sizes, manual meshing and modeling are time-consuming and laborious, which seriously affects the work efficiency of engineers. Therefore, the current method of meshing the geometric data of sleeve-type weld nuts is inefficient, resulting in the problem of low efficiency in the above-mentioned vehicle simulation modeling method.

[0058] After introducing the background technology of the mesh division method of the vehicle nut provided by the embodiment of the present application, the implementation environment involved in the mesh division method of the vehicle nut provided by the embodiment of the present application will be briefly described below. The mesh division method of the vehicle nut provided by the embodiment of the present application can be applied to Figure 1In the computer device shown. The computer device can be a terminal, or it can also be a server, and the computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for meshing the nuts of a vehicle is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0059] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0060] In one embodiment, Figure 2 As shown, a meshing method for a nut of a vehicle is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:

[0061] S201, determining a plurality of target nuts in the vehicle according to structural information of the vehicle.

[0062] The structural information of the vehicle may include but is not limited to the size information, shape information, position information of various components in the vehicle, etc. The target nut may be a sleeve-type welded nut, which is usually applied to the front subframe of the vehicle, the front subframe mounting point on the body side, etc. In the embodiment of the present application, the computer device may determine the front subframe of the vehicle, the front subframe mounting point on the body side, etc. according to the structural information of the vehicle, thereby determining multiple target nuts in the vehicle from the front subframe of the vehicle, the front subframe mounting point on the body side, etc.

[0063] S202, determining the geometric axis of each target nut according to the target envelope surfaces of the multiple target nuts.

[0064] In an embodiment of the present application, the computer device can determine the target envelope surface from the multiple envelope surfaces of each target nut. Among them, the target envelope surface refers to the envelope surface used to determine the geometric axis of the corresponding target nut, and the geometric axis of the target nut refers to the central axis of the target nut. Thus, optionally, the computer device can automatically determine the geometric axis of each target nut directly in the HyperMesh software using the tcl language according to the target envelope surface of each target nut; or, the computer device can also first determine the arcs in each target envelope surface from the target envelope surface of each target nut, and then determine the geometric axis of each target nut according to the arcs in each target envelope surface. Of course, the embodiment of the present application does not limit the specific implementation method for determining the geometric axis of each target nut.

[0065] S203, meshing the corresponding target nuts according to the geometric axes to obtain mesh data corresponding to each target nut.

[0066] In the embodiment of the present application, optionally, the computer device can directly apply the tcl language in the HyperMesh software, and automatically and in parallel mesh the corresponding target nuts according to each geometric axis through the configured commands to obtain the mesh data corresponding to each target nut; or, the computer device can also first determine the nut cross section according to each geometric axis, and then mesh the nut cross section and the corresponding target nut to obtain the mesh data corresponding to each target nut. Of course, the embodiment of the present application does not limit the specific implementation method of meshing. Among them, the mesh data corresponding to the target nut can be the three-dimensional hexahedral mesh data of the target nut.

[0067] In the meshing method for the nuts of the above-mentioned vehicle, multiple target nuts in the vehicle are determined according to the structural information of the vehicle; the geometric axis of each target nut is determined according to the target envelope surface of the multiple target nuts; the corresponding target nuts are meshed according to each geometric axis to obtain mesh data corresponding to each target nut. The embodiment of the present application can automatically and batch-determine the geometric axis of multiple target nuts according to the target envelope surface of multiple target nuts, thereby automatically and batch-meshing the corresponding target nuts according to the geometric axis of each target nut. In this way, the efficiency of meshing the geometric data of the sleeve-type welded nuts can be improved, thereby improving the efficiency of finite element simulation modeling of the vehicle.

[0068] In one embodiment, a method for determining a target envelope surface of a target nut is provided, comprising:

[0069] The envelope surface with the largest area among the envelope surfaces of the target nut is determined as the target envelope surface.

[0070] In the embodiment of the present application, the computer device can import the geometric data of the target nut in the HyperMesh software, for example, Figure 3 As shown, Figure 3 is a schematic diagram of the geometric data of a target nut in an embodiment, wherein surf1, surf2, surf3, surf4, and surf5 all represent the geometric data envelope of the target nut. Figure 4 As shown, Figure 4 The flowchart of the target envelope surface determination step in one embodiment is shown in FIG. S301. In the HyperMesh software, the computer device can use the tcl language to call the *createmarkpanel comps command to select the geometric data of the target nut, and obtain the identification of the geometric data of the single target nut. The identification may include but is not limited to any one of an index number or an id (Identity document, identity identification number).

[0071] Thus, S302, the computer device can obtain the identifiers of all envelope surfaces in the target nut geometry data according to the identifier of the target nut geometry data by calling the hm_getvalue comps id=()dataname=surfaces command in the tcl language, and output it as an envelope surface list S, S=[S1, S2, S3, S4, S5,……], and obtain the list length of the envelope surface list S. Of course, the embodiment of the present application does not limit the order of S1 to S5. S303, the computer device can first initialize the variables Smax=0, Amax=0, and the index i=0 of the envelope surface in the target nut, where Smax and Amax are used to store the area value corresponding to the envelope surface with the largest area and the identifier of the envelope surface. Afterwards, S304, it can be determined whether the index i of the envelope surface is less than the list length of the envelope surface list S. S305, if the index i of the envelope surface is less than the list length of the envelope surface list S, the hm_getareaofsurface surf command can be called using the Tcl language to determine the identifier Si of the envelope surface corresponding to the index i of the envelope surface and the area Ai of the envelope surface Si. At this time, if Ai>Amax, let Smax=Si. After that, S306, increment the index i of the envelope surface, that is, let i=i+1, and return to execute S304. S307, if the index i of the envelope surface is not less than the list length of the envelope surface list S, then Smax at this time can be determined as the envelope surface with the largest area among the envelope surfaces of the target nut, and the identifier of the envelope surface can be identified from the envelope surface list S, and the envelope surface with the largest area among the envelope surfaces of the target nut can be determined as the target envelope surface.

[0072] In this embodiment, the envelope surface with the largest area among the envelope surfaces of the target nut may be determined as the target envelope surface, so that the envelope surface used to determine the geometric axis of the corresponding target nut may be accurately determined.

[0073] In one embodiment, a method for determining the geometric axis of each target nut is provided, that is, the "determining the geometric axis of each target nut according to the target envelope surface of the plurality of target nuts" in the above S202, such as Figure 5 As shown, including:

[0074] S401, determining at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints.

[0075] In the embodiment of the present application, according to the geometric structure of the target nut, the target envelope surface of the target nut can be Figure 3surf1 or surf4 in. Whether it is surf1 or surf4, they are both cylindrical surfaces, that is, two of the four side lines of the target envelope surface are arcs, and the other two side lines are straight lines. Based on this, the embodiments of the present application can determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each side line and the distance between the corresponding side line endpoints in the target envelope surface of each target nut.

[0076] Exemplarily, as Figure 6 shown, Figure 6 is a schematic flow chart of the arc determination step in an embodiment. S501, the computer device can obtain the four side line indexes in the target envelope surface and output them as a side line list L, L = [L1, L2, L3, L4]. S502, initialize the variable Ly, and the index i of the side line is 0, where Ly is used to store the arc identification list. Then, S503, it can be determined whether the index i of the side line is less than the list length of the side line list L. For example, the list length is 4. S504, if the index i of the side line is less than the list length of the side line list L, the tcl language can be used in HyperMesh to call the hm_linelength measurement length command to determine the line segment length D1 of the side line Li according to the index i of the side line, and call the hm_getlinestartpoint and hm_getlineendpoint commands to determine the coordinates of the starting point and ending point of the line segment corresponding to the side line Li, so as to determine the distance D2 between the two endpoints of the line segment through the coordinate distance formula D2 = [(x1 - x2)2 + (y1 - y2)2 + (z1 - z2)2]1 / 2. If D2 = D1, it means that the side line Li is a straight line; if D2 < D1, it means that the side line Li is an arc. At this time, the side line Li can be inserted into the Ly list. S505, increment the index i of the side line, that is, make i = i + 1, and return to execute S503. S506, if the index i of the side line is not less than the list length of the side line list L, the Ly list can be output. At this time, the Ly list stores the indexes of two arcs in the target envelope surface.

[0077] S402, determine the geometric axis of the corresponding target nut according to each at least two arcs.

[0078] In the embodiments of the present application, optionally, for each target nut, the computer device can respectively and parallelly determine the geometric axis of the corresponding target nut according to at least two arcs in each target nut. Or, for each target nut, the computer device can also serially determine the geometric axis of the corresponding target nut according to at least two arcs in each target nut. Of course, the embodiments of the present application do not limit the specific implementation manner of determining the geometric axis.

[0079] In one of the embodiments, S402 includes:

[0080] For each target nut, the center of each arc is determined according to the identification of each arc in the target nut.

[0081] Connect the centers of the circles to obtain the geometric axis of the target nut.

[0082] In the embodiment of the present application, for each target nut, the computer device can use the tcl language to call *createbestcirclecenternodelines, reference the identifier (i.e., index) of each arc in the target nut, and generate the geometric center points corresponding to the two arcs, respectively, which are recorded as N1 and N2. Thus, the straight line where N1N2 is located can be connected to obtain the geometric axis of the target nut, and the direction vector v1 of N1N2 can be determined.

[0083] In this embodiment, at least two arcs in the target envelope surface of each target nut can be automatically and accurately determined based on the size relationship between the length of each edge line in the target envelope surface of each target nut and the corresponding edge line endpoint distance, thereby, the geometric axis of the corresponding target nut can be automatically and accurately determined based on the at least two accurate arcs.

[0084] In one embodiment, a method for implementing meshing is provided, namely, "meshing the corresponding target nuts according to each geometric axis to obtain mesh data corresponding to each target nut" in the above S203, such as Figure 7 As shown, including:

[0085] S601, for each target nut, cutting the target nut according to the direction vector of the geometric axis in the target nut to obtain a nut cross section.

[0086] In the embodiment of the present application, for each target nut, assuming that the direction vector v1 of the axis is (x, y, z), according to the vertical dot product of the space vector is 0, the vertical vector v2 of the direction vector v1 can be defined as one of (-y, x, 0), (-z, 0, y), (0, z, -y). To avoid the appearance of a 0 vector, the judgment rule can be set as follows: if x = 0, y = 0, z ≠ 0, then v2 = (-z, 0, 0); if x ≠ 0, y ≠ 0, z = 0, then v2 = (-y, x, 0). In addition, the computer device can use the tcl language to call hm_getvalue nodes id = N1 dataname = globalx, hm_getvalue nodes id = N1 dataname = globaly, hm_getvalue nodes id = N1dataname = globalz to obtain the coordinates x, y, and z values ​​of the center N1 respectively. Thus, the computer device can use the tcl language to call the *createplane command, reference the direction vector of v2 and the coordinates of the center N1, and create a cutting plane. For example, Figure 8 As shown, Figure 8 is a schematic diagram of a cutting plane in an exemplary embodiment. Afterwards, the *body_splitmerge_with_plane solids command can be called to reference the created plane index number and the target nut identifier, and the target nut corresponding to the identifier is cut to obtain the nut cross section. Figure 8 As shown, two nut sections surf6 and surf7 can be automatically cut and generated.

[0087] S602, meshing the target nut according to the nut cross section to obtain mesh data corresponding to the target nut.

[0088] In the embodiment of the present application, optionally, the computer device can directly mesh the target nut according to the nut cross section to obtain the mesh data corresponding to the target nut. Alternatively, the computer device can first mesh the nut cross section, and then process the meshed nut cross section to obtain the mesh data corresponding to the target nut. Of course, the embodiment of the present application does not limit the specific implementation method of meshing.

[0089] In one embodiment, S602 includes:

[0090] Divide the nut cross section into grids to obtain cross-sectional grid data.

[0091] The cross-sectional mesh data is rotated with the geometric axis as the rotation axis to obtain the mesh data corresponding to the target nut.

[0092] In the embodiment of the present application, the computer device can obtain the identifier of the nut section through the *createmark surfaces command, and then can reference the identifier of any nut section in the nut section through the *automesh command, and set the mesh type to quadrilateral to select a nut section for automatic mesh division to obtain the cross-sectional mesh data. For example, Fig. 9 As shown, Fig. 9 is a schematic diagram of grid division in an exemplary embodiment, Fig. 9 The left figure in the figure is a schematic diagram of the cross-section mesh data. Therefore, the computer device can obtain the identification set of the cross-section mesh data through the *createmark elements command, and then call the *meshspinelements2 command to reference the identification of the cross-section mesh data and the identification of the geometric axis N1N2, enter a fixed rotation angle of 360°, and the number of rotations of 60, that is, the geometric axis can be used as the rotation axis to automatically rotate the cross-section mesh data to obtain the hexahedral mesh data corresponding to the target nut. Exemplary, combined with Fig. 9 As shown, Fig. 9 The right figure in the figure is a schematic diagram of hexahedral mesh data.

[0093] In this embodiment, for each target nut, the target nut can be cut according to the direction vector of the geometric axis in the target nut, and the nut cross section can be obtained automatically and accurately. Therefore, the target nut can be meshed according to the accurate nut cross section, and the mesh data corresponding to the target nut can be automatically and accurately obtained.

[0094] In an optional embodiment, if Fig.10 As shown, a meshing method for a nut of a vehicle is provided, which is applied to a computer device and includes:

[0095] S20, determining API commands of multiple target nuts in the vehicle according to the structural information of the vehicle through HyperMesh, and obtaining the identifiers of all target nuts, and saving them as a target nut list G, where G = [G1, G2, G3, G4, G5, ...];

[0096] S21, set the target nut identifier i=0, and determine whether the target nut identifier i is less than the list length of the target nut list G;

[0097] S22, if the identifier i of the target nut is smaller than the list length of the target nut list G, then determining the envelope surface with the largest area among the envelope surfaces of the target nut Gi as the target envelope surface;

[0098] S23, determining at least two arcs in the target envelope surface of the target nut Gi according to the size relationship between the length of each edge line in the target envelope surface of the target nut Gi and the distance between the corresponding edge line endpoints;

[0099] S24, determining the center of each arc line according to the identifier of each arc line in the target nut Gi;

[0100] S25, connecting the centers of the circles to obtain the geometric axis of the target nut Gi;

[0101] S26, cutting the target nut Gi according to the direction vector of the geometric axis in the target nut Gi to obtain a nut cross section;

[0102] S27, meshing the nut cross section to obtain cross section mesh data;

[0103] S28, rotating the cross-section mesh data with the geometric axis as the rotation axis to obtain mesh data corresponding to the target nut Gi;

[0104] S29, increment the identifier i of the target nut, i.e., set i=i+1, and return to execute S21.

[0105] In addition, if the identifier i of the target nut is not less than the list length of the target nut list G, it means that each target nut in the target nut list G has been network-divided.

[0106] In the meshing method of the nuts of the above-mentioned vehicle, multiple target nuts in the vehicle are determined according to the structural information of the vehicle; the geometric axis of each target nut is determined according to the target envelope of the multiple target nuts; the corresponding target nuts are meshed according to each geometric axis to obtain the mesh data corresponding to each target nut. The embodiment of the present application can automatically and batch-determine the geometric axis of multiple target nuts according to the target envelope of multiple target nuts, so that the corresponding target nuts can be automatically and batch-meshed according to the geometric axis of each target nut, so that the efficiency of meshing the geometric data of the sleeve welding nut can be improved, so as to improve the efficiency of finite element simulation modeling of the vehicle. That is, the geometric features of the sleeve nut can be automatically identified based on the API command of HyperMesh based on the tcl language to perform hexahedral meshing, and the geometric data of the sleeve welding nut can be greatly shortened for a large number of sleeve welding nuts. The modeling time can be greatly shortened and the work efficiency can be improved. In addition, the sleeve nut mesh generated by the embodiment of the present application can ensure uniform mesh distribution, improve simulation accuracy, have good consistency in the case of batch generation, and also have a great improvement in aesthetics.

[0107] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0108] Based on the same inventive concept, the embodiment of the present application also provides a vehicle nut meshing device for implementing the above-mentioned vehicle nut meshing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of the vehicle nut meshing device provided below can refer to the above-mentioned limitations on the vehicle nut meshing method, and will not be repeated here.

[0109] In an exemplary embodiment, Fig.11 As shown, a grid division device for nuts of a vehicle is provided, comprising: a first determination module 31, a second determination module 32 and a grid division module 33, wherein:

[0110] The first determination module 31 is used to determine a plurality of target nuts in the vehicle according to the structural information of the vehicle.

[0111] The second determination module 32 is used to determine the geometric axis of each target nut according to the target envelope surface of the multiple target nuts.

[0112] The mesh division module 33 is used to perform mesh division on the corresponding target nuts according to each geometric axis to obtain mesh data corresponding to each target nut.

[0113] In one embodiment, the second determination module 32 includes:

[0114] An arc determination unit, used to determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints;

[0115] The geometric axis determination unit is used to determine the geometric axis of the corresponding target nut according to at least two arcs.

[0116] In one embodiment, the geometric axis determination unit comprises:

[0117] A circle center determination subunit is used to determine the circle center corresponding to each arc line according to the identification of each arc line in the target nut for each target nut;

[0118] The geometric axis determination subunit is used to connect the centers of each circle to obtain the geometric axis of the target nut.

[0119] In one embodiment, the grid division device for the nut of the vehicle further comprises:

[0120] The target envelope surface determination module is used to determine the envelope surface with the largest area among the envelope surfaces of the target nut as the target envelope surface.

[0121] In one embodiment, the grid division module 33 includes:

[0122] A cutting unit is used to cut each target nut according to the direction vector of the geometric axis in the target nut to obtain a nut cross section;

[0123] The mesh division unit is used to perform mesh division on the target nut according to the cross section of the nut to obtain mesh data corresponding to the target nut.

[0124] In one embodiment, the grid division unit includes:

[0125] A meshing subunit is used to mesh the cross section of the nut to obtain cross section mesh data;

[0126] The rotation subunit is used to rotate the cross-section mesh data with the geometric axis as the rotation axis to obtain the mesh data corresponding to the target nut.

[0127] Each module in the above-mentioned vehicle nut meshing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0128] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 1As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for meshing the nuts of a vehicle is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0129] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0130] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0131] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0132] Determining the geometric axis of each target nut according to the target envelope surface of the multiple target nuts;

[0133] The corresponding target nuts are meshed according to each geometric axis to obtain mesh data corresponding to each target nut.

[0134] In one embodiment, according to the target envelope surfaces of the plurality of target nuts, the geometric axis of each target nut is determined, and when the processor executes the computer program, the following steps are also implemented:

[0135] Determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints;

[0136] According to each of the at least two arcs, a geometric axis of the corresponding target nut is determined.

[0137] In one embodiment, according to each of the at least two arcs, a geometric axis corresponding to the target nut is determined, and when the processor executes the computer program, the following steps are also implemented:

[0138] For each target nut, according to the identification of each arc in the target nut, the center of each arc is determined;

[0139] Connect the centers of the circles to obtain the geometric axis of the target nut.

[0140] In one embodiment, in the method for determining the target envelope surface of the target nut, when the processor executes the computer program, the following steps are further implemented:

[0141] The envelope surface with the largest area among the envelope surfaces of the target nut is determined as the target envelope surface.

[0142] In one embodiment, the corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts. When the processor executes the computer program, the following steps are also implemented:

[0143] For each target nut, the target nut is cut according to the direction vector of the geometric axis in the target nut to obtain the nut cross section;

[0144] The target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut.

[0145] In one embodiment, the target nut is meshed according to the cross section of the nut to obtain mesh data corresponding to the target nut, and the processor further implements the following steps when executing the computer program:

[0146] Mesh the nut cross section to obtain cross section mesh data;

[0147] The cross-sectional mesh data is rotated with the geometric axis as the rotation axis to obtain the mesh data corresponding to the target nut.

[0148] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0149] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0150] Determining the geometric axis of each target nut according to the target envelope surface of the multiple target nuts;

[0151] The corresponding target nuts are meshed according to each geometric axis to obtain mesh data corresponding to each target nut.

[0152] In one embodiment, according to the target envelope surfaces of the plurality of target nuts, the geometric axis of each target nut is determined, and when the computer program is executed by the processor, the following steps are also implemented:

[0153] Determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints;

[0154] According to each of the at least two arcs, a geometric axis of the corresponding target nut is determined.

[0155] In one embodiment, according to each of the at least two arcs, a geometric axis corresponding to the target nut is determined, and when the computer program is executed by the processor, the following steps are also implemented:

[0156] For each target nut, according to the identification of each arc in the target nut, the center of each arc is determined;

[0157] Connect the centers of the circles to obtain the geometric axis of the target nut.

[0158] In one embodiment, in the method for determining the target envelope surface of the target nut, when the computer program is executed by the processor, the following steps are further implemented:

[0159] The envelope surface with the largest area among the envelope surfaces of the target nut is determined as the target envelope surface.

[0160] In one embodiment, the corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts. When the computer program is executed by the processor, the following steps are also implemented:

[0161] For each target nut, the target nut is cut according to the direction vector of the geometric axis in the target nut to obtain the nut cross section;

[0162] The target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut.

[0163] In one embodiment, the target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut, and the computer program further implements the following steps when executed by the processor:

[0164] Mesh the nut cross section to obtain cross section mesh data;

[0165] The cross-sectional mesh data is rotated with the geometric axis as the rotation axis to obtain the mesh data corresponding to the target nut.

[0166] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0167] determining a plurality of target nuts in the vehicle according to structural information of the vehicle;

[0168] Determining the geometric axis of each target nut according to the target envelope surface of the multiple target nuts;

[0169] The corresponding target nuts are meshed according to each geometric axis to obtain mesh data corresponding to each target nut.

[0170] In one embodiment, according to the target envelope surfaces of the plurality of target nuts, the geometric axis of each target nut is determined, and when the computer program is executed by the processor, the following steps are also implemented:

[0171] Determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints;

[0172] According to each of the at least two arcs, a geometric axis of the corresponding target nut is determined.

[0173] In one embodiment, according to each of the at least two arcs, a geometric axis corresponding to the target nut is determined, and when the computer program is executed by the processor, the following steps are also implemented:

[0174] For each target nut, according to the identification of each arc in the target nut, the center of each arc is determined;

[0175] Connect the centers of the circles to obtain the geometric axis of the target nut.

[0176] In one embodiment, in the method for determining the target envelope surface of the target nut, when the computer program is executed by the processor, the following steps are further implemented:

[0177] The envelope surface with the largest area among the envelope surfaces of the target nut is determined as the target envelope surface.

[0178] In one embodiment, the corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts. When the computer program is executed by the processor, the following steps are also implemented:

[0179] For each target nut, the target nut is cut according to the direction vector of the geometric axis in the target nut to obtain the nut cross section;

[0180] The target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut.

[0181] In one embodiment, the target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut, and the computer program further implements the following steps when executed by the processor:

[0182] Mesh the nut cross section to obtain cross section mesh data;

[0183] The cross-sectional mesh data is rotated with the geometric axis as the rotation axis to obtain the mesh data corresponding to the target nut.

[0184] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0186] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for meshing a nut of a vehicle, characterized in that: The method comprises: determining a plurality of target nuts in the vehicle according to structural information of the vehicle; Determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts; The corresponding target nuts are meshed according to the geometric axes to obtain mesh data corresponding to the target nuts.

2. The method according to claim 1, characterized in that Determining the geometric axis of each of the target nuts according to the target envelope surfaces of the multiple target nuts includes: Determine at least two arcs in the target envelope surface of each target nut according to the size relationship between the length of each edge line in the target envelope surface of each target nut and the distance between the corresponding edge line endpoints; According to each of the at least two arcs, a geometric axis of the corresponding target nut is determined.

3. The method according to claim 2, characterized in that Determining the geometric axis of the corresponding target nut according to each of the at least two arcs includes: For each target nut, according to the identifiers of each arc in the target nut, determine the center of each arc; The centers of the circles are connected to obtain the geometric axis of the target nut.

4. The method according to any one of claims 1 to 3, characterized in that The method for determining the target envelope surface of the target nut comprises: The envelope surface with the largest area among the envelope surfaces of the target nut is determined as the target envelope surface.

5. The method according to any one of claims 1 to 3, characterized in that: The grid division of the corresponding target nut according to each of the geometric axes to obtain grid data corresponding to each of the target nuts includes: For each target nut, cutting the target nut according to the direction vector of the geometric axis in the target nut to obtain a nut cross section; The target nut is meshed according to the nut cross section to obtain mesh data corresponding to the target nut.

6. The method according to claim 5, characterized in that The gridding of the target nut according to the nut cross section to obtain grid data corresponding to the target nut includes: Meshing the cross section of the nut to obtain cross section mesh data; The cross-sectional mesh data is rotated with the geometric axis as a rotation axis to obtain mesh data corresponding to the target nut.

7. A grid division device for nuts of a vehicle, characterized in that: The device comprises: A first determination module, configured to determine a plurality of target nuts in the vehicle according to structural information of the vehicle; A second determination module, configured to determine a geometric axis of each of the target nuts according to a target envelope surface of the plurality of target nuts; The mesh division module is used to perform mesh division on the corresponding target nut according to each of the geometric axes to obtain mesh data corresponding to each of the target nuts.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.