Simulation method, device, electronic device and storage medium

By determining the spatial coordinates between geometric objects in the simulation system, the target geometric surface is identified as the contact surface, solving the problem of inaccurate simulation results in existing technologies, realizing accurate load transfer in the target model, and improving the accuracy of the simulation process.

CN116756792BActive Publication Date: 2026-11-27PERA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310722375.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2026-11-27
Estimated Expiration
2043-06-19

AI Technical Summary

Technical Problem

In the field of simulation, existing technologies struggle to accurately simulate the effects of loads applied between geometric bodies, resulting in low accuracy of simulation results for the target model.

Method used

By determining whether there are points with the same spatial coordinates between geometric objects in the target model of the simulation system, the target geometric surface is determined and used as the contact surface. The simulation parameters of the model are then determined based on the contact surface for simulation.

Benefits of technology

This improves the accuracy of the target model simulation process, ensures accurate load transfer between contact surfaces, and enhances the accuracy of simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116756792B_ABST
    Figure CN116756792B_ABST
Patent Text Reader

Abstract

The application relates to an emulation method and device, electronic equipment and a storage medium. The method comprises the following steps: obtaining a target model in an emulation interface of an emulation system; determining a plurality of geometric bodies in the target model; judging whether there is a point with the same spatial position coordinate between at least two geometric bodies in the plurality of geometric bodies, and obtaining a judgment result; if the judgment result is that there is a point with the same spatial position coordinate between the at least two geometric bodies, determining a target geometric surface in the plurality of geometric bodies based on the judgment result; taking the target geometric surface as a contact surface of the target model; determining a model emulation parameter based on the contact surface of the target model, and emulating the target model according to the model emulation parameter. According to the scheme provided by the application, the contact surface of the target model can be determined according to the contact state between the geometric bodies in the target model, and then the model emulation parameter determined according to the contact surface can be used to realize accurate emulation of the target model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of simulation technology, and in particular to a simulation method, apparatus, electronic device and storage medium. Background Technology

[0002] In the field of simulation, it is often necessary to apply loads to the target model to be simulated, and to simulate the target model by simulating the transfer process of the load in the target model.

[0003] In related technologies, it is difficult to realistically simulate the effect of load application between different geometries when loads are transferred between them in the target model, resulting in low accuracy of the simulation results of the target model and difficulty in meeting the actual simulation requirements. Summary of the Invention

[0004] To address or partially address the problems existing in related technologies, this application provides a simulation method, apparatus, electronic device, and storage medium that can achieve an accurate and realistic simulation process of a target model.

[0005] The first aspect of this application provides a simulation method, the method comprising:

[0006] Obtain the target model from the simulation interface of the simulation system;

[0007] Identify multiple geometric shapes in the target model;

[0008] Determine whether there are points with the same spatial coordinates between at least two of the plurality of geometric objects, and obtain the determination result;

[0009] If the judgment result is that there are points with the same spatial coordinates between at least two of the geometric bodies, then the target geometric surface among the plurality of geometric bodies is determined based on the judgment result;

[0010] The target geometric surface is used as the contact surface of the target model;

[0011] The model simulation parameters are determined based on the contact surface of the target model, and the target model is simulated according to the model simulation parameters.

[0012] According to the simulation method provided in this application, it is determined whether there are points with the same spatial coordinates between at least two of the plurality of geometric bodies, and the determination result is obtained, including:

[0013] Determine the corresponding outer body for each of the aforementioned geometric shapes;

[0014] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies, and obtain the determination result.

[0015] According to the simulation method provided in this application, it is determined whether there are points with the same spatial coordinates between at least two of the plurality of geometric bodies, and the determination result is obtained, including:

[0016] Determine the corresponding outer body for each of the aforementioned geometric shapes;

[0017] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies;

[0018] If there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the geometric objects, then at least two of the geometric objects are taken as target geometric objects;

[0019] Determine whether there are points with the same spatial coordinates between at least two of the target geometries, and obtain the determination result.

[0020] According to the simulation method provided in this application, the peripheral body includes a first peripheral body and a second peripheral body, wherein the volume of the first peripheral body is larger than the volume of the second peripheral body;

[0021] Determining whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies includes:

[0022] Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the plurality of geometric bodies, and obtain a first determination result;

