Forward inclination setting method and device of simulation model

By constructing a series of cube models to determine the coordinates and forward angles of the lowest and second-lower nodes of the simulation model, the problem of difficult to determine the rotation center and forward angle of the simulation model in the mechanical design of consumer electronic products is solved, and the simulation construction is improved The efficiency and accuracy of the mold.

CN119272433APending Publication Date: 2025-01-07HEFEI LCFC INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the mechanical design of consumer electronic products, when establishing system-level simulation models, it is difficult to accurately find the rotation center and forward angle of the simulation model, resulting in inefficient modeling.

Method used

By constructing a series of cube models, the coordinates and forward angles of the lowest and second-lower nodes are determined, and these data are used to rotate the simulation model to determine the correct rotation center and forward angle.

Benefits of technology

It improves the working efficiency of simulation modeling and ensures the accuracy and reliability of simulation models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272433A_ABST
    Figure CN119272433A_ABST
Patent Text Reader

Abstract

The invention provides a forward inclination setting method and device for a simulation model, and the method comprises the steps: building a first cube according to a simulation model of a target object, and obtaining a first data set of the first cube; the first cube is the minimum external cube of the simulation model, operation such as shifting is carried out, the cube is reconstructed after each time of operation, and finally forward inclination setting of the simulation model is completed; according to the method, the lowest node and the secondary low node of the simulation model can be set as the contact points according to the forward inclination of the simulation model at a high speed, so that the working efficiency of simulation modeling is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for setting the forward tilt of a simulation model. Background Art

[0002] In the related technologies, the demand for simulation has increased significantly to promote digital intelligent transformation, and the development time of consumer electronic products is short, so it is necessary to establish a system-level simulation model in a short time. Taking consumer electronic devices as an example, assuming that the electronic device is a laptop, the laptop generally has a foot pad made into a floor, but in mechanical design, the 3D diagram does not provide a schematic diagram of the foot pad supporting the floor. Therefore, there is a certain height difference between the front and rear foot pads on the 3D diagram. In the test setup of PA test items such as heavy block impact, vibration impact and LCD static pressure, the whole machine should be placed on the plane of the fixture or vibration table. In order to simulate individual PA test items, a corresponding simulation model must be established in the finite element software, and the simulation model must be rotated so that the lowest node and the second lowest node are in contact with the virtual plane respectively. Since the distribution positions of the lowest node and the second lowest node in each simulation model are different, it is difficult to find the correct rotation center and forward tilt angle in the simulation model, resulting in low modeling efficiency. Summary of the invention

[0003] The present disclosure provides a method and device for setting the forward tilt of a simulation model, so as to at least solve the above technical problems existing in the prior art.

[0004] According to a first aspect of the present disclosure, a method for setting a forward tilt of a simulation model is provided, the method comprising:

[0005] constructing a first cube according to the simulation model of the target object, and obtaining a first data set of the first cube;

[0006] Determine movement parameter data based on the first data set, and construct a second cube for the target object after it is moved based on the movement parameter data;

[0007] constructing a third cube based on the second data set of the second cube, and determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube;

[0008] establishing a virtual cube based on the second data set and the second lowest node position, and constructing a fourth cube based on the virtual cube;

[0009] constructing a fifth cube based on a fourth data set of the fourth cube;

[0010] Based on the fifth data set of the fifth cube, the forward tilt angle of the second lowest node coordinate is determined, and the simulation model is rotated with the lowest node coordinate as the rotation center and the forward tilt angle as the rotation angle.

[0011] In one possible implementation, obtaining the first data set of the first cube includes:

[0012] Determine the dimension data of the simulation model based on the first cube; the dimension data includes a horizontal axis dimension value in the horizontal axis direction, a vertical axis dimension value in the vertical axis direction, and a vertical axis dimension value in the vertical axis direction;

[0013] Determine eight vertex coordinates of the first cube according to the size data, and use the eight vertex coordinates as starting point coordinates; the eight vertex coordinates of the first cube are composed of a first horizontal coordinate, a second horizontal coordinate, a first vertical coordinate, a second vertical coordinate, a first vertical coordinate, and a second vertical coordinate;

