Bolt collision model generation method and device, equipment and storage medium

By building a model library of bolts and nuts, the target model is directly acquired and moved, and the problem of low efficiency of manually establishing a bolt collision model is solved, and efficient and automatic generation of the bolt collision model is achieved.

CN120449444APending Publication Date: 2025-08-08CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510524568.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the process of manually establishing a bolt collision model by testers is less efficient, resulting in too long creation of the bolt collision model.

Method used

According to the bolt CAD database and the nut CAD database, the nut model library, the nut model library and the placeholder screw reference model library are built respectively. In response to the model creation instructions, the target nut model, the target nut model and the target placeholder screw reference model are obtained, and they are moved to the target position. The target effective screw model and the placeholder screw model are constructed based on the position parameters and the bolt CAD data, and the target bolt collision model is created.

Benefits of technology

By directly calling the pre-built model library, the model establishment time is reduced, the automatic generation of bolt collision models is realized, and the generation efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120449444A_ABST
    Figure CN120449444A_ABST
Patent Text Reader

Abstract

The invention provides a bolt collision model generation method and device, equipment and a storage medium, and the method comprises the steps: constructing a nut model library, a nut model library and an occupied screw reference model library according to a bolt CAD database and a nut CAD database; obtaining a target nut model from the nut model library, obtaining a target nut model from the nut model library, and obtaining a target occupied screw reference model from the occupied screw reference model library; moving the target nut model, the target nut model and the target placeholder screw reference model to target positions; constructing a target effective screw model and a target occupied screw model according to the position parameters of the target position and CAD data of a target bolt in a bolt CAD database; and creating a target bolt collision model based on the target nut model, the target effective screw model, the target occupied screw reference model, the target occupied screw model and at least one target connecting piece corresponding to the target bolt. By applying the scheme, the problem that the bolt collision model creation efficiency is low can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation technology, and in particular to a method, device, equipment and storage medium for generating a bolt collision model. Background Art

[0002] Before a vehicle crash test, simulation software is used to save costs and improve testing efficiency. Vehicle crash safety requires consideration of factors such as the space occupied by bolts, screw failure, and prestress, which complicates the creation of bolt crash models. However, in related technologies, testers manually create bolt crash models, which is time-consuming and inefficient.

[0003] Application Contents

[0004] In view of the above problems, the present application provides a method, device, equipment and storage medium for generating a bolt collision model, which is used to solve the problem in the related art that the bolt collision model is manually established by testers, which will consume a long time and result in low efficiency in creating the bolt collision model.

[0005] According to a first aspect of an embodiment of the present application, a method for generating a bolt collision model is provided, the generating method comprising: constructing a nut model library, a nut model library, and a placeholder screw reference model library based on a bolt CAD database and a nut CAD database, respectively; in response to a model creation instruction, obtaining a target nut model from the nut model library, a target nut model from the nut model library, and a target placeholder screw reference model from the placeholder screw reference model library based on the name of the target bolt; moving the target nut model, the target nut model, and the target placeholder screw reference model to a target position; constructing a target effective screw model and a target placeholder screw model based on position parameters of the target position and CAD data of the target bolt in the bolt CAD database, respectively; and creating a target bolt collision model based on the target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model, and at least one target connector corresponding to the target bolt.

[0006] In an optional manner, the nut model library, the nut model library and the placeholder screw reference model library are constructed respectively according to the bolt CAD database and the nut CAD database, further comprising: intercepting the target nut with a cross section formed by the nut center line and the nut edge line of the target nut in the nut CAD database to obtain an effective nut cross section; dividing the effective nut cross section into cells to obtain a nut shell unit grid; rotating the nut shell unit grid with the nut center line as the axis to obtain a target nut solid grid; extending along the nut center line direction with the nut origin as the starting point to obtain a nut direction vector; wherein the nut origin is the center point of the contact surface of the target nut solid grid.

[0007] In an optional manner, the nut model library, the nut model library and the placeholder screw reference model library are constructed respectively based on the bolt CAD database and the nut CAD database, and further includes: sealing the top surface through-hole of the target nut model to obtain the target placeholder screw reference model, so as to obtain the placeholder screw reference model library; wherein the target placeholder screw reference model is any one model in the placeholder screw reference model library.

[0008] In an optional manner, the method of constructing a nut model library, a nut model library, and a placeholder screw reference model library based on a bolt CAD database and a nut CAD database, respectively, further includes: intercepting a target bolt in the bolt CAD database from the root intersection surface of a target screw to obtain a target nut; intercepting the target nut according to a cross section formed by a nut center line and an outer edge line of the target nut to obtain an effective nut cross section; dividing the effective nut cross section into cells to obtain a nut shell unit grid; and dividing the shell unit grid into two parts. Rotate the nut with the center line as the axis to obtain a target nut solid mesh; extend the nut origin as the starting point along the direction of the nut center line to obtain a nut direction vector; wherein the nut origin is the center point of the contact surface of the nut solid mesh; translate the target nut solid mesh to the global coordinate system so that the nut origin coincides with the origin of the global coordinate system and the nut direction vector coincides with the x-axis direction of the global coordinate system to obtain a target nut model, thereby obtaining a nut model library; wherein the target nut model is any model in the nut model library.

[0009] In an optional manner, the CAD parameters of the target bolt include all line segments of the target bolt, and the generation method further includes: based on the name of the target bolt, obtaining all feature line segments of the target bolt from the bolt CAD database; if the actual length of the target feature line segment is equal to the endpoint distance, determining the target feature line segment to be a feature straight line; wherein the target feature line segment is any line segment among all feature line segments; calculating the straight line spacing between the first straight line and the second straight line according to the positional relationship between the first straight line and the second straight line to obtain the cylinder radius; wherein the first straight line and the second straight line are the longest and equal straight lines among all feature straight lines; constructing a search cylinder according to the cylinder center line and the cylinder radius; wherein the cylinder center line is the midline between the first straight line and the second straight line; if there is at least one target connector whose connection center is within the search cylinder, generating the model creation instruction; wherein the target connector is any connector in the storage array where the target screw is located.