[0023] The initial screening geometry is determined based on the first judgment result; wherein, the initial screening geometry is at least two geometry that have points with the same spatial coordinates between their respective first peripheral bodies;

[0024] Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the initial screening geometries.

[0025] According to the simulation method provided in this application, the peripheral body includes a first peripheral body and a second peripheral body, wherein the volume of the first peripheral body is larger than the volume of the second peripheral body;

[0026] Determining whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies includes:

[0027] Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the plurality of geometric bodies;

[0028] Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the plurality of geometric bodies.

[0029] According to the simulation method provided in this application, determining the target geometric surface among the plurality of geometric bodies based on the judgment result includes:

[0030] If the determination result is that there are points with the same spatial coordinates between at least two of the geometric bodies, then the geometric surface where the points with the same spatial coordinates are located is determined;

[0031] The geometric surface containing points with the same spatial coordinates is taken as the target geometric surface.

[0032] According to the simulation method provided in this application, the simulation parameters of the model are determined based on the contact surface of the target model, including:

[0033] Based on the contact surface of the target model, establish the contact relationship between at least two geometric bodies in the target model that are associated with the contact surface;

[0034] The simulation parameters of the model are determined based on the contact relationship between the at least two geometric bodies.

[0035] A second aspect of this application provides a simulation apparatus, the apparatus comprising:

[0036] The acquisition module is used to acquire the target model in the simulation interface of the simulation system.

[0037] The determination module is used to determine multiple geometric shapes in the target model;

[0038] The judgment module is used to determine whether there are points with the same spatial coordinates between at least two of the plurality of geometric objects, and to obtain a judgment result;

[0039] The first processing module is used to determine the target geometric surface among the plurality of geometric bodies based on the judgment result when the judgment result is that there are points with the same spatial coordinates between at least two of the geometric bodies.

[0040] The second processing module is used to use the target geometric surface as the contact surface of the target model;

[0041] The simulation module is used to determine the model simulation parameters based on the contact surface of the target model, and to simulate the target model according to the model simulation parameters.

[0042] A third aspect of this application provides an electronic device, comprising:

[0043] Processor; and

[0044] A memory that stores executable code, which, when executed by the processor, causes the processor to perform the method described above.

[0045] A fourth aspect of this application provides a computer-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the method described above.

[0046] The technical solution provided in this application may include the following beneficial effects:

[0047] By acquiring the target model from the simulation interface of the simulation system, multiple geometric bodies within the target model are identified. It is then determined whether at least two of these geometric bodies share the same spatial coordinates. If the determination indicates that at least two geometric bodies share the same spatial coordinates, a target geometric surface is identified based on this result. This target geometric surface is then used as the contact surface of the target model. Simulation parameters are determined based on these contact surfaces, and the target model is then simulated according to these parameters. Since the contact surface of the target model can be determined through the contact state between the geometric bodies, and the simulation parameters determined based on the contact surface enable accurate simulation of the target model, the accuracy of the target model simulation process is improved.

[0048] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0049] The above and other objects, features and advantages of this application will become more apparent from the more detailed description of exemplary embodiments thereof in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments thereof.

[0050] Figure 1 This is a schematic flowchart illustrating the simulation method in an embodiment of this application;

[0051] Figure 2 This is a geometric division diagram of a certain component in an embodiment of this application;

[0052] Figure 3 This is a schematic diagram of the structure of the outer body corresponding to the first geometric body in the embodiments of this application;

[0053] Figure 4 This is a schematic diagram of the simulation device shown in the embodiments of this application;

[0054] Figure 5 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application. Detailed Implementation

[0055] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.

[0056] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0057] It should be understood that although the terms "first," "second," "third," etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0058] This embodiment relates to the field of simulation, and can be specifically applied to simulation scenarios after applying loads to a target model, in order to simulate the transmission effect of loads in the target model.

[0059] In related technologies, since the contact state between the geometric surfaces in the target model is unknown, if the contact state between the geometric surfaces in the target model is not clearly defined before the simulation, it will be impossible to guarantee that the load application effect is accurately transmitted between the geometric surfaces with contact relationship, thus affecting the accuracy of the final simulation results.

[0060] To address the aforementioned issues, this application provides a simulation method that can improve the accuracy of the target model simulation process.