[0014] The size data and the eight vertex coordinates are determined as a data set of the first cube.

[0015] In one possible implementation, determining the movement parameter data based on the first data set, and constructing a second cube for the target object moved based on the movement parameter data, includes:

[0016] Determine the center point of the first cube on the first axis and the second axis based on the first data set, use the center point as a new coordinate origin, and move the center of the simulation model to the coordinate origin;

[0017] A second cube is constructed based on the moved simulation model, and a second data set of the second cube is obtained; the second cube is the minimum circumscribed cube of the simulation model.

[0018] In one possible implementation, determining the center point of the first cube on the first axis and the second axis based on the first data set, taking the center point as a new coordinate origin, and moving the center of the simulation model to the coordinate origin includes:

[0019] Determine the intersection of the horizontal axis and the vertical axis of the first cube, and use the intersection as the center point;

[0020] The coordinates of the center point are represented by the first abscissa, the second abscissa, the first ordinate, the second ordinate, the first ordinate, and the second ordinate;

[0021] The center point coordinates are used as a new coordinate origin, and the center position of the simulation model is moved to the new coordinate origin.

[0022] In one possible implementation, constructing a third cube based on the second data set of the second cube includes:

[0023] Based on the second data set, the plane where the lowest node of the second cube is located is used as the first virtual plane;

[0024] searching for a first node in the simulation model based on the first virtual plane;

[0025] A third cube is constructed based on all the searched first nodes.

[0026] In one possible implementation, the determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube includes:

[0027] Judging the two vertical axis coordinate values ​​in the third data set respectively according to the first judging condition;

[0028] Determine the position of the lowest node in the third cube according to the judgment result;

[0029] Comparing the absolute values ​​of the two vertical coordinate values ​​in the third data set based on the position, and determining the vertical axis plane where the lowest node is located and the coordinates of the lowest node according to the comparison result;

[0030] The two vertical coordinate values ​​in the third data set are judged respectively according to the second judgment condition, and the position of the corresponding second lowest node in the third cube is determined according to the judgment result.

[0031] In one possible implementation, the step of constructing a fifth cube based on the fourth data set of the fourth cube includes:

[0032] Based on the fourth data set, taking the plane where the second lowest node of the fourth cube is located as the second virtual plane;

[0033] searching for a second node in the simulation model based on the second virtual plane;

[0034] A fifth cube is constructed based on all the searched second nodes.

[0035] In one possible implementation, determining the forward tilt angle of the second lowest node coordinate based on the fifth data set of the fifth cube includes:

[0036] Based on the two vertical coordinate values ​​in the fifth data set, the two vertical coordinate values ​​are judged respectively according to the third judgment condition, and the plane where the second lowest node is located and the coordinates of the second lowest node are determined according to the judgment result, and the forward tilt angle of the second lowest node is determined;

[0037] The lowest node coordinates and the forward tilt angle of the second lowest node are used as the target coordinates and the target forward tilt angle.

[0038] In one embodiment, the position in the third cube includes a first foot pad and a second foot pad.

[0039] According to a second aspect of the present disclosure, a device for setting the forward tilt of a simulation model is provided, the device comprising:

[0040] A first construction module, configured to construct a first cube according to a simulation model of the target object and obtain a first data set of the first cube;

[0041] A second construction module, configured to determine movement parameter data based on the first data set, and construct a second cube for the target object after it is moved based on the movement parameter data;

[0042] constructing a third cube based on the second data set of the second cube, and determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube;

[0043] establishing a virtual cube based on the second data set and the second lowest node position, and constructing a fourth cube based on the virtual cube;

[0044] constructing a fifth cube based on a fourth data set of the fourth cube;

[0045] Based on the fifth data set of the fifth cube, the forward tilt angle of the second lowest node coordinate is determined, and the simulation model is rotated with the lowest node coordinate as the rotation center and the forward tilt angle as the rotation angle.

[0046] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0047] at least one processor; and

[0048] a memory communicatively connected to the at least one processor; wherein,

[0049] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.

