Workshop simulation methods, devices, electronic equipment and storage media

By using the co-simulation technology of Modelica and Unity3D, transportation instructions are generated and simulated, which solves the problem of lack of verification in workshop logistics planning and realizes the rationality verification and effective simulation of workshop planning.

CN118673686BActive Publication Date: 2025-10-31SUZHOU TONGYUAN SOFT CONTROL INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410714371.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2025-10-31
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In existing technologies, there is a lack of effective verification methods for workshop logistics planning, which makes it difficult to expose some hidden problems during the design phase and to determine whether the logistics planning is reasonable.

Method used

Production simulation is performed using a workshop model integrated with Modelica to generate transportation instructions. These instructions are then transmitted to a scene simulation model built on Unity3D via a co-simulation communication interface for co-simulation. By combining the openness of Modelica with the collision detection function of Unity3D, effective simulation of workshop transportation is achieved. Finally, the target simulation results are determined through the workshop model.

Benefits of technology

It enables effective verification of workshop-level planning, ensures the rationality of workshop planning, solves the exposure of hidden problems, and meets the complex requirements of large-scale workshop-level simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673686B_ABST
    Figure CN118673686B_ABST
Patent Text Reader

Abstract

This application discloses a workshop simulation method, apparatus, electronic device, and storage medium. The method involves acquiring a target simulation task and performing production simulation on the target task using a workshop model integrated with Modelica to generate transportation instructions. These instructions are then transmitted to a scene simulation model built using Unity3D via a co-simulation communication interface to achieve co-simulation of the target task. The Unity3D-based scene simulation model performs transportation simulation based on the instructions, obtaining the transportation simulation results, which are then transmitted to the workshop model via the co-simulation communication interface. The workshop model determines the target simulation result for the target simulation task based on the transportation simulation results. This application effectively verifies workshop-level planning, ensuring the rationality of the workshop plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to communication technology, and more particularly to a workshop simulation method, apparatus, electronic device, and storage medium. Background Technology

[0002] During the factory workshop planning process, logistics planning is required to ensure the normal operation of workshop production.

[0003] In existing technologies, logistics planning is generally carried out by design institutes in collaboration with owners based on experience to make unified workshop plans. However, when planning workshops based on experience, some hidden problems are difficult to expose during the design phase, making it difficult to judge whether the workshop logistics plan is reasonable and lacking an effective way to verify the workshop planning scheme. Summary of the Invention

[0004] This application provides a workshop simulation method, apparatus, electronic device, and storage medium to effectively verify workshop-level planning and ensure the rationality of workshop planning.

[0005] In a first aspect, embodiments of this application provide a workshop simulation method, which includes:

[0006] The target simulation task is obtained, and production simulation of the target simulation task is performed using a workshop model integrated based on Modelica to generate transportation instructions;

[0007] Through the co-simulation communication interface, transportation instructions are transmitted to the scene simulation model built based on Unity3D to achieve co-simulation of the target simulation task.

[0008] The scene simulation model built based on Unity3D performs transportation simulation according to transportation instructions, obtains transportation simulation results, and transmits the transportation simulation results to the workshop model through the joint simulation communication interface.

[0009] The workshop model determines the target simulation results for the target simulation task based on the transportation simulation results.

[0010] Secondly, embodiments of this application also provide a workshop simulation device, which includes:

[0011] The transportation instruction generation module is used to acquire the target simulation task and perform production simulation on the target simulation task using a workshop model integrated based on Modelica to generate transportation instructions.

[0012] The transportation instruction transmission module is used to transmit transportation instructions to the scene simulation model built based on Unity3D through the co-simulation communication interface, so as to realize the co-simulation of the target simulation task.

[0013] The transportation simulation result transmission module is used to perform transportation simulation based on the scene simulation model built on Unity3D, obtain transportation simulation results according to transportation instructions, and transmit the transportation simulation results to the workshop model through the co-simulation communication interface.

[0014] The target simulation result determination module is used to determine the target simulation result of the target simulation task based on the transportation simulation result of the workshop model.

[0015] Thirdly, embodiments of this application also provide an electronic device, which includes:

[0016] One or more processors;

[0017] Storage device for storing one or more programs;

[0018] When one or more programs are executed by one or more processors, the one or more processors implement any of the workshop simulation methods provided in the embodiments of this application.

[0019] Fourthly, embodiments of this application also provide a storage medium including computer-executable instructions, which, when executed by a computer processor, are used to perform any of the workshop simulation methods provided in embodiments of this application.

[0020] This application acquires the target simulation task and performs production simulation on the target simulation task using a workshop model integrated with Modelica, generating transportation instructions. This allows for effective simulation of the workshop's production process based on Modelica. Through a co-simulation communication interface, the transportation instructions are transmitted to a scene simulation model built on Unity3D to achieve co-simulation of the target simulation task. This leverages the advantages of Modelica's openness and Unity3D's mature collision detection capabilities to better meet the needs of complex, large-scale workshop-level simulations. The scene simulation model built on Unity3D performs transportation simulation based on the transportation instructions, obtaining transportation simulation results. This allows for effective simulation of the workshop's transportation situation based on Unity3D. The transportation simulation results are then transmitted to the workshop model through the co-simulation communication interface. The workshop model determines the target simulation result of the target simulation task based on the transportation simulation results, achieving unified multi-domain modeling and simulation analysis of the overall workshop-level system. Therefore, this application's technical solution solves the problems of some hidden issues being difficult to expose during the design phase, the difficulty in judging the rationality of workshop logistics planning, and the lack of effective verification methods for workshop planning schemes. It achieves the effect of effectively verifying workshop-level planning and ensuring the rationality of workshop planning. Attached Figure Description

[0021] Figure 1This is a flowchart of a workshop simulation method according to Embodiment 1 of this application;

[0022] Figure 2 This is a flowchart of a workshop simulation method according to Embodiment 2 of this application;

[0023] Figure 3 This is a flowchart of a workshop simulation method according to Embodiment 3 of this application;

[0024] Figure 4 This is a schematic diagram of the structure of a workshop simulation device according to Embodiment 4 of this application;

[0025] Figure 5 This is a schematic diagram of the structure of an electronic device according to Embodiment 5 of this application. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first" and "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Example 1

[0029] Figure 1 This is a flowchart of a workshop simulation method provided in Embodiment 1 of this application. This embodiment is applicable to the situation of simulating logistics in a workshop. The method can be executed by a workshop simulation device, which can be implemented by software and / or hardware and specifically configured in an electronic device, such as a computer.

[0030] See Figure 1 The workshop simulation method shown includes the following steps:

[0031] S110. Obtain the target simulation task, and perform production simulation on the target simulation task using the workshop model integrated based on Modelica to generate transportation instructions.

[0032] The target simulation task can be a simulation task specified according to the production process of the workshop to be simulated, used to verify the rationality of workshop transportation. For example, the target simulation task can be a generation task that completes a certain production step, involving the transportation of goods between at least two production devices. For instance, the target simulation task could be an unpacking device unpacking raw materials and transporting the unpacked materials to manufacturing equipment. Specifically, the target simulation task can be formulated by professional technicians based on the workshop's production process, or professional technicians can input the workshop's production process into an intelligent algorithm, which will automatically generate the target simulation task. This application does not impose specific limitations on this.

[0033] Modelica is an open, equation-based, object-oriented, multi-domain unified modeling language used for integrated workshop models. Modelica can construct complex, heterogeneous models with multi-domain coupling across various fields such as mechanical, electronic, hydraulic, pneumatic, and thermal systems. It facilitates physical system modeling, enabling the rapid construction of physical simulation models for complex systems. These models can be used to simulate the production operation and task scheduling of workshop equipment. Modelica offers good openness, allowing for customized development of functions and the embedding of various algorithms. Furthermore, workshop models integrated using Modelica have no limitations on simulation scale, enabling large-scale scenario simulation analysis.

[0034] The workshop model can be a simulation model of a workshop with certain production functions, integrated based on Modelica, used for production simulation of the target simulation task. Production simulation can simulate the production process of the workshop according to the target simulation task. For example, production simulation can be the unpacking of raw materials to be unpacked to obtain raw materials. The production simulation process can include unpacking a certain quantity of raw materials to be unpacked to obtain a certain number of kilograms of raw materials. Transportation instructions can be instructions for transporting the products after the production simulation of the target simulation task. Specifically, transportation instructions can be automatically generated by the workshop model based on the preset workshop production flow as the target simulation task.

[0035] S120. Through the co-simulation communication interface, the transportation instructions are transmitted to the scene simulation model built based on Unity3D to achieve co-simulation of the target simulation task.

[0036] Unity3D is an engine capable of implementing collision detection, collision response, and trigger events for simulating the transportation of objects in a workshop. As a powerful game development engine, Unity3D's collision component is a crucial element in achieving interaction and collision effects between game objects. In Unity3D, each object can have a collision component added to enable collision interactions with other objects. Furthermore, the object's trajectory and path can be set, simulating path planning and collision avoidance for mobile robots in transportation. Addressing the challenges of implementing physical collisions and path planning in Modelica, Unity3D can be used. Therefore, using a workshop model built in Modelica as a foundation and combining it with Unity3D for co-simulation can effectively meet the simulation requirements of typical production and transportation scenarios in a workshop.

[0037] The scene simulation model can be a model based on Unity3D to simulate the equipment placement scene in the workshop model. It is used to simulate the actual scene of the workshop to be simulated for transportation simulation.

[0038] The co-simulation communication interface serves as a communication interface between Modelica and Unity3D, used for data conversion and transmission of various commands during workshop simulation between the two platforms. Modelica and Unity3D have different data format requirements, therefore, the co-simulation communication interface needs to be pre-configured to convert the data, enabling communication between the workshop model and the scene simulation model. After establishing a workshop model integrated with Modelica and a scene simulation model built with Unity3D, a co-simulation communication interface needs to be set up for both models to facilitate co-simulation based on Modelica and Unity3D.

[0039] After a transport instruction is sent to the co-simulation communication interface, the interface converts the data format of the transport instruction into data conforming to the Unity3D format and transmits it to the scene simulation model built on Unity3D, so that the scene simulation model built on Unity3D can effectively obtain the transport instruction.

[0040] S130. A scene simulation model based on Unity3D is used to perform transportation simulation according to transportation instructions, obtain transportation simulation results, and transmit the transportation simulation results to the workshop model through the joint simulation communication interface.

[0041] Transportation simulation can simulate the transportation process for collision detection and to determine the rationality of workshop logistics planning. For example, transportation simulation can be a scenario simulation model driving a corresponding mobile robot to move according to transportation instructions. The transportation simulation results can be various data recorded during the simulation process, used to determine the rationality of the workshop logistics planning. For example, the transportation simulation results may include mobile robot start-up, pause, task completion time, and collision detection results. The specific content of the transportation simulation results can be set by professional technicians according to the simulation purpose; this application does not impose specific limitations on this.

[0042] The scene simulation model built based on Unity3D determines the starting point and ending point of the mobile robot in the scene simulation model according to the transportation instructions. Based on the preset path planning rules in the scene simulation model, the transportation path is determined, and the mobile robot is driven to move according to the transportation path. The corresponding data during the movement is recorded according to the data type required for the transportation simulation results, and the transportation simulation results are generated. The transportation simulation results are converted into data conforming to the Modelica format through the co-simulation communication interface and transmitted to the workshop model.

[0043] The path planning rules can be the principles that path planning must follow, pre-defined in the scene simulation model, and can be set by professional technicians. The transportation route can be a pre-defined fixed route or a variable one; this application does not specifically limit this. For example, the scene simulation model can determine the transportation route based on the path planning rules using intelligent algorithms. For example, the scene simulation model can also pre-set fixed path planning, automatically determining the transportation route after determining the starting point and destination.

[0044] S140. The workshop model determines the target simulation result of the target simulation task based on the transportation simulation result.

[0045] The target simulation result can be a score representing the execution result of the target simulation task determined based on the transportation simulation results, used to indicate the verification result of the workshop planning scheme. The transportation simulation results can be used to evaluate the transportation time of materials in the workshop model, whether there is a collision risk, etc., and then the target simulation result can be determined based on the various data in the transportation simulation results. For example, the target simulation result can be obtained by weighted summation of the various data in the transportation simulation results. The scoring rules and weights of each data point can be set according to requirements, and this application does not impose specific limitations on them. For example, the shorter the transportation time, the higher the score for the transportation time item; the lower the collision risk, the higher the score for the collision risk item. The verification result of the workshop planning scheme can be determined based on the numerical value of the target simulation result. For example, if the target simulation result exceeds 90, the workshop planning scheme is deemed to have passed verification; otherwise, the workshop planning scheme fails verification.

[0046] In traditional factory planning, the way logistics effectively validates planning schemes makes it difficult to expose some hidden problems during the design phase, such as cycle time bottlenecks, obstructed logistics routes, and mismatched equipment configuration requirements. Logistics simulation, however, is a necessary approach to address these hidden problems in the logistics planning stage. It is essential for ensuring that factory logistics planning, construction, and operation meet the requirements of scientific rigor, efficiency, timeliness, and economic viability. Its focus is on resolving issues such as cycle time bottlenecks, equipment configuration, and logistics route planning.

[0047] In the modeling and simulation process of factories, especially in the production and logistics field, the avoidance and detection of mobile robots are often involved. Although some logistics simulation software such as FlexSim can perform collision detection, their functions are simple, lack the support of optimization algorithms, and have limited simulation scale, making them unsuitable for large-scale scenario simulations and having poor applicability.

[0048] The technical solution of this embodiment acquires the target simulation task and performs production simulation on the target simulation task using a workshop model integrated with Modelica, generating transportation instructions. This allows for effective simulation of the workshop's production process based on Modelica. Through a co-simulation communication interface, the transportation instructions are transmitted to a scene simulation model built on Unity3D to achieve co-simulation of the target simulation task. This leverages the advantages of Modelica's openness and Unity3D's mature collision detection capabilities to better meet the needs of complex, large-scale workshop-level simulations. The scene simulation model built on Unity3D performs transportation simulation based on the transportation instructions, obtaining transportation simulation results. This allows for effective simulation of the workshop's transportation situation based on Unity3D. The transportation simulation results are then transmitted to the workshop model through the co-simulation communication interface. The workshop model determines the target simulation result of the target simulation task based on the transportation simulation results, achieving unified multi-domain modeling and simulation analysis of the overall workshop-level system. Therefore, this technical solution solves the problems of some hidden issues being difficult to expose during the design phase, the difficulty in judging the rationality of workshop logistics planning, and the lack of effective verification methods for workshop planning schemes. It achieves the effect of effectively verifying workshop-level planning and ensuring the rationality of workshop planning.

[0049] Example 2

[0050] Figure 2 This is a flowchart of a workshop simulation method provided in Embodiment 2 of this application. The technical solution of this embodiment is further refined based on the above technical solution.

[0051] Furthermore, the phrase "transmitting transportation instructions to the scene simulation model built on Unity3D through the joint simulation communication interface" is further refined to: "obtaining transportation instructions through the joint simulation communication interface; converting the transportation instructions into target script data through a preset data conversion method; and transmitting the target script data to the scene simulation model built on Unity3D" to transmit the transportation instructions to the scene simulation model.

[0052] See Figure 2 The workshop simulation method shown includes:

[0053] S210. Obtain the target simulation task, and perform production simulation on the target simulation task using the workshop model integrated based on Modelica to generate transportation instructions.

[0054] S220, obtain transportation instructions through joint simulation communication interface.

[0055] After the workshop model performs production simulation on the target simulation task, it generates transportation instructions and sends the transportation instructions to the co-simulation interface, which then retrieves the transportation instructions.

[0056] S230. The transportation instructions are converted into target script data through a preset data conversion method.

[0057] The preset data conversion method can be a pre-set data conversion method in the co-simulation communication interface, used to convert the data format in the transportation instructions so that the transportation instructions can be effectively read after being sent to the scene simulation model. The target script data can be the script data obtained by converting the transportation instructions according to the preset data conversion method, used to transmit to the scene simulation model.

[0058] The transportation instructions may involve tasks such as collecting and allocating mobile robots, and involve data such as task type, mobile robot destination, and mobile robot status. Based on the characteristics of the data, the task type is defined as integer data, the mobile robot destination is defined as real data, and the mobile robot status is defined as boolean data. Then, the task allocation logic is implemented through the Modelica language. Subsequently, the transportation instructions are converted into target script data through the co-simulation communication interface and transmitted to the scene simulation model in Unity3D. The scene simulation model reads the transportation instructions and drives the corresponding mobile robot to carry out transportation.

[0059] In one optional embodiment, the preset data conversion method includes at least one of: data reading order conversion method and data type conversion method.

[0060] Because the data types and reading order in Modelica differ from those in Unity3D, data order and data type conversions must be performed according to certain logic. For example, a real data type in Modelica can be converted to a floating-point data type that Unity3D can recognize; similarly, a floating-point data type that Unity3D can recognize can be converted to a real data type in Modelica. Other data types can also be converted to each other according to matching relationships.

[0061] The preset data conversion methods include at least one of the following: data reading order conversion method and data type conversion method, which can ensure that data can be interactively recognized between Modelica and Unity3D to realize data transmission and thus achieve joint simulation of Modelica and Unity3D.

[0062] It should be noted that the co-simulation communication interface can perform bidirectional conversion according to a preset data conversion method. That is, the co-simulation communication interface can convert data types in Modelica to data types recognizable in Unity3D according to the preset data conversion method, and it can also convert data types recognizable in Unity3D to data types in Modelica according to the preset data conversion method.

[0063] S240. Transfer the target script data to the scene simulation model built based on Unity3D.

[0064] The converted transmission instructions are transmitted to the scene simulation model built on Unity3D via a script. After receiving the target script data, the scene simulation model built on Unity3D can identify the corresponding data for subsequent transportation simulation.

[0065] S250, a scene simulation model built based on Unity3D, performs transportation simulation according to transportation instructions, obtains transportation simulation results, and transmits the transportation simulation results to the workshop model through a joint simulation communication interface.

[0066] S260, the workshop model determines the target simulation result of the target simulation task based on the transportation simulation result.

[0067] The technical solution of this embodiment obtains transportation instructions through a co-simulation communication interface; converts the transportation instructions into target script data through a preset data conversion method; transmits the target script data to a scene simulation model built based on Unity3D; performs data conversion through the co-simulation communication interface; realizes data transfer between Modelica and Unity3D; and achieves co-simulation between Modelica and Unity3D.

[0068] Example 3

[0069] Figure 3 This is a flowchart of a workshop simulation method provided in Embodiment 3 of this application. The technical solution of this embodiment is further refined based on the above technical solution.

[0070] Furthermore, before "transmitting transportation instructions to the scene simulation model built based on Unity3D through the joint simulation communication interface", add: "integrate the workshop model based on the Modelica logistics general component model library according to the connection relationship of each device in the workshop scene, and build a scene simulation model based on Unity3D; establish a communication connection between the workshop model and the scene simulation model based on the joint simulation communication interface of the workshop model and the scene simulation model", in order to build a communication interface between the workshop model and the scene simulation model.

[0071] See Figure 3 The workshop simulation method shown includes:

[0072] S310. Based on the connection relationship of each device in the workshop scene to be simulated, integrate the workshop model based on the Modelica logistics general component model library, and establish a scene simulation model based on Unity3D.

[0073] Before conducting workshop simulation, it is necessary to analyze the product logistics scenario of the workshop, and then construct workshop models and scenario simulation models based on the analysis results in order to establish workshop models and scenario simulation models that conform to reality.

[0074] Product logistics scenario analysis can be based on the workflow of the workshop to be simulated to determine which production equipment, performance requirements, and production principles the workshop should include, as well as the interconnection relationships between upstream and downstream equipment. For example, taking a certain production workshop as an example, the production equipment in this roll packaging workshop may include unpacking machines, manufacturing machines, and packaging machines. Logistics equipment mainly includes conveyor belts and mobile robots. The production process is as follows: the main raw materials are unpacked by the unpacking machine, then transported to the manufacturing machine via conveyor belt, where they are combined with other auxiliary materials to manufacture the product. Subsequently, the packaging machine packages the product into a standard product via conveyor belt. In addition, the manufacturing machine and packaging machine also have pallets for various auxiliary materials. When the pallets are used up, mobile robots are responsible for transporting them. Mobile robots are also responsible for collecting the raw material packaging removed by the unpacking machine.

[0075] The product logistics scenario analysis results, based on the hierarchical structure principle, decompose each piece of equipment in the simulated workshop, breaking down the production equipment model and logistics equipment into typical component models. For example, the unpacking machine can be abstracted as a decomposer; the manufacturing machine as a synthesizer; the packaging machine as a synthesizer; and the mobile robot corresponds to the mobile robot equipment in the model library. Fault models can also be added to each piece of equipment according to actual conditions to ensure the simulation more closely reflects real production conditions. Simultaneously, the decomposed components correspond one-to-one with the physical equipment, greatly improving the reusability of the components.

[0076] The production principles of each device and the connection relationships between each subsystem are defined, and the Modelica equipment model that conforms to the actual production situation is established using the Modelica general component model library developed by the multi-domain unified modeling software MWORKS.Sysplorer. Then, the workshop-level model is integrated using the equipment model according to the layout relationship of the workshop to be simulated and the connection relationship of the devices. The relevant co-simulation communication interface with Unity3D is reserved as an external connector, and finally the Modelica workshop model of the workshop to be simulated is realized.

[0077] The basic 3D model of the equipment is constructed using 3DS Max (a professional term for a modeling software) or a simplified 3D model processing method. The model must be kept within 40,000 polygons according to development specifications. Then, model textures are created, configured, and exported to Unity3D for development. The model file is imported into Unity3D, where it is automatically converted into a series of frame nodes. These nodes are then combined and connected according to the previously defined connection relationships between the subsystems to construct the Unity3D scene simulation model. Simultaneously, a co-simulation communication interface between Unity3D and the Modelica model is constructed as an external connector through secondary development of Unity3D.

[0078] S320, based on the joint simulation communication interface of the workshop model and the scene simulation model, establishes a communication connection between the workshop model and the scene simulation model.

[0079] After integrating the Modelica workshop model and building the Unity3D scene simulation model, network communication methods such as UDP or TCP / IP are used to transmit Modelica and Unity3D simulation data over the network, enabling data interaction between the Modelica workshop model and the Unity3D scene simulation model. For example, each time Unity3D is launched, it automatically opens the co-simulation communication interface, reads the transportation instructions transmitted from the Modelica workshop model through the co-simulation communication interface at a set frequency, assigns the instructions to the corresponding transportation equipment, drives the transportation equipment to run, obtains the transportation simulation results, and then sends the transportation simulation results back to the Modelica workshop model through the co-simulation communication interface for subsequent data processing, thus achieving co-simulation.

[0080] S330: Obtain the target simulation task, and perform production simulation on the target simulation task using a workshop model integrated with Modelica to generate transportation instructions.

[0081] In one optional embodiment, production simulation of the target simulation task is performed using a workshop model integrated with Modelica to generate transportation instructions. This includes: determining the target equipment based on the target simulation task using the workshop model integrated with Modelica; performing production simulation of the target equipment according to preset production principles and the target simulation task to generate the target product and determine the transportation destination of the target product; and generating transportation instructions based on the transportation destination.

[0082] The target equipment can be any device in the workshop model that performs the target simulation task, used to respond to the task. The workshop model can determine the corresponding target equipment based on the operation type in the target simulation task. The generated target product can be the product obtained after the target equipment performs production simulation. The transportation destination can be the location where the target product needs to be transported, used to determine the transportation instructions. The target equipment performs production simulation based on preset production principles and the target simulation task, generates the target product, and determines the transportation destination of the target product according to the production process. For example, if the target simulation task is unpacking raw materials, the workshop model determines the target equipment to be the unpacking machine. The unpacking machine unpacks the raw materials to obtain the raw materials, which are then used as the target product, and the transportation destination is determined to be the manufacturing machine according to the production process.

[0083] A transport instruction is generated based on the transport destination and the current location of the target product. The transport instruction may include relevant information about the current location, transport destination, and target product. For example, the relevant information about the target product may include mass, volume, and shape, etc., which are not specifically limited in this application.

[0084] By using a workshop model integrated with Modelica, the target equipment is determined according to the target simulation task. The target equipment performs production simulation according to the preset production principle and the target simulation task, generates the target product, and determines the transportation destination of the target product. It can automatically perform production simulation and provide transportation destinations for transportation instructions. Based on the transportation destination, transportation instructions are generated, which facilitates transportation simulation through the scene simulation model built with Unity3D.

[0085] S340. Through the co-simulation communication interface, the transportation instructions are transmitted to the scene simulation model built based on Unity3D to achieve co-simulation of the target simulation task.

[0086] S350, a scene simulation model built based on Unity3D, performs transportation simulation according to transportation instructions, obtains transportation simulation results, and transmits the transportation simulation results to the workshop model through the joint simulation communication interface.

[0087] In one optional embodiment, a scene simulation model built based on Unity3D is used to perform transportation simulation according to transportation instructions to obtain transportation simulation results, including: obtaining the transportation destination and current location based on the scene simulation model built based on Unity3D; determining the target transportation route based on the corresponding positions of the transportation destination and current location in the scene simulation model; and performing transportation simulation according to the target transportation route to obtain transportation simulation results.

[0088] After obtaining transportation instructions from the scene simulation model built in Unity3D, the transportation destination and current position are parsed out. The corresponding locations of the transportation destination and current position are then determined within the scene simulation model; specifically, the coordinates of the transportation destination and current position can be determined within the scene simulation model.

[0089] The target transportation route can be determined by the scenario simulation model based on the transportation destination and the current location. The target transportation route is determined according to the location coordinates corresponding to the transportation destination and the current location, as well as a preset path determination method. Preferably, when determining the target transportation route, the volume of the target product can also be considered to ensure that collisions do not occur during transportation. After determining the target transportation route, transportation simulation is performed according to the target transportation route, and relevant data from the transportation simulation are recorded to determine the transportation simulation results.

[0090] By using a scene simulation model built on Unity3D, the transportation destination is obtained according to the transportation instructions; the target transportation route is determined based on the transportation destination and the current position of the target equipment in the scene simulation model; transportation simulation is performed based on the target transportation route to obtain the transportation simulation results, thereby simulating the transportation process. This compensates for the shortcomings of workshop models in terms of logistics planning and collision detection, enabling joint simulation and effective verification of workshop-level planning, thus ensuring the rationality of workshop planning.

[0091] S360, the workshop model determines the target simulation results of the target simulation task based on the transportation simulation results.

[0092] The technical solution of this embodiment, by integrating the workshop model based on the Modelica logistics general component model library according to the connection relationship of each device in the workshop scene, and building a scene simulation model based on Unity3D, can accurately build a workshop model that conforms to reality and improve the accuracy of simulation results; based on the joint simulation communication interface of the workshop model and the scene simulation model, a communication connection between the workshop model and the scene simulation model is established, and joint simulation is realized through the joint simulation communication interface. Combining the advantages of the good openness of the Modelica model and the mature collision detection function of Unity3D, it better meets the complex large-scale workshop-level simulation needs.

[0093] Example 4

[0094] Figure 4 The diagram shown is a structural schematic of a workshop simulation device provided in Embodiment 4 of this application. This embodiment is applicable to the situation of simulating logistics in a workshop. The specific structure of the workshop simulation device is as follows:

[0095] The transportation instruction generation module 410 is used to acquire the target simulation task and perform production simulation on the target simulation task using a workshop model integrated with Modelica to generate transportation instructions.

[0096] The transportation instruction transmission module 420 is used to transmit transportation instructions to the scene simulation model built based on Unity3D through the co-simulation communication interface, so as to realize the co-simulation of the target simulation task.

[0097] The transportation simulation result transmission module 430 is used to perform transportation simulation based on the scene simulation model built on Unity3D, obtain transportation simulation results according to transportation instructions, and transmit the transportation simulation results to the workshop model through the joint simulation communication interface.

[0098] The target simulation result determination module 440 is used to determine the target simulation result of the target simulation task based on the transportation simulation result of the workshop model.

[0099] The technical solution of this embodiment acquires the target simulation task and performs production simulation on the target simulation task using a workshop model integrated with Modelica, generating transportation instructions. This allows for effective simulation of the workshop's production process based on Modelica. Through a co-simulation communication interface, the transportation instructions are transmitted to a scene simulation model built on Unity3D to achieve co-simulation of the target simulation task. This leverages the advantages of Modelica's openness and Unity3D's mature collision detection capabilities to better meet the needs of complex, large-scale workshop-level simulations. The scene simulation model built on Unity3D performs transportation simulation based on the transportation instructions, obtaining transportation simulation results. This allows for effective simulation of the workshop's transportation situation based on Unity3D. The transportation simulation results are then transmitted to the workshop model through the co-simulation communication interface. The workshop model determines the target simulation result of the target simulation task based on the transportation simulation results, achieving unified multi-domain modeling and simulation analysis of the overall workshop-level system. Therefore, this technical solution solves the problems of some hidden issues being difficult to expose during the design phase, the difficulty in judging the rationality of workshop logistics planning, and the lack of effective verification methods for workshop planning schemes. It achieves the effect of effectively verifying workshop-level planning and ensuring the rationality of workshop planning.

[0100] Optionally, the transport instruction transmission module 420 includes:

[0101] The transportation instruction acquisition unit is used to acquire transportation instructions through the joint simulation communication interface.

[0102] The target script data determination unit is used to convert transportation instructions into target script data through a preset data conversion method.

[0103] The target script data transmission unit is used to transmit target script data to the scene simulation model built based on Unity3D.

[0104] Optionally, the preset data conversion methods include at least one of the following: data reading order conversion method and data type conversion method.

[0105] Optional, the transport instruction generation module includes:

[0106] The target equipment determination unit is used to determine the target equipment based on the workshop model integrated by Modelica, according to the target simulation task.

[0107] The transportation destination determination unit is used to perform production simulation of the target equipment according to the preset production principle and target simulation task, generate the target product, and determine the transportation destination of the target product.

[0108] The transport instruction generation unit is used to generate transport instructions based on the transport destination.

[0109] Optional, the transportation simulation result transmission module includes:

[0110] The transportation instruction parsing unit is used to obtain the transportation destination and current location based on the scene simulation model built on Unity3D.

[0111] The target transportation route determination unit is used to determine the target transportation route based on the corresponding positions of the transportation destination and the current location in the scene simulation model;

[0112] The transportation simulation result determination unit is used to perform transportation simulation based on the target transportation route and obtain the transportation simulation results.

[0113] Optionally, the workshop simulation device also includes:

[0114] The model building module is used to integrate the workshop model based on the Modelica logistics general component model library and build the scene simulation model based on Unity3D, according to the connection relationship of each device in the workshop scene to be simulated.

[0115] The model communication connection module is used to establish a communication connection between the workshop model and the scene simulation model based on the joint simulation communication interface.

[0116] The workshop simulation device provided in this application embodiment can execute the workshop simulation method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the workshop simulation method.

[0117] Example 5

[0118] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of this application, as shown below. Figure 5 As shown, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the electronic device can be one or more. Figure 5 Taking a processor 510 as an example; the processor 510, memory 520, input device 530, and output device 540 in the electronic device can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.

[0119] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the workshop simulation method in this application embodiment (e.g., transportation instruction generation module 410, transportation instruction transmission module 420, transportation simulation result transmission module 430, and target simulation result determination module 440). The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 520, thereby realizing the aforementioned workshop simulation method.

[0120] The memory 520 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, the memory 520 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include memory remotely located relative to the processor 510, which can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0121] Input device 530 can be used to receive input character information and generate key signal inputs related to user settings and function control of the electronic device. Output device 540 may include display devices such as a display screen.

[0122] Example 6

[0123] Embodiment Six of this application also provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute a workshop simulation method. The method includes: acquiring a target simulation task and performing production simulation on the target simulation task using a workshop model integrated based on Modelica to generate transportation instructions; transmitting the transportation instructions to a scene simulation model built based on Unity3D through a co-simulation communication interface to achieve co-simulation of the target simulation task; the scene simulation model built based on Unity3D performing transportation simulation according to the transportation instructions to obtain transportation simulation results, and transmitting the transportation simulation results to the workshop model through the co-simulation communication interface; and the workshop model determining the target simulation result of the target simulation task based on the transportation simulation results.

[0124] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the method operations described above, but can also perform related operations in the workshop simulation method provided in any embodiment of this application.

[0125] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this application can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0126] It is worth noting that in the above-mentioned embodiments of the workshop simulation device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of this application.

[0127] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.

Claims

1. A workshop simulation method, characterized in that, include: Based on the connection relationships of various devices in the workshop scene to be simulated, a workshop model is integrated based on the Modelica logistics general component model library, and a scene simulation model is built based on Unity3D. Based on the joint simulation communication interface of the workshop model and the scene simulation model, a communication connection between the workshop model and the scene simulation model is established. The target simulation task is obtained, and the target simulation task is simulated in production using a workshop model integrated with Modelica to generate transportation instructions. The transportation instructions are transmitted to the scene simulation model built on Unity3D through the co-simulation communication interface to achieve co-simulation of the target simulation task. The scene simulation model built based on Unity3D performs transportation simulation according to the transportation instructions, obtains transportation simulation results, and transmits the transportation simulation results to the workshop model through the co-simulation communication interface. The workshop model determines the target simulation result of the target simulation task based on the transportation simulation result. The step of transmitting the transportation instructions to the scene simulation model built based on Unity3D via the joint simulation communication interface includes: The joint simulation communication interface acquires the transportation instructions; The transportation instructions are converted into target script data using a preset data conversion method. The target script data is transmitted to the scene simulation model built based on Unity3D; The preset data conversion methods include: At least one of the following: data reading order conversion method and data type conversion method; The co-simulation communication interface is the interface through which Modelica and Unity3D communicate.

2. The method according to claim 1, characterized in that, The process of performing production simulation on the target simulation task using a workshop model integrated with Modelica to generate transportation instructions includes: The workshop model based on Modelica integration determines the target equipment according to the target simulation task; The target equipment performs production simulation based on the preset production principle and the target simulation task, generates the target product, and determines the transportation destination of the target product. Based on the stated destination, a transport instruction is generated.

3. The method according to claim 2, characterized in that, The scene simulation model built based on Unity3D performs transportation simulation according to the transportation instructions, and obtains transportation simulation results, including: The scene simulation model built based on Unity3D obtains the transportation destination and current location according to the transportation instructions; The target transportation route is determined based on the corresponding positions of the transportation destination and the current location in the scenario simulation model; Based on the target transportation route, a transportation simulation was performed to obtain the transportation simulation results.

4. A workshop simulation device, characterized in that, include: The transportation instruction generation module is used to acquire the target simulation task and perform production simulation on the target simulation task using a workshop model integrated based on Modelica to generate transportation instructions. The transportation instruction transmission module is used to transmit the transportation instruction to the scene simulation model built based on Unity3D through the co-simulation communication interface, so as to realize the co-simulation of the target simulation task; The transportation simulation result transmission module is used to perform transportation simulation according to the transportation instructions in the scene simulation model built based on Unity3D, obtain transportation simulation results, and transmit the transportation simulation results to the workshop model through the joint simulation communication interface. The target simulation result determination module is used to determine the target simulation result of the target simulation task based on the transportation simulation result; The transport instruction transmission module includes: A transportation instruction acquisition unit is used to acquire the transportation instruction through the joint simulation communication interface. The target script data determination unit is used to convert the transportation instruction into target script data through a preset data conversion method; The target script data transmission unit is used to transmit the target script data to the scene simulation model built based on Unity3D; The preset data conversion methods include: At least one of the following: data reading order conversion method and data type conversion method; The co-simulation communication interface is the interface through which Modelica and Unity3D communicate. The workshop simulation device also includes: The model building module is used to integrate the workshop model based on the Modelica logistics general component model library and build the scene simulation model based on Unity3D, according to the connection relationship of each device in the workshop scene to be simulated. The model communication connection module is used to establish a communication connection between the workshop model and the scene simulation model based on the joint simulation communication interface of the workshop model and the scene simulation model.

5. 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 program, it implements the workshop simulation method as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the workshop simulation method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Dispatching system debugging method and device, debugging system and electronic equipment

    CN116880376A

  • Model construction method and device, equipment and storage medium

    CN118037145A