[0010] In an optional manner, if there is at least one target connector whose connection center is within the search cylinder, then before generating the model creation instruction, the method further includes: obtaining a gap difference according to the axial distance, the axial error, the cylinder radius and the radial error; wherein the axial distance is the distance between the cylinder center point and the cylinder starting point of the search cylinder; obtaining an x-axial interval, a y-axial interval and a z-axial interval according to the coordinates of the cylinder center point and the gap difference; if any coordinate value of the connection center point of the target connector belongs to the corresponding x-axial interval, the y-axial interval and the z-axial interval, then according to the connection The target distance value is calculated based on the coordinates of the connection center point and the coordinates of the cylinder center point; if the target distance value is less than the gap difference, a first direction vector is obtained based on the cylinder center point and the cylinder starting point, a second direction vector is obtained based on the cylinder starting point and the connection center point, and a sine value and a cosine value are calculated based on the first direction vector and the second direction vector; if the product of the target distance value and the cosine value is less than the sum of the axial distance and the axial error, and the product of the target distance value and the sine value is less than the sum of the cylinder radius and the radial error, it is determined that the target connection is on the search cylinder.

[0011] In an optional manner, the target position includes: a target nut position; moving the target nut model, the target nut model and the target occupier screw reference model to the target position further includes: obtaining the distance from the connection center of each target connector to the starting point of the search cylinder to obtain multiple component distances; sorting the multiple component distances to determine the first component corresponding to the minimum component distance and the second component corresponding to the maximum component distance; translating the center point of the first component by a first preset distance in the opposite direction of the third direction vector to obtain a third mark position; wherein the third direction vector is obtained based on the cylinder starting point and the cylinder ending point of the search cylinder, and the first preset distance is a preset multiple of the thickness of the first component; translating the center point of the second component by a second preset distance in the same direction as the third direction vector to obtain a fourth mark position; wherein the second preset distance is a preset multiple of the thickness of the second component; with the third mark position as the rotation center and the plane normal vector formed by the vehicle direction vector and the third direction vector as the rotation axis, rotating the target nut model by a first target angle to rotate the target nut model to the target nut position.

[0012] In an optional manner, the target position also includes: a target nut position and a target placeholder screw reference position; moving the target nut model, the target nut model and the target placeholder screw reference model to the target position further includes: rotating the target nut model and the target placeholder screw reference model by the first target angle with the fourth mark position as the rotation center and the plane normal vector as the rotation axis, so as to rotate the target nut model to the target nut position, and rotate the target placeholder screw reference model to the target placeholder screw reference position.

[0013] In an optional manner, the position parameters of the target position include: the fourth mark position and the third direction vector; constructing the target effective screw model and the target placeholder screw model according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database, further includes: moving the fourth mark position along the third direction vector to the center point of the placeholder reference model to obtain a fifth mark position; moving the fifth mark position along the third direction vector by the length of the placeholder screw to obtain a sixth mark position; connecting the fifth mark position and the sixth mark position to obtain a first reference line; stretching along the first reference line based on the placeholder screw reference model to obtain a placeholder screw model.

[0014] In an optional manner, before moving the fifth mark position along the third direction vector by the placeholder screw length to obtain the sixth mark position, it further includes: obtaining the target screw length based on the coordinates of the starting point of the cylinder and the coordinates of the ending point of the cylinder; obtaining the effective screw length based on the coordinates of the third mark position and the coordinates of the fourth mark position; obtaining the placeholder screw reference length based on the distance from the third mark position to the target placeholder screw reference model; obtaining the placeholder screw length based on the target screw length, the effective screw length and the placeholder screw reference length.

[0015] In an optional manner, the target effective screw model and the target occupier screw model are respectively constructed according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database, and further includes: connecting the third marking position and the fourth marking position to obtain a second reference line; dividing the second reference line into preset reference line units, and converting each of the reference line units into a BEAM unit; creating a contact shell unit that is equal to and corresponding to the BEAM unit, and using the RB2 connecting line to connect the BEAM unit with the corresponding contact shell unit; connecting the screw BEAM unit with the nut and the nut to obtain the target effective screw model.

[0016] According to a second aspect of an embodiment of the present application, a device for generating a bolt collision model is provided, the device comprising: a first construction module for constructing a nut model library, a nut model library and a placeholder screw reference model library according to a bolt CAD database and a nut CAD database, respectively; a response module for responding to a model creation instruction, obtaining a target nut model from the nut model library, a target nut model from the nut model library, and a target placeholder screw reference model from the placeholder screw reference model library based on the name of the target bolt; a moving module for moving the target nut model, the target nut model and the target placeholder screw reference model to a target position; a second construction module for constructing a target effective screw model and a target placeholder screw model according to position parameters of the target position and CAD parameters of the target bolt in the bolt CAD database, respectively; a creation module for creating a bolt collision model based on the target nut model, the effective screw model, the placeholder screw reference model, the placeholder screw model and at least one connecting member corresponding to the target bolt.

[0017] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a controller; a memory storing one or more programs, wherein when the one or more programs are executed by the controller, the controller implements the following steps of the method for generating a bolt collision model: constructing a nut model library, a nut model library and a placeholder screw reference model library respectively according to a bolt CAD database and a nut CAD database; in response to a model creation instruction, obtaining a target nut model from the nut model library, a target nut model from the nut model library, and a target placeholder screw reference model from the placeholder screw reference model library based on the name of the target bolt; moving the target nut model, the target nut model and the target placeholder screw reference model to a target position; constructing a target effective screw model and a target placeholder screw model respectively according to position parameters of the target position and CAD data of the target bolt in the bolt CAD database; creating a target bolt collision model based on the target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model and at least one target connector corresponding to the target bolt.

[0018] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, wherein the computer program includes at least one executable instruction, and when the executable instruction is executed on a device / electronic device for generating a bolt collision model, the device / electronic device for generating a bolt collision model performs the following operations of the method for generating a bolt collision model: constructing a nut model library, a nut model library, and a placeholder screw reference model library based on a bolt CAD database and a nut CAD database, respectively; in response to a model creation instruction, obtaining a target nut model from the nut model library based on the name of the target bolt, and obtaining a target nut model from the nut model library; A target nut model is obtained from a nut model library, and a target placeholder screw reference model is obtained from the placeholder screw reference model library; the target nut model, the target nut model and the target placeholder screw reference model are moved to a target position; a target effective screw model and a target placeholder screw model are respectively constructed according to position parameters of the target position and CAD data of the target bolt in the bolt CAD database; a target bolt collision model is created based on the target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model and at least one target connecting part corresponding to the target bolt.