[0050] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.

[0051] The disclosed method and device for setting the inclination of a simulation model can set the inclination of the simulation model by using the lowest node and the second lowest node of the simulation model as contact points, and simultaneously calculate the inclination angle of the simulation model, thereby improving the working efficiency of simulation modeling.

[0052] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:

[0054] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0055] Figure 1 The schematic diagram shows the implementation process of the forward tilt setting method of the simulation model of the embodiment of the present disclosure. Figure 1 ;

[0056] Figure 2 A schematic diagram showing the structure of a first cube of a simulation model according to an embodiment of the present disclosure is shown;

[0057] Figure 3 A schematic diagram showing the structure of the first cube after being moved according to an embodiment of the present disclosure is shown;

[0058] Figure 4 A schematic diagram showing the structure of a second cube of the simulation model according to an embodiment of the present disclosure is shown;

[0059] Figure 5 A schematic diagram showing the structure of a virtual plane of a second cube according to an embodiment of the present disclosure is shown;

[0060] Figure 6 A schematic diagram of the structure of searching for node positions according to an embodiment of the present disclosure is shown;

[0061] Figure 7 A schematic diagram showing the structure of the lowest node and the forward inclination angle of an embodiment of the present disclosure is shown;

[0062] Figure 8 A schematic diagram of the structure of a fourth cube in an embodiment of the present disclosure is shown;

[0063] Fig. 9 A schematic diagram showing the position of the second lowest node according to an embodiment of the present disclosure is shown;

[0064] Fig.10 A schematic diagram showing the structure of a virtual plane of a fourth cube according to an embodiment of the present disclosure is shown;

[0065] Fig.11 A schematic diagram showing the structure of the second lowest node and the forward tilt angle of an embodiment of the present disclosure is shown;

[0066] Fig.12 A schematic diagram showing the structure of the lowest node and the forward tilt angle of an embodiment of the present disclosure is shown;

[0067] Fig.13A schematic diagram showing the structure of a forward tilt setting device of a simulation model according to an embodiment of the present disclosure is shown;

[0068] Fig.14 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0069] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0070] A method and device for setting the forward tilt of a simulation model provided in an embodiment of the present application will be described below in conjunction with the accompanying drawings.

[0071] like Figure 1 As shown, an embodiment of the present application provides a method for setting the forward tilt of a simulation model, the method comprising:

[0072] S101, constructing a first cube according to a simulation model of a target object, and obtaining a first data set of the first cube; the first cube is a minimum circumscribed cube of the simulation model;

[0073] The target object in the present application can be any object that is easy to fall, for example, it can be a computer, tablet computer, mobile phone and other smart devices. In the present application, a simulation model of the target object is first constructed, and the simulation model can be constructed using the existing construction method, which is not limited in the present application. The present application constructs the minimum circumscribed cube of the simulation model on the basis of the simulation model, and then establishes a rectangular coordinate system with the edge where one corner of the first cube is located, and obtains the dimension data in the three-axis directions of the X-axis, Y-axis and Z-axis according to the side length of the first cube.

[0074] It can be understood that, assuming that the target object in this application is a laptop computer, the first cube of the simulation model framework of the laptop computer has 8 vertices. In this application, six values ​​X are used according to the set coordinate origin. max , Y max , Z max , X min , Y min , Z min Indicates the coordinates of 8 vertices, which is the data set of the first cube.

[0075] In some embodiments, obtaining the first data set of the first cube includes:

[0076] Determine the dimension data of the simulation model based on the first cube; the dimension data includes a horizontal axis dimension value in the horizontal axis direction, a vertical axis dimension value in the vertical axis direction, and a vertical axis dimension value in the vertical axis direction;

[0077] Determine eight vertex coordinates of the first cube according to the size data, and use the eight vertex coordinates as starting point coordinates; the eight vertex coordinates of the first cube are composed of a first horizontal coordinate, a second horizontal coordinate, a first vertical coordinate, a second vertical coordinate, a first vertical coordinate, and a second vertical coordinate;

[0078] The size data and the eight vertex coordinates are determined as a data set of the first cube.