[0061] It should be noted that the execution subject of the simulation method provided in this embodiment can be a computer with a simulation system installed, or a processor or server capable of data acquisition, data processing and other functions.

[0062] The following combination Figures 1 to 5 This application provides a detailed description of the technical solutions for the simulation methods, devices, electronic equipment, and storage media provided in its embodiments.

[0063] Figure 1 This is a schematic flowchart illustrating the simulation method in an embodiment of this application.

[0064] See Figure 1 The simulation method provided in this application specifically includes:

[0065] Step 101: Obtain the target model from the simulation interface of the simulation system.

[0066] Understandably, a simulation system can be a software system capable of performing structural simulation, fluid simulation, electromagnetic simulation, and other simulation functions on a model. The simulation interface can be the display interface of the simulation system, capable of displaying relevant information to be simulated, such as the structure of the target model and the key parameter data required for the simulation.

[0067] The target model can be a model to be simulated. This model can be a three-dimensional model, such as a three-dimensional model of a component on a car. The simulation method in this embodiment mainly realizes the simulation of the target model, such as the simulation of the process of applying load to the target model.

[0068] Step 102: Identify multiple geometries in the target model.

[0069] It is understandable that multiple geometric bodies in the target model can be determined based on information such as the arrangement direction and structural form of each part of the target model.

[0070] In some embodiments, multiple geometries can be determined manually, such as by manually dividing the target model into multiple geometries, and each geometries can be distinguished by different fill colors or different fill lines.

[0071] In other embodiments, multiple geometries can also be determined by automatic division, such as dividing according to the arrangement direction of each part of the target model. Regions with different arrangement directions can be identified as different geometries. Alternatively, they can be divided according to the structural form of each part of the target model, with two regions having a clear dividing line as different geometries.

[0072] Figure 2 This shows the multiple geometries obtained when the target model is a certain component. See [link / reference] Figure 2 The multiple geometric shapes obtained by dividing the component are the first geometric shape 201, the second geometric shape 202, the third geometric shape 203, and the fourth geometric shape 204. The first geometric shape 201 is the main body of the component, the second geometric shape 202 is the base of the component, and the third geometric shape 203 and the fourth geometric shape 204 are two protruding pillars of the component.

[0073] Step 103: Determine whether there are points with the same spatial coordinates between at least two of the multiple geometric objects, and obtain the determination result.

[0074] It is understandable that by determining whether there are points with the same spatial coordinates between at least two geometric objects, it is possible to determine whether at least two geometric objects are in contact. For example, if there are points with the same spatial coordinates between two geometric objects, it means that the two geometric objects have an intersection point, and it can be determined that the two geometric objects are in contact.

[0075] Step 104: If the judgment result is that there are points with the same spatial coordinates between at least two geometric objects, then determine the target geometric surface among the multiple geometric objects based on the judgment result.

[0076] In this embodiment, the target geometric surface can be the geometric surface where the spatial coordinates of the points between geometric objects that are in contact are the same. This geometric surface is the contact surface between geometric objects that are in contact.

[0077] Step 105: Use the target geometry as the contact surface of the target model.

[0078] It is understandable that the contact surface of the target model can be the sum of the contact surfaces between various groups of geometric objects that have a contact relationship.

[0079] Step 106: Determine the model simulation parameters based on the contact surface of the target model, and simulate the target model according to the model simulation parameters.

[0080] In this embodiment, taking the load application process as an example, since the load to be applied can be transferred between the contact surfaces of the target model, the model simulation parameters can be accurately determined based on the contact surfaces of the target model. Then, the target model can be accurately simulated based on the model simulation parameters, which improves the accuracy of the model simulation results.

[0081] In one embodiment, determining whether there are points with the same spatial coordinates between at least two of a plurality of geometric objects to obtain a determination result specifically includes:

[0082] Determine the outer perimeter of each geometric solid;

[0083] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the multiple geometric objects, and obtain the determination result.

[0084] Understandably, considering that each geometric object may not be a regular shape, we can first create a corresponding regular outer body for each geometric object. In practical applications, the outer body can be spherical or cubic.

[0085] In some embodiments, determining the outer body corresponding to the geometry can be achieved through the following process:

[0086] First, we can determine the multiple edge points corresponding to the geometry. These multiple edge points can be points on the edge line of the geometry that are located at protrusions or apex corners.

[0087] Then, based on the determined edge points, the corresponding outer body of the geometry is determined. Specifically, the outer body can be a regular-shaped geometry that passes through each edge point, surrounds the current geometry, and has a regular shape. For example... Figure 3 The cube outer body 301 of the first geometric body 201 shown is a cuboid that passes through each edge point of the first geometric body 201 and can surround the first geometric body 201. In practical applications, the shape of the outer body can also be a sphere, a cube or other regular shapes.

[0088] After determining the corresponding outer bodies of each geometric body, the positional relationship between the geometric bodies can be determined based on the positional relationship between the outer bodies. In this embodiment, the presence or absence of points with the same spatial coordinates between the outer bodies corresponding to at least two geometric bodies is used to determine whether the two outer bodies are in contact. If there are points with the same spatial coordinates between the outer bodies corresponding to at least two geometric bodies, it indicates that there is an intersection point between the two outer bodies, meaning that the two outer bodies are in contact, and thus the geometric bodies corresponding to the outer bodies are in contact. If there are no points with the same spatial coordinates between the outer bodies corresponding to at least two geometric bodies, it indicates that there is no intersection point between the two outer bodies, meaning that the two outer bodies are not in contact, and thus the geometric bodies corresponding to the outer bodies are not in contact. This yields the determination result.

[0089] In this embodiment, directly determining whether there are points with the same spatial coordinates between geometric objects requires traversing all the points of the geometric objects. However, by determining whether there are points with the same spatial coordinates between the outer bodies of the geometric objects, only the points on the surface of the outer bodies need to be traversed. Compared to traversing all the points of the geometric objects, the number of points traversed after constructing the outer bodies is greatly reduced, thereby improving the efficiency of the process of determining whether geometric objects are in contact.

[0090] In another embodiment, determining whether there are points with the same spatial coordinates between at least two of the plurality of geometric objects, and obtaining the determination result, includes:

[0091] Determine the outer perimeter of each geometric solid;

[0092] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of a plurality of geometric objects;

[0093] If there are points with the same spatial coordinates between the outer bodies corresponding to at least two geometric objects, then at least two geometric objects are taken as target geometric objects;

[0094] Determine whether there are points with the same spatial coordinates between at least two target geometries, and obtain the determination result.

[0095] This embodiment provides another method for determining whether there are points with the same spatial coordinates between at least two geometric objects. Considering that in the case of directly determining whether geometric objects are in contact based on whether their corresponding outer bodies are in contact, since the outer body is a relatively large geometric object that surrounds the geometric object, directly determining the contact state between geometric objects based on the contact state between the outer bodies may lead to inaccurate judgment.

[0096] To accurately determine whether geometric objects are in contact, we can first determine whether there are points with the same spatial position between the outer bodies corresponding to at least two of the geometric objects. In other words, we first determine whether the outer bodies are in contact. If there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the geometric objects, then the geometric objects corresponding to the outer bodies with contact are taken as target geometric objects. Target geometric objects are then selected by checking whether the outer bodies are in contact. In this embodiment, the target geometric objects are those with a high probability of being in contact. Then, we further determine whether there are points with the same spatial coordinates between the target geometric objects, thus obtaining the final judgment result.

[0097] Since the outer bodies corresponding to the geometric objects do not touch, the geometric objects themselves must not touch. However, if the outer bodies of a geometric object touch, it only indicates that there is a high probability that there is a contact relationship between the geometric objects, but it cannot determine whether there is a contact relationship. By first using the outer bodies to screen the target geometric objects, and then further judging whether the target geometric objects touch, we can balance the efficiency and accuracy of the contact judgment process, making the contact surface of the target model determined later more accurate.

[0098] In one embodiment, the peripheral body includes a first peripheral body and a second peripheral body, wherein the volume of the first peripheral body is larger than the volume of the second peripheral body;

[0099] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of a plurality of geometric objects, including:

[0100] Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the multiple geometric objects, and obtain the first determination result;

[0101] The initial screening geometry is determined based on the first judgment result; wherein, the initial screening geometry is at least two geometrys whose corresponding first outer bodies have the same spatial coordinates;

[0102] Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two initial screening geometries.