[0019] In an embodiment of the present application, a nut model library, a nut model library, and a placeholder screw reference model library are respectively constructed based on a bolt CAD database and a nut CAD database, so that when a target bolt collision model is subsequently generated, the nut model, the nut model, and the placeholder screw model can be directly called. Compared with the related art of creating models before each test, this solution can save a lot of model establishment time. After responding to the model creation instruction, the target nut model, the target nut model, and the target placeholder screw reference model can be searched based on the name of the target bolt, and the target nut model, the target nut model, and the target placeholder screw reference model can be moved to the target position so that the target effective screw model and the target placeholder screw model can be constructed based on the position parameters of the target position and the CAD data of the target bolt, thereby realizing the automatic generation of the target effective screw model and the target placeholder screw model. The target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model, and at least one target connector corresponding to the target bolt are used to create a target bolt collision model, so that the created target bolt collision model can be simulated, thereby improving the generation efficiency of the bolt collision model.

[0020] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the drawings. In the drawings:

[0022] Figure 1 A flowchart of a method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0023] Figure 2 A schematic structural diagram of a bolt provided by an exemplary embodiment of the present application is shown;

[0024] Figure 3 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0025] Figure 4 A schematic diagram of a nut provided by an exemplary embodiment of the present application is shown;

[0026] Figure 5 A cross-sectional schematic diagram of a nut provided by an exemplary embodiment of the present application is shown;

[0027] Figure 6A schematic diagram of a shell cell provided by an exemplary embodiment of the present application is shown;

[0028] Figure 7 A schematic diagram of a target nut solid mesh provided by an exemplary embodiment of the present application is shown;

[0029] Figure 8 A schematic diagram of a nut direction vector provided by an exemplary embodiment of the present application is shown;

[0030] Figure 9 A schematic structural diagram of a bolt and a nut provided by an exemplary embodiment of the present application is shown;

[0031] Figure 10 A schematic diagram of a placeholder reference model provided by an exemplary embodiment of the present application is shown;

[0032] Figure 11 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0033] Figure 12 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0034] Figure 13 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0035] Figure 14 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0036] Figure 15 A schematic diagram of a bolt-connected target connector provided by an exemplary embodiment of the present application is shown;

[0037] Figure 16 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0038] Figure 17 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0039] Figure 18 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0040] Figure 19 A schematic diagram of a BEAM unit provided by an exemplary embodiment of the present application is shown;

[0041] Figure 20A schematic structural diagram of an embodiment of a device for generating a bolt collision model provided by an exemplary embodiment of the present application is shown;

[0042] Figure 21 A schematic structural diagram of an embodiment of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0043] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0045] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0046] In this application, "plurality" refers to two or more. "And / or" describes the relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0047] Figure 1 A flow chart showing a method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 1 As shown, the method includes S110 to S150, which are described in detail as follows:

[0048] S110: Constructing a nut model library, a nut model library, and a placeholder screw reference model library according to the bolt CAD database and the nut CAD database.

[0049] CAD (Computer Aided Design) data is data that represents the shape of a component using multiple line segments, and includes the coordinate position and size of the component shape. Figure 2 FIG. 1 shows a schematic structural diagram of a bolt provided by an exemplary embodiment of the present application. Figure 2 As shown, the bolt is composed of a nut 11 and a screw 12, and each bolt has a matching nut. The bolt CAD database stores CAD data of various types of bolts, and the nut CAD database stores CAD data of various types of nuts. The nut model, nut model, and placeholder screw model are all CAE (Computer Aided Engineering) data, which is a three-dimensional model data. According to the bolt CAD data, a nut model can be constructed, according to the nut CAD data, a nut model can be constructed, and according to the nut model, a placeholder screw reference model can be constructed. The constructed nut model is stored in the nut model library, the nut model is stored in the nut model library, and the placeholder screw reference model is stored in the placeholder screw reference model library. By constructing the nut model library, the nut model library, and the placeholder screw reference model library, when establishing the bolt collision model, the corresponding nut model, nut model, and placeholder screw reference model can be directly called, thereby saving a lot of time in re-establishing the model.

[0050] S120 : In response to the model creation instruction, acquire a target nut model from a nut model library, acquire a target nut model from a nut model library, and acquire a target placeholder screw reference model from a placeholder screw reference model library based on the name of the target bolt.

[0051] If a model creation instruction is generated, the target bolt is valid and can be used for collision simulation testing. The target nut model, target nut model, and placeholder screw reference model are stored in the same directory with names that match the target bolt component name regular expression. These models can be retrieved through a search.

[0052] S130: Moving the target nut model, the target nut model, and the target placeholder screw reference model to the target position.

[0053] Among them, the target bolt model, target nut model and target placeholder screw reference model have different positions in the coordinate system. By moving the target bolt model, target nut model and target placeholder screw reference model to the target position, the target effective screw model and target placeholder screw reference model can be established according to the position parameters of the target position, and the established target bolt collision model is made to have the same direction as the whole vehicle, so as to carry out the bolt collision simulation test.

[0054] S140: Constructing a target effective screw model and a target occupier screw model according to the position parameters of the target position and the CAD parameters of the target bolt in the bolt CAD database.

[0055] The target position of the screw rod model can be determined based on the position parameters of the target position, and the geometric dimensions of the target screw rod can be determined based on the CAD data of the target bolt to establish the target screw rod model.

[0056] S150: Creating a target bolt collision model based on the target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model, and at least one connecting member corresponding to the target bolt.

[0057] Among them, a set (master_set) is created for the target screw model, the target effective screw model, the target placeholder reference model, the target placeholder screw model and at least one connector corresponding to the target bolt to obtain the target bolt collision model. The bolt contact keywords and related parameters defined in the modeling specification are read, and the contact setting between the bolt and the connector is completed. Then, a simulation test can be carried out, thereby realizing the automatic generation of the target bolt collision model.

[0058] By constructing a nut model library, a nut model library, and a placeholder screw reference model library based on a bolt CAD database and a nut CAD database, respectively, the target nut model, target nut model, and target placeholder screw model can be directly called when the target bolt collision model is subsequently generated. Compared with the related art of creating models before each test, this solution can save a lot of model establishment time. After responding to the model creation instruction, the target nut model, target nut model, and target placeholder screw reference model can be searched based on the name of the target bolt, and the target nut model, target nut model, and target placeholder screw reference model can be moved to the target position so that the target effective screw model and target placeholder screw model can be constructed according to the position parameters of the target position and the CAD data of the target bolt, thereby realizing the automatic generation of the target effective screw model and the target placeholder screw model. The target nut model, target effective screw model, target placeholder screw reference model, target placeholder screw model, and at least one target connector corresponding to the target bolt are used to create a target bolt collision model, so that the created target bolt collision model can be simulated, thereby improving the generation efficiency of the bolt collision model.

