A construction method and system for multi-domain integrated system simulation

By creating model archives, editing functions, and simulation models, decoupling and grouping simulation models, and configuring the simulation environment, multi-domain integrated system simulation is realized. This solves the problem of difficulty in integrating multi-domain simulation models in existing technologies, improves the integration and consistency of system simulation, supports time and event-driven approaches, and simplifies the operation of distributed simulation.

CN120805420BActive Publication Date: 2026-06-16成都赢瑞科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
成都赢瑞科技有限公司
Filing Date
2025-06-25
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Existing simulation tools struggle to integrate multi-domain simulation models in comprehensive system scenarios, lack simulation task preemption, jitter, and offset functions, and lack event-driven capabilities, resulting in simulation models lacking universality and consistency in distributed environments.

Method used

By creating model archives, editing functional and simulation models, decoupling and grouping simulation models, configuring the simulation environment, and forming bus nodes into joint groups, multi-domain integrated system simulation can be achieved. Modeling analysis and simulation execution modules are used to support time-driven and event-driven approaches, establish peer-to-peer relationships among distributed nodes, and realize inter-node communication using a virtual bus.

Benefits of technology

It enables centralized management and version control of multi-domain models, improves the overall integration and maintainability of system simulation, breaks down domain barriers, enhances the collaborative efficiency and accuracy between heterogeneous models, and supports clear expression of many-to-many connection relationships and simplified deployment operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120805420B_ABST
    Figure CN120805420B_ABST
Patent Text Reader

Abstract

The application provides a multi-field comprehensive system simulation construction method and system, and relates to the technical field of simulation model establishment, and comprises the following steps: creating a model archive, wherein the model archive is used for storing model information and simulation configuration information; creating and editing a function model and a simulation model, wherein the function model comprises a modeling analysis module and a simulation execution module; configuring a simulation environment, decoupling and grouping the simulation model, wherein the decoupled objects comprise a system, a device and a bus node; and assembling the bus node into a joint group, and distributing the configuration information of the simulation model and the simulation environment into distributed nodes. The application has the advantages of improving the reliability and consistency of system comprehensive simulation integration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of simulation model building technology, and more specifically, to a method and system for constructing multi-domain integrated system simulation. Background Technology

[0002] Simulation technology is a technique that uses computer software to simulate the behavior of a target system.

[0003] Numerous simulation tools exist in the current technology, capable of meeting simulation needs in specific scenarios. However, because these tools operate independently and the models created by modelers are not synchronized, integration testing becomes difficult in system synthesis scenarios. Therefore, traditional simulation model building may suffer from the following problems: lack of integration capabilities for multi-domain simulation models; lack of simulation functions for task preemption, jitter, and offset; lack of event-driven functionalities; and the need to distinguish between master and slave nodes in distributed simulation, resulting in a lack of versatility.

[0004] Therefore, it is necessary to optimize the establishment of simulation models, unify the models from different fields into a single timeline for scheduling, and improve the reliability and consistency of the integrated simulation of the system. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for constructing multi-domain integrated system simulation, which can improve the reliability and consistency of integrated system simulation.

[0006] This invention is achieved through the following technical solution:

[0007] This invention first provides a method for constructing a multi-domain integrated system simulation, comprising the following steps:

[0008] Create a model archive, which is used to store model information and simulation configuration information;

[0009] Create and edit functional models and simulation models, wherein the functional model includes a modeling and parsing module and a simulation execution module;

[0010] Configure the simulation environment and decouple and group the simulation model. The decoupled objects include the system, devices, and bus nodes.

[0011] The bus nodes are grouped into a federation group, and the configuration information of the simulation model and simulation environment is distributed to the distributed nodes.

[0012] Preferably, the method for creating and editing the functional model is as follows:

[0013] Create header files and corresponding implementation files, define and establish modeling parsing functions and simulation execution functions. The modeling parsing functions are used to parse and process the input model data and convert it into model data that is compatible with the simulation system. The simulation execution functions are used to perform simulation calculations and simulation runs based on the parsed model data.

[0014] Preferably, the simulation execution function has the following functions:

[0015] Get model attributes;

[0016] Set model properties;

[0017] initialization;

