METHOD FOR CREATING A CO-SIMULA

DE502023005279D1Active Publication Date: 2026-11-05DSPACE SE & CO KG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE502023005279
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-12-20
Filing Date
2023-11-21
Publication Date
2026-11-05
Estimated Expiration
2043-11-21

AI Technical Summary

Technical Problem

Existing co-simulation methods require time-consuming and memory-intensive adjustments due to the need for specific adaptations in communication and distribution across different simulation environments, necessitating changes in simulation modules and agents with every modification.

Method used

A method for creating a co-simulation involving simulation components with runtime environment information modules and communication units, allowing communication interfaces independent of physical requirements, enabling a simulation component layer that can be executed by compatible simulation agents without requiring physical bus connections, and allowing parallel execution across various environments.

Benefits of technology

This method significantly enhances efficiency by reducing time and memory requirements, enabling flexible and efficient use of existing hardware for co-simulation applications.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The invention relates to a method for creating a co-simulation comprising a plurality of simulation modules, wherein the simulation modules each have at least one communication interface and are each executable with simulation agents, comprising the following method steps: generating simulation components, each of which is a container for one or more simulation modules; integrating the simulation modules into the simulation components; providing each simulation component with a runtime environment information module that contains information about the requirements of the simulation modules contained in the simulation component regarding the runtime environment, wherein the respective simulation agents must have properties corresponding to the requirements of the simulation modules in order to be able to execute them; and providing each simulation component with a communication unit.which contains a description of the communication interface of the simulation module, thus enabling communication with other simulation components.

[0002] There are numerous simulation tools available for creating model-in-the-loop, software-in-the-loop, hardware-in-the-loop, or connected mixed-reality simulations. A simulation tool typically consists of an editor, which allows users to define what is to be simulated, and a compiler, just-in-time compiler, or interpreter within a simulation environment. The compiler, just-in-time compiler, or interpreter then executes the simulation defined in the editor. Each of these simulation tools is typically designed for specific applications. Connected mixed-reality simulations are hybrid simulations combining real and simulated electronic control units (ECUs).

[0003] A simulation tool running on a computing unit is called a simulation agent. This computing unit does not necessarily have to be a localizable unit; rather, it can be part of a computing cluster or a cloud computing solution. An individual simulation is a simulation module executed by the simulation agent. The simulation module itself can be a script portable to the editor of a simulation tool. A script is a file that can be executed by the simulation agent and can also be in binary format. If necessary, an executable can be generated from the simulation module before execution. The executable is a compiled script and thus a program that can be run on a processor.

[0004] A co-simulation is characterized by the fact that it contains multiple simulation modules, which can be configured differently and may require similar or different simulation agents for execution. To create a co-simulation with various simulation modules and their associated simulation agents, the simulation modules or the specific simulation environments of the simulation tools and agents must be modified to allow data exchange between the modules via dedicated bus systems. This communication must be implemented within each simulation tool, and therefore in different ways. In addition to communication between the simulation modules, a consistent distribution of the modules across the different simulation environments, time synchronization, and simulation control must also be implemented.

[0005] US10585771B1 describes a test system for testing systems consisting of various hardware components. This allows for the testing of components of the system under test that are not yet physically present, using a co-simulation with the existing components. The described system, through suitable interface descriptions and modules, as well as an interface library, enables the simulation of simulated components within the test system with the corresponding real hardware components as soon as the real hardware becomes available.

[0006] The Functional Mock-up Interface specification defines a standard that describes containers which can hold simulation modules. These containers are provided with interface descriptions for communication. Accordingly, the communication between simulation modules embedded in simulation components, as well as the type of data exchanged, is defined exclusively within the respective simulation agents and is therefore not universally applicable. Consequently, running a simulation module on different simulation agents requires a new adaptation of the communication each time, and changes to the simulation regarding model-in-the-loop, software-in-the-loop, hardware-in-the-loop, or connected mixed-reality simulation methods result in communication changes that, in turn, necessitate time-consuming adjustments to the communication between the simulation modules.Any change to the simulation modules or the simulation type therefore necessitates a further, adapted, and memory-intensive co-simulation. The distribution of a simulation model across various simulation environments must also be specific to each environment.