[0059] Figure 3 A flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 3 As shown, based on the bolt CAD database and the nut CAD database, a nut model library, a nut model library and a placeholder screw reference model library are respectively constructed, further including S210 to S250, which are detailed as follows:

[0060] S210: intercepting the target nut using a cross section formed by the nut center line and the nut edge line of the target nut in the nut CAD database to obtain an effective cross section of the nut.

[0061] in, Figure 4 A schematic diagram of a nut provided by an exemplary embodiment of the present application is shown. Figure 4 As shown in the CAD data of the target nut, there are some subtle features of the nut, such as Figure 4 As shown in the raised hemispherical structure 21, the fine features of the nut are deleted, for example, Figure 4 The protruding hemispherical structure 21 in the image is removed to prevent the subsequently generated CAE data from being too fragmented and affecting the calculation efficiency. Figure 5 A schematic cross-sectional view of a nut provided by an exemplary embodiment of the present application is shown. Figure 4 and 5 As shown, the target nut is cut with the cross section formed by the center line 22 and the nut edge line 23 to obtain the nut effective cross section S.

[0062] S220: Divide the effective cross section S of the nut into cells to obtain the nut shell unit grid.

[0063] The size of the effective cross-section cell can be set to 1. For details, see Figure 6 As shown, Figure 6 A schematic diagram of a shell cell provided by an exemplary embodiment of the present application is shown.

[0064] S230: Rotate the nut shell unit mesh about the nut centerline as the axis to obtain the target nut solid mesh.

[0065] Among them, the schematic diagram of the target nut solid mesh is as follows: Figure 7 As shown, Figure 7 A schematic diagram of a target nut solid mesh provided by an exemplary embodiment of the present application is shown. It should be noted that after obtaining the target nut solid mesh, the material of the target nut solid mesh must be set to a rigid material. During the collision simulation, nuts made of this material will not deform and will not affect the collision test of the target screw.

[0066] S240: Extend along the nut centerline direction with the nut origin as the starting point to obtain a nut direction vector; wherein the nut origin is the center point of the contact surface of the target nut solid mesh.

[0067] in, Figure 8 FIG. 1 shows a schematic diagram of a nut direction vector provided by an exemplary embodiment of the present application, as shown in FIG. Figure 8 As shown, the nut origin O is the contact surface center point of the contact surface D of the target nut solid mesh, and the nut direction vector is OA.

[0068] S250: translating the target nut entity mesh to the global coordinate system so that the nut origin coincides with the origin of the global coordinate system and the nut direction vector coincides with the x-axis direction of the global coordinate system, thereby obtaining a target nut model and obtaining a nut model library; wherein the target nut model is any model in the nut model library.

[0069] Among them, the target nut entity network is translated to the global coordinate system so that the nut origin coincides with the origin of the global coordinate system, and the nut direction vector coincides with the x-axis direction of the global coordinate system, so that when the target nut model is called, the position coordinates of the target nut model can be accurately known. Each model in the nut model library is created in the above way.

[0070] In another embodiment of the present application, a nut model library, a nut model library and a placeholder screw reference model library are constructed respectively based on the bolt CAD database and the nut CAD database, and further includes: sealing the top surface through-hole of the target nut model to obtain the target placeholder screw reference model to obtain the placeholder screw reference model library; wherein, the target placeholder screw reference model is any model in the placeholder screw reference model library.

[0071] In this embodiment, Figure 9 A schematic diagram of the structure of a bolt and a nut provided by an exemplary embodiment of the present application is shown. Figure 9 As shown, the target bolt matches the target nut 20, and the target nut 20 can be screwed onto the target screw. The target screw is divided into three parts: an effective screw 121, a placeholder screw reference unit 122, and a placeholder screw 123. Therefore, the target placeholder screw reference model Z can be obtained by blocking the top surface via hole of the target nut model. Figure 10 A schematic diagram of a placeholder reference model provided by an exemplary embodiment of the present application is shown. Figure 10 As shown, Z in the figure represents the target screw position reference model.

[0072] Figure 11 A flowchart showing another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 11 As shown, based on the bolt CAD database and the nut CAD database, a nut model library, a nut model library and a placeholder screw reference model library are respectively constructed, and further includes S310 to S360, which are detailed as follows:

[0073] S310: Cutting the target bolt in the bolt CAD database from the root interface of the target screw rod to obtain a target nut.

[0074] Among them, since the target nut and the target screw are formed into one piece to form the target bolt, such as Figure 2As shown, the target bolt is cut from the root interface 101 of the target screw rod 12 to obtain the target nut 11 to generate a target nut model.

[0075] S320: intercepting the target nut according to a cross section formed by the nut center line and the outer edge line of the target nut to obtain an effective cross section of the nut.

[0076] S330: Divide the effective cross section of the nut into cells to obtain the nut shell cell grid.

[0077] S340: Rotate the shell unit mesh around the center line of the nut to obtain the target nut solid mesh.

[0078] S350: Extend the nut origin as the starting point along the nut centerline to obtain a nut direction vector; wherein the nut origin is the center point of the contact surface of the nut solid mesh.

[0079] S360: Translate the target nut entity mesh to the global coordinate system so that the nut origin coincides with the origin of the global coordinate system and the nut direction vector coincides with the x-axis direction of the global coordinate system, thereby obtaining a target nut model and obtaining a nut model library; wherein the target nut model is any model in the nut model library.

[0080] The generation principle of the target nut model is the same as that of the target nut, and will not be repeated here.

[0081] Figure 12 A flowchart showing another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 12 As shown, the CAD parameters of the target bolt include all line segments of the target bolt, and the generation method also includes S410 to S450, which are described in detail as follows:

[0082] S410: Based on the name of the target bolt, all characteristic line segments of the target bolt are obtained from the bolt CAD database.

[0083] The bolt CAD data consists of multiple characteristic line segments. The corresponding CAD parameters of the target bolt can be searched through the name of the target bolt, thereby obtaining all the characteristic line segments of the target bolt.