[0103] It is understandable that the outer perimeter of a geometry can be determined as one or multiple. In the case of multiple outer perimeters, multiple outer perimeters of different shapes can be determined, and the contact between the outer perimeters of the geometry can be comprehensively determined.

[0104] In this embodiment, each geometry can define two outer bodies, namely a first outer body and a second outer body. The volume of the first outer body is larger than the volume of the second outer body. For example, the first outer body can be a sphere that passes through the edge point of the geometry and can surround the geometry, and the second outer body can be a cube that passes through the edge point of the geometry and can surround the geometry. Usually, it is a cuboid. The arrangement direction of the cuboid is not restricted by the direction of the coordinate system where the current target model is located.

[0105] In practical applications, for the outer body of a sphere, we can first calculate the mean of the coordinate values ​​of the vertices (i.e., edge points) of all elements in the basic geometric element set of the current geometry. Based on this mean, we can determine the center of the sphere. Then, we can determine the radius of the sphere by the distance between the center of the sphere and the point determined by the three largest coordinate values. Thus, we can determine the sphere corresponding to the geometry based on the center and the radius.

[0106] Figure 3 The spherical outer body 302 of the first geometric body 201 is shown. Since the volume of the spherical outer body 302 is significantly larger than that of the cubic outer body 301, therefore... Figure 3 The spherical outer body 302 can be used as the first outer body, and the cubic outer body 301 can be used as the second outer body.

[0107] When determining whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two geometric objects, we can first determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two geometric objects. That is, we can first determine whether the first outer bodies with larger volumes are in contact. Based on the results of the first determination, we can initially screen out the geometric objects. It can be understood that the initial screening geometric objects are those geometric objects with points with the same spatial coordinates between the first outer bodies, that is, geometric objects with contact relationships between the first outer bodies.

[0108] Next, it is further determined whether there are points with the same spatial coordinates between the second outer bodies corresponding to each of the initial screening geometric objects. This allows for further determination of whether the second outer bodies corresponding to the initial screening geometric objects are in contact. If there are points with the same spatial coordinates between the second outer bodies corresponding to the initial screening geometric objects, it indicates that there are intersection points between the second outer bodies and that there is a contact relationship between the second outer bodies. This means that at least two geometric objects have points with the same spatial coordinates between their corresponding outer bodies, i.e., at least two geometric objects are in contact.

[0109] If there are no points with the same spatial coordinates between the first outer bodies corresponding to at least two geometric shapes, it can be concluded that there are no intersection points between the first outer bodies of at least two geometric shapes, and the first outer bodies do not contact each other. Alternatively, if there are no points with the same spatial coordinates between the second outer bodies corresponding to the initial screening geometric shapes, it can be concluded that there are no intersection points between the second outer bodies corresponding to the initial screening geometric shapes, and the second outer bodies do not contact each other. Whether the first outer bodies do not contact each other or the second outer bodies do not contact each other, it can be determined that there are no points with the same spatial coordinates between the outer bodies corresponding to at least two geometric shapes, that is, the outer bodies corresponding to at least two geometric shapes do not contact each other.

[0110] Understandably, by first using the contact relationship between the first outermost bodies of the geometry for initial screening, and then judging the contact relationship between the second outermost bodies of the initially screened geometry, the final judgment result can be obtained more conveniently, making the judgment process of whether the outermost bodies of the geometry are in contact more accurate and efficient.

[0111] In another embodiment, the peripheral body includes a first peripheral body and a second peripheral body, wherein the volume of the first peripheral body is larger than the volume of the second peripheral body;

[0112] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of a plurality of geometric objects, including:

[0113] Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of a plurality of geometric objects;

[0114] Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the multiple geometric objects.

[0115] In the case where the outer body includes a first outer body and a second outer body, it is also possible to determine whether there are points with the same spatial coordinates between the first outer body and the second outer body corresponding to at least two of the multiple geometric bodies. The final judgment result is determined by comprehensively considering the judgment results obtained from the above two judgment steps.

[0116] In this embodiment, if it is determined that there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the multiple geometric bodies, and there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the multiple geometric bodies, it indicates that there are intersection points between the first outer bodies corresponding to at least two of the geometric bodies, and the first outer bodies are in contact. If there are intersection points between the second outer bodies corresponding to at least two of the geometric bodies, and the second outer bodies are also in contact, it can be determined that there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the geometric bodies, that is, the outer bodies corresponding to at least two of the geometric bodies are in contact.