[0018] Register port data definition parser;

[0019] Register data reader / writer;

[0020] Set the input port field;

[0021] Configure the output port field;

[0022] Perform the simulation.

[0023] Preferably, the method for creating and editing the simulation model includes:

[0024] Perform physical structure division;

[0025] Create and edit nodes and messages on the bus;

[0026] Perform task creation and method association;

[0027] Configure the allocation and scheduling of tasks on the processor.

[0028] Preferably, the setting of task allocation and scheduling on the processor includes: setting the start offset, execution duration, period, start offset jitter, execution jitter per execution, execution duration jitter, and task priority.

[0029] Preferably, the method for creating and editing nodes and messages on the bus includes:

[0030] Define the number, type, and attribute values ​​of the nodes; define the type, sending node, receiving node, and attribute values ​​of the message.

[0031] Preferably, the method for configuring the simulation environment includes:

[0032] Define the simulation model structure and simulation mode;

[0033] Obtain the IP address of the network device used for simulation and map the virtual bus to the hardware.

[0034] Preferably, the method for decoupling and grouping the simulation model is as follows:

[0035] Systems or devices connected to the same bus node are grouped together;

[0036] Bus nodes connected to the same system or device are grouped together.

[0037] The system that is not connected to any bus node is split into smaller units, with the smallest unit being a device.

[0038] Preferably, the method for forming a federation group of bus nodes is as follows:

[0039] Obtain node information for all distributed nodes participating in the simulation, including device IP, hardware capabilities, and simulation model type;

[0040] Based on the node information, create distributed node instances at the same level;

[0041] Synchronize the simulation model, environment configuration, and task parameters to each distributed node;

[0042] All the distributed nodes synchronously start the simulation task, and communication and data exchange between the distributed nodes are realized through the virtual bus.

[0043] This invention also provides a construction system for multi-domain integrated system simulation, applied to the above-mentioned construction method for multi-domain integrated system simulation, comprising:

[0044] The project management module is used to create model archives, which store model information and simulation configuration information.

[0045] The model editing module is used to create and edit functional models and simulation models. The functional model includes a modeling and parsing module and a simulation execution module.

[0046] The environment configuration module is used to configure the simulation environment, decouple and group the simulation model. The decoupled objects include the system, devices and bus nodes, and the bus nodes are grouped into a union group. The configuration information of the simulation model and simulation environment is distributed to the distributed nodes.

[0047] The technical solution of the present invention has at least the following advantages and beneficial effects:

[0048] This invention enables centralized management and version control of multi-domain models, improves the overall integration and maintainability of system simulation construction, breaks down domain barriers, and improves the collaborative efficiency and accuracy between heterogeneous models.

[0049] This invention effectively separates the functional description and simulation implementation of the model by creating functional models and simulation models separately, and by introducing a modeling analysis module and a simulation execution module, thus giving the model wider applicability, better reusability and modularity.

[0050] This invention achieves a clear expression of many-to-many connections and their relationships through a decoupled simulation model, and simplifies the expression and operation of deployment for complex systems after decoupling through grouping.

[0051] The nodes in the distributed simulation established in this invention are of the same level, which helps to achieve more flexible simulation combinations. Attached Figure Description

[0052] Figure 1 This is a flowchart illustrating the method for constructing a multi-domain integrated system simulation as provided in Embodiment 1 of the present invention.

[0053] Figure 2 This is a schematic diagram illustrating the principle of the construction system for multi-domain integrated system simulation provided in Embodiment 2 of the present invention. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0055] Example 1

[0056] This embodiment provides a method for constructing a multi-domain integrated system simulation. (See attached document.) Figure 1 This includes the following steps:

[0057] Step S1: Create a model archive, which is used to store model information and simulation configuration information;

[0058] Step S2: Create and edit the functional model and simulation model, wherein the functional model includes a modeling and parsing module and a simulation execution module;

[0059] The functional model mainly includes linear execution logic, interface parsing and scheduling of the external model, and data storage and transmission. In this embodiment, the method for creating and editing the functional model is as follows:

[0060] Create header files (.h) and corresponding implementation files (.cpp), defining and establishing modeling parsing functions and simulation execution functions. The modeling parsing functions parse and process the input model data, converting it into model data suitable for the simulation system. The simulation execution functions perform simulation calculations and run the simulation based on the parsed model data. The header file plays a crucial role in defining the interface within the plugin, providing a clear functional entry point and usage specifications for external systems. The implementation file is used to establish the functions.

[0061] This embodiment utilizes a modular plug-in design, splitting traditional functionality into two main parts: modeling parsing and simulation execution. The aim is to provide extended modeling parsing and simulation execution capabilities for specific main systems. Clear interface definitions and functional implementations are separated through header files (.h) and implementation files (.cpp), improving code maintainability, scalability, and reusability. Specifically, the modeling parsing module and simulation execution module enable the plug-in to support various forms of model input, enhancing its applicability and flexibility. Furthermore, this embodiment can uniformly schedule different third-party models and software, achieving integrated simulation of the entire system. The modeling parsing function typically accepts model file paths, model data strings, etc., as input parameters and returns the parsed model object or related information.

[0062] The following is an example of establishing a modeling analytical function by implementing a file:

[0063] cpp

[0064] / / Parse modeling files of a specific format

[0065] Model*parseModelFile(const std::string&filePath);

[0066] / / Parse the modeling data string

[0067] Model*parseModelString(const std::string&modelData);

[0068] Based on this, the simulation execution function utilizes the output of the modeling analytical function to achieve the crucial transformation from model to actual simulation execution. The functions of the simulation execution function include:

[0069] Get model attributes;

[0070] Set model properties;

[0071] initialization;

[0072] Register port data definition parser;

[0073] Register data reader / writer;

[0074] Set the input port field;

[0075] Configure the output port field;

[0076] Perform the simulation.

[0077] The implementation scheme of the above method is as follows:

[0078] Get the model properties, which include: primitive type, primitive ID, primitive name, execution duration, referenced model ID, package ID, plugin type, step size, stop time, referenced files, sub-model ID list, sub-primitive connections, input port list, and output port list.

[0079] Register port data definition parser;

[0080] In addition, the model's attributes include port type, port ID, port name, port binding ICD, and port data type.

[0081] In other words, simulation execution functions are used to perform simulation calculations and run simulations based on the parsed model data. These functions typically accept the parsed model object, simulation parameters, etc., as input and return simulation results or execution status information. For example:

[0082] / / Perform simulation calculations

[0083] SimulationResult executeSimulation(Model*model,constSimulationParameters¶ms);

[0084] / / Start real-time simulation

[0085] bool startRealTimeSimulation(Model*model,constRealTimeSimulationConfig&config);

[0086] On the other hand, simulation models create simulation models that represent the physical architecture of the integrated system. Methods for creating and editing these simulation models include:

[0087] The physical structure is divided into components, including systems, devices, schedulers, tasks, and buses. Attributes within a structure include: structure type, structure ID, structure name, associated definitions, whether simulation is enabled, channel list, substructure list, publish events, subscribe to events, execution conditions, and whether to start automatically.

[0088] This allows for the creation and editing of nodes and messages on the bus. Configuration content includes configuration name, configuration ID, description, bus node list, topic list, and message list. The topic attributes include ID, tag, bound ICD file, message transmission size, and transmission offset. Node attributes include the sending node list, receiving node list, and messages are constrained by topic rules. The bus configuration can hold multiple message lists.

[0089] Tasks are created and methods are associated. Task attributes include task ID, task name, execution duration, bound functional unit, execution priority, publication attribute list, start offset, execution cycle, jitter parameter, subscription attribute list, and execution count. Through the bound functional unit, combined with the simulation task's own scheduling execution attributes, the simulation logic is run.

[0090] Configure task allocation and scheduling on the processor. Scheduler attributes include scheduler ID, scheduler name, whether to run automatically, execution duration, number of executions, scheduler category, execution cycle, jitter parameters, event publishing parameters, event subscription parameters, task list, and number of simulation cores. Multiple schedulers form a scheduler group.

[0091] Based on this, the configuration of task allocation and scheduling on the processor includes: setting the start offset, execution duration, period, start offset jitter, execution jitter per execution, execution duration jitter, and task priority.