[0084] S420: If the actual length of the target feature line segment is equal to the distance between the endpoints, the target feature line segment is determined to be a feature line; wherein the target feature line segment is any line segment among all the feature line segments.

[0085] Among them, since the target bolt includes some arc data, by judging whether the actual length of the target feature is equal to the distance between the endpoints, it is determined whether the target feature line segment is a feature straight line, so as to find the line segment that represents the shape of the screw.

[0086] S430: Calculating the straight line spacing between the first straight line and the second straight line according to the positional relationship between the first straight line and the second straight line to obtain the cylinder radius; wherein the first straight line and the second straight line are the longest straight lines of all the characteristic straight lines and have equal lengths.

[0087] Among them, the two straight lines with the longest and equal lengths among all the feature-to-straight lines are the straight lines representing the target screw shape. The straight line spacing between the first straight line and the second straight line can be calculated through the positional relationship between the first straight line and the second straight line in the coordinate system, and the cylindrical radius, that is, the radius of the target screw, can be obtained, which can be specifically calculated by dividing the straight line spacing by 2.

[0088] S440: Construct a search cylinder according to the cylinder centerline and the cylinder radius; wherein the cylinder centerline is the midline between the first straight line and the second straight line.

[0089] The search cylinder can be determined based on the center line and radius of the cylinder.

[0090] S450: If there is at least one target connecting part whose connection center is within the search cylinder, a model creation instruction is generated; wherein the target connecting part is any connecting part in the storage array where the target screw is located.

[0091] Among them, since a storage array stores multiple connectors, bolts and nuts associated with the target connector, that is, the same storage array stores target connectors that do not correspond to the target screw. By judging whether the connection center of the target connector is within the search cylinder, it is determined whether the target bolt has a corresponding target connector. If not, it means that the target bolt is an invalid bolt and collision simulation cannot be performed. If there is at least one target connector, collision simulation can be performed, and at least one target connector corresponding to the target screw can be determined, and a model creation instruction can be generated to create a target bolt collision model according to the model creation instruction.

[0092] Figure 13 A flowchart showing another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 13 As shown, if there is at least one target connection part whose connection center is within the search cylinder, before generating the model creation instruction, the process further includes S510 to S550, which are described in detail as follows:

[0093] S510: Obtaining a gap difference according to an axial distance, an axial error, a cylinder radius, and a radial error; wherein the axial distance is a distance between a center point of the search cylinder and a cylinder starting point.

[0094] Among them, the axial error is the error value of the axial distance, the radial error is the error value of the cylinder radius, and the clearance tolerance can be calculated using the following formula:

[0095]

[0096] Wherein, L represents the axial distance;

[0097] tol_axial represents the axial error;

[0098] R represents the radius of the cylinder;

[0099] tol_radius represents the radial error.

[0100] S520: Obtain an x-axis interval, a y-axis interval, and a z-axis interval according to the coordinates of the center point of the cylinder and the gap difference.

[0101] Among them, let the coordinates of the center point of the cylinder be (x o ,y o ,z o ), so the x-axis interval is [x o -tolerance,x o +tolerance], the y-axis range is [y o -tolerance,y o +tolerance], the z-axis axial range is [z o -tolerance,z o +tolerance].

[0102] S530: If any coordinate value of the connection center point of the target connector belongs to the corresponding x-axis interval, y-axis interval, and z-axis interval, the target distance value is calculated based on the coordinates of the connection center point and the coordinates of the cylinder center point.

[0103] Among them, the connection center of the target connector corresponding to the target bolt must be on the search cylinder. If any coordinate value of the connection center point of the target connector does not belong to the corresponding x-axis interval, y-axis interval, and z-axis interval, it can be determined that the target connector is definitely not on the search cylinder. If any coordinate value does not meet the above interval conditions, the target connection center point can be excluded, thereby saving the judgment time of the center point. The target distance value dis can be specifically calculated using the following formula:

[0104]

[0105] Among them, (x, y, z) represents the coordinates of the connection center point.

[0106] S540: If the target distance value is less than the clearance difference, obtain the first direction vector according to the cylinder center point and the cylinder starting point, obtain the second direction vector according to the cylinder starting point and the connection center point, and calculate the sine value and cosine value according to the first direction vector and the second direction vector.

[0107] S550: If the product of the target distance value and the cosine value is less than the sum of the axial distance and the axial error, and the product of the target distance value and the sine value is less than the sum of the cylinder radius and the radial error, determine that the target connector is on the search cylinder.

[0108] Specifically, if dis * cosα < L + tol_axial and dis * sinα < R + tol_radius, it means that the center point of the target connector is inside the search cylinder, that is, the target connector is the connector on the target screw.

[0109] Among them, cosα represents the cosine value of the first direction vector and the second direction vector; sinα represents the sine value of the first direction vector and the second direction vector;

[0110] Figure 14 The flowchart of another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Please refer to Figure 14 As shown, the target position includes: the target nut position; moving the target nut model, the target nut model and the target placeholder screw reference model to the target position further includes S610 to S650, which are introduced in detail as follows:

[0111] S610: Obtain the distance from the connection center of each target connector to the starting point of the search cylinder to obtain multiple component distances.

[0112] Among them, by determining the distance from the connection center of each target connector to the starting point of the cylinder, multiple component distances are obtained to determine the connection positions of each part in the target screw.

[0113] S620: Sort the multiple component distances and determine the first component corresponding to the minimum component distance and the second component corresponding to the maximum component distance.

[0114] Among them, at least two components are connected to the target screw, Figure 15 The schematic diagram of a bolt connecting a target connector provided by an exemplary embodiment of the present application is shown. Please refer to Figure 15 As shown, the first component Part1 corresponding to the minimum component distance is adjacent to the nut, and the second component Part2 corresponding to the maximum component distance is adjacent to the nut.

[0115] S630: Shift the center point of the first component by a first preset distance in the opposite direction of the third direction vector to obtain a third marking position; wherein the third direction vector is obtained based on the cylinder starting point and the cylinder ending point of the search cylinder, and the first preset distance is a preset multiple of the thickness of the first component.

[0116] Among them, see Figure 14 As shown, the third direction vector points from the cylindrical starting point 01 of the search cylinder to the cylindrical ending point 02 of the search cylinder, and the center point P10 of the first component is translated in the opposite direction of the third direction vector by a first preset distance to obtain the third marking position 03. The first preset distance can specifically be 0.5 times the thickness of the first component.