[0079] Specifically, in the present application, a rectangular coordinate system is constructed with an edge of a corner of the first cube as the coordinate origin. The dimension data in the three axes of X-axis, Y-axis and Z-axis are determined on the basis of the rectangular coordinate system. The coordinates of the eight vertices are set according to the coordinate origin. The six numerical values ​​X max , Y max , Z max , X min , Y min , Z min Representation; Assume that the first cube is Figure 2 As shown, the coordinates of the upper left corner vertex are (X min , Y max , Z min ), the coordinates of the lower left corner are (X min , Y max , Z max ), the coordinates of the upper right corner vertex are (X max , Y max , Z min ), the coordinates of the lower right corner vertex are (X max , Y max , Z max ), the coordinates of the upper left corner are (X min , Y min , Z min ), the coordinates of the lower left corner are (X min , Y min , Z max ), the coordinates of the upper right corner vertex are (X max , Y min , Z min ), the coordinates of the lower right corner vertex are (X max , Y min , Z max ). It can be understood that, according to the coordinate origin at this time, Z max , Y max , Z max , Xmin , Y min , Z min to facilitate the use in subsequent steps.

[0080] S102, determining movement parameter data based on the first data set, and constructing a second cube for the target object after it is moved based on the movement parameter data;

[0081] In some embodiments, determining the movement parameter data based on the first data set, and constructing a second cube for the target object moved based on the movement parameter data, includes:

[0082] Determine the center point of the first cube on the first axis and the second axis based on the first data set, use the center point as a new coordinate origin, and move the center of the simulation model to the coordinate origin;

[0083] A second cube is constructed based on the moved simulation model, and a second data set of the second cube is obtained; the second cube is the minimum circumscribed cube of the simulation model.

[0084] It can be understood that the movement parameter data includes the center point of the first cube on the first axis and the second axis, with the center point as the new coordinate origin; after determining the center point of the first axis and the second axis, the present application uses the center point as the new coordinate origin.

[0085] In some embodiments, determining the center point of the first cube on the first axis and the second axis based on the first data set, taking the center point as a new coordinate origin, and moving the center of the simulation model to the coordinate origin includes:

[0086] Determine the intersection of the horizontal axis and the vertical axis of the first cube, and use the intersection as the center point;

[0087] The coordinates of the center point are represented by the first abscissa, the second abscissa, the first ordinate, the second ordinate, the first ordinate, and the second ordinate;

[0088] The center point coordinates are used as a new coordinate origin, and the center position of the simulation model is moved to the new coordinate origin.

[0089] Specifically, Figure 3 As shown, using the six values ​​X obtained in step S101 max , Y max , Z max , X min , Y min , Z min , find the center point of the smallest cube on the X and Z axes. The coordinates of the center point can be used Indicates that the simulation model is then translated from the center point coordinate to the coordinate origin (0,0,0) so that the coordinate origin is at the center point of the simulation model;

[0090] The second data set includes a third horizontal coordinate, a fourth horizontal coordinate, a third vertical coordinate, a fourth vertical coordinate, a third vertical coordinate and a fourth vertical coordinate;

[0091] Specifically, the smallest cube surrounding the moved simulation model, that is, the second cube, is obtained again, and the coordinates of the eight points of the second cube are obtained respectively. The six values ​​of the coordinates of the eight points can be expressed as X′ max , Y′ max , Z′ max , X′ min , Y′ min , Z′ min Indicates that, with six values ​​X max , Y max , Z max , X min , Y min , Z min Has the following relationship,

[0092]

[0093] Among them, the second cube is as follows Figure 4 shown.

[0094] S103, constructing a third cube based on the second data set of the second cube, and determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube;

[0095] In some embodiments, the step of constructing a third cube based on the second data set of the second cube includes:

[0096] Based on the second data set, the plane where the lowest node of the second cube is located is used as the first virtual plane;

[0097] searching for a first node in the simulation model based on the first virtual plane;

[0098] A third cube is constructed based on all the searched first nodes.