[0117] If it is determined that there are no points with the same spatial coordinates between the first outer bodies corresponding to at least two of the multiple geometric objects, and / or, there are no points with the same spatial coordinates between the second outer bodies corresponding to at least two of the multiple geometric objects, that is, if at least one of the above two judgment steps results in a negative result, then it can be determined that there are no points with the same spatial coordinates between the outer bodies corresponding to at least two of the geometric objects, i.e., the outer bodies corresponding to at least two of the geometric objects do not contact each other.

[0118] It is understandable that by simultaneously judging whether the first and second outermost bodies of at least two geometries are in contact, and then comprehensively determining the final judgment result of whether the outermost bodies are in contact based on the two judgment results, it is possible to achieve efficient judgment of whether the outermost bodies of geometries are in contact. This method ensures the accuracy of the judgment result while also taking into account the efficiency of the judgment process.

[0119] In practical applications, Boolean operations can be used to calculate intersection points (i.e., points with the same spatial coordinates). The method of determining whether geometric objects are in contact and whether peripheral objects are in contact can be reasonably selected according to specific simulation requirements.

[0120] In one embodiment, determining the target geometric surface among multiple geometric bodies based on the judgment result specifically includes:

[0121] If the judgment result is that there are points with the same spatial coordinates between at least two geometric objects, then determine the geometric surface where the points with the same spatial coordinates are located;

[0122] The geometric surface containing points with the same spatial coordinates is taken as the target geometric surface.

[0123] It is understandable that the target geometric surface is located on at least two geometric bodies that are in contact. If there are points with the same spatial coordinates between at least two geometric bodies, it means that at least two geometric bodies are in contact. Further determine the geometric surface where the points with the same spatial coordinates are located, that is, the plane where the intersection point is located, and the plane where the intersection point is located can be taken as the target geometric surface.

[0124] In one embodiment, determining the model simulation parameters based on the contact surface of the target model specifically includes:

[0125] Based on the contact surface of the target model, establish the contact relationship between at least two geometric bodies in the target model that are associated with the contact surface;

[0126] The simulation parameters of the model are determined based on the contact relationship between at least two geometric bodies.

[0127] It is understandable that the contact relationship between at least two geometries associated with the contact surface in the target model can be represented in the form of a pair of geometries, such as... Figure 2 If there is a contact relationship between the first geometric shape 201 and the second geometric shape 202, it can be represented as {first geometric shape 201, second geometric shape 202}. Therefore, for... Figure 2 The target model shown can be represented by five pairs of geometric bodies as the contact relationship between at least two geometric bodies associated with the contact surface: {first geometric body 201, second geometric body 202}, {first geometric body 201, third geometric body 203}, {first geometric body 201, fourth geometric body 204}, {second geometric body 202, third geometric body 203}, and {second geometric body 202, fourth geometric body 204}.

[0128] Before simulating the target model, the contact relationship between at least two geometries associated with the contact surface in the target model and the determined contact surface can be input into the simulation system as part of the model simulation parameters. In practical applications, the model simulation parameters can also include other parameters related to the simulation. For example, in a load application simulation scenario, the model simulation parameters can also include the amount of load to be applied, the load application location, the structural parameters of the target model, and other parameters.

[0129] In this way, the subsequent simulation process can be realized based on the input model simulation parameters. For example, in the simulation process of simulating the application of load, since the model simulation parameters include the contacting geometry and contact surface, the load application effect will be accurately transferred between the contacting geometry, thereby effectively improving the accuracy of the simulation results of the target model.

[0130] Corresponding to the aforementioned application function implementation method embodiments, this application also provides a simulation device, an electronic device, and corresponding embodiments.

[0131] Figure 4 This is a schematic diagram of the simulation device shown in the embodiments of this application.

[0132] See Figure 4 The simulation device provided in this application embodiment specifically includes:

[0133] The acquisition module 401 is used to acquire the target model in the simulation interface of the simulation system;

[0134] Module 402 is used to determine multiple geometries in the target model;

[0135] The judgment module 403 is used to determine whether there are points with the same spatial coordinates between at least two geometric objects among multiple geometric objects, and to obtain the judgment result;