[0117] S640: translating the center point of the second component by a second preset distance in the same direction as the third direction vector to obtain a fourth marking position; wherein the second preset distance is a preset multiple of the thickness of the second component.

[0118] Among them, see Figure 14 As shown, the center point P20 of the second component is translated along the same direction as the third direction vector by a second preset distance to obtain a fourth mark 04. The second preset distance may specifically be 0.5 times the thickness of the second component.

[0119] S650: Using the third mark position as the rotation center and the plane normal vector formed by the vehicle direction vector and the third direction vector as the rotation axis, the target nut model is rotated by a first target angle to rotate the target nut model to the target nut position.

[0120] Among them, the first target angle is the angle formed by the vehicle direction vector and the third direction vector. By rotating the target nut model to the first target angle so that the target nut model is in the same direction as the vehicle, it is convenient to carry out simulation tests and accurately obtain the position and direction parameters of the target nut model.

[0121] In another embodiment of the present application, the target position further includes: a target nut position and a target placeholder screw reference position; moving the target nut model, the target nut model, and the target placeholder screw reference model to the target position further includes:

[0122] With the fourth mark position as the rotation center and the plane normal vector as the rotation axis, the target nut model and the target placeholder screw reference model are rotated by the first target angle to rotate the target nut model to the target nut position and the target placeholder screw reference model to the target placeholder screw reference position.

[0123] In this embodiment, the target nut model and the target placeholder screw reference model are rotated by a first target angle so that the target nut model and the target placeholder screw reference model can be in the same direction as the entire vehicle, which facilitates simulation tests and can accurately obtain the position and direction parameters of the target nut model and the target placeholder screw reference model.

[0124] Figure 16 A flowchart showing another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 16 As shown, the position parameters of the target position include: a fourth mark position and a third direction vector; a target effective screw model and a target occupied screw model are respectively constructed according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database, further including S710 to S740, which are detailed as follows:

[0125] S710: Move the fourth marker position along the third direction vector by the center point of the placeholder reference model to obtain a fifth marker position.

[0126] Please participate in Figure 15 As shown, the mobile placeholder reference model is obtained by blocking the top surface through-hole of the nut. The placeholder reference model is sheet-shaped. By moving the fourth mark position 04 to the center point of the placeholder reference model, the fifth mark position 05 is obtained, so that the placeholder screw model can be constructed with the fifth mark position 05 as the starting point.

[0127] S720: Move the fifth marking position 05 along the third direction vector by the length of the placeholder screw to obtain a sixth marking position 06.

[0128] The sixth marking position 06 overlaps with the end point 02 of the search cylinder.

[0129] S730: Connect the fifth marking position 05 and the sixth marking position 06 to obtain a first reference line.

[0130] S740: Stretching along the first reference line based on the placeholder screw reference model to obtain a placeholder screw model.

[0131] The target bolt collision model is constructed by stretching the obtained placeholder screw model along the first reference line based on the placeholder reference model.

[0132] Figure 17 A flowchart showing another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 17 As shown, before the fifth marking position is moved along the third direction vector by the length of the placeholder screw to obtain the sixth marking position, the process further includes S810 to S840, which are described in detail as follows:

[0133] S810: Obtain the target screw length according to the coordinates of the cylinder starting point 01 and the coordinates of the cylinder ending point 02.

[0134] Among them, see Figure 15 As shown, the total length L of the target screw can be calculated based on the coordinates of the cylinder starting point 01 and the coordinates of the cylinder ending point 02.

[0135] S820: Obtain the effective screw length according to the coordinates of the third marking position 03 and the coordinates of the fourth marking position 04.

[0136] Among them, see Figure 15 As shown, according to the coordinates of the third mark position 03 and the coordinates of the fourth mark position 04, the effective screw length L1 can be calculated. The effective screw is the part that bears the tension of each component.

[0137] S830: Obtain a reference length of the placeholder screw according to the distance from the third marking position 03 to the target placeholder screw reference model.

[0138] The placeholder screw reference length L2 is calculated based on the distance from the third marking position 03 to the center point 04 of the target placeholder screw reference model and the coordinates of the third marking position 03 and the fourth marking position 04 .

[0139] S840: Obtaining a placeholder screw length according to the target screw length, the effective screw length, and the placeholder screw reference length.

[0140] The length L3 of the spacer screw can be calculated using the following formula:

[0141] L3=L-L1-L2

[0142] Figure 18 A flowchart showing another method for generating a bolt collision model provided by an exemplary embodiment of the present application is shown. Figure 18 As shown, a target effective screw model and a target occupied screw model are respectively constructed according to the position parameters of the target position and the CAD parameters of the target bolt in the bolt CAD database, and further includes S910 to S940, which are detailed as follows:

[0143] S910: Connect the third marking position 03 and the fourth marking position 04 to obtain a second reference line.

[0144] The third marking position 03 and the fourth marking position 04 are connected to draw a second reference line, so that a target effective screw model is established according to the second reference line.

[0145] S920: Divide the second reference line into a preset number of reference line units, and convert each reference line unit into a BEAM unit.

[0146] in, Figure 19 A schematic diagram of a BEAM unit provided by an exemplary embodiment of the present application is shown in FIG. Figure 19 As shown, the second reference line can be divided into 3 reference line units, that is, it can be converted into 3 BEAM units. The number of BEAM units is no longer limited and can be set according to actual conditions.

[0147] S930: Create contact shell elements that are equal to and corresponding to the BEAM elements, and use RB2 connection lines to connect the BEAM elements to the corresponding contact shell elements.

[0148] Among them, each BEAM unit is wrapped by the corresponding contact shell unit, and each BEAM unit is connected to the corresponding contact shell unit through the RB2 connection line.

[0149] S940: Connect the screw BEAM unit with the nut and cap to obtain the target effective screw model.

[0150] It should be noted that there is no RB2 connection between the BEAM element connected to the target nut model and the contact shell element, and there is no RB2 connection between the BEAM element connected to the target nut model and the contact shell element. All newly generated contact shell elements are traversed, and the distance between the contact shell element and the third marker position O3 is selected. The contact shell element with the middle distance is selected. The keyword INITIAL_AXIAL_FORCE_BEAM is used to load the bolt prestress on this contact shell element. The prestress magnitude is obtained from the bolt name and the bolt preload standard table.