[0099] It is understandable that, knowing that the lowest node is on the plane of y=0, it is necessary to establish a virtual plane of y=0 in the simulation model to search for all the nodes of the two pieces. The virtual plane passing through y=0 consists of four straight lines, namely z=Z′ max , z=Z′ min , x=X′ max , x=X′ min , where the virtual plane is Figure 5 shown.

[0100] The third data set includes a fifth horizontal coordinate, a sixth horizontal coordinate, a fifth vertical coordinate, a sixth vertical coordinate, a fifth vertical coordinate and a sixth vertical coordinate;

[0101] Specifically, the search node can be obtained based on the established virtual plane, and the smallest cube surrounding the search node, that is, the third cube, is obtained again to obtain the coordinates of eight points of the third cube. The coordinates of these eight points can be expressed by six numerical values ​​X max,1 , Y max,1 , Z max,1 , X min,1 , Y min,1 , Z min,1 express.

[0102] In some embodiments, determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube includes:

[0103] Judging the two vertical axis coordinate values ​​in the third data set respectively according to the first judging condition;

[0104] Determine the position of the lowest node in the third cube according to the judgment result;

[0105] Comparing the absolute values ​​of the two vertical coordinate values ​​in the third data set based on the position, and determining the vertical axis plane where the lowest node is located and the coordinates of the lowest node according to the comparison result;

[0106] The two vertical coordinate values ​​in the third data set are judged respectively according to the second judgment condition, and the position of the corresponding second lowest node in the third cube is determined according to the judgment result.

[0107] Specifically, the relative position of the search node in the entire simulation model is determined in the following manner:

[0108] Z max,1 >0 and Z min,1 >0: Search node on front foot pad

[0109] Z max,1 <0 and Z min,1 <0: Search node on rear foot pad

[0110] by Figure 5 As an example, the simulation model shown in the figure searches for nodes that satisfy the above Z max,1 <0 and Z min,1 <0: Search node at rear foot pad, such as Figure 6 As shown, the first foot pad is the front foot pad, and the second foot pad is the rear foot pad.

[0111] Then the two values ​​Z max,1 , Zmin,1 Take the absolute value and compare the sizes, and use the following method to determine the Z plane where the lowest node is located.

[0112] |Z max,1 |>|Z min,1 |∶The lowest node is at z

[0113] =Z min,1 The plane with the lowest node coordinate (0,0,Z min,1 )

[0114] |Z max,1 |<|Z min,1 |∶The lowest node is at z=Z max,1 The plane with the lowest node coordinate (0,0,Z max,1 )

[0115] by Figure 5 Take the simulation model shown as an example, which satisfies the above |Z max,1 |<|Z min,1 |, therefore, the lowest node is at z = Z max,1 The plane with the lowest node coordinate (0,0,Z max,1 ), which is also the first contact point and rotation center of the virtual floor, the forward tilt angle Specific as Figure 7 shown.

[0116] The two values ​​Z obtained above are max,1 , Z min,1 , the relative position of the second lowest node in the entire simulation model is determined by the following two judgment formulas:

[0117] Z max,1 >0 and Z min,1 >0: The second lowest node is at the rear foot pad

[0118] Z max,1 <0 and Z min,1 <0: The second lowest node is at the front foot pad

[0119] by Figure 5 Take the simulation model of 2000 as an example, which satisfies the Z in the above judgment formula. max,1 <0 and Z min,1 <0, so the second lowest node is at the front foot pad. In this application, the constant Z is given α To define the search range of the front and back directions, take a laptop as an example, given Z α = 0, a virtual cube is created to search for all the nodes of the parts. The virtual cube consists of six planes, namely z = Z′ max 、z=Z a =0, x = X′ max , x=X′ min ,y=0,y=Ym ' ax , such as Figure 8 shown.

[0120] S104, establishing a virtual cube based on the second data set and the second lowest node position, and constructing a fourth cube based on the virtual cube;

[0121] The fourth data set includes the seventh horizontal coordinate, the eighth horizontal coordinate, the seventh vertical coordinate, the eighth vertical coordinate, the seventh vertical coordinate and the eighth vertical coordinate;