[0136] The first processing module 404 is used to determine the target geometric surface among multiple geometric bodies based on the judgment result when the judgment result is that there are points with the same spatial coordinates between at least two geometric bodies.

[0137] The second processing module 405 is used to use the target geometric surface as the contact surface of the target model;

[0138] The simulation module 406 is used to determine the model simulation parameters based on the contact surface of the target model, and to simulate the target model based on the model simulation parameters.

[0139] In one embodiment, the determination module 403 is specifically used for:

[0140] Determine the outer perimeter of each geometric solid;

[0141] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the multiple geometric objects, and obtain the determination result.

[0142] In another embodiment, the determination module 403 is specifically used for:

[0143] Determine the outer perimeter of each geometric solid;

[0144] Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of a plurality of geometric objects;

[0145] If there are points with the same spatial coordinates between the outer bodies corresponding to at least two geometric objects, then at least two geometric objects are taken as target geometric objects;

[0146] Determine whether there are points with the same spatial coordinates between at least two target geometries, and obtain the determination result.

[0147] In one embodiment, the peripheral body includes a first peripheral body and a second peripheral body, wherein the volume of the first peripheral body is larger than the volume of the second peripheral body;

[0148] The judgment module 403 specifically determines whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the multiple geometries through the following process:

[0149] Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the multiple geometric objects, and obtain the first determination result;

[0150] The initial screening geometry is determined based on the first judgment result; wherein, the initial screening geometry is at least two geometrys whose corresponding first outer bodies have the same spatial coordinates;

[0151] Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two initial screening geometries.

[0152] In another embodiment, the peripheral body includes a first peripheral body and a second peripheral body, wherein the volume of the first peripheral body is larger than the volume of the second peripheral body;

[0153] The judgment module 403 specifically determines whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the multiple geometries through the following process:

[0154] Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of a plurality of geometric objects;

[0155] Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the multiple geometric objects.

[0156] In one embodiment, the first processing module 404 specifically determines the target geometric surface among multiple geometric bodies based on the judgment result through the following process:

[0157] If the judgment result is that there are points with the same spatial coordinates between at least two geometric objects, then determine the geometric surface where the points with the same spatial coordinates are located;

[0158] The geometric surface containing points with the same spatial coordinates is taken as the target geometric surface.

[0159] In one embodiment, the simulation module 406 specifically determines the model simulation parameters based on the contact surface of the target model through the following process:

[0160] Based on the contact surface of the target model, establish the contact relationship between at least two geometric bodies in the target model that are associated with the contact surface;

[0161] The simulation parameters of the model are determined based on the contact relationship between at least two geometric bodies.

[0162] In summary, the simulation device provided in this application can accurately simulate the target model by determining the contact surface of the target model through the contact state between the geometric bodies in the target model, and then realizing the model simulation parameters determined by the contact surface. For example, the model simulation parameters determined by the contact surface can accurately transmit the load application effect between the geometric surfaces in the target model, thereby improving the accuracy of the target model simulation process.

[0163] Figure 5 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application.

[0164] See Figure 5 The electronic device 500 includes a memory 510 and a processor 520.

[0165] The processor 520 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0166] Memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. ROM may store static data or instructions required by the processor 520 or other modules of the computer. Permanent storage devices may be read-write storage devices. Permanent storage devices may be non-volatile storage devices that retain stored instructions and data even when the computer is powered off. In some embodiments, permanent storage devices use mass storage devices (e.g., magnetic or optical discs, flash memory) as permanent storage devices. In other embodiments, permanent storage devices may be removable storage devices (e.g., floppy disks, optical drives). System memory may be a read-write storage device or a volatile read-write storage device, such as dynamic random access memory. System memory may store some or all of the instructions and data required by the processor during operation.

[0167] Furthermore, memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (e.g., DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical discs may also be employed. In some embodiments, memory 510 may include removable storage devices that are readable and / or writable, such as laser discs (CDs), read-only digital versatile optical discs (e.g., DVD-ROMs, dual-layer DVD-ROMs), read-only Blu-ray discs, ultra-high density optical discs, flash memory cards (e.g., SD cards, mini SD cards, Micro-SD cards, etc.), magnetic floppy disks, etc. Computer-readable storage media do not contain carrier waves or transient electronic signals transmitted wirelessly or via wired connections.

[0168] The memory 510 stores executable code, which, when processed by the processor 520, can cause the processor 520 to execute part or all of the methods described above.

[0169] Furthermore, the method according to this application can also be implemented as a computer program or computer program product, which includes computer program code instructions for performing some or all of the steps in the method described above.

[0170] Alternatively, this application may be implemented as a computer-readable storage medium (or a non-transitory machine-readable storage medium or a machine-readable storage medium) storing executable code (or computer program or computer instruction code) thereon, which, when executed by a processor of an electronic device (or server, etc.), causes the processor to perform part or all of the steps of the methods described above according to this application.

[0171] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A simulation method, characterized in that, include: Obtain the target model from the simulation interface of the simulation system; Identify multiple geometric shapes in the target model; Determine the corresponding outer body for each of the aforementioned geometric shapes; Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies; If there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the geometric objects, then at least two of the geometric objects are taken as target geometric objects; wherein, the target geometric objects are geometric objects with contact relationships selected by the outer bodies; Determine whether there are points with the same spatial coordinates between at least two of the target geometries, and obtain the determination result; If the judgment result is that there are points with the same spatial coordinates between at least two of the target geometries, then the target geometric surface among the plurality of geometries is determined based on the judgment result; The target geometric surface is used as the contact surface of the target model; The model simulation parameters are determined based on the contact surface of the target model, and the target model is simulated according to the model simulation parameters.

2. The simulation method according to claim 1, characterized in that, The outer body includes a first outer body and a second outer body, wherein the volume of the first outer body is larger than the volume of the second outer body; Determining whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies includes: Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the plurality of geometric bodies, and obtain a first determination result; The initial screening geometry is determined based on the first judgment result; wherein, the initial screening geometry is at least two geometry that have points with the same spatial coordinates between their respective first peripheral bodies; Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the initial screening geometries.

3. The simulation method according to claim 1, characterized in that, The outer body includes a first outer body and a second outer body, wherein the volume of the first outer body is larger than the volume of the second outer body; Determining whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies includes: Determine whether there are points with the same spatial coordinates between the first outer bodies corresponding to at least two of the plurality of geometric bodies; Determine whether there are points with the same spatial coordinates between the second outer bodies corresponding to at least two of the plurality of geometric bodies.

4. The simulation method according to claim 1, characterized in that, Determining the target geometric surface among the plurality of geometric bodies based on the judgment result includes: If the determination result is that there are points with the same spatial coordinates between at least two of the geometric bodies, then the geometric surface where the points with the same spatial coordinates are located is determined; The geometric surface containing points with the same spatial coordinates is taken as the target geometric surface.

5. The simulation method according to claim 1, characterized in that, Based on the contact surface of the target model, the simulation parameters of the model are determined, including: Based on the contact surface of the target model, establish the contact relationship between at least two geometric bodies in the target model that are associated with the contact surface; The simulation parameters of the model are determined based on the contact relationship between the at least two geometric bodies.

6. A simulation device, characterized in that, include: The acquisition module is used to acquire the target model in the simulation interface of the simulation system. The determination module is used to determine multiple geometric shapes in the target model; The determination module is used to determine the corresponding peripheral body for each of the aforementioned geometric shapes; Determine whether there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the plurality of geometric bodies; If there are points with the same spatial coordinates between the outer bodies corresponding to at least two of the geometric objects, then at least two of the geometric objects are taken as target geometric objects; wherein, the target geometric objects are geometric objects with contact relationships selected by the outer bodies; Determine whether there are points with the same spatial coordinates between at least two of the target geometries, and obtain the determination result; The first processing module is used to determine the target geometric surface among the plurality of geometric bodies based on the judgment result when the judgment result is that there are points with the same spatial coordinates between at least two of the target geometric bodies. The second processing module is used to use the target geometric surface as the contact surface of the target model; The simulation module is used to determine the model simulation parameters based on the contact surface of the target model, and to simulate the target model according to the model simulation parameters.

7. An electronic device, characterized in that, include: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, It stores executable code that, when executed by a processor of an electronic device, causes the processor to perform the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Component crossing risk identification method, device, equipment and medium

    CN114707880A