[0151] Figure 20 FIG2 shows a schematic diagram of a structure of an embodiment of a device for generating a bolt collision model provided by an exemplary embodiment of the present application. Figure 20 As shown, the apparatus 2000 includes: a first construction module 2010 , a response module 2020 , a movement module 2030 , a second construction module 2040 and a creation module 2050 .

[0152] The first construction module 2010 is used to construct a nut model library, a nut model library and a placeholder screw reference model library according to the bolt CAD database and the nut CAD database respectively;

[0153] a response module 220 for, in response to the model creation instruction, acquiring a target nut model from a nut model library, acquiring a target nut model from a nut model library, and acquiring a target placeholder screw reference model from a placeholder screw reference model library based on a name of a target bolt;

[0154] A moving module 2030 is used to move the target nut model, the target nut model and the target placeholder screw reference model to the target position;

[0155] The second construction module 2040 is used to respectively construct a target effective screw model and a target occupier screw model according to the position parameters of the target position and the CAD parameters of the target bolt in the bolt CAD database;

[0156] The creation module 2050 is configured to create a bolt collision model based on the target nut model, the effective screw model, the placeholder screw reference model, the placeholder screw model, and at least one connecting member corresponding to the target bolt.

[0157] The device for generating a bolt collision model provided in the above embodiment and the method for generating a bolt collision model provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0158] Figure 21 A structural diagram of an embodiment of an electronic device provided by an exemplary embodiment of the present application is shown, which shows a structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.

[0159] See also Figure 21 As shown, the electronic device includes: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the method for generating the bolt collision model is executed.

[0160] Please continue reading Figure 21 As shown, the computer system 500 of the electronic device includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 into the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, ROM 502 and RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0161] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read therefrom can be installed into the storage section 508 as needed.

[0162] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from a removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the various functions defined in the system of the present application are executed.

[0163] Another aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for generating a bolt collision model as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently and not be incorporated into the electronic device.

[0164] Another aspect of the present application also provides a computer program product or computer program, which includes at least one executable instruction. When the executable instruction runs on a device / electronic device for generating a bolt collision model, the device / electronic device for generating a bolt collision model executes the method for generating a bolt collision model as described above.

[0165] The executable instructions can be specifically used to enable the device / electronic device for generating the bolt collision model to perform the following operations:

[0166] According to the bolt CAD database and the nut CAD database, a nut model library, a nut model library and a placeholder screw reference model library are respectively constructed; in response to the model creation instruction, a target nut model is obtained from the nut model library based on the name of the target bolt, a target nut model is obtained from the nut model library, and a target placeholder screw reference model is obtained from the placeholder screw reference model library; the target nut model, the target nut model and the target placeholder screw reference model are moved to the target position; according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database, a target effective screw model and a target placeholder screw model are respectively constructed; based on the target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model and at least one target connector corresponding to the target bolt, a target bolt collision model is created.

[0167] The computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0168] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0169] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.

[0170] According to one aspect of an embodiment of the present application, a computer system is further provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the RAM. The CPU, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0171] The following components are connected to the I / O interface: an input section including a keyboard, mouse, etc.; an output section including a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section including a hard disk; and a communication section including a network interface card such as a LAN (Local Area Network) card and a modem. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc. are installed in the drive as needed so that computer programs read from them can be installed into the storage section as needed.

[0172] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main ideas and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for generating a bolt collision model, characterized in that: The generation method comprises: According to the bolt CAD database and the nut CAD database, a nut model library, a nut model library and a placeholder screw reference model library are constructed respectively; In response to a model creation instruction, acquiring a target nut model from the nut model library, acquiring a target nut model from the nut model library, and acquiring a target placeholder screw reference model from the placeholder screw reference model library based on a name of a target bolt; Moving the target nut model, the target nut model and the target placeholder screw reference model to a target position; Constructing a target effective screw model and a target occupying screw model according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database; A target bolt collision model is created based on the target nut model, the target effective screw model, the target placeholder screw reference model, the target placeholder screw model and at least one target connecting member corresponding to the target bolt.

2. The generation method according to claim 1, characterized in that The method of constructing a nut model library, a nut model library and a placeholder screw reference model library based on the bolt CAD database and the nut CAD database, respectively, further includes: intercepting the target nut using a cross section formed by a nut centerline and a nut edgeline of the target nut in the nut CAD database to obtain an effective nut cross section; Dividing the effective cross section of the nut into cells to obtain a nut shell cell grid; The nut shell unit mesh is rotated about the center line of the nut to obtain the target nut solid mesh; The nut origin is taken as the starting point and extended along the nut centerline direction to obtain the nut direction vector; wherein the nut origin is the center point of the contact surface of the target nut solid mesh.

3. The generation method according to claim 2, characterized in that The method further comprises: constructing a nut model library, a nut model library and a placeholder screw reference model library based on the bolt CAD database and the nut CAD database, respectively. The top surface through-hole of the target nut model is sealed to obtain a target placeholder screw reference model, thereby obtaining a placeholder screw reference model library; wherein the target placeholder screw reference model is any model in the placeholder screw reference model library.

4. The generation method according to claim 2, characterized in that The method further comprises: constructing a nut model library, a nut model library and a placeholder screw reference model library based on the bolt CAD database and the nut CAD database, respectively. The target bolt in the bolt CAD database is cut from the root intersection surface of the target screw to obtain the target nut; According to the cross section formed by the nut center line and the outer edge line of the target nut, the target nut is intercepted to obtain the effective cross section of the nut; Dividing the effective cross section of the nut into cells to obtain a nut shell cell grid; The shell unit grid is rotated about the center line of the nut as an axis to obtain a target nut solid grid; Taking the nut origin as the starting point and extending along the nut centerline direction, a nut direction vector is obtained; wherein the nut origin is the center point of the contact surface of the nut solid mesh; The target nut solid mesh is translated to the global coordinate system so that the nut origin coincides with the origin of the global coordinate system and the nut direction vector coincides with the x-axis direction of the global coordinate system to obtain a target nut model, thereby obtaining a nut model library; wherein the target nut model is any model in the nut model library.