[0122] In some embodiments, the step of establishing a virtual cube based on the positions of the lowest node and the second lowest node includes:

[0123] Construct a virtual cube based on the second data set, the first preset vertical coordinate, and the second preset vertical coordinate

[0124] Specifically, a virtual cube is constructed based on the third vertical coordinate, the preset vertical coordinate, the third horizontal coordinate, the fourth horizontal coordinate, the preset vertical coordinate, and the third vertical coordinate. Then, based on the obtained virtual cube, the minimum cube surrounding the search node is obtained again, and the eight point coordinates of the minimum cube can be obtained respectively. The eight point coordinates can be expressed by six numerical values ​​X″ max , Y″ max , Z″ max , X″ min , Y″ min , Z″ min Indicates that the Y coordinate Y″ of the second lowest node can be obtained min , such as Fig. 9 shown.

[0125] S105, constructing a fifth cube based on the fourth data set of the fourth cube;

[0126] In some embodiments, constructing a fifth cube based on the fourth data set of the fourth cube includes:

[0127] Based on the fourth data set, taking the plane where the second lowest node of the fourth cube is located as the second virtual plane;

[0128] searching for a second node in the simulation model based on the second virtual plane;

[0129] A fifth cube is constructed based on all the searched second nodes.

[0130] Specifically, it is known that the second lowest node is at y=Y″ min plane, it is necessary to establish a y=Y″ in the simulation model min A virtual plane is formed, and nodes of all parts are searched based on the virtual plane, and y=Y″ minThe virtual plane consists of four straight lines, namely z=Z″ max 、z=Z″ min 、x=X″ max 、x=X″ min , where the virtual plane is Fig.10 shown.

[0131] The fifth data set includes a ninth horizontal coordinate, a tenth horizontal coordinate, a ninth vertical coordinate, a tenth vertical coordinate, a ninth vertical coordinate, and a tenth vertical coordinate.

[0132] Specifically, the search node obtained on the established virtual plane is used to obtain the smallest cube surrounding the search node, that is, the fifth cube. The fifth cube has eight point coordinates, which can be expressed as six values ​​X max,2 , Y max,2 , Z max,2 , X min,2 , Y min,2 , Z min,2 express.

[0133] S106, based on the fifth data set of the fifth cube, determine the forward tilt angle of the second lowest node coordinate, and rotate the simulation model with the lowest node coordinate as the rotation center and the forward tilt angle as the rotation angle.

[0134] In some embodiments, determining the forward tilt angle of the second lowest node coordinate based on the fifth data set of the fifth cube includes:

[0135] Determine a seventh vertical axis coordinate value and an eighth vertical axis coordinate value in the fifth data set;

[0136] The seventh vertical axis coordinate value and the eighth vertical axis coordinate value are judged according to the third judgment condition, and the plane where the second lowest node is located and the coordinates of the second lowest node are determined according to the judgment result, and the forward tilt angle of the second lowest node is determined;

[0137] The lowest node coordinates and the forward tilt angle of the second lowest node are used as the target coordinates and the target forward tilt angle.

[0138] Specifically, the seventh vertical axis coordinate value and the eighth vertical axis coordinate value in the fifth data set are Z max,1 , Z min,1 , the two values ​​Z max,1 , Z min,1 Take the absolute value to compare the size, and use the following method to determine which z plane the second lowest node is located on:

[0139] |Z max,2 |>|Z min,2 |∶The second lowest node is in z

[0140] =Z max,2 The plane with the second lowest node coordinate (0,Ymin,2 ,Z max,2 )

[0141] |Z max,2 |<|Z min,2 |∶The second lowest node is in z

[0142] =Z min,2 The plane with the second lowest node coordinate (0,Y min,2 ,Z min,2 )

[0143] by Figure 5 Take the simulation model in as an example and determine whether it satisfies |Z max,2 |>|Z min,2 |, so the second lowest node is at z=Z max,2 The plane with the second lowest node coordinates is (0,Y min,2 ,Z max,2 ), which is also the second contact point of the virtual floor, and calculates the forward tilt angle Where Y2 = Y min,2 ,Z1=Z max,2 , such as Fig.11 shown.