[0092] These attributes clearly define the time-driven behavior of tasks. Furthermore, since tasks also have priority attributes, they describe the resource preemption behavior based on priority when tasks execute simultaneously on the same processor. Additionally, control flows can be created between tasks, event triggering relationships can be set, and event-driven simulation logic can be implemented. Based on this scheme, both time-driven and event-driven approaches can be supported simultaneously, covering a wider range of application scenarios and improving the overall system flexibility and real-time performance. This invention also sets priorities to enable task preemption.

[0093] Furthermore, the method for creating and editing nodes and messages on the bus includes:

[0094] Define the number, type, and attribute values ​​of the nodes; define the type, sending node, receiving node, and attribute values ​​of the message.

[0095] Based on this configuration in this embodiment, both time-driven and event-driven approaches can be supported in a single system, further enhancing the overall applicability, flexibility, and real-time performance of the system.

[0096] Step S3: Configure the simulation environment and decouple and group the simulation model. The decoupled objects include the system, devices, and bus nodes.

[0097] As a preferred embodiment, the method for configuring the simulation environment includes:

[0098] Define the simulation model structure and simulation mode;

[0099] Obtain the IP address of the network device used for simulation and map the virtual bus to the hardware.

[0100] The method for decoupling and grouping the simulation model is as follows:

[0101] Systems or devices connected to the same bus node are grouped together;

[0102] Bus nodes connected to the same system or device are grouped together.

[0103] The system that is not connected to any bus node is split into smaller units, with the smallest unit being a device.

[0104] In traditional simulation models, nodes and hardware are typically the same object. In this embodiment's simulation model, hardware is abstracted into "devices" and "systems," thus decoupling hardware and nodes. Nodes can then be connected to devices and systems in a many-to-many relationship. Based on this, the devices, systems, and nodes in this many-to-many connection relationship should ideally belong to the same hardware; however, this decoupling is only implemented at the model level. Therefore, in distributed simulations, they must be deployed on the same hardware device. In other words, to achieve a clear expression of many-to-many connections and their relationships, the system's internal structure is decoupled. The drawback is that the model's expression and connection relationships can easily become complex. To address this complexity, this embodiment employs grouping, achieving a simplified deployment expression and operation.

[0105] The following is a grouping example:

[0106] A hardware bus node has only one serial port 422. Its internal software is divided into two parts, A and B, both connected and transmitting data via serial port 422. In modeling, to distinguish between A and B, two separate "systems" are used to represent A and B, and both systems are connected to this node. During simulation, they need to transmit data through a real 422 port, therefore they must be deployed together, thus forming a group.

[0107] Step S4: Assemble the bus nodes into a federation group and distribute the configuration information of the simulation model and simulation environment to the distributed nodes.

[0108] It's important to note that a bus node is part of a bus network. In distributed simulation, the model is assigned to hardware, which becomes the distributed node. This means that a distributed node corresponds to multiple different pieces of hardware for simulation.

[0109] In this embodiment, the method for forming a federation group of bus nodes is as follows:

[0110] Obtain node information for all distributed nodes participating in the simulation, including device IP, hardware capabilities, and simulation model type. It should be noted that in this embodiment, all distributed nodes are equal in status and communicate with each other during the simulation process.

[0111] Based on the node information, peer-level distributed node instances are created. Each distributed node is independent, without master or slave distinctions, and allocates and executes simulation tasks through network collaboration.

[0112] By synchronizing simulation models, environment configurations, and task parameters to each distributed node, a publish-subscribe mechanism can be used to ensure that the data and models on each node remain consistent and that the simulation is executed collaboratively.

[0113] All the distributed nodes synchronously start the simulation task, and communication and data exchange between the distributed nodes are realized through the virtual bus. Task scheduling and resource allocation during the simulation process ensure the coordinated operation between the distributed nodes.

[0114] It should be noted that the multiple fields can include mechanics, thermodynamics, and electromagnetism. When processing the files, FMU files can be identified, and FMI standards 1.0, 2.0, and 3.0 are differentiated and aligned, thereby enabling collaborative simulation across multiple disciplines. Since some software cannot generate FMUs, this embodiment uses a customized plugin to encapsulate the model code, thereby enabling unified scheduling and achieving the purpose of co-simulation.