5. The generation method according to claim 1, characterized in that The CAD parameters of the target bolt include all line segments of the target bolt, and the generating method further includes: Based on the name of the target bolt, all characteristic line segments of the target bolt are obtained from the bolt CAD database; If the actual length of the target characteristic line segment is equal to the distance between the endpoints, the target characteristic line segment is determined to be a characteristic straight line; wherein the target characteristic line segment is any line segment among all characteristic line segments; The linear distance between the first straight line and the second straight line is calculated based on the positional relationship between the first straight line and the second straight line to obtain the radius of the cylinder; wherein the first straight line and the second straight line are the longest and equal straight lines among all the characteristic straight lines; Constructing a search cylinder according to the cylinder centerline and the cylinder radius; wherein the cylinder centerline is the midline between the first straight line and the second straight line; If there is at least one target connecting part whose connection center is within the search cylinder, the model creation instruction is generated; wherein the target connecting part is any connecting part in the storage array where the target screw is located.

6. The generation method according to claim 5, characterized in that If the connection center of at least one target connection component is within the search cylinder, before generating the model creation instruction, the method further includes: Obtaining a gap difference according to an axial distance, an axial error, a cylinder radius, and a radial error; wherein the axial distance is the distance between a cylinder center point and a cylinder starting point of the search cylinder; Obtaining an x-axis interval, a y-axis interval, and a z-axis interval according to the coordinates of the center point of the cylinder and the gap difference; If any coordinate value of the connection center point of the target connector belongs to the corresponding x-axis interval, the y-axis interval, and the z-axis interval, then the target distance value is calculated based on the coordinates of the connection center point and the coordinates of the cylinder center point; If the target distance value is less than the gap difference, a first direction vector is obtained according to the cylinder center point and the cylinder starting point, a second direction vector is obtained according to the cylinder starting point and the connection center point, and a sine value and a cosine value are calculated according to the first direction vector and the second direction vector; If the product of the target distance value and the cosine value is less than the sum of the axial distance and the axial error, and the product of the target distance value and the sine value is less than the sum of the cylinder radius and the radial error, it is determined that the target connection is on the search cylinder.

7. The generation method according to claim 6, characterized in that The target position includes: a target nut position; and moving the target nut model, the target nut model, and the target placeholder screw reference model to the target position further includes: Obtaining the distance between the connection center of each target connection component and the starting point of the search cylinder to obtain multiple component distances; sorting the plurality of component distances to determine a first component corresponding to a minimum component distance and a second component corresponding to a maximum component distance; translating the center point of the first component by a first preset distance in a direction opposite to the third direction vector to obtain a third mark position; wherein the third direction vector is obtained based on the cylinder starting point and the cylinder ending point of the search cylinder, and the first preset distance is a preset multiple of the thickness of the first component; translating the center point of the second component by a second preset distance in the same direction as the third direction vector to obtain a fourth marking position; wherein the second preset distance is a preset multiple of the thickness of the second component; With the third mark position as the rotation center and the plane normal vector formed by the vehicle direction vector and the third direction vector as the rotation axis, the target nut model is rotated by a first target angle to rotate the target nut model to the target nut position.

8. The generation method according to claim 7, characterized in that The target position further includes: a target nut position and a target occupier screw reference position; and moving the target nut model, the target nut model, and the target occupier screw reference model to the target position further includes: With the fourth mark position as the rotation center and the plane normal vector as the rotation axis, the target nut model and the target placeholder screw reference model are rotated by the first target angle to rotate the target nut model to the target nut position and the target placeholder screw reference model to the target placeholder screw reference position.

9. The generation method according to claim 8, characterized in that The position parameters of the target position include: the fourth mark position and the third direction vector; and constructing a target effective screw model and a target occupier screw model according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database, further including: Moving the fourth marker position along the third direction vector to the center point of the placeholder reference model to obtain a fifth marker position; Move the fifth marking position along the third direction vector by the length of the placeholder screw to obtain a sixth marking position; Connecting the fifth marking position and the sixth marking position to obtain a first reference line; The place-occupying screw model is obtained by stretching along the first reference line based on the place-occupying screw reference model.

10. The generation method according to claim 9, characterized in that Before moving the fifth marking position along the third direction vector by the length of the placeholder screw to obtain the sixth marking position, the method further includes: Obtaining a target screw length according to the coordinates of the cylinder starting point and the coordinates of the cylinder ending point; Obtaining an effective screw length according to the coordinates of the third marking position and the coordinates of the fourth marking position; Obtaining a reference length of the space-occupying screw according to the distance from the third marking position to the target space-occupying screw reference model; The placeholder screw length is obtained according to the target screw length, the effective screw length and the placeholder screw reference length.

11. The generation method according to claim 10, characterized in that: The method further includes: constructing a target effective screw model and a target occupier screw model according to the position parameters of the target position and the CAD data of the target bolt in the bolt CAD database; Connecting the third marking position and the fourth marking position to obtain a second reference line; Divide the second reference line into a preset number of reference line units, and convert each of the reference line units into a BEAM unit; Create contact shell elements that are equal to and corresponding to the BEAM elements, and connect the BEAM elements to the corresponding contact shell elements using RB2 connection lines; The screw BEAM unit is connected with the nut and the nut to obtain a target effective screw model.

12. A device for generating a bolt collision model, characterized in that: The device comprises: The first construction module is used to construct a nut model library, a nut model library and a placeholder screw reference model library according to the bolt CAD database and the nut CAD database respectively; a response module, configured to, in response to the model creation instruction, acquire a target nut model from the nut model library, acquire a target nut model from the nut model library, and acquire a target placeholder screw reference model from the placeholder screw reference model library based on the name of the target bolt; A moving module, configured to move the target nut model, the target nut model, and the target placeholder screw reference model to a target position; A second construction module is configured to respectively construct a target effective screw model and a target occupier screw model according to the position parameters of the target position and the CAD parameters of the target bolt in the bolt CAD database; A creation module is used to create a bolt collision model based on the target nut model, the effective screw model, the placeholder screw reference model, the placeholder screw model and at least one connecting piece corresponding to the target bolt.

13. An electronic device, characterized in that: include: Controller; The memory stores one or more programs, and when the one or more programs are executed by the controller, the controller implements the method for generating a bolt collision model according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which includes at least one executable instruction. When the executable instruction is executed on a device / electronic device for generating a bolt collision model, the device / electronic device for generating a bolt collision model executes the operation of the method for generating a bolt collision model according to any one of claims 1 to 11.