[0144] The lowest node coordinates obtained above and the forward tilt angle θ obtained above are rotated along the x-axis by the forward tilt angle θ with the lowest node as the rotation center.

[0145] by Figure 5 Take the simulation model of for example, the lowest node coordinate is (0,0,Z max,1 ), forward tilt angle Finally, a virtual floor is established at the coordinate origin to complete the forward tilt setting of the simulation model. Fig.12 shown.

[0146] like Fig.13 As shown, an embodiment of the present application provides a forward tilt setting device for a simulation model, the device comprising:

[0147] A first construction module 1301 is used to construct a first cube according to a simulation model of a target object and obtain a first data set of the first cube;

[0148] A second construction module 1302 is used to determine movement parameter data based on the first data set, and construct a second cube for the target object after it is moved based on the movement parameter data;

[0149] A third construction module 1303 is used to construct a third cube based on the second data set of the second cube, and determine the lowest node coordinates and the second lowest node position based on the third data set of the third cube;

[0150] A fourth construction module 1304 is used to establish a virtual cube based on the second data set and the second lowest node position, and to construct a fourth cube based on the virtual cube;

[0151] A fifth constructing module 1305, configured to construct a fifth cube based on a fourth data set based on the fourth cube;

[0152] The determination module 1306 is used to determine the forward tilt angle of the second lowest node coordinate based on the fifth data set of the fifth cube, and rotate the simulation model with the lowest node coordinate as the rotation center and the forward tilt angle as the rotation angle.

[0153] An embodiment of the present application provides an electronic device, including:

[0154] at least one processor; and

[0155] a memory communicatively connected to the at least one processor; wherein,

[0156] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of the above embodiments.

[0157] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0158] Fig.14 A schematic block diagram of an example electronic device 1400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0159] like Fig.14As shown, the device 1400 includes a computing unit 1401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1402 or a computer program loaded from a storage unit 1408 into a random access memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation of the device 1400 can also be stored. The computing unit 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.

[0160] A number of components in the device 1400 are connected to the I / O interface 1405, including: an input unit 1406, such as a keyboard, a mouse, etc.; an output unit 1407, such as various types of displays, speakers, etc.; a storage unit 1408, such as a disk, an optical disk, etc.; and a communication unit 1409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1409 allows the device 1400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0161] The computing unit 1401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1401 performs the various methods and processes described above, such as the forward tilt setting method of the simulation model. For example, in some embodiments, the forward tilt setting method of the simulation model may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1400 via the ROM 1402 and / or the communication unit 1409. When the computer program is loaded into the RAM 1403 and executed by the computing unit 1401, one or more steps of the forward tilt setting method of the simulation model described above may be executed. Alternatively, in other embodiments, the computing unit 1401 may be configured to execute the forward tilt setting method of the simulation model in any other appropriate manner (for example, by means of firmware).

[0162] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0164] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 foregoing.

[0165] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0166] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0167] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0168] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0169] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0170] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for setting the forward tilt of a simulation model, characterized in that: The method comprises: constructing a first cube according to the simulation model of the target object, and obtaining a first data set of the first cube; Determine movement parameter data based on the first data set, and construct a second cube for the target object after it is moved based on the movement parameter data; constructing a third cube based on the second data set of the second cube, and determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube; establishing a virtual cube based on the second data set and the second lowest node position, and constructing a fourth cube based on the virtual cube; constructing a fifth cube based on a fourth data set of the fourth cube; Based on the fifth data set of the fifth cube, the forward tilt angle of the second lowest node coordinate is determined, and the simulation model is rotated with the lowest node coordinate as the rotation center and the forward tilt angle as the rotation angle.

2. The method according to claim 1, characterized in that The obtaining of the first data set of the first cube comprises: Determine the dimension data of the simulation model based on the first cube; the dimension data includes a horizontal axis dimension value in the horizontal axis direction, a vertical axis dimension value in the vertical axis direction, and a vertical axis dimension value in the vertical axis direction; Determine eight vertex coordinates of the first cube according to the size data, and use the eight vertex coordinates as starting point coordinates; the eight vertex coordinates of the first cube are composed of a first horizontal coordinate, a second horizontal coordinate, a first vertical coordinate, a second vertical coordinate, a first vertical coordinate, and a second vertical coordinate; The size data and the eight vertex coordinates are determined as a data set of the first cube.