[0007] Based on this, the object of the invention is to provide an improved method for creating a co-simulation.

[0008] This problem is solved by the subject matter of claim 1. Preferred embodiments are found in the dependent claims.

[0009] According to the invention, a method for creating a co-simulation comprising a plurality of simulation modules is provided, wherein the simulation modules each have at least one communication interface and are each executable with simulation agents, comprising the following method steps: Creating simulation components, each of which is a container for one or more simulation modules; integrating the simulation modules into the simulation components; providing each simulation component with a runtime environment information module containing information about the runtime environment requirements of the simulation modules contained within the simulation component, whereby the respective simulation agents must have properties corresponding to the requirements of the simulation modules in order to execute them; providing each simulation component with a communication unit containing a description of the simulation module's communication interface, thus enabling communication with other simulation components; connecting the communication units of the simulation components with one or more communication units of other simulation components.such that a network of simulation components interconnected via the communication units is formed, wherein this network of simulation components forms a simulation component layer that is independent of the physical requirements of the runtime environment, but the information on the requirements for executing the simulation component layer is contained in the runtime environment information modules, and creation of a co-simulation application in which the simulation components of the simulation component layer are assigned to a simulation agent type with the runtime environment information modules of the simulation components, wherein the simulation agent type is a description of the properties of the simulation agent required to execute the simulation module.

[0010] This provides a method for creating a co-simulation that is significantly more time- and memory-efficient than conventional methods. The invention thus enables the existing computer hardware to be used much more efficiently than before by improving internal computer processes.

[0011] The smallest unit of a co-simulation is the individual simulation module. Each simulation module has requirements for its runtime environment. A simulation tool suitable for co-simulation is therefore part of these requirements. These requirements can also include the processor architecture, the number of available CPUs and GPUs, the amount of RAM, and the operating system. In addition to these other requirements, the simulation tool is implemented as a property on a simulation agent that can execute the simulation module.

[0012] The simulation module is embedded within a simulation component, which includes a communication unit and a runtime environment information module. The communication unit contains a description of the simulation module's communication interface. This allows the communication method with other simulation components to be defined. The communication types possible via the communication interface are independent of specific simulation agents and can be signal-based communication in the form of model port connections or a bus access request in the form of an automotive bus such as Ethernet, CAN, LIN, or FlexRay. The physical bus does not necessarily have to be provided in every simulation component. Rather, the physical bus for one simulation component can be provided by another simulation component.In the context of software-in-the-loop simulation, a physical bus is therefore not necessarily required. Direct communication with another simulation component can also be established using a virtual bus. Furthermore, data exchange can be enabled via a global data structure that is synchronized between the simulation agents, as well as via inputs and outputs in the form of electrical signals that connect the simulation components.

[0013] The runtime environment information modules of the simulation components display the runtime environment requirements necessary for executing the simulation module. These requirements include the minimum properties a simulation agent must possess to execute the corresponding simulation component. This also includes necessary connections to other simulation agents, in interdependent systems, or to simulation components that are mutually dependent.

[0014] Creating a co-simulation application generates a hierarchy that allows the application to be orchestrated. Orchestrating a co-simulation application specifically means executing certain simulation modules contained within the simulation components in a specific sequence.

[0015] According to a preferred embodiment of the invention, the simulation agents are configured to perform hardware-in-the-loop, software-in-the-loop, or model-in-the-loop simulations. The combination of simulation components forms the simulation component layer. This layer is independent of the subsequent implementation of the co-simulation application and, in particular, the type of simulation. Model-in-the-loop, software-in-the-loop, hardware-in-the-loop, or connected mixed-reality simulations can thus be executed with the same, unchanged simulation component layer. Version updates of the simulation component layer or the simulation agents can be performed independently of each other and do not affect the other structure.

[0016] According to a further preferred embodiment of the invention, the method comprises the following additional steps: grouping simulation components with runtime environment information modules exhibiting compatible requirements; categorizing the simulation components with compatible runtime environment information modules into a processing unit application, such that simulation components with compatible runtime environment information modules are arranged in a common processing unit application and simulation components with mutually incompatible runtime environment information modules are arranged in different processing unit applications. Simulation components with compatible requirements in the runtime environment information modules can be executed together with a simulation agent type that includes the corresponding description of the properties.The execution can be chronological, parallel, and under real-time conditions. It is not necessary for the runtime environment information modules of the simulation components to have the same number of identical or compatible runtime environment requirements. If necessary, it is sufficient for the runtime environment requirements of the simulation component with the most requirements to be met.

[0017] In a further preferred embodiment of the invention, the method comprises the following additional steps: creating a simulation inventory containing the simulation agent types available in a simulation agent type network, and selecting from the simulation inventory the simulation agent types required for executing the processing unit application. The available simulation agent types are those types that are available for executing the co-simulation application. The network connections of the simulation agent types describe the connections between the simulation agents described by the respective simulation agent types, so that any communication between the simulation components on different simulation agents is possible. For example, the exchange of data via a global data structure that can be synchronized between the simulation agents is enabled.A simulation agent type is a description of the properties of the simulation agent required to execute the simulation module. There can be multiple simulation agents of the same simulation agent type in a simulation agent type network.

[0018] In principle, simulation agents can be associated with the co-simulation application in various ways. However, according to a preferred embodiment of the invention, the method comprises the following additional steps: providing a simulation agent inventory containing the simulation agents corresponding to the simulation agent types, and associating the co-simulation application with the simulation agents. Providing a simulation agent inventory enables faster retrieval of the available simulation agents. Associating the co-simulation application with the simulation agents involves assigning the simulation agents to the respective simulation components. The simulation components can then be executed with the corresponding simulation agents.

[0019] In principle, the co-simulation application can be executed in various ways. However, according to a preferred embodiment, the co-simulation application is executed in parallel on a computing cluster. This allows multiple instances of this co-simulation application to be executed in parallel on the computing cluster. It is not necessary for the entire co-simulation application to be executed on a computing cluster. For co-simulation applications that perform hardware-in-the-loop simulations, the co-simulation application may only be partially executed on a computing cluster. The part of the co-simulation application that involves the hardware can then be executed on a dedicated workstation with the corresponding associated hardware. A workstation, in this context, refers to a local computing unit. The hardware together with the computing unit constitutes the simulation agent in this specific example.

[0020] According to a preferred embodiment of the invention, the co-simulation application is executed in parallel on a GPU architecture of the computing cluster. Executing the co-simulation application on a GPU architecture enables particularly fast and efficient computation. Another preferred embodiment of the invention provides for the creation of multiple instances of the co-simulation application. With a plurality of available simulation agents of the required types for executing the co-simulation application, this allows for better utilization and thus more efficient use of the hardware. The instances of the co-simulation application can be distributed across various available simulation agents, and further co-simulation applications can also be dynamically allocated. This enables the prioritization of individual parts of the co-simulation application or of other co-simulation applications.

[0021] It is possible for the simulation agents to be configured on a local computing unit. However, according to a preferred embodiment, the simulation agents are part of a cloud computing system, and the co-simulation application is ported to this cloud computing system. Parts of the co-simulation application that are not hardware-bound can be executed decentrally in a cloud computing environment, so that the executability of the co-simulation application is not tied to a user's resources and can also be provided as a service.

[0022] According to the invention, a non-volatile, computer-readable storage medium with instructions stored on it is further provided, which, when executed on a processor, effect a method according to one of the preceding claims.

[0023] The drawing shows Fig. 1 a flowchart for a method according to a preferred embodiment of the invention, Fig. 2 a schematic representation of a simulation component according to a preferred embodiment of the invention, and Fig. 3 a schematic representation of a co-simulation according to a preferred embodiment of the invention.

[0024] The Fig. 1 shows a flowchart for a method according to a preferred embodiment of the invention. This method comprises steps S1 to S6b.

[0025] This method for creating a co-simulation 100 with a plurality of simulation modules 1 with communication interfaces 2, wherein the simulation modules 1 are executable with simulation agents 4, comprises the following steps: S1) Creating simulation components 6, which are containers for one or more simulation modules; S2) Placing the simulation modules 1 into the simulation components 6; S3) Providing each simulation component 6 with a runtime environment information module 8, which contains information about the runtime environment requirements of the simulation modules 1 contained in the simulation component 6, wherein the respective simulation agents 4 must have properties corresponding to the requirements of the simulation modules 1 in order to execute them; S4) Providing each simulation component 6 with a communication unit 10, which contains a description of the communication interface 2 of the simulation module 1, so that communication with other simulation components 6 is enabled; S5) Connecting the communication units 10 of the simulation components 6 with one or more communication units 10 of other simulation components 6.such that a network of simulation components 6 interconnected via the communication units 10 is formed, wherein this network of simulation components 6 forms a simulation component level 12 which is independent of the physical requirements of the runtime environment, but the information on the requirements for executing the simulation component level 12 is contained in the runtime environment information modules 8, S5a) grouping simulation components 6 with runtime environment information modules 8 exhibiting compatible requirements, S5b) categorizing the simulation components 6 with runtime environment information modules 8 exhibiting compatible requirements into a processing unit application 14,such that simulation components 6 with compatible runtime environment information modules 8 are arranged in a processing unit application 14, and simulation components 6 with mutually incompatible runtime environment information modules 8 are arranged in different processing unit applications 14, S5c) Create a simulation inventory that contains the simulation agent types 16 available in a simulation agent type network, S5d) Select the simulation agent types 16 required for the execution of the processing unit application 14 from the simulation inventory, S6) Create the co-simulation application 18 in which the simulation components 6 of the simulation component level 12 are assigned to a simulation agent type 16 with the runtime environment information modules 8 of the simulation components 6,where simulation agent type 16 is a description of the properties of the simulation agent 4 required to execute the simulation module 1, S6a) providing a simulation agent inventory containing the simulation agents 4 corresponding to simulation agent types 16, and S6b) associating the co-simulation application 18 with the simulation agents 4.

[0026] In Fig. 2 The simulation component 6 according to the invention is shown schematically. The simulation component 6 comprises the runtime environment information module 8 and the communication unit 10. The communication unit 10 contains a description of the communication interface 2 of the simulation module 1, which is integrated into the simulation component 6. The simulation module 1 can be a script. A script is a file that can be executed by the simulation agent 4 and can also be in binary format. If necessary, an executable can be generated from the simulation module 1 before execution.

[0027] Fig. 3Finally, Figure 1 schematically shows a co-simulation 100 according to a preferred embodiment of the invention. The simulation components 6 are organized into the processing unit applications 14 according to their runtime environment requirements. The communication units 10 of the simulation components 6 are interconnected, and the simulation components 6 form the simulation component level 12. This level is independent of the physical requirements of the runtime environment. However, the requirements for executing the simulation component level 12 with the respective simulation agents 4 are contained in the runtime environment information modules 8. The simulation inventory lists the simulation agent types 16 available in a simulation agent type network. The simulation agent types 16 required for executing the co-simulation application are then selected from this simulation agent type network.The co-simulation application 18 is created, in which the simulation components 6 of the simulation component level 12 are assigned to a simulation agent type 16 with the runtime environment information modules 8 of the simulation components 6. The simulation agents 4 corresponding to the simulation agent types 16 are contained in the provided simulation agent inventory. The simulation agents 4 can thus be associated with the co-simulation application 18. The simulation agents 4 are interconnected via a network, so that the execution of the simulation modules 1 contained in the simulation components 6 can be orchestrated using the hierarchy created by forming a co-simulation application 18. Furthermore, data can be transferred between the simulation agents 4.In the case of conditional co-simulation 100, where, for example, a workstation with hardware to operate this hardware depends on the result of a previous simulation, this is transferred between the simulation agents 4. Reference symbol list

[0028] 1 Simulation module 2 Communication interface 4 Simulation agent 6 Simulation component 8 Runtime environment information module 10 Communication unit 12 Simulation component level 14 Processing unit application 16 Simulation agent type 18 Co-simulation application 100 Co-simulation

Claims

1. A computer-implemented method for creating a co-simulation (100) comprising a plurality of simulation modules (1), wherein the simulation modules (1) each comprise at least one communication interface (2) and each can be executed with simulation agents (4), comprising the following method steps: S1) Generating simulation components (6), each of which is a container for one or more simulation modules, S2) Assigning the simulation modules (1) to the simulation components (6), S3) Providing each simulation component (6) with a runtime environment information module (8), which contains information regarding the requirements of the simulation modules (1) contained in the simulation component (6) with respect to the runtime environment, wherein the respective simulation agents (4) must possess properties corresponding to the requirements of the simulation modules (1) in order to be able to execute them, S4) Equipping each simulation component (6) with a communication unit (10) that contains a description of the communication interface (2) of the simulation module (1), thereby enabling communication with other simulation components (6), S5) Connecting the communication units (10) of the simulation components (6) to one or more communication units (10) of other simulation components (6), thereby forming a network of simulation components (6) interconnected via the communication units (10), wherein this network of simulation components (6) forms a simulation component layer (12) that is independent of the physical requirements of the runtime environment, although information regarding the requirements for executing the simulation component layer (12) is contained in the runtime environment information modules (8), and S5a) Grouping simulation components (6) with runtime environment information modules (8) that have compatible requirements, and S5b) Categorizing the simulation components (6) with runtime environment information modules (8) having compatible requirements into a processing unit application (14), so that simulation components (6) with runtime environment information modules having compatible requirements (8) are arranged in a common processing unit application (14), and simulation components (6) with runtime environment information modules (8) having mutually incompatible requirements are arranged in different processing unit applications (14), S5c) Forming a simulation inventory that contains the simulation agent types (16) available in a simulation agent type network, and S5d) Selecting the simulation agent types (16) required for executing the processing unit application (14) from the simulation inventory, S6) Creating a co-simulation application (18) in which the simulation components (6) of the simulation component layer (12) are assigned to a simulation agent type (16) with the runtime environment information modules (8) of the simulation components (6), wherein the simulation agent type (16) is a description of the properties of the simulation agent (4) required to execute the simulation module (1), and S6a) Providing the simulation agent inventory, which contains the simulation agents (4) corresponding to the simulation agent types (16), and S6b) Associating the co-simulation application (18) with the simulation agents (4).

2. The method according to claim 1, wherein the simulation agents are configured to perform hardware-in-the-loop, software-in-the-loop, or model-in-the-loop simulations.

3. A method according to any of the preceding claims, wherein the co-simulation application (18) is executed in parallel on a computing cluster.

4. The method according to claim 3, wherein the co-simulation application (18) is executed in parallel on a GPU architecture of the computing cluster.

5. The method according to any of the preceding claims, wherein multiple instances of the co-simulation application (18) are generated.

6. A method according to any of the preceding claims, wherein the simulation agents (4) are part of a cloud computing system and the co-simulation application (18) is ported to this cloud computing system.

7. A non-volatile, computer-readable storage medium having stored thereon instructions that, when executed on a processor, cause a method according to one of the preceding claims.