Modeling data processing method, electronic equipment and computer readable storage medium
By using functions to describe parameter dependencies in multi-body system modeling and automatically calculate the second type of parameters, the problem of low modeling efficiency caused by users' need to input a large number of parameter values is solved, and the effect of improving modeling efficiency is achieved.
Patent Information
- Application Number
- CN202510122600.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2045-01-26
AI Technical Summary
When building parameterized files of multi-body systems, users need to input a large number of parameter values, resulting in reduced modeling efficiency.
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, thereby reducing the number of parameters manually configured by the user.
This improves modeling efficiency and reduces the amount of parameters that users need to manually configure during the modeling process.
Smart Images

Figure CN119558104A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of multi-body system modeling, and in particular, 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 objects. When modeling multi-body dynamics, it is usually necessary to input the parameterized file of the multi-body system into the modeling software, and the modeling software will build a system model of the multi-body system based on the parameterized file to analyze the dynamic characteristics of the multi-body system.
[0003] In the related art, since the structure of a multi-body system is usually very complex, the number of parameters required to be included in the parametric file of the multi-body system is also very large, resulting in the user needing to input a large number of parameter values when constructing the parametric file for the multi-body system, which easily reduces the modeling efficiency. Summary of the invention
[0004] The embodiments of the present 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 parametric file for a multi-body system, the user needs to input a large number of parameter values, which easily reduces the modeling efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for processing modeling data, the method comprising: obtaining a first input file, the first input file comprising an object area and a marker area. The object area comprises a plurality of object information, each of which is used to describe a first object, and the first object is any object in a multi-body system to be modeled. The object information comprises a first index, and the first index is used to indicate a first marker, and the first marker is a marker included in the first object. The marker area comprises a plurality of marker information, each of which is used to describe a second marker, and the second marker is any marker in the multi-body system. The marker information comprises a marker parameter of the second marker. The marker parameter is a first type parameter or a second type parameter, wherein the value of the second type parameter is determined by a first function and a first type parameter, 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 configured by a user. Each marker information in the marker area is traversed, and the value of the marker parameter in the accessed marker information is determined based on the value of the first type parameter and the first function. A simulation model corresponding to the multi-body system is established based on the values of the parameters of each marking point and the objects and marking points described in the first input file.
[0006] In a second aspect, an embodiment of the present application provides a device for processing modeling data, the device comprising: A file acquisition unit is used to acquire a first input file, wherein the first input file includes an object area and a marker area; the object area includes a plurality of object information, each of which is used to describe a first object, and 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, and the first marker is a marker included in the first object; the marker area includes a plurality of marker information, each of which is used to describe a second marker, and the second marker is any marker in the multi-body system; the marker information includes marker parameters of the second marker; the marker parameters are first-type parameters or second-type parameters, wherein the value of the second-type parameter is determined by a first function and a first-type parameter, 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 whose value is configured by the user; A data access unit, used to traverse each mark point information in the mark point area, and determine the value of the mark point parameter in the accessed mark point information based on the value of the first type parameter and the first function; The model building unit is used to build a simulation model corresponding to the multi-body system based on the values of the parameters of each marking point and the objects and marking points described in the first input file.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned modeling data processing methods when executing the computer program.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of any of the above-mentioned modeling data processing methods.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute any one of the above-mentioned modeling data processing methods.
[0010] Compared with the related art, the embodiments of the present application have the following beneficial effects: in the process of constructing a parameterized file of a multi-body system, by describing the dependency relationship between the first type parameters and the second type parameters through a function, it is possible to simultaneously obtain the values of the first type parameters and the second type parameters when the user only needs to configure the values of the first type parameters, which helps to reduce the amount of parameters that need to be manually configured by the user, thereby improving modeling efficiency.
[0011] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 It is a flowchart of a method for processing modeling data provided in an embodiment of the present application; Figure 2 is a schematic diagram of a first input file provided in an embodiment of the present application; Figure 3 It is a schematic diagram of a process for determining an access order of each marking point information based on a first topological graph provided in an embodiment of the present application; Figure 4 It is a schematic diagram of the process of establishing a simulation model of a multi-body system provided in an embodiment of the present application; Figure 5 It is a flowchart of another method for processing modeling data provided in an embodiment of the present application; Figure 6 It is a structural schematic diagram of a device for processing modeling data provided by an embodiment of the present application; Figure 7 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0014] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may 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 prevent unnecessary details from obstructing the description of the present application.
[0015] The following are some concepts that may be involved in the embodiments of the present application: (1) Multiple: Unless otherwise specified, in the embodiments of the present application, multiple refers to two or more.
[0016] (2) Multi-body dynamics (MBD): In the embodiments of the present application, multi-body dynamics mainly studies the dynamic behavior of a multi-body system. A multi-body system is a mechanical system composed of multiple interacting rigid or flexible objects. Multi-body dynamics can analyze the interaction relationship between multiple objects. Multi-body dynamics is widely used in mechanical engineering, robotics, aerospace, vehicle engineering and other fields.
[0017] In practice, multibody dynamics helps analyze and optimize the dynamic performance of complex systems by establishing dynamic models of interactions between multiple objects. With the development of computing technology and numerical solution methods, multibody dynamics has become an important tool for engineering design and control.
[0018] (3) Vehicle Dynamics: In the embodiments of the present application, vehicle dynamics belongs to multi-body dynamics.
[0019] Vehicle dynamics mainly studies and analyzes the vehicle's motion behavior, stability, handling, and comfort under different driving conditions. Vehicle dynamics combines mechanics, control theory, mathematical modeling, and computer simulation to describe and optimize the overall performance of the vehicle and ensure the safety and comfort of the vehicle under various working conditions.
[0020] 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 in the early stages of development, development costs can be reduced, and vehicle safety, handling, comfort and economy can be improved, thereby improving the overall driving experience and vehicle performance.
[0021] (4) Body, markers, and joints: In multibody dynamics modeling, the body is the main body, the markers are used to describe the position and posture of the object and serve as a reference for joint connections, and the joints are used to connect the objects and constrain their relative motion and transmit forces and torques. The three work together to form a complete multibody dynamics model.
[0022] Among them, objects are the main body that carries motion and force and are the basic modeling units. For example, in the multi-body dynamics model of an automobile, the frame, wheels, etc. can all be regarded as objects. Each object has physical properties such as mass, center of mass position, and inertia tensor. These properties determine the change in the state of motion of the object when it is subjected to force and torque. For example, according to Newton's second law, the force acting on an object will cause the object with mass to produce acceleration.
[0023] Among them, marker points are mainly used for positioning and posture description. By tracking the position and direction of the marker points, the position and posture of the object in space can be determined. For example, in a simple double pendulum system, marker points can be defined at the end points of the pendulum, and the motion of the pendulum can be described by the coordinate changes of these marker points. Marker points can be geometric points defined on the surface or inside of an object, which are used to describe the position, posture and relative position relationship between objects. A marker point can be a point on an actual physical structure or a virtually defined point for the convenience of modeling. For example, in a multi-body dynamics model of a robot arm, a marker point can be defined on the axis of each joint. In addition, marker points are also important reference elements for defining joints and constraints. For example, when defining a ball joint between two objects, joint constraints are usually established with specific marker points on the two objects as the center. The relative position and motion relationship of these marker points determine the motion characteristics of the joint.
[0024] Among them, joints are constraints used to connect two or more objects, which limit the relative freedom of movement between objects. There are many types of joints, such as revolute joints (can only rotate around a certain axis), translation joints (can only move in a certain direction), ball joints (can rotate in any direction around a point in space), etc. By restricting the relative movement between objects through joints, the movement of multi-body systems can be made to conform to actual physical conditions. For example, in a robotic arm model, the revolute joints between adjacent links restrict the links to only rotate around the joint axis. This constraint makes the movement of the robotic arm deterministic.
[0025] (5) Solver: In multibody 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 out the changes in the state variables such as the position, velocity and acceleration 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 force, torque, etc.). For example, for a simple double pendulum system, its equation of motion can be obtained through the Lagrange equation. The solver will take this equation of motion as input, and combined with the initial angle and angular velocity of the double pendulum and other conditions, calculate the changes in the angle and angular velocity of the double pendulum at each moment in the subsequent time.
[0026] There are many types of solvers, such as ordinary differential equation solvers, partial differential equation solvers, etc. Different solvers may be used in different scenarios.
[0027] 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 equations of motion while ensuring computational efficiency, thereby obtaining results that conform to actual physical phenomena. For example, in the calculation of spacecraft orbits, an accurate solver can accurately predict the orbital changes of the spacecraft under various gravitational and thrust forces, which is crucial to the success of the space mission.
[0028] A multi-body system is a mechanical system composed of multiple interacting rigid or flexible objects. In multi-body dynamics modeling, a parameterized file of the multi-body system is usually required to be input into the modeling software, and the modeling software builds a system model of the multi-body system based on the parameterized file to analyze the dynamic characteristics of the multi-body system. Among them, the parameterized file of the multi-body system is a file used to describe the characteristics and properties of the multi-body system. The parameterized file may include the geometric parameters, physical parameters, connection parameters, material parameters, etc. of each object in the multi-body system.
[0029] Among them, the geometric parameters of the object determine the geometric form and spatial layout of the object. The geometric parameters may include the shape, size, position, etc. of the object. For example, if the multi-body system is a vehicle, the geometric parameters for the body may include the length, width, height, etc. of the body, and the geometric parameters for the wheel may include the radius and wheelbase of the wheel. The physical parameters of the object may include the mass, center of mass position, moment of inertia, etc. of the object. The physical parameters of the object have an important influence 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 parameters that describe the connection relationship between objects, such as the type of hinge (rotating hinge, moving hinge, etc.), the location of the connection point, the stiffness and damping of the connection, etc. The connection parameters determine the relative motion constraints and force transmission methods between objects. The material parameters are used to indicate the material properties of the object. The material parameters may include elastic modulus, Poisson's ratio, density, etc. Material parameters are particularly important for the modeling of soft objects, which will affect their deformation and stress distribution.
[0030] In the related art, since the structure of a multi-body system is usually very complex, the number of parameters required to be included in the parametric file of the multi-body system is also very large, resulting in the user needing to input a large number of parameter values when constructing the parametric file for the multi-body system, which easily reduces the modeling efficiency.
[0031] In view of the above-mentioned technical problems existing in the related technology, an embodiment of the present application provides a method for processing modeling data. In the process of constructing a parametric file of a multi-body system, the dependency relationship between the first type parameter and the second type parameter is described by a function. This can achieve the situation that the user only needs to configure the value of the first type parameter. The values of the first type parameter and the second type parameter can be obtained at the same time, which helps to reduce the amount of parameters that need to be manually configured by the user, thereby improving modeling efficiency.
[0032] Among them, the first type parameter and the second type parameter are parameters used to construct a model of a multi-body system. There is a stable relative relationship (or dependency relationship) between the object described by the first type parameter and the object described by the second type parameter. As an example, the object described by the first type parameter may be the center of the left front tire of the vehicle, and the object described by the second type parameter may 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.
[0033] Optionally, the object described by the first type parameter is usually a reference object on the multi-body system. Taking the multi-body system as a vehicle as an example, the first type parameter may include the coordinates of the center point of the vehicle.
[0034] It can be understood that since most objects on the same multi-body system have a stable relative relationship, the number of first-type parameters is very small. That is, the solution of the present application can greatly reduce the number of parameters that need to be manually configured by the user, thereby improving modeling efficiency.
[0035] Combine the following Figure 1 The processing method of modeling data provided in the embodiment of the present application is further described. Figure 1 As shown, the method for processing modeling data may include the following steps 101 to 103 .
[0036] Step 101: The electronic device obtains a first input file.
[0037] The first input file is a parameterization file of the multi-body system to be modeled.
[0038] Among them, the first input file includes an object area and a marker area. The object area includes multiple object information, each of which is used to describe a first object, and 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. 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, 001, or #01, which is used to indicate marker point 1.
[0039] The marking point area includes a plurality of marking point information, each of which is used to describe a second marking point, and the second marking point is any marking point in the multi-body system. The marking point information includes marking point parameters of the second marking point.
[0040] It can be understood that the multi-body system has multiple objects, and each object in the multi-body system can correspond to an object information in the object area. Each marking point in the multi-body system can correspond to a marking point information in the marking point area. Each marking point can be included in one object or in multiple objects.
[0041] Combine the following Figure 2 The structure of the first input file (or parameterization file) is described below. Figure 2 A schematic diagram of the first input file provided in an embodiment of the present application.
[0042] like Figure 2 As shown, the first input file may include an object area 201 and a marker area 202. The object area 201 includes multiple object information, for example, object information 11 and object information 12. The object information 11 is used to describe object A, and the object information 11 includes an index, which is used to indicate marker 1 and marker 2 in object A. The object information 12 is used to describe object B, and the object information 12 includes an index, which is used to indicate marker 2 in object B. Figure 2 It can be found that an object can contain multiple markers, and the same marker can be contained in different objects.
[0043] Figure 2 In the example, the marking point area 202 includes a plurality of marking point information, for example, marking point information 21 and marking point information 22. The marking point information 21 and the marking point information 22 both include corresponding marking point parameters, and the marking point parameters can describe the attributes or characteristics of the marking point. For example, the marking point parameters can be the coordinates of the marking point. Figure 2 As shown, the marking point information 21 may describe the marking point 1, and the marking point information 22 may describe the marking point 2. The marking point 1 and the marking point 2 are marking points in the multi-body system.
[0044] It can be understood that the contents included in the first input file listed above are only examples and are not intended to limit the entire contents of the first input file. In actual applications, the first input file may also include other contents for describing the characteristics and properties of the multi-body system.
[0045] Optionally, the marking point parameter is a first type parameter or a second type parameter. The value of the second type parameter is determined by the 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 whose value is configured by the user, that is, only the first type parameter needs to be input by the user.
[0046] In some application scenarios, the first function may reflect the relative position relationship between the marking points. In other application scenarios, the first function may also reflect the relative motion relationship between the marking points. It is understandable that the embodiment of the present application does not specifically limit the type of relative relationship between the marking points reflected by the first function.
[0047] Here, since the first type parameter is a parameter whose value is configured by the user, and the first function describes the relative relationship between the first type parameter and the second type parameter, the value of the first type parameter and the first function can be used to calculate the value of the second type parameter. As an example, if parameter 1 is a first type parameter, the value of parameter 1 is a three-dimensional coordinate value (0, 2, 1), and the second type parameter that has a relative relationship with parameter 1 is parameter 2, the first function is relative[parameter 1, (0, 0, 1)], and the first function means offset (0, 0, 1) based on the coordinates of parameter 1. In this case, the value of parameter 2 is (0, 2, 2).
[0048] It should be noted that the value of a parameter can be a number or an expression. For example, the value of parameter b can be a+3.
[0049] Optionally, the value of the first type parameter can be a matrix, a vector, or a single numerical value.
[0050] Optionally, when the value of the first type parameter is a vector or a matrix, the value of the second type parameter can be determined by the first function and the value of the first type parameter, or by the first function and a certain dimension of the value of the first type parameter. For example, if parameter 1 is a first type parameter, the value of parameter 1 is a vector [1, 2, 3], and the second type parameter having a relative relationship with parameter 1 is parameter 2, in this case, the value of parameter 2 can be determined based on the first function and the first data, wherein the first data can be a vector [1, 2, 3], or data of a certain dimension in the vector [1, 2, 3], for example, data 3 of the third dimension.
[0051] In the above step 101, the electronic device can obtain the first input file locally, or 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.
[0052] In some optional implementations of the embodiments of the present application, in the above step 101, the electronic device may 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, the first input file is generated according to the value of the target parameter and the pre-stored parameterization file. The target parameter is a first type parameter.
[0053] In an embodiment of the present application, an edited parameterization file (or an initial parameterization file) can be pre-stored in the electronic device, and the user only needs to input the value of the target parameter, and the value of the target parameter can be combined with the initial parameterization file to obtain a first input file.
[0054] It should be pointed out that in the process of modeling a multi-body system, it is usually necessary to model the multi-body system under different conditions in order to obtain the characteristics of the multi-body system under different conditions. Also, when modeling a multi-body system under different conditions, the relationship between the objects in the multi-body system and the marking points on the objects usually does not change, that is to say, the relative relationship between the many elements in the parameterization file of the multi-body system is actually unchanged. Therefore, the relationship between the first type of parameters (target parameters) and the second type of parameters is described in the initialization file in the form of a first function. The initial parameterization file can be reused later. Specifically, only the value of the first type of parameters 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 speed up the modeling efficiency.
[0055] Step 102: The electronic device traverses each mark point information in the mark point area, and determines the value of the mark point parameter in the accessed mark point information based on the value of the first type parameter and the first function.
[0056] Here, the electronic device may traverse each marker point information in the marker point area.
[0057] If the marker parameter in the accessed marker information is a first type parameter, the marker parameter in the marker information has been configured with a value. As an example, the centroid QG1 of marker 1 may be (0, 0, 1), where the centroid of marker 1 is the marker parameter of marker 1.
[0058] If the marker parameter in the accessed marker information is a second type parameter, that is, the value of the marker parameter has a corresponding relationship with the first type parameter whose value is known, in this case, the electronic device can calculate the value of the marker parameter based on the corresponding relationship and the value of the first type parameter. As an example, the centroid QG2 of marker 2 can be relative (M1, (1, 1, 1)), where M1 is the marker parameter of marker 1, relative is a function representing position offset (or called the first function), and (1, 1, 1) represents the position offset. In this case, the centroid QG2 of marker 2 can be calculated to be (1, 1, 2).
[0059] It is understandable that the first function can be used to define a relative position relationship, and can also be used to define a relative size relationship. In some scenarios, the function name of the first function can be relative, and in other scenarios, the function name of the first function can also be in other forms. The embodiments of the present application do not specifically limit the relative relationship defined by the first function, the embodiments of the present application do not specifically limit the type of the first function, and the embodiments of the present application do not specifically limit the function name of the first function.
[0060] In some optional implementations of the embodiments of the present application, in the above step 102, the process of the electronic device traversing each mark point information in the mark point area may include: first, the electronic device determines a first access order for each mark point information according to the mark point parameters corresponding to each mark point information. Then, the electronic device traverses each mark point information in the mark point area according to the first access order.
[0061] The first access sequence is the access sequence to the marking point information in the marking point area.
[0062] Here, each marking point information in the marking point area includes marking point parameters. The electronic device can determine the calculation order of the marking point parameters based on the dependency relationship between the marking point parameters, thereby determining the access order of the marking point information, wherein the calculation order of the marking point parameters is consistent with the access order of the marking point information where the marking point parameters are located.
[0063] For example, if the value of the marking point parameter a in the marking point information 1 is b+3; the value of the marking point parameter b in the marking point information 2 has been configured; the value of the marking point parameter c in the marking point information 3 is a+b, where the marking point parameter b is a first type parameter, and the marking point parameters a and c are second type parameters. In this case, the value of the marking point parameter a needs to depend on the marking point parameter b, and the value of the marking point parameter c needs to depend on the marking point parameter a and the marking point parameter b. In this case, in order to ensure that the values of each parameter are 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 marking point information is from front to back: marking point information 2, marking point information 1, marking point information 3.
[0064] It should be pointed out that in the related art, each region (eg, object region, marker region) in the parameterized file is traversed, usually from the head of the region to the tail of the region.
[0065] In the present application, the access order of each marker point information is first determined based on the dependency relationship between the marker point parameters in each marker point information in the marker point area, and then the marker point area is traversed according to the access order of each marker point information, so that the distribution of each marker point information in the marker point area can be decoupled from the subsequent analysis processing, modeling, etc. while ensuring the value of each marker point parameter. In this way, when the user edits the parameterization file (that is, the first input file) of the multi-body system, there is no need to repeatedly confirm whether there is a problem with the distribution of each information in each area, nor to consider the problem of analysis errors caused by the distribution order. For example, when the user is editing the marker point area, there is no need to repeatedly confirm the order of each marker point information in the marker point area. In this way, the editing process of the parameterization file can be simplified, thereby indirectly improving the modeling efficiency of the multi-body system.
[0066] Optionally, the electronic device determines the first access order of each mark point information according to the mark point parameters corresponding to each mark point information, which may include: first, generating a first topology map according to the mark point parameters corresponding to each mark point information, the first topology map is used to describe the dependency relationship between each mark point parameter. Then, according to the first topology map, determine the first access order of each mark point information.
[0067] Here, the electronic device may establish a topology map based on the dependency relationship between the parameters of each marking point, and thereby determine the access order of each marking point information based on the topology map.
[0068] Combine the following Figure 3 The process of determining the access order of each marking point information based on the first topological graph is described. Figure 3 A schematic diagram of a process for determining an access order of each marking point information based on a first topological graph provided in an embodiment of the present application.
[0069] like Figure 3 As shown, the marking point area may include 7 marking point information, each of which describes a marking point. Figure 3 , the multi-body system to be modeled may include 7 marker points, namely Marker1 to Marker7. Among them, the value of the marker point parameter of Marker3 needs to depend on Marker1 and Marker2. The value of the marker point parameter of Marker4 needs to depend on Marker3. The value of the marker point parameter of Marker5 needs to depend on Marker3. The value of the marker point parameter of Marker6 needs to depend on Marker4 and Marker5. The value of the marker point parameter of Marker7 needs to depend on Marker4. It should be pointed out 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.
[0070] Combination Figure 3 The topological diagram between the marked points on the left can be obtained Figure 3 The access order of each mark point on the right is also the access order of each mark point information. Figure 3 As shown, the access order of the markers from front to back may be: Marker1, Marker2, Marker3, Marker4, Marker5, Marker6, Marker7.
[0071] In the embodiment of the present application, the access order of each marking point information is determined based on the topological map, which has small calculation amount and high accuracy, and helps to ensure the modeling efficiency of the multi-body system.
[0072] In some optional implementations of the embodiments of the present application, the electronic device may also respond to the user's editing operation on the first input file, and adjust the first input file based on the content of the editing operation.
[0073] The editing operation may include one or more of a modification operation, a deletion operation and an addition operation. The effect position of the editing operation may include an object area and / or a marking point area.
[0074] In practice, the electronic device can display the first input file. The user can edit the first input file displayed by the electronic device. For example, the user can add new marker information to the marker area of the first input file, delete an existing marker information, or modify the existing marker information. The electronic device can detect the user's editing operation, such as deleting an existing marker information. Afterwards, the electronic device can adjust the first input file in response to the editing operation. For example, if the editing operation is to add one or more marker information to the end of the marker area, then the electronic device can write the one or more marker information input by the user into the first input file.
[0075] It can be understood that after adjusting the first input file, the electronic device can model the multi-body system based on the modified first input file.
[0076] In the embodiment of the present application, the electronic device can support the adjustment of the first input file, which is highly flexible. It should be pointed out that since the information in each area (such as the object area and the marker area) in the first input file can be decoupled from the subsequent analysis processing, modeling, etc., when the user edits the first input file, the corresponding information can be inserted, deleted or modified at any position in each area, which is highly flexible and highly extensible.
[0077] Step 103: The electronic device establishes a simulation model corresponding to the multi-body system based on the values of the parameters of each marking point and the objects and marking points described in the first input file.
[0078] Here, after the values of the parameters of each marking point in the first input file are determined, the electronic device can adopt the modeling method disclosed in the relevant technology to establish a simulation model corresponding to the multi-body system described in the first input file based on the first input file.
[0079] In an embodiment of the present application, in the process of constructing a parameterized file of a multi-body system, the dependency relationship between the first type of parameters and the second type of parameters is described by a function, so that the values of the first type of parameters and the second type of parameters can be obtained at the same time when the user only needs to configure the values of the first type of parameters, which helps to reduce the amount of parameters that need to be manually configured by the user, thereby improving modeling efficiency.
[0080] In some optional implementations 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 that the first object depends on. In practice, the second index is usually identification information of the object. As an example, the second index may be B1, which is used to indicate object 1.
[0081] Optionally, in the above step 103, the electronic device establishes a simulation model corresponding to the multi-body system based on the values of the parameters of each marking point and the objects and marking points described in the first input file, which may include the following steps 1 to 3.
[0082] Step 1: The electronic device determines a second access order for each piece of object information according to a second index included in each piece of object information.
[0083] The second access sequence is an access sequence to the object information in the object area.
[0084] Here, each object information in the object area may include a second index. The electronic device can combine the second index in each object information to determine the dependency relationship between each object information, that is, the dependency relationship between each object, thereby determining the access order of each object information. The access order is used to ensure the creation order of each object.
[0085] It should be noted that when an electronic device models a multi-body system, it is necessary to first create the referenced object, and then create other objects that reference the referenced object. For example, if object 1 needs to reference object 9, then object 9 needs to be created first, and then object 1.
[0086] In 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.
[0087] Among them, the sub-model is the model corresponding to a single object.
[0088] Here, the electronic device can access the object information in the object area according to the second access order, and then use the object information and the first index in the object information to create the object, or create a sub-model corresponding to the object. Here, the electronic device can create a model (that is, a sub-model) corresponding to the object according to the content described by the object information. For example, the expression corresponding to the object can be created in combination with the object information.
[0089] Optionally, in the above step 2, 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, which 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.
[0090] Considering that when the electronic device reads the value of the marking point parameter based on the first index, there may be an exception, for example, the marking point parameter is not defined in a certain marking point information; for another example, the electronic device cannot recognize the first function. In this case, the electronic device cannot read the value of the marking point parameter and cannot successfully build a model. Therefore, in some optional embodiments, if the electronic device fails to obtain the value of the marking point parameter corresponding to the first index, a first prompt message may be output. Among them, the first prompt message is used to prompt that the access to the marking point parameter corresponding to the first index is abnormal. In this way, it is possible to stop the modeling in time and make corresponding adjustments in the presence of an abnormality, which helps to improve the modeling efficiency.
[0091] Step three: the electronic device establishes a simulation model corresponding to the multi-body system based on the sub-models corresponding to each object.
[0092] Here, the electronic device can adopt the method disclosed in the relevant technology to combine the models corresponding to each object (that is, the sub-model) to obtain the simulation model corresponding to the multi-body system.
[0093] Combine the following Figure 4 The process of establishing a simulation model for a multi-body system is described. Figure 4 The present invention provides a process for establishing a simulation model of a multi-body system.
[0094] like Figure 4 As shown, in the process of establishing a simulation model of a multi-body system based on a first input file, the electronic device can first establish an object in combination with the object information, that is, establish a sub-model corresponding to the object. Then, in combination with the first index in the object information, establish a marking point in the object. Afterwards, the electronic device can analyze the created objects and the marking points in the objects, and read the values of the marking point parameters corresponding to the marking points in the objects into the created objects. Finally, the created objects can be further combined to create a simulation model of the multi-body system. Optionally, Figure 4 The process in can be implemented by the solver in the modeling software.
[0095] The following further combines Figure 5 The method for processing modeling data provided in the embodiment of the present application is described below. Figure 5 As shown, the method for processing modeling data may include the following steps 501 to 507. Optionally, the method for processing modeling data may be executed by an electronic device, and specifically may be implemented by a solver in modeling software on the electronic device.
[0096] Step 501: The electronic device performs topological sorting on variables in the input text.
[0097] The input text is the same as the first input file mentioned above. The variables in the input text include object information corresponding to the object and marking point information corresponding to the marking point.
[0098] Here, the electronic equipment can be used as Figure 3 The sorting method shown in the figure sorts the parameters of each marking point by analyzing the reference relationship between the parameters of each marking point, that is, topologically sorts the marking point information, thereby obtaining the access order of each marking point information (referred to as the first access order). At the same time, the electronic device can also determine the access order of each object information based on the reference relationship between the information of each object (referred to as the second access order).
[0099] Step 502: The electronic device determines whether there is a circular dependency according to whether the topological sorting is successful or not.
[0100] Among them, the success of topological sorting means that the dependency relationship between the variables, or called the reference relationship, can be extracted. If the topological sorting fails, it means that the dependency relationship between the variables cannot be extracted. For example, when the electronic device cannot recognize the first function in the first input file, the topological sorting will fail.
[0101] Here, the electronic device may determine that there is a circular dependency when the topological sorting succeeds, and determine that there is no circular dependency when the topological sorting fails.
[0102] Step 503: When there is a circular dependency, the electronic device parses the variable's own information and records the dependency index.
[0103] Here, the electronic device can parse the own information of each variable in the first input file in sequence based on the order of topological sorting, and create objects and markers in the objects. The markers in the objects can be created by: establishing an index relationship between the objects and the markers through the identification information of the markers (or marker identification), for example, the identification information of the referenced markers can be recorded in the sub-model of the created object, that is, recording the dependent index.
[0104] It is understandable that the embodiments of the present application do not limit the content of the identification information. 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.
[0105] It is understandable that the electronic device can first parse the marker area in the first input file based on the order of topological sorting to obtain the value of each marker parameter, and then parse the object area in the first input file to create the object and the marker in the object.
[0106] Step 504: the electronic device reads the values of various parameters in the object to implement parameterized evaluation.
[0107] Here, the electronic device can read the values of the parameters (ie, the marking point parameters) referenced by the objects into the sub-models of the objects based on the dependency indexes corresponding to the objects, thereby implementing parameterized evaluation of the sub-models.
[0108] Step 505: The electronic device determines whether the parameterization evaluation of each object is successful.
[0109] Here, for each object, if the parameter value of the object is successfully read in, the parameterization of the object is successful; otherwise, if the parameter value of the object is failed to be read in, the parameterization of the object fails.
[0110] Step 506: When the parameterized evaluation of each object is successful, perform precondition calculations related to modeling.
[0111] In multi-body system modeling, preconditions are a series of assumptions and initial conditions that need to be met before modeling and solving. These conditions are crucial for accurately building models and effectively conducting subsequent analysis.
[0112] In practice, the preconditioning calculation process is usually performed when the input text (i.e., the first input file) is first parsed. In this application, the preconditioning calculation is performed after the submodels of each object are created, which can ensure that the values of the parameters that the preconditioning calculation may rely on are ready, thereby ensuring the stability and reliability of the multi-body system modeling.
[0113] Step 507: if there is no circular dependency or parameterized evaluation fails, output an error report.
[0114] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0115] Corresponding to the method for processing modeling data in the above embodiment, Figure 6 The structural block diagram of the processing device for modeling data provided by the embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown. Figure 6 The modeling data processing device 600 may include a file acquisition unit 601 , a data access unit 602 and a model building unit 603 .
[0116] The file acquisition unit 601 is used to acquire a first input file.
[0117] Among them, the first input file includes an object area and a marker area. The object area includes multiple object information, each object information is used to describe a first object, and 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, and the first marker point is a marker point included in the first object. The marker area includes multiple marker information, each marker information is used to describe a second marker point, and the second marker point is any marker point in the multi-body system. The marker information includes marker parameters of the second marker point. The marker parameter is a first type parameter or a second type parameter, wherein the value of the second type parameter is determined by a first function and a first type parameter, 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 whose value is configured by the user.
[0118] The data access unit 602 is used to traverse each mark point information in the mark point area, and determine the value of the mark point parameter in the accessed mark point information based on the value of the first type parameter and the first function.
[0119] The model building unit 603 is used to build a simulation model corresponding to the multi-body system based on the values of the parameters of each marking point and the objects and marking points described in the first input file.
[0120] In some embodiments, the data access unit 602 traverses each mark point information in the mark point area, which may include: determining a first access sequence for each mark point information according to the mark point parameters corresponding to each mark point information, and traversing each mark point information in the mark point area according to the first access sequence.
[0121] In some embodiments, the data access unit 602 determines the first access order of each mark point information according to the mark point parameters corresponding to each mark point information, which may include: generating a first topology map according to the mark point parameters corresponding to each mark point information, the first topology map is used to describe the dependency relationship between each mark point parameter. According to the first topology map, the first access order of each mark point information is determined.
[0122] In some embodiments, the file acquisition unit 601 is specifically used to: acquire 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 parameterization file, where the target parameter is a first type parameter.
[0123] In some embodiments, the object information further includes a second index, where the second index is used to indicate a second object, where the second object is an object on which the first object depends.
[0124] In some embodiments, the model building unit 603 is specifically used to: determine the second access order of each object information according to the second index included in each object information. According to the second access order, traverse each object information in the object area, 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, a simulation model corresponding to the multi-body system is established.
[0125] 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. Based on the accessed object information and the obtained value of the marker point parameter, the sub-model of the object corresponding to the accessed object information is created.
[0126] In some embodiments, after obtaining the value of the marking point parameter corresponding to the first index, the model building unit 603 further includes: if the acquisition of the value of the marking point parameter corresponding to the first index fails, outputting a first prompt message, the first prompt message being used to prompt that access to the marking point parameter corresponding to the first index is abnormal.
[0127] In some embodiments, the device also includes a file update unit for adjusting the first input file in response to detecting an editing operation on the first input file based on the content of the editing operation, wherein the editing operation includes one or more of a modification operation, a deletion operation, and an addition operation, and the location of the editing operation includes an object area and / or a marker area.
[0128] The device provided in this embodiment, in the process of constructing a parameterized file of a multi-body system, describes the dependency relationship between the first type parameters and the second type parameters through a function, so that the values of the first type parameters and the second type parameters can be obtained at the same time when the user only needs to configure the values of the first type parameters, which helps to reduce the amount of parameters that need to be manually configured by the user, thereby improving modeling efficiency.
[0129] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0130] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, 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. The functional units in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0131] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0132] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0133] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish descriptions and should not be understood as indicating or implying relative importance. It should also be understood that although the terms "first", "second", etc. are used in the text to describe various elements in some embodiments of the present application, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.
[0134] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0135] The processing method of modeling data provided in the embodiment of the present application can be applied to electronic devices, and the electronic devices can be devices such as terminals or servers. The terminal can be a tablet computer, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), etc. The server can be a network server, a cloud server, etc. This embodiment of the present application does not limit this.
[0136] In order to better understand the embodiments of the present application, Figure 7 The structure of the electronic device according to the embodiment of the present application is introduced.
[0137] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 7 As shown, the electronic device 700 of 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-mentioned method embodiments are implemented. When the processor 701 executes the computer program 703, the steps in the above-mentioned processing method for modeling data are implemented. When the processor 701 executes the computer program 703, the functions of each module / unit in the above-mentioned device embodiments are implemented, such as Figure 6 The functions of the file acquisition unit 601, the data access unit 602 and the model building unit 603 are shown.
[0138] Exemplarily, the computer program 703 may be divided into one or more modules / units, one or more modules / units are stored in the memory 702, and are executed by the processor 701 to complete the present application. One or more modules / units may be a series of computer program instruction segments that can complete 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 may be divided into a file acquisition unit, a data access unit, and a model building unit. The specific functions of each unit have been described in the above embodiments and will not be repeated here.
[0139] The electronic device 700 may include, but is not limited to, a processor 701 and a memory 702. Those skilled in the art will appreciate that Figure 7It is only an example of the electronic device 700 and does not constitute a limitation of the electronic device 700. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0140] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0141] The memory 702 may be an internal storage unit of the electronic device 700, such as a 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 (FlashCard), etc. equipped on the electronic device 700. Further, the memory 702 may also include both an internal storage unit of the electronic device 700 and an external storage device. 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 is to be output.
[0142] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, 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. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0143] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0144] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0145] In the embodiments provided in the present 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 schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0148] If the 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 this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, 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 contained in computer-readable storage media can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable storage media do not include electrical carrier signals and telecommunication signals.
[0149] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for processing modeling data, characterized in that: The method comprises: Obtain a first input file, the first input file includes an object area and a marker area; the object area includes a plurality of object information, each object information is used to describe a first object, the first object is any object in the multi-body system to be modeled; the object information includes a first index, the first index is used to indicate a first marker, the first marker is a marker included in the first object; the marker area includes a plurality of marker information, each marker information is used to describe a second marker, the second marker is any marker in the multi-body system; the marker information includes marker parameters of the second marker; the marker parameters are first type parameters or second type parameters, wherein the value of the second type parameter is determined by a first function and a first type parameter, 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 whose value is configured by the user; Traversing each mark point information in the mark point area, and determining the value of the mark point parameter in the accessed mark point information based on the value of the first type parameter and the first function; A simulation model corresponding to the multi-body system is established based on the values of the parameters of each marking point and the objects and marking points described in the first input file.
2. The method for processing modeling data according to claim 1, characterized in that: The traversing each mark point information in the mark point area includes: Determine a first access order of each mark point information according to the mark point parameters respectively corresponding to each mark point information; Each mark point information in the mark point area is traversed according to the first access order.
3. The method for processing modeling data according to claim 2, characterized in that: The determining the first access order of each piece of marking point information according to the marking point parameters respectively corresponding to each piece of marking point information comprises: Generate a first topological map according to the marking point parameters corresponding to each of the marking point information, wherein the first topological map is used to describe the dependency relationship between the marking point parameters; According to the first topology map, a first access order of each marking point information is determined.
4. The method for processing modeling data according to claim 1, characterized in that: The step of obtaining the first input file comprises: The value of the target parameter input by the user is obtained, and the first input file is generated according to the value of the target parameter and a pre-stored parameterization file, wherein the target parameter is a first type parameter.
5. The method for processing modeling data according to claim 1, characterized in that: The object information further includes a second index, where the second index is used to indicate a second object, where the second object is an object on which the first object depends; The step of establishing a simulation model corresponding to the multi-body system based on the values of the parameters of each marking point and the objects and marking points described in the first input file includes: Determining a second access order of each piece of object information according to a second index included in each piece of object information; According to the second access order, traverse each object information in the object area, 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 the objects, a simulation model corresponding to the multi-body system is established.
6. The method for processing modeling data according to claim 5, characterized in that: The step of creating a sub-model of an object corresponding to the accessed object information based on the accessed object information and the first index in the object information comprises: Obtaining a value of a marking point parameter corresponding to the first index; Based on the accessed object information and the acquired values of the marking point parameters, a sub-model of the object corresponding to the accessed object information is created.
7. The method for processing modeling data according to claim 6, characterized in that: After obtaining the value of the marking point parameter corresponding to the first index, the method further includes: If the acquisition of the value of the marking point parameter corresponding to the first index fails, a first prompt message is output, where the first prompt message is used to prompt that the access to the marking point parameter corresponding to the first index is abnormal.
8. The method for processing modeling data according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to detecting an editing operation on the first input file, the first input file is adjusted based on the content of the editing operation, wherein the editing operation includes one or more of a modification operation, a deletion operation and an addition operation, and the effective location of the editing operation includes the object area and / or the marker point area.
9. 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, the method for processing modeling data according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for processing modeling data according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Mark point extraction method and device, electronic equipment and computer storage medium
CN112862813A
Torsional rigidity determination method and device, electronic equipment and storage medium
CN115033993A
Modeling simulation method and system and storage medium
CN115688389A
Multi-body dynamics automatic modeling method and system, terminal and storage medium
CN115758555A
MBD-based three-dimensional part dimension mark automatic generation method
CN119339374A