3. The method according to claim 2, characterized in that The step of determining movement parameter data based on the first data set and constructing a second cube for the target object moved based on the movement parameter data includes: Determine the center point of the first cube on the first axis and the second axis based on the first data set, use the center point as a new coordinate origin, and move the center of the simulation model to the coordinate origin; A second cube is constructed based on the moved simulation model, and a second data set of the second cube is obtained; the second cube is the minimum circumscribed cube of the simulation model.

4. The method according to claim 3, characterized in that Determining the center point of the first cube on the first axis and the second axis based on the first data set, taking the center point as a new coordinate origin, and moving the center of the simulation model to the coordinate origin, comprises: Determine the intersection of the horizontal axis and the vertical axis of the first cube, and use the intersection as the center point; The coordinates of the center point are represented by the first abscissa, the second abscissa, the first ordinate, the second ordinate, the first ordinate, and the second ordinate; The center point coordinates are used as a new coordinate origin, and the center position of the simulation model is moved to the new coordinate origin.

5. The method according to claim 1, characterized in that The step of constructing a third cube based on the second data set of the second cube includes: Based on the second data set, the plane where the lowest node of the second cube is located is used as the first virtual plane; searching for a first node in the simulation model based on the first virtual plane; A third cube is constructed based on all the searched first nodes.

6. The method according to claim 1, characterized in that The determining the lowest node coordinates and the second lowest node position based on the third data set of the third cube comprises: Judging the two vertical axis coordinate values ​​in the third data set respectively according to the first judging condition; Determine the position of the lowest node in the third cube according to the judgment result; Comparing the absolute values ​​of the two vertical coordinate values ​​in the third data set based on the position, and determining the vertical axis plane where the lowest node is located and the coordinates of the lowest node according to the comparison result; The two vertical coordinate values ​​in the third data set are judged respectively according to the second judgment condition, and the position of the corresponding second lowest node in the third cube is determined according to the judgment result.

7. The method according to claim 1, characterized in that The step of constructing a fifth cube based on the fourth data set of the fourth cube includes: Based on the fourth data set, taking the plane where the second lowest node of the fourth cube is located as the second virtual plane; searching for a second node in the simulation model based on the second virtual plane; A fifth cube is constructed based on all the searched second nodes.

8. The method according to claim 1, characterized in that The step of determining the forward tilt angle of the second lowest node coordinate based on the fifth data set of the fifth cube includes: Based on the two vertical coordinate values ​​in the fifth data set, the two vertical coordinate values ​​are judged respectively according to the third judgment condition, and the plane where the second lowest node is located and the coordinates of the second lowest node are determined according to the judgment result, and the forward tilt angle of the second lowest node is determined; The lowest node coordinates and the forward tilt angle of the second lowest node are used as the target coordinates and the target forward tilt angle.

9. The method according to claim 4, characterized in that The location in the third cube includes a first foot pad and a second foot pad.

10. A device for setting the forward tilt of a simulation model, characterized in that: The device comprises: A first construction module, configured to construct a first cube according to a simulation model of the target object and obtain a first data set of the first cube; A second construction module, configured to determine movement parameter data based on the first data set, and construct a second cube for the target object after it is moved based on the movement parameter data; A third construction module, configured to construct a third cube based on the second data set of the second cube, and determine the lowest node coordinates and the second lowest node position based on the third data set of the third cube; a fourth construction module, configured to establish a virtual cube based on the second data set and the second lowest node position, and to construct a fourth cube based on the virtual cube; a fifth building module, configured to build a fifth cube based on a fourth data set based on the fourth cube; The determination module is used to determine the forward tilt angle of the second lowest node coordinate based on the fifth data set of the fifth cube, and rotate the simulation model with the lowest node coordinate as the rotation center and the forward tilt angle as the rotation angle.