[0115] Example 2

[0116] This embodiment provides a construction system for multi-domain integrated system simulation, applied to the aforementioned construction method for multi-domain integrated system simulation. (See attached document.) Figure 2 ,include:

[0117] The project management module is used to create model archives, which store model information and simulation configuration information.

[0118] The model editing module is used to create and edit functional models and simulation models. The functional model includes a modeling and parsing module and a simulation execution module.

[0119] The environment configuration module is used to configure the simulation environment, decouple and group the simulation model. The decoupled objects include the system, devices and bus nodes, and the bus nodes are grouped into a union group. The configuration information of the simulation model and simulation environment is distributed to the distributed nodes.

[0120] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for constructing a multi-domain integrated system simulation, characterized in that, Includes the following steps: Create a model archive, which is used to store model information and simulation configuration information; Create and edit functional models and simulation models, wherein the functional model includes a modeling and parsing module and a simulation execution module; Configure the simulation environment and decouple and group the simulation model. The decoupled objects include the system, devices, and bus nodes. The bus nodes are grouped into a union group, and the configuration information of the simulation model and simulation environment is distributed to the distributed nodes; The method for decoupling and grouping the simulation model is as follows: Systems or devices connected to the same bus node are grouped together; Bus nodes connected to the same system or device are grouped together. The system that is not connected to any bus node is split into smaller units, with the smallest unit being a device. The method for forming a federation group of bus nodes is as follows: Obtain node information for all distributed nodes participating in the simulation, including device IP, hardware capabilities, and simulation model type; Based on the node information, create distributed node instances at the same level; Synchronize the simulation model, environment configuration, and task parameters to each distributed node; All the distributed nodes synchronously start the simulation task, and communication and data exchange between the distributed nodes are realized through the virtual bus.

2. The method for constructing a multi-domain integrated system simulation according to claim 1, characterized in that, The method for creating and editing the aforementioned functional model is as follows: Create header files and corresponding implementation files, define and establish modeling parsing functions and simulation execution functions. The modeling parsing functions are used to parse and process the input model data and convert it into model data that is compatible with the simulation system. The simulation execution functions are used to perform simulation calculations and simulation runs based on the parsed model data.

3. The method for constructing a multi-domain integrated system simulation according to claim 2, characterized in that, The functions of the simulation execution function include: Get model attributes; Set model properties; initialization; Register port data definition parser; Register data reader / writer; Set the input port field; Configure the output port field; Perform the simulation.

4. The method for constructing a multi-domain integrated system simulation according to claim 1, characterized in that, The methods for creating and editing the simulation model include: Perform physical structure division; Create and edit nodes and messages on the bus; Perform task creation and method association; Configure the allocation and scheduling of tasks on the processor.

5. The method for constructing a multi-domain integrated system simulation according to claim 4, characterized in that, The configuration of task allocation and scheduling on the processor includes: setting the start offset, execution duration, period, start offset jitter, execution jitter per execution, execution duration jitter, and task priority.

6. The method for constructing a multi-domain integrated system simulation according to claim 4, characterized in that, The method for creating and editing nodes and messages on the bus includes: Define the number, type, and attribute values ​​of the nodes; define the type, sending node, receiving node, and attribute values ​​of the message.

7. The method for constructing a multi-domain integrated system simulation according to claim 1, characterized in that, The method for configuring the simulation environment includes: Define the simulation model structure and simulation mode; Obtain the IP address of the network device used for simulation and map the virtual bus to the hardware.

8. A system for constructing multi-domain integrated system simulation, applied to the method for constructing multi-domain integrated system simulation as described in any one of claims 1-7, characterized in that, include: The project management module is used to create model archives, which store model information and simulation configuration information. The model editing module is used to create and edit functional models and simulation models. The functional model includes a modeling and parsing module and a simulation execution module. The environment configuration module is used to configure the simulation environment, decouple and group the simulation model. The decoupled objects include the system, devices and bus nodes, and the bus nodes are grouped into a union group. The configuration information of the simulation model and simulation environment is distributed to the distributed nodes.