Method for processing modeling data, electronic device, and computer-readable storage medium
By using functions to describe parameter dependencies in multi-body system modeling, and automatically calculate the value of the second type of parameter, the inefficiency problem caused by the user's need to input a large number of parameters is solved, and efficient modeling is achieved.
Patent Information
- Application Number
- CN202510122600.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-01-26
AI Technical Summary
In multi-body system modeling, the prior art requires users to input a large number of parameter values, resulting in inefficient modeling.
Through the function describing the dependence between the first type parameter and the second type parameter, the user only needs to configure the value of the first type parameter, and the system automatically calculates the value of the second type parameter.
The number of parameters manually configured by users is reduced and the modeling efficiency is improved.
Smart Images

Figure CN119558104B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of multi-body system modeling, and particularly relates to a method for processing modeling data, an electronic device, and a computer-readable storage medium. Background Art
[0002] A multi-body system is a mechanical system composed of multiple interacting rigid or flexible bodies. When performing multi-body dynamics modeling, it is usually necessary to input a parameterized file of the multi-body system into modeling software, and the modeling software constructs a system model of the multi-body system based on this parameterized file, so as to analyze the dynamic characteristics of the multi-body system.
[0003] In the related art, since the structure of the multi-body system is usually very complex and the number of parameters required in the parameterized file of the multi-body system is also very large, when constructing the parameterized file for the multi-body system, a large number of parameter values need to be input by the user, which easily reduces the modeling efficiency. Summary of the Invention
[0004] Embodiments of this application provide a method for processing modeling data, an electronic device, and a computer-readable storage medium, aiming to solve the problem in the related art that when constructing a parameterized file for a multi-body system, a large number of parameter values need to be input by the user, which easily reduces the modeling efficiency.
[0005] In a first aspect, embodiments of this application provide a method for processing modeling data, the method includes: obtaining a first input file, where the first input file includes an object area and a marker point area. The object area includes multiple object information, and each object information is used to describe a first object, where the first object is any object in the multi-body system to be modeled. The object information includes a first index, and the first index is used to indicate a first marker point, where the first marker point is a marker point included in the first object. The marker point area includes multiple marker point information, and each marker point information is used to describe a second marker point, where the second marker point is any marker point in the multi-body system. The marker point information includes marker point parameters of the second marker point. The marker point parameters are first type parameters or second type parameters, where the value of the second type parameter is determined by a first function and the first type parameter, and the first function is used to describe the relative relationship between the first type parameter and the second type parameter, and the first type parameter is a parameter with a user-configured value. Traverse each marker point information in the marker point area, and determine the value of the marker point parameter in the accessed marker point information based on the value of the first type parameter and the first function. Based on the values of each marker point parameter and the objects and marker points described in the first input file, establish a simulation model corresponding to the multi-body system.
[0006] In a second aspect, embodiments of this application provide a device for processing modeling data, the device includes:
[0007] A file acquisition unit for acquiring a first input file, the first input file including an object area and a marker point area; the object area includes a plurality of object information, each object information being used to describe a first object, the first object being any object in a multi-body system to be modeled; the object information includes a first index, the first index being used to indicate a first marker point, the first marker point being a marker point included in the first object; the marker point area includes a plurality of marker point information, each marker point information being used to describe a second marker point, the second marker point being any marker point in the multi-body system; the marker point information includes marker point parameters of the second marker point; the marker point parameters are first type parameters or second type parameters, wherein the value of the second type parameter is determined by a first function and the first type parameter, the first function being used to describe the relative relationship between the first type parameter and the second type parameter, and the first type parameter being a parameter with a user-configured value;
[0008] A data access unit for traversing each marker point information in the marker point area and determining the value of the marker point parameter in the accessed marker point information based on the value of the first type parameter and the first function;
[0009] A model building unit for building a simulation model corresponding to the multi-body system based on the values of the marker point parameters and the objects and marker points described in the first input file.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned modeling data processing methods are implemented.
[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps of any one of the above-mentioned modeling data processing methods are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device is enabled to execute any one of the above-mentioned modeling data processing methods.
[0013] The beneficial effects of the embodiments of the present application compared with the related technologies are as follows: In the process of constructing a parameterized file of a multi-body system, by using a function to describe the dependence relationship between the first type parameter and the second type parameter, it is possible to obtain the values of both the first type parameter and the second type parameter when the user only needs to configure the value of the first type parameter, which helps to reduce the number of parameters that need to be manually configured by the user, thereby improving the modeling efficiency.
[0014] It should be understood that for the beneficial effects of the above second to fifth aspects, reference may be made to the relevant descriptions in the above first aspect, which will not be elaborated herein. Brief Description of the Drawings
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the related art descriptions. Obviously, the drawings in the following descriptions are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0016] Figure 1 is a schematic flowchart of a method for processing modeling data provided by an embodiment of the present application;
[0017] Figure 2 is a schematic diagram of a first input file provided by an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of the process of determining the access order of each marker point information based on a first topology map provided by an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of the process of establishing a simulation model of a multi-body system provided by an embodiment of the present application;
[0020] Figure 5 is a schematic flowchart of another method for processing modeling data provided by an embodiment of the present application;
[0021] Figure 6 is a schematic structural diagram of a device for processing modeling data provided by an embodiment of the present application;
[0022] Figure 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments
[0023] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are proposed to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0024] Some concepts that may be involved in the embodiments of the present application are described as follows:
[0025] (1) Multiple: Unless otherwise specified, in the embodiments of the present application, multiple means two or more.
[0026] (2) Multi - Body Dynamics (MBD): In the embodiments of this application, multi - body dynamics mainly studies the dynamic behavior of multi - body systems. Among them, a multi - body system is a mechanical system composed of multiple interacting rigid or flexible bodies. Multi - body dynamics can analyze the interaction relationships between multiple objects. It is widely used in fields such as mechanical engineering, robotics, aerospace, and vehicle engineering.
[0027] In practice, multi - body dynamics helps analyze and optimize the dynamic performance of complex systems by establishing a dynamic model of the interactions between multiple objects. With the development of computing technology and numerical solution methods, multi - body dynamics has become an important tool for engineering design and control.
[0028] (3) Vehicle Dynamics: In the embodiments of this application, vehicle dynamics belongs to multi - body dynamics.
[0029] Vehicle dynamics mainly studies and analyzes the motion behavior, stability, handling, and comfort characteristics of vehicles under different driving conditions. Vehicle dynamics combines methods such as mechanics, control theory, mathematical modeling, and computer simulation to describe and optimize the overall performance of vehicles, ensuring safety and comfort under various working conditions.
[0030] Vehicle dynamics modeling is an important part of vehicle dynamics. Vehicle dynamics modeling provides theoretical support for vehicle design, performance prediction, optimization, control system design, safety analysis, etc. Through accurate modeling, potential problems can be discovered at the initial stage of development, reducing development costs and improving the safety, handling, comfort, and economy of vehicles, thus enhancing the overall driving experience and vehicle performance.
[0031] (4) Body, Marker, and Joint: In multi - body dynamics modeling, the body is the main entity, the marker is used to describe the position and orientation of the body and as a reference for joint connections, and the joint is used to connect bodies and restrict their relative motion and transmit forces and torques. The three cooperate with each other to form a complete multi - body dynamics model.
[0032] Among them, the body is the main entity that bears motion and force and is the basic modeling unit. For example, in an automotive multi - body dynamics model, the frame, wheels, etc. can all be regarded as bodies. Each body has physical properties such as mass, center - of - mass position, and inertia tensor, which determine the change in the motion state of the body when subjected to forces and torques. For example, according to Newton's second law, a force acting on a body with mass will cause the body to accelerate.
[0033] Among them, the marked points are mainly used for positioning and attitude description. By tracking the positions and directions of the marked points, the position and attitude of an object in space can be determined. For example, in a simple double pendulum system, marked points can be defined at the endpoints of the pendulum rods, and the motion of the pendulum rods can be described by the coordinate changes of these marked points. The marked points can be geometric points defined on the surface or inside an object, used to describe the position, attitude, and relative position relationship between objects. The marked points can be a point on an actual physical structure or a virtual point defined for convenience in modeling. For example, in the multi-body dynamics model of a robotic arm, a marked point can be defined on the axis of each joint. Additionally, the marked points are also important reference elements for defining joints and constraints. For example, when defining a spherical hinge joint between two objects, joint constraints are usually established centered on specific marked points on the two objects, and the relative positions and motion relationships of these marked points determine the motion characteristics of the joint.
[0034] Among them, a joint is a constraint used to connect two or more objects, which restricts the relative degrees of freedom of motion between the objects. There are various types of joints, such as rotational joints (which can only rotate about a certain axis), translational joints (which can only move along a certain direction), spherical hinge joints (which can rotate in any direction about a point in space), etc. By using joints to restrict the relative motion between objects, the motion of the multi-body system can conform to the actual physical situation. For example, in a robotic arm model, the rotational joint between adjacent linkages restricts the linkages to only rotate about the joint axis, and this constraint makes the motion of the robotic arm deterministic.
[0035] (5) Solver: In multi-body dynamics modeling, a solver is a software tool or algorithm module used to solve the system's equations of motion. The main task of the solver is to find the changes in state variables such as the positions, velocities, and accelerations of each object in the system over a period of time given the initial conditions of the system (such as initial position, initial velocity, etc.) and external excitations (such as forces, torques, etc.). For example, for a simple double pendulum system, its equations of motion can be obtained through the Lagrangian equation. The solver will take this equation of motion as input, combined with conditions such as the initial angles and angular velocities of the double pendulum, and calculate the changes in the angles and angular velocities of the double pendulum at each subsequent moment.
[0036] There are various types of solvers, such as ordinary differential equation solvers, partial differential equation solvers, etc. The solvers used in different scenarios can be different.
[0037] The performance of the solver directly affects the accuracy of the calculation results of the multi-body dynamics model. A good solver can accurately solve the motion equations while ensuring the calculation efficiency, so as to obtain results that conform to the actual physical phenomena. For example, in the calculation of spacecraft orbits, an accurate solver can accurately predict the orbit changes of the spacecraft under various gravitational and thrust forces, which is crucial for the success of space missions.
[0038] A multi-body system is a mechanical system composed of multiple interacting rigid or flexible bodies. When modeling multi-body dynamics, it is usually necessary to input the parameterization file of the multi-body system into the modeling software, and the modeling software constructs the system model of the multi-body system based on this parameterization file, so as to analyze the dynamic characteristics of the multi-body system. Among them, the parameterization file of the multi-body system is a file used to describe the characteristics and attributes of the multi-body system. The parameterization file can include geometric parameters, physical parameters, connection parameters, material parameters, etc. of each object in the multi-body system.
[0039] Among them, the geometric parameters of the object determine the geometric shape and spatial layout of the object. The geometric parameters can include the shape, size, position, etc. of the object. For example, if the multi-body system is a vehicle, then the geometric parameters for the vehicle body can include the length, width, height, etc. of the vehicle body, and the geometric parameters for the wheels can include the radius, wheelbase, etc. of the wheels. The physical parameters of the object can include the mass, center of mass position, moment of inertia, etc. of the object. The physical parameters of the object have an important impact on the dynamic behavior of the system. For example, for a vehicle, the mass distribution of each object in the vehicle will affect the acceleration, braking, and steering performance of the vehicle. The connection parameters are the parameters describing the connection relationship between objects, such as the type of hinge (rotational hinge, translational hinge, etc.), the position of the connection point, the stiffness and damping of the connection, etc. The connection parameters determine the relative motion constraints and the force transmission mode between objects. The material parameters are used to indicate the material properties of the objects that make up the object. The material parameters can include elastic modulus, Poisson's ratio, density, etc. The material parameters are particularly important for the modeling of flexible bodies and will affect their deformation and stress distribution.
[0040] In the related art, due to the usually very complex structure of the multi-body system, the number of parameters required in the parameterization file of the multi-body system is also very large, resulting in a large number of parameter values that need to be input by the user when constructing the parameterization file for the multi-body system, which easily reduces the modeling efficiency.
[0041] In view of the above technical problems existing in the related art, the embodiments of the present application provide a method for processing modeling data. In the process of constructing a parametric file of a multi-body system, by describing the dependency relationship between the first type of parameters and the second type of parameters through functions, it can be realized that when the user only needs to configure the values of the first type of parameters, the values of both the first type of parameters and the second type of parameters can be obtained simultaneously, which helps to reduce the number of parameters that need to be manually configured by the user, thereby improving the modeling efficiency.
[0042] Among them, both the first type of parameters and the second type of parameters are parameters used to construct the model of the multi-body system. There is a stable relative relationship (or called a dependency relationship) between the object described by the first type of parameters and the object described by the second type of parameters. As an example, the object described by the first type of parameters can be the center of the left front tire of a vehicle, and the object described by the second type of parameters can be the center of the right front tire of the vehicle. Since the left front tire and the right front tire on the same vehicle usually have a stable relative relationship, when the center position of the left front tire is known, the center position of the right front tire can be obtained through the relative relationship between the left front tire and the right front tire.
[0043] Optionally, the object described by the first type of parameters is usually a reference object on the multi-body system. Taking the multi-body system as a vehicle as an example, the first type of parameters may include the center point coordinates of the vehicle.
[0044] It can be understood that since there is a stable relative relationship between most objects on the same multi-body system, the number of the first type of parameters is very small. That is to say, the solution of the present application can greatly reduce the number of parameters that need to be manually configured by the user, thereby improving the modeling efficiency.
[0045] The following will be combined with Figure 1 to further elaborate on the method for processing modeling data provided by the embodiments of the present application. As Figure 1 shown, the method for processing modeling data may include the following steps 101 to 103.
[0046] Step 101, the electronic device obtains a first input file.
[0047] Among them, the first input file is a parametric file of the multi-body system to be modeled.
[0048] Among them, the first input file includes an object region and a marker point region. The object region includes a plurality of object information, and each object information is used to describe a first object, where the first object is any object in the multi-body system to be modeled. The object information includes a first index, and the first index is used to indicate a first marker point, where the first marker point is a marker point included in the first object, and the number of first marker points can be one or more. In practice, the first index is usually the identification information of the marker point. As an example, the first index can be M1, or 001, or #01, which is used to indicate marker point 1.
[0049] The marker point region includes a plurality of marker point information, and each marker point information is used to describe a second marker point, where the second marker point is any marker point in the multi-body system. The marker point information includes the marker point parameters of the second marker point.
[0050] It can be understood that the multi-body system has a plurality of objects, and each object in the multi-body system can correspond to an object information in the object region. Each marker point in the multi-body system can correspond to a marker point information in the marker point region. Each marker point can be included in one object or in multiple objects.
[0051] Next, in combination with Figure 2 elaborate on the structure of the first input file (or called the parameterization file). Among them, Figure 2 is a schematic diagram of the first input file provided by the embodiment of the present application.
[0052] As Figure 2 shown, the first input file may include an object region 201 and a marker point region 202. The object region 201 includes a plurality of object information. For example, it includes object information 11 and object information 12. Among them, object information 11 is used to describe object A, and the object information 11 includes an index, which is used to indicate marker point 1 and marker point 2 in object A. Object information 12 is used to describe object B, and the object information 12 includes an index, which is used to indicate marker point 2 in object B. From Figure 2 it can be found that an object can contain multiple marker points, and the same marker point can be included in different objects.
[0053] Figure 2 Among them, the marker point region 202 includes a plurality of marker point information. For example, it includes marker point information 21 and marker point information 22. Among them, both marker point information 21 and marker point information 22 include corresponding marker point parameters, and the marker point parameters can describe the attributes or characteristics of the marker point. For example, the marker point parameters can be the coordinates of the marker point. As Figure 2 shown, marker point information 21 can describe marker point 1, and marker point information 22 can describe marker point 2. Among them, marker point 1 and marker point 2 are marker points in the multi-body system.
[0054] It can be understood that the content included in the above-listed first input file is only an example and does not limit all the content of the first input file. In actual applications, the first input file may also include other content for describing the characteristics and attributes of the multi-body system.
[0055] Optionally, the marker point parameter is a first type parameter or a second type parameter. Among them, the value of the second type parameter is determined by a first function and the first type parameter. The first function is used to describe the relative relationship between the first type parameter and the second type parameter. The first type parameter is a parameter with a user-configured value, that is to say, only the first type parameter needs to be input with a parameter value by the user.
[0056] In some application scenarios, the first function can reflect the relative position relationship between the marker points. In other application scenarios, the first function can also reflect the relative motion relationship between the marker points. It can be understood that the embodiments of the present application do not specifically limit the type of the relative relationship between the marker points reflected by the first function.
[0057] Here, since the first type parameter is a parameter with a user-configured value and the first function describes the relative relationship between the first type parameter and the second type parameter, therefore, the value of the second type parameter can be calculated by using the value of the first type parameter and the first function. As an example, if parameter 1 is the first type parameter, the value of parameter 1 is the three-dimensional coordinate value (0, 2, 1), and the second type parameter related to this parameter 1 is parameter 2, and the first function is relative[parameter 1, (0, 0, 1)], and the meaning represented by the first function is to offset (0, 0, 1) based on the coordinate of parameter 1. In this case, the value of parameter 2 is (0, 2, 2).
[0058] It should be noted that the value of the parameter can be a numerical value or an expression. For example, the value of parameter b can be a + 3.
[0059] Optionally, the value of the first type parameter can be a matrix, a vector, or a single numerical value.
[0060] Optionally, when the value of the first type of parameter is a vector or a matrix, the value of the second type of parameter can be determined by the first function and the value of the first type of parameter, or can be determined by a certain dimension of the first function and the value of the first type of parameter. For example, if parameter 1 is the first type of parameter, the value of this parameter 1 is the vector [1, 2, 3], and the second type of parameter having a relative relationship with this parameter 1 is parameter 2. In this case, the value of parameter 2 can be obtained based on the first function and the first data, where the first data can be the vector [1, 2, 3], or can be the data of a certain dimension in the vector [1, 2, 3], for example, the data 3 of the third dimension.
[0061] In step 101 above, the electronic device can obtain the first input file from the local, or can obtain the first input file from other electronic devices connected by communication. Optionally, the electronic device can receive the first input file input by the user. In this case, the first input file is a parameterized file manually edited and input by the user.
[0062] In some optional implementation manners of the embodiments of the present application, in step 101 above, the electronic device can also obtain the first input file in the following manner: The electronic device obtains the value of the target parameter input by the user. Then, according to the value of the target parameter and the pre-stored parameterized file, the first input file is generated. Wherein, the target parameter is the first type of parameter.
[0063] In the embodiments of the present application, a pre-edited parameterized file (or called an initial parameterized file) can be pre-stored in the electronic device. The user only needs to input the value of the target parameter, and then the value of the target parameter can be combined with the initial parameterized file to obtain the first input file.
[0064] It should be noted that since in the process of modeling a multi-body system, it is usually necessary to model the multi-body system under different conditions to obtain the characteristics of the multi-body system under different conditions. And since when modeling the multi-body system under different conditions, the relationship between each object in the multi-body system and the marked points on the object usually does not change, that is to say, the relative relationship between many elements in the parameterized file for the multi-body system is actually unchanged. Therefore, the relationship between the first type of parameter (target parameter) and the second type of parameter is described in the form of the first function in the initialized file, and the initial parameterized file can be reused later. Specifically, only the value of the first type of parameter can be adjusted each time modeling is performed. In this way, when modeling the multi-body system under various conditions, only a small number of parameter values need to be adjusted, which helps to improve the modeling efficiency.
[0065] Step 102, the electronic device traverses each piece of marker point information in the marker point area, and determines the value of the marker point parameter in the accessed marker point information based on the value of the first type of parameter and the first function.
[0066] Here, the electronic device can traverse each piece of marker point information in the marker point area.
[0067] If the marker point parameter in the accessed marker point information is the first type of parameter, the marker point parameter in this marker point information has been configured with a value. As an example, the centroid QG1 of marker point 1 can be (0, 0, 1), where the centroid of marker point 1 is the marker point parameter of marker point 1.
[0068] If the marker point parameter in the accessed marker point information is the second type of parameter, that is, the value of this marker point parameter has a corresponding relationship with the first type of parameter with a known value. In this case, the electronic device can calculate the value of this marker point parameter based on this corresponding relationship and the value of the first type of parameter. As an example, the centroid QG2 of marker point 2 can be relative(M1, (1, 1, 1)), where M1 is the marker point parameter of marker point 1, relative is a function representing position offset (or called the first function), and (1, 1, 1) represents the position offset amount. In this case, the centroid QG2 of marker point 2 can be calculated as (1, 1, 2).
[0069] It can be understood that the first function can be used to define the relative position relationship or the relative size relationship. In some scenarios, the function name of the first function can be relative, and in some other scenarios, the function name of the first function can also be in other forms. The embodiments of the present application do not make specific limitations on the relative relationship defined by the first function, do not make specific limitations on the types of the first function, and do not make specific limitations on the function name of the first function.
[0070] In some optional implementation manners of the embodiments of the present application, in the above step 102, the process of the electronic device traversing each piece of marker point information in the marker point area may include: First, the electronic device determines the first access order of each piece of marker point information according to the marker point parameters corresponding to each piece of marker point information. Then, the electronic device traverses each piece of marker point information in the marker point area according to the first access order.
[0071] Wherein, the first access order is the access order of the marker point information in the marker point area.
[0072] Here, each piece of fiducial point information in the fiducial point area includes fiducial point parameters. The electronic device can determine the calculation order of the fiducial point parameters in combination with the dependency relationships between the fiducial point parameters, thereby determining the access order of the fiducial point information. Among them, the calculation order of the fiducial point parameters is consistent with the access order of the fiducial point information where the fiducial point parameter is located.
[0073] For example, if the value of fiducial point parameter a in fiducial point information 1 is b + 3; the value of fiducial point parameter b in fiducial point information 2 has been configured; the value of fiducial point parameter c in fiducial point information 3 is a + b, where fiducial point parameter b is a first-type parameter, and fiducial point parameters a and c are second-type parameters. In this case, the value of fiducial point parameter a depends on fiducial point parameter b, and the value of fiducial point parameter c depends on fiducial point parameters a and b. In this case, in order to ensure that the values of each parameter can be obtained smoothly, it is necessary to first obtain the value of b, then obtain the value of a, and finally obtain the value of c. At this time, the access order of each piece of fiducial point information from front to back is: fiducial point information 2, fiducial point information 1, fiducial point information 3.
[0074] It should be noted that in the related art, traversing each area (such as the object area, fiducial point area) in the parameterized file is usually from the head of the area to the tail of the area.
[0075] In this application, first, based on the dependency relationships between the fiducial point parameters in each piece of fiducial point information in the fiducial point area, determine the access order of each piece of fiducial point information, and then traverse the fiducial point area according to the access order of each piece of fiducial point information, which can achieve decoupling the distribution of each piece of fiducial point information in the fiducial point area from subsequent parsing processing, modeling, etc. while ensuring that the value of each fiducial point parameter is obtained. In this way, when the user edits the parameterized file (that is, the first input file) of the multi-body system, there is no need to repeatedly confirm whether there are problems with the distribution of each piece of information in each area, nor to consider the problem of parsing errors caused by the distribution order. For example, when the user edits the fiducial point area, there is no need to repeatedly confirm the order of each piece of fiducial point information in the fiducial point area. In this way, the editing process of the parameterized file can be simplified, thereby indirectly improving the modeling efficiency of the multi-body system.
[0076] Optionally, the electronic device determines the first access order of each piece of fiducial point information according to the fiducial point parameters respectively corresponding to each piece of fiducial point information, which may include: First, generate a first topology graph according to the fiducial point parameters respectively corresponding to each piece of fiducial point information. The first topology graph is used to describe the dependency relationships between the fiducial point parameters. Then, determine the first access order of each piece of fiducial point information according to the first topology graph.
[0077] Here, the electronic device can establish a topological graph by combining the dependency relationships between various marker point parameters, and then determine the access order of each marker point information based on this topological graph.
[0078] The following combines Figure 3 to elaborate on the process of determining the access order of each marker point information based on the first topological graph. Among them, Figure 3 is a schematic diagram of the process of determining the access order of each marker point information based on the first topological graph provided by an embodiment of the present application.
[0079] As Figure 3 shown, the marker point area can include 7 pieces of marker point information, and each piece of marker point information describes a marker point. Combining Figure 3 , the multi-body system to be modeled can include 7 marker points, namely Marker1 to Marker7. Among them, the value of the marker point parameter of Marker3 depends on Marker1 and Marker2. The value of the marker point parameter of Marker4 depends on Marker3. The value of the marker point parameter of Marker5 depends on Marker3. The value of the marker point parameter of Marker6 depends on Marker4 and Marker5. The value of the marker point parameter of Marker7 depends on Marker4. It should be noted that the dependency relationship between the marker point parameters corresponding to the marker points can also be understood as the dependency relationship between the marker points.
[0080] Combining Figure 3 the topological graph between the marker points on the left, the access order of each marker point on the Figure 3 right can be obtained, that is, the access order of each marker point information. As Figure 3 shown, the access order of each marker point from front to back can be: Marker1, Marker2, Marker3, Marker4, Marker5, Marker6, Marker7.
[0081] In the embodiment of the present application, determining the access order of each marker point information based on the topological graph has a small amount of calculation and high accuracy, which helps to ensure the modeling efficiency of the multi-body system.
[0082] In some optional implementation manners of the embodiment of the present application, the electronic device can also respond to the user's editing operation on the first input file, and adjust the first input file based on the content operated by the editing operation.
[0083] Among them, the editing operation can include one or more of a modification operation, a deletion operation, and an addition operation. The action position of the editing operation can include the object area and / or the marker point area.
[0084] In practice, an electronic device can display a first input file. A user can edit the first input file displayed on the electronic device. For example, the user can add marker point information in the marker point area of the first input file, delete some existing marker point information, or modify the existing marker point information. The electronic device can detect the user's editing operation. For example, an operation of deleting some existing marker point information. After that, the electronic device can respond to the editing operation and adjust the first input file. For example, if the editing operation is an operation of adding one or more marker point information at the end of the marker point area, then the electronic device can write the one or more marker point information input by the user into the first input file.
[0085] It can be understood that after adjusting the first input file, the electronic device can model a multi-body system based on the modified first input file.
[0086] In the embodiments of the present application, the electronic device can support the adjustment of the first input file, with relatively high flexibility. It should be noted that since the information in each area (such as the object area and the marker point area) of the first input file can be decoupled from subsequent parsing processing, modeling, etc., when the user edits the first input file, the user can insert, delete, or modify the corresponding information at any position in each area, with very high flexibility and extremely strong scalability.
[0087] Step 103, the electronic device establishes a simulation model corresponding to the multi-body system based on the values of each marker point parameter and the objects and marker points described in the first input file.
[0088] Here, after the values of each marker point parameter in the first input file are determined, the electronic device can adopt the modeling method disclosed in the related art to establish a simulation model corresponding to the multi-body system described in the first input file based on the first input file.
[0089] In the embodiments of the present application, in the process of constructing the parameterized file of the multi-body system, by describing the dependency relationship between the first type of parameter and the second type of parameter through a function, it can be realized that when the user only needs to configure the value of the first type of parameter, the values of both the first type of parameter and the second type of parameter can be obtained simultaneously, which helps to reduce the number of parameters that need to be manually configured by the user, thereby improving the modeling efficiency.
[0090] In some optional implementation manners of the embodiments of the present application, in the above step 101, the object information may further include a second index. The second index is used to indicate a second object, and the second object is an object on which the first object depends. In practice, the second index is usually the identification information of the object. As an example, the second index may be B1, which is used to indicate object 1.
[0091] Optionally, in step 103 above, the electronic device establishes a simulation model corresponding to the multi-body system based on the values of the respective marker point parameters and the objects and marker points described in the first input file, which may include the following steps 1 to 3.
[0092] Step 1, the electronic device determines the second access order of each object information according to the second index included in each object information.
[0093] Wherein, the second access order is the access order of the object information in the object area.
[0094] Here, each object information in the object area may include a second index. The electronic device can combine the second indexes in each object information to determine the dependency relationship between each object information, that is, the dependency relationship between each object, so as to determine the access order of each object information. This access order is used to ensure the creation order of each object.
[0095] It should be noted that when the electronic device models the multi-body system, it needs to first create the referenced object, and after the referenced object is created, then create other objects that reference this object. For example, if object 1 needs to reference object 9, then object 9 needs to be created first, and then object 1.
[0096] Step 2, the electronic device traverses each object information in the object area according to the second access order, and creates a sub-model of the object corresponding to the accessed object information based on the accessed object information and the first index in the object information.
[0097] Wherein, the sub-model is the model corresponding to a single object.
[0098] Here, the electronic device can access each object information in the object area according to the second access order, and then create an object, or create a sub-model corresponding to the object, using the object information and the first index in the object information. Here, the electronic device can create a model (that is, a sub-model) corresponding to the object according to the content described in the object information. For example, an expression corresponding to the object can be created in combination with the object information.
[0099] Optionally, in step 2 above, when the electronic device creates a sub-model of the object corresponding to the accessed object information based on the accessed object information and the first index in the object information, it may include: the electronic device first obtains the value of the marker point parameter corresponding to the first index. Then, the electronic device creates a sub-model of the object corresponding to the accessed object information based on the accessed object information and the obtained value of the marker point parameter.
[0100] When the electronic device reads the value of the marker point parameter based on the first index, there may be anomalies. For example, the marker point parameter is not defined in the information of a certain marker point; or the electronic device cannot recognize the first function. In this case, the electronic device cannot read the value of the marker point parameter, and thus cannot successfully build a model. Therefore, in some alternative embodiments, if the electronic device fails to obtain the value of the marker point parameter corresponding to the first index, it may output a first prompt message. The first prompt message is used to prompt that the access to the marker point parameter corresponding to the first index is abnormal. In this way, it is possible to stop building the model in a timely manner and make corresponding adjustments in the presence of anomalies, which helps to improve the efficiency of building the model.
[0101] Step 3: The electronic device establishes a simulation model corresponding to the multi-body system based on the sub-models corresponding to each object.
[0102] Here, the electronic device can use the methods disclosed in related technologies to build a simulation model corresponding to the multi-body system by combining the models corresponding to each object (i.e., sub-models).
[0103] The following combines Figure 4 to elaborate on the process of establishing a simulation model of a multi-body system. Among them, Figure 4 is the process of establishing a simulation model of a multi-body system provided by an embodiment of the present application.
[0104] As Figure 4 shown, in the process of the electronic device establishing a simulation model of a multi-body system based on the first input file, first, an object can be established in combination with the object information, that is, a sub-model corresponding to the object is established. Then, marker points in the object are established in combination with the first index in the object information. After that, the electronic device can analyze each created object and the marker points in the object, and read the value of the marker point parameter corresponding to the marker point in the object into the created object. Finally, a simulation model of the multi-body system can be further created in combination with the created objects. Optionally, Figure 4 the process in
[0105] The following further combines Figure 5 to elaborate on the method for processing modeling data provided by an embodiment of the present application. As Figure 5 shown, the method for processing modeling data may include the following steps 501 to step 507. Optionally, the method for processing modeling data may be executed by an electronic device, and specifically may be implemented by a solver in the modeling software on the electronic device.
[0106] Step 501: The electronic device performs a topological sort on the variables in the input text.
[0107] Among them, the input text is the same concept as the aforementioned first input file. The variables in the input text include the object information corresponding to the object and the marker point information corresponding to the marker point.
[0108] Here, the electronic device can adopt the sorting method as Figure 3 shown, and by analyzing the reference relationships between the marker point parameters, sort the marker point parameters, that is, perform a topological sort on the marker point information, so as to obtain the access order of each marker point information (abbreviated as the first access order). At the same time, the electronic device can also determine the access order of each object information (abbreviated as the second access order) based on the reference relationships between the object information.
[0109] Step 502, the electronic device determines whether there is a circular dependency according to the success or failure of the topological sort.
[0110] Among them, the success of the topological sort means that the dependency relationships, or called reference relationships, between the variables can be extracted. If the topological sort fails, it means that the dependency relationships between the variables cannot be extracted. For example, when the electronic device cannot recognize the first function in the first input file, it will cause the topological sort to fail.
[0111] Here, the electronic device can determine the existence of a circular dependency when the topological sort is successful, and determine the non-existence of a circular dependency when the topological sort fails.
[0112] Step 503, in the case of a circular dependency, the electronic device parses the self-owned information of the variable and records the dependency index.
[0113] Here, the electronic device can, based on the sequence of the topological sort, sequentially parse the self-owned information of each variable in the first input file, and create an object and the marker points in the object. Among them, creating the marker points in the object can be: through the identification information of the marker point (or called the marker point identifier), establish the index relationship between the object and the marker point. For example, the identification information of the referenced marker point can be recorded in the sub-model of the created object, that is, record the dependency index.
[0114] It can be understood that the content of the identification information in the embodiments of the present application is not limited. For example, the identification information of object 1 can be 001 or body-1; the identification information of the marker point can be #1 or marker-1.
[0115] It can be understood that the electronic device can first, based on the sequence of the topological sort, parse the marker point area in the first input file to obtain the values of each marker point parameter. Then parse the object area in the first input file to create an object and the marker points in the object.
[0116] Step 504, the electronic device reads the values of the parameters in the object to implement parametric evaluation.
[0117] Here, the electronic device can, based on the dependency index corresponding to each object, read the values of the parameters (i.e., the marker point parameters) referenced by the object into the sub-models of each object to implement parametric evaluation of each sub-model.
[0118] Step 505, the electronic device determines whether the parametric evaluation of each object is successful.
[0119] Here, for each object, if the values of the parameters are successfully read for the object, the parametric evaluation of the object is successful; conversely, if the reading of the parameter values for the object fails, the parametric evaluation of the object fails.
[0120] Step 506, in the case where the parametric evaluation of each object is successful, perform precondition calculations related to modeling.
[0121] Among them, in multi-body system modeling, preconditions are a series of assumptions and initial conditions that need to be satisfied before performing modeling and solving. These conditions are crucial for accurately constructing the model and effectively performing subsequent analysis.
[0122] In practice, the precondition calculation process is usually performed when initially parsing the input text (i.e., the first input file). In this application, performing the precondition calculation after creating the sub-models of each object can ensure that the values of the parameters that the precondition calculation may depend on are all ready, thereby ensuring the stability and reliability of multi-body system modeling.
[0123] Step 507, in the case where there is no circular dependency or the parametric evaluation fails, output an error report.
[0124] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.
[0125] Corresponding to the modeling data processing method in the above embodiments, Figure 6 shows the structural block diagram of the modeling data processing device provided by the embodiments of this application. For the sake of convenience of description, only the parts related to the embodiments of this application are shown. Referring to Figure 6 the modeling data processing device 600 may include a file acquisition unit 601, a data access unit 602, and a model establishment unit 603.
[0126] The file acquisition unit 601 is used to acquire the first input file.
[0127] Among them, the first input file includes an object area and a marker point area. The object area includes a plurality of object information, and each piece of object information is used to describe a first object, where the first object is any object in the multi-body system to be modeled. The object information includes a first index, and the first index is used to indicate a first marker point, where the first marker point is a marker point included in the first object. The marker point area includes a plurality of marker point information, and each piece of marker point information is used to describe a second marker point, where the second marker point is any marker point in the multi-body system. The marker point information includes marker point parameters of the second marker point. The marker point parameters are first type parameters or second type parameters, where the value of the second type parameter is determined by a first function and the first type parameter, and the first function is used to describe the relative relationship between the first type parameter and the second type parameter, and the first type parameter is a parameter with a value configured by the user.
[0128] The data access unit 602 is configured to traverse each piece of marker point information in the marker point area, and determine the value of the marker point parameter in the accessed marker point information based on the value of the first type parameter and the first function.
[0129] The model building unit 603 is configured to build a simulation model corresponding to the multi-body system based on the values of each marker point parameter and the objects and marker points described in the first input file.
[0130] In some embodiments, the data access unit 602 traversing each piece of marker point information in the marker point area may include: determining a first access order of each piece of marker point information according to the marker point parameters respectively corresponding to each piece of marker point information. Traversing each piece of marker point information in the marker point area according to the first access order.
[0131] In some embodiments, the data access unit 602 determining the first access order of each piece of marker point information according to the marker point parameters respectively corresponding to each piece of marker point information may include: generating a first topology graph according to the marker point parameters respectively corresponding to each piece of marker point information, where the first topology graph is used to describe the dependency relationship between each marker point parameter. Determining the first access order of each piece of marker point information according to the first topology graph.
[0132] In some embodiments, the file acquisition unit 601 is specifically configured to: obtain the value of the target parameter input by the user, and generate a first input file according to the value of the target parameter and a pre-stored parameterized file, where the target parameter is a first type parameter.
[0133] In some embodiments, the object information further includes a second index, and the second index is used to indicate a second object, where the second object is an object on which the first object depends.
[0134] In some embodiments, the model building unit 603 is specifically configured to: determine the second access order of each object information according to the second index included in each object information. Traverse each object information in the object area according to the second access order, and create a sub-model of the object corresponding to the accessed object information based on the accessed object information and the first index in the object information. Based on the sub-models corresponding to each object, establish a simulation model corresponding to the multi-body system.
[0135] In some embodiments, the model building unit 603 creates a sub-model of the object corresponding to the accessed object information based on the accessed object information and the first index in the object information, including: obtaining the value of the marker point parameter corresponding to the first index. Create a sub-model of the object corresponding to the accessed object information based on the accessed object information and the obtained value of the marker point parameter.
[0136] In some embodiments, after the model building unit 603 obtains the value of the marker point parameter corresponding to the first index, it further includes: if the obtaining of the value of the marker point parameter corresponding to the first index fails, output a first prompt message, where the first prompt message is used to prompt that the access to the marker point parameter corresponding to the first index is abnormal.
[0137] In some embodiments, the device further includes a file update unit, configured to, in response to detecting an editing operation on the first input file, adjust the first input file based on the content operated by the editing operation, where the editing operation includes one or more of a modification operation, a deletion operation, and an addition operation, and the action location of the editing operation includes the object area and / or the marker point area.
[0138] In the device provided in this embodiment, during the process of constructing the parameterized file of the multi-body system, by using a function to describe the dependency relationship between the first type of parameters and the second type of parameters, it is possible to obtain the values of both the first type of parameters and the second type of parameters when the user only needs to configure the values of the first type of parameters, which helps to reduce the number of parameters that need to be manually configured by the user, thereby improving the modeling efficiency.
[0139] It should be noted that the information interaction, execution process, etc. between the above-mentioned device / units, due to being based on the same concept as the method embodiment of the present application, for their specific functions and the technical effects brought, please refer to the method embodiment part for details, and will not be elaborated here.
[0140] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be assigned to different functional units and modules according to needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. In each embodiment of the present application, each functional unit can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0141] It should be understood that when used in the description of the present application specification and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.
[0142] It should also be understood that the term "and / or" used in the description of the present application specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0143] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and should not be construed as indicating or implying relative importance. It should also be understood that although the terms "first", "second", etc. are used in the text in some embodiments of the present application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
[0144] The description referring to "one embodiment" or "some embodiments" etc. in the present application specification means that a specific feature, structure or characteristic described in combination with the embodiment is included in one or more embodiments of the present application. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in another way.
[0145] The processing method for modeling data provided by the embodiments of the present application can be applied to an electronic device, which can be a device such as a terminal or a server. The terminal can be a tablet computer, a vehicle-mounted device, an Augmented Reality (AR) / Virtual Reality (VR) device, a laptop computer, an Ultra-Mobile Personal Computer (UMPC), etc. The server can be a network server, a cloud server, etc. The embodiments of the present application do not make any limitations in this regard.
[0146] In order to better understand the embodiments of the present application, the following will introduce the structure of the electronic device in the embodiments of the present application in combination with Figure 7 the accompanying drawings.
[0147] Figure 7 FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 7 shown, the electronic device 700 in this embodiment includes: at least one processor 701 ( Figure 7 only one processor is shown in the figure), a memory 702, and a computer program 703 stored in the memory 702 and executable on at least one processor 701, such as a processing program for modeling data. When the processor 701 executes the computer program 703, the steps in any of the above method embodiments are implemented. When the processor 701 executes the computer program 703, the steps in the embodiments of the above various processing methods for modeling data are implemented. When the processor 701 executes the computer program 703, the functions of each module / unit in the above device embodiments are implemented, such as Figure 6 the functions of the file acquisition unit 601, the data access unit 602, and the model establishment unit 603 shown in FIG.
[0148] Exemplarily, the computer program 703 can be divided into one or more modules / units. One or more modules / units are stored in the memory 702 and executed by the processor 701 to complete the present application. One or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 703 in the electronic device 700. For example, the computer program 703 can be divided into a file acquisition unit, a data access unit, and a model establishment unit. The specific functions of each unit have been described in the above embodiments and will not be elaborated here.
[0149] The electronic device 700 may include: but not limited to, a processor 701 and a memory 702. Those skilled in the art can understand that Figure 7This is only an example of the electronic device 700, which does not constitute a limitation on the electronic device 700. It may include more or fewer components than those shown in the figure, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.
[0150] The so-called processor 701 may be a central processing unit (CPU), or may also be 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 may be a microprocessor or the processor may also be any conventional processor, etc.
[0151] The memory 702 may be an internal storage unit of the electronic device 700, such as the hard disk or memory of the electronic device 700. The memory 702 may also be an external storage device of the electronic device 700, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 700. Further, the memory 702 may also include both the internal storage unit and the external storage device of the electronic device 700. The memory 702 is used to store computer programs and other programs and data required by the electronic device. The memory 702 may also be used to temporarily store data that has been output or will be output.
[0152] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be assigned to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be described in detail here.
[0153] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For parts not detailed or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0154] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0155] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, the functional units in the various embodiments of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0158] When an integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium can be non-volatile or volatile. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of this application, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable storage medium can include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice within the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.
[0159] The above embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of this application, and should all be included in the protection scope of this application.
Claims
1. A method for processing modeling data, characterized in that The method includes: Obtaining a first input file, where the first input file includes an object area and a marker point area; the object area includes a plurality of object information, and each piece of object information is used to describe a first object, where the first object is any object in a multi-body system to be modeled; the object information includes a first index, and the first index is used to indicate a first marker point, where the first marker point is a marker point included in the first object; the marker point area includes a plurality of marker point information, and each piece of marker point information is used to describe a second marker point, where the second marker point is any marker point in the multi-body system; the marker point information includes marker point parameters of the second marker point; the marker point parameters are first type parameters or second type parameters, where the value of the second type parameter is determined by a first function and the first type parameter, and the first function is used to describe the relative relationship between the first type parameter and the second type parameter, and the first type parameter is a parameter with a user-configured value; Traversing each piece of marker point information in the marker point area, and determining the value of the marker point parameter in the accessed marker point information based on the value of the first type parameter and the first function; establishing a simulation model corresponding to the multi-body system based on the values of each marker point parameter and the objects and marker points described in the first input file; The object information further includes a second index, and the second index is used to indicate a second object, where the second object is an object on which the first object depends; The establishing a simulation model corresponding to the multi-body system based on the values of each marker point parameter and the objects and marker points described in the first input file includes: Determining a second access order of each piece of object information according to the second index included in each piece of object information; Traversing each piece of object information in the object area in accordance with the second access order, and creating a sub-model of the object corresponding to the accessed object information based on the accessed object information and the first index in the object information; Establishing a simulation model corresponding to the multi-body system based on the sub-models corresponding to each object respectively.
2. The processing method of the modeling data according to claim 1, characterized in that The traversing each piece of marker point information in the marker point area includes: Determining a first access order of each piece of marker point information according to the marker point parameters corresponding to each piece of marker point information; traversing each piece of marker point information in the marker point area in accordance with the first access order.
3. The processing method of the modeling data according to claim 2, wherein The determining a first access order of each piece of marker point information according to the marker point parameters corresponding to each piece of marker point information includes: Generating a first topological graph according to the marker point parameters corresponding to each piece of marker point information, where the first topological graph is used to describe the dependency relationship between each marker point parameter; Determining a first access order of each piece of marker point information according to the first topological graph.
4. The processing method of the modeling data according to claim 1, wherein, The obtaining the first input file includes: Obtaining the value of a target parameter input by a user, and generating the first input file according to the value of the target parameter and a pre-stored parameterized file, where the target parameter is a first type parameter.
5. The method for processing modeling data according to claim 1, wherein The creating a sub-model of the object corresponding to the accessed object information based on the accessed object information and the first index in the object information includes: Obtain the value of the marker point parameter corresponding to the first index; Based on the accessed object information and the obtained value of the marker point parameter, create a sub-model of the object corresponding to the accessed object information.
6. The method for processing modeling data according to claim 5, wherein After obtaining the value of the marker point parameter corresponding to the first index, it further includes: If the obtaining of the value of the marker point parameter corresponding to the first index fails, output a first prompt message for prompting that the access to the marker point parameter corresponding to the first index is abnormal.
7. The processing method of the modeling data according to any one of claims 1-6, characterized in that The method further includes: In response to detecting an editing operation on the first input file, adjust the first input file based on the content operated by the editing operation, where the editing operation includes one or more of a modification operation, a deletion operation, and an addition operation, and the action position of the editing operation includes the object area and / or the marker point area.
8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for processing modeling data according to any one of claims 1 to 7.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for processing modeling data according to any one of claims 1 to 7.
Citation Information
Patent Citations
Modeling simulation method and system and storage medium
CN115688389A