A digital thread platform and tool interoperability method for simulation models
By using interoperability methods between digital clue platforms and simulation models, the integration and efficient parsing of multi-source heterogeneous models were achieved, solving the data silo problem, supporting flexible adjustment of simulation parameters, reducing labor costs, improving the efficiency and accuracy of simulation analysis, and supporting data sharing and collaboration throughout the entire lifecycle.
Patent Information
- Application Number
- CN202611099658.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, product data across the entire lifecycle cannot be effectively connected and utilized, resulting in data silos, high labor costs, high error rates, and difficulty in achieving real-time analysis and dynamic assessment of project costs, schedules, performance, and risks.
By employing interoperability methods between digital cues platforms and simulation models, and utilizing the MWorks adapter and Sysplorer Python API, MWorks model files are parsed to extract top-level parameters and component information, forming structured JSON data. Simulation parameter control is then integrated via HTTP service, enabling the integration of multi-source heterogeneous models and precise control of the simulation process.
It achieves the integration and efficient analysis of multi-source heterogeneous models, supports flexible adjustment of simulation parameters, reduces labor costs, improves the efficiency and accuracy of simulation analysis, supports data sharing and collaboration throughout the entire lifecycle, and reduces iteration time and costs.
Smart Images

Figure CN123137643A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of systems engineering, and more particularly to a tool interoperability method for a digital thread platform and a simulation model. Background Technology
[0002] Digital threads refer to the creation and use of cross-domain, publicly accessible digital avatars (simulation models, test models, process models, and inspection models, etc.) that reflect the physical characteristics of complex products and support bidirectional communication of model information in both physical and digital spaces. On one hand, it ensures the continuous consistency of data, models, and information throughout the entire product lifecycle, from solution analysis, engineering manufacturing and development, production deployment to operational support, thereby enabling dynamic real-time evaluation of current and future product functions and performance. On the other hand, it feeds back information from the physical space to virtual product development, establishes a unified technical framework, supports cross-regional protocol interfaces, integrates with engineering knowledge management systems, provides an integrated perspective on complex organizations, and strengthens the quantitative analysis and confirmation of product performance boundaries and uncertainties.
[0003] Throughout the entire product lifecycle, digital lead platforms extensively collect vast amounts of data generated at each stage, from demand, planning, design, production, operation, maintenance, to recycling and disposal. This data is typically multi-source and heterogeneous. Data from different lifecycle stages often comes from different vendors, creating "data silos"—meaning that product data across lifecycles cannot be effectively integrated and utilized. Furthermore, the design, simulation, and post-maintenance of large-scale, complex product models still rely on expert monitoring, diagnosis, and error correction, resulting in high labor costs, high error rates, and high operational costs. Therefore, it is essential to develop a technology capable of parsing heterogeneous data and interoperating with specialized tools to enable real-time analysis and dynamic assessment of project costs, schedules, performance, and risks. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a tool interoperability method for digital clue platforms and simulation models, addressing the deficiencies mentioned in the background art.
[0005] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:
[0006] A tool interoperability method for digital clue platforms and simulation models includes the following steps:
[0007] Step 1) Analyze the simulation model to obtain the top-level parameters of the simulation model;
[0008] Step 1.1) Before model parsing, check the MWorks model file to ensure the correctness of the MWorks model and that the simulation parameters, simulation step size, and simulation time can be modified; ensure that you can connect to the specified path where the MWorks model file is stored, check the file system permissions, and ensure that the adapter can read the model file;
[0009] Step 1.2) Initialize the Python interpreter and Sysplorer Python API library, and ensure that all dependencies are loaded correctly to prepare for subsequent model parsing operations;
[0010] Step 1.3), Read the model file: Open the selected MWorks model file through file I / O operations and read its contents into memory;
[0011] Step 1.4) Perform a preliminary syntax check on the read model file content to verify whether it conforms to the Modelica language specification; if it does not conform, record the relevant error information and prompt the user to make corrections;
[0012] Step 1.5): Locate and extract the name of the simulation model;
[0013] Step 1.6) Use Python's uuid module to obtain the model's unique identifier (UID);
[0014] Step 1.7) Parse the top-level parameters, including the initial conditions of the model and key system parameters, extract the name, data type, and default value of the top-level parameters, and store them in a dictionary object;
[0015] Step 2), parse the component data of the simulation model:
[0016] Step 2.1) Obtain a list of all nested components in the top-level model;
[0017] Step 2.2), Recursive component parsing: For each located top-level component, continue to use the GetComponents method for recursive parsing;
[0018] Step 2.3) Enter the component and parse its child components; during the parsing of child components, continue to use the GetComponents method to get the nested components in the child components until all component levels have been completely parsed;
[0019] Step 2.4), extract component details: Use the GetParamList method to get the component type;
[0020] Step 2.5) Use the GetParamValue method to get the component's parameters;
[0021] Step 2.6) Organize the parsed model information and component information into a structured data format to form a standard JSON file for subsequent storage, retrieval, and utilization; this information will provide important basic data for model simulation, analysis, and interoperability with other tools;
[0022] Step 3), call the simulation model through the MWorks adapter:
[0023] Step 3.1), expose the parameter interface and integrate it with the HTTP service;
[0024] Step 3.2) Set simulation parameters, construct a request body that contains the parameter names to be modified and their corresponding expected values and conforms to the JSON format, and send a PUT or POST request to the corresponding HTTP endpoint exposed by the adapter. PUT is used to update the entire parameter set, and POST is used to add or partially update parameter values.
[0025] Step 3.3) After receiving the request to set simulation parameters, the adapter first verifies the received parameter data to ensure that the parameter type is correct, the value is within a reasonable range and meets the requirements of the model. After the verification is successful, the SetParamValue method in the MWorks.Sysplorer Python API is used to set the new parameter values into the corresponding model parameters to complete the update of the simulation model parameters.
[0026] Step 3.4) In order to meet different simulation accuracy and efficiency requirements, the adapter adjusts the simulation time step configuration by receiving an HTTP PATCH request sent by the digital thread platform; the request is sent to the corresponding endpoint of the adapter, and the request body carries the new time step value; after receiving the request, the adapter processes and converts it, and then applies the time step setting by calling the simulation settings interface of the model.
[0027] Step 3.5) After all simulation parameters are configured, the adapter receives an HTTP POST request from the digital thread platform. This request is sent to the adapter's simulation start endpoint. After receiving the request, the adapter starts the simulation calculation of the model by calling the simulation start interface defined in the MWorks.Sysplorer Python API, thus triggering the start of the simulation process.
[0028] Step 3.6) Monitor simulation progress and obtain results. During the simulation, the adapter records the simulation progress status in real time and stores this status information in a location that is easily accessible via HTTP. The digital thread platform periodically or as needed sends HTTP GET requests to the adapter's simulation status query endpoint to obtain the latest simulation progress information so as to promptly display it to the user or make decisions for subsequent operations.
[0029] Step 3.7) For the simulation result data, the adapter organizes it into a structured JSON format after the simulation is completed and stores it in the corresponding result resource endpoint; the digital clue platform retrieves this simulation result data by sending an HTTP GET request.
[0030] As a further optimization of the tool interoperability method of the digital clue platform and simulation model of the present invention, in step 1.5), the name of the simulation model is obtained by using the GetMethod method in the Sysplorer Python API through the Python interpreter.
[0031] As a further optimization of the tool interoperability method of the digital clue platform and simulation model of the present invention, step 2.1) uses the GetComponents method in the API to obtain a list of all nested components in the top-level model.
[0032] Compared with the prior art, the present invention, employing the above technical solution, has the following technical effects:
[0033] 1. This invention achieves the integration and efficient parsing of multi-source heterogeneous models, which can integrate MWorks models (.mo files) from different sources and with different structures, break down data silos between models, and can also deeply parse the top-level model and each component and convert them into structured data formats for easy subsequent processing;
[0034] 2. This invention supports flexible adjustment of simulation parameters. By exposing parameter interfaces and integrating with HTTP services, it enables digital thread platforms to flexibly set simulation parameters using standard HTTP methods, including modifying parameter values, simulation time, step size, etc., thereby achieving fine control over the simulation process.
[0035] 3. The MWorks adapter of this invention has significant advantages in system integration and full lifecycle support: On the one hand, it can deeply integrate with the digital thread platform, seamlessly integrating the data and simulation functions of the MWorks model into the full lifecycle management of the product, providing strong support for all stages such as design, simulation, production, and operation, and realizing data and function sharing and collaboration; on the other hand, it assists in the development and decision-making of complex systems, providing comprehensive and accurate data support and efficient simulation analysis methods for complex system development through data integration and tool interoperability, strengthening system performance analysis, effectively supporting decision-making at key decision points, and reducing lifecycle iteration time and costs. Attached Figure Description
[0036] Figure 1 This is a schematic diagram of the extended interface of the MWorks tool of the present invention;
[0037] Figure 2 This is a schematic diagram of a standard JSON format data file obtained after parsing using this invention;
[0038] Figure 3 This is the display interface of the digital clue platform for the model data, component data, and interface information obtained through the analysis of this invention.
[0039] Figure 4 After this invention is integrated with the digital clue platform, simulation parameters can be configured through the platform, and simulation diagrams can be called.
[0040] Figure 5 This is a schematic diagram showing the simulation result data transmitted through this invention after the simulation is completed. Detailed Implementation
[0041] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings:
[0042] This invention can be implemented in many different forms and should not be considered limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully express the scope of the invention to those skilled in the art. In the drawings, components are enlarged for clarity.
[0043] To enable users to leverage the seamless interaction and integrated analysis of various technical data, information, and engineering knowledge based on system models, and to complete real-time analysis and dynamic evaluation of project costs, schedules, performance, and risks, thereby strengthening the quantitative analysis and confirmation of system performance boundaries and uncertainties, effectively supporting decision-making at key points in the system lifecycle, and significantly reducing the iteration time at each stage of the complex system development lifecycle, this invention discloses a tool interoperability method for a digital thread platform and a simulation model.
[0044] Modelica models are MWorks source code files used to describe the behavior, structure, and connections of complex physical systems, including model definitions, parameters and variables, mathematical equations, and connections between components. These files allow users to build, simulate, and analyze various physical system models. The MWorks adapter uses the Sysplorer Python API provided by SoftControl for its configurator framework. The generated code framework then implements the parsing code for .mo files and the conversion code that transforms them into resource shapes conforming to platform calling specifications.
[0045] The Python API is a plugin for MWorks.Sysplorer that defines a set of interface specifications, including low-level algorithm interfaces and high-level kernel interfaces. The low-level algorithm interfaces standardize the interfaces for scientific computing algorithms and model solving algorithms; anything conforming to the algorithm interface standard can be integrated into the scientific computing and system modeling and simulation platform. The high-level kernel interface provides a set of kernel atomic APIs that support operations such as model compilation, model analysis, model solving, code generation, and reading and writing simulation results. Information and functions of some of the APIs are listed below:
[0046] GetClasses(String model_name): Retrieves the nested types of the specified model;
[0047] GetComponents(String model_name): Retrieves nested components of the specified model;
[0048] GetParamList(String pre_name): Retrieves a list of parameters in the prefix hierarchy of the specified component;
[0049] GetModelDescription(String model_name): Retrieves the description text of the specified model;
[0050] GetParamValue(String param_name): Retrieves the value of the parameter.
[0051] SetParamValue(String param_name, String value): Sets the value of the specified parameter in the current model. It also supports setting built-in type attributes.
[0052] Figure 1 This is a schematic diagram of the extended interface of the MWorks tool of the present invention.
[0053] After extracting the model data, it needs to be stored. Models are usually hierarchical and have a clear structure, so storing them in a structured file (JSON) is beneficial for subsequent parsing and reading of the model file.
[0054] Within the generated adapter framework, users need to select the corresponding MWorks model file (.mo file) on the platform. The adapter's conversion code will transform the information contained in the model into a resource format (a standard .json file) that conforms to the platform's calling specifications, allowing for further integration into the platform's front-end interface. Additionally, for models with adjustable parameters, the parameter tuning interface will be exposed during adapter design. This allows users to set parameters from the platform, call the adapter for simulation, and save the results.
[0055] The specific steps of this invention are as follows:
[0056] Step 1) Analyze the simulation model to obtain the top-level parameters of the simulation model;
[0057] Step 1.1): Before model parsing, check the MWorks model file to confirm the correctness of the MWorks model and that simulation settings such as simulation parameters, simulation step size, and simulation time can be modified. Ensure that it can connect to the specified path storing the MWorks model file (.mo file), and check file system permissions to ensure that the adapter can read the model file.
[0058] Step 1.2) Initialize the Python interpreter and the relevant Sysplorer Python API library, ensuring that all necessary dependencies are loaded correctly, in preparation for subsequent model parsing operations.
[0059] Step 1.3), Read the model file: Open the selected .mo file using file I / O operations and read its contents into memory. In this step, it is necessary to ensure the integrity of the file read, that is, to ensure that the read content matches the actual data in the file, and to avoid data loss or corruption.
[0060] Step 1.4) Perform a preliminary syntax check on the read model file content to verify whether it conforms to the Modelica language specification. If it does not conform, record the relevant error information and prompt the user to make corrections.
[0061] Step 1.5) Extract basic model information: Use methods provided by the Sysplorer Python API, such as GetMethod, to locate and extract the model name.
[0062] Step 1.6) Next, use Python's `uuid` module to obtain the model's unique identifier (UID). This typically involves parsing a specific identifier from the model file, which uniquely identifies the model within the entire project or system. The UID is unique within the system, distinguishing different models and facilitating accurate identification and referencing during subsequent model management, retrieval, and data integration.
[0063] Step 1.7) parse the top-level parameters. These parameters typically include the model's initial conditions, key system parameters, etc., and play an important role in the simulation process. It is necessary to accurately extract information such as the name, data type, and default value of these parameters and store them in a dictionary object.
[0064] Step 2), parse the component data of the simulation model:
[0065] Step 2.1) Locate the top-level component: Use an API, such as the GetComponents method, to obtain a list of all nested components in the top-level model. This step requires ensuring that the obtained component list is complete and that no important components are missing.
[0066] Step 2.2), recursively resolve components: For each located top-level component, continue to use the GetComponents method for recursive resolution.
[0067] Step 2.3) Enter the component's internal structure and parse its child components. During the parsing of child components, continue using the GetComponents method to retrieve nested components within the child components until all component levels have been completely parsed.
[0068] Step 2.4) Extract component details: Use the GetParamList method to get the type of the component, such as sensor, actuator, resistor, etc., which helps to determine the functional and behavioral characteristics of the component;
[0069] Step 2.5) Use the GetParamValue method to obtain the component's parameters. These parameters define the component's specific characteristics, such as resistance value, capacitance value, and sensor range.
[0070] Step 2.6) organizes the parsed model and component information into a structured data format, forming a standard JSON file for subsequent storage, retrieval, and utilization. This information provides crucial foundational data for model simulation, analysis, and interoperability with other tools. An example of the parsed JSON data file is shown below. Figure 2 .
[0071] Step 3), call the simulation model through the MWorks adapter:
[0072] Step 3.1), expose the parameter interface and integrate it with the HTTP service;
[0073] The adapter was designed with a dedicated HTTP-based interface service for the adjustable parameter simulation model, defining a corresponding HTTP endpoint for each adjustable parameter. This allows the digital thread platform to communicate efficiently with the adapter using standard HTTP methods (such as POST, GET, PUT, DELETE, etc.), enabling flexible control and management of simulation parameters. For example, sending a request containing a new parameter value to a specific endpoint via the POST method can modify the value of the corresponding parameter in the simulation model; using the GET method to request the corresponding endpoint can retrieve the current parameter value and related parameter metadata (such as parameter type, value range, default value, etc.), allowing the digital thread platform to display the parameter or perform further adjustments. The parsed data is displayed on the digital thread platform as follows: Figure 3 .
[0074] Step 3.2) Set the simulation parameters and construct a request body in JSON format, containing the names of the parameters to be modified and their corresponding expected values. Then, send a PUT or POST request to the specific HTTP endpoint exposed by the adapter (e.g., / simulation / model_id / parameters). PUT is used to update the entire parameter set, while POST is used to add or partially update parameter values.
[0075] Step 3.3): After receiving the simulation parameter setting request, the adapter first verifies the received parameter data to ensure that the parameter type is correct, the values are within a reasonable range, and meet the model requirements. After successful verification, the adapter uses the SetParamValue method in the MWorks.Sysplorer Python API to set the new parameter values to the corresponding model parameters, thereby completing the update of the simulation model parameters.
[0076] (Step 3.4) To meet different simulation accuracy and efficiency requirements, the adapter adjusts the simulation time step configuration by receiving an HTTP PATCH request from the digital thread platform. This request is sent to the corresponding endpoint of the adapter (e.g., / simulation / model_id / time_step), and the request body carries the new time step value. After receiving the request, the adapter performs appropriate processing and conversion, and then applies the time step setting by calling the model's simulation settings interface.
[0077] Step 3.5): After all simulation parameters are configured, the adapter receives an HTTP POST request from the digital thread platform. This request is sent to the adapter's simulation start endpoint (e.g., / simulation / model_id / start). Upon receiving this request, the adapter begins executing the model's simulation calculations by calling the simulation start interface defined in the MWorks.Sysplorer Python API, thus triggering the start of the simulation process. After the adapter is integrated with the platform, the simulation interface is as follows: Figure 4 As shown.
[0078] Step 3.6) Monitor simulation progress and obtain results. During the simulation, the adapter records the simulation progress status in real time (such as the completed simulation time, the current simulation step count, etc.) and stores this status information in a location easily accessible via HTTP. The digital thread platform periodically or on demand sends HTTP GET requests to the adapter's simulation status query endpoint (such as / simulation / model_id / status) to obtain the latest simulation progress information, so as to promptly display it to the user or make decisions for subsequent operations.
[0079] Step 3.7) For the simulation results data, the adapter organizes them into a structured JSON format after the simulation is completed and stores them in the corresponding results resource endpoint (e.g., / simulation / model_id / results). The Digital Clues platform retrieves this simulation results data by sending HTTP GET requests and visualizes it in the front-end interface in the form of charts, tables, etc., to help users analyze simulation results, evaluate system performance, etc. An example of simulation results is shown below. Figure 5 As shown.
[0080] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless defined as herein.
[0081] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for interoperability between a digital clue platform and a simulation model, characterized in that, Includes the following steps: Step 1) Analyze the simulation model to obtain the top-level parameters of the simulation model; Step 1.1) Before model parsing, check the MWorks model file to ensure the correctness of the MWorks model and that the simulation parameters, simulation step size, and simulation time can be modified; ensure that you can connect to the specified path where the MWorks model file is stored, check the file system permissions, and ensure that the adapter can read the model file; Step 1.2) Initialize the Python interpreter and Sysplorer Python API library, and ensure that all dependencies are loaded correctly to prepare for subsequent model parsing operations; Step 1.3), Read the model file: Open the selected MWorks model file through file I / O operations and read its contents into memory; Step 1.4) Perform a preliminary syntax check on the read model file content to verify whether it conforms to the Modelica language specification; if it does not conform, record the relevant error information and prompt the user to make corrections; Step 1.5): Locate and extract the name of the simulation model; Step 1.6) Use Python's uuid module to obtain the model's unique identifier (UID); Step 1.7) Parse the top-level parameters, including the initial conditions of the model and key system parameters, extract the name, data type, and default value of the top-level parameters, and store them in a dictionary object; Step 2), parse the component data of the simulation model: Step 2.1) Obtain a list of all nested components in the top-level model; Step 2.2), Recursive component parsing: For each located top-level component, continue to use the GetComponents method for recursive parsing; Step 2.3) Enter the component and parse its child components; during the parsing of child components, continue to use the GetComponents method to get the nested components in the child components until all component levels have been completely parsed; Step 2.4), extract component details: Use the GetParamList method to get the component type; Step 2.5) Use the GetParamValue method to get the component's parameters; Step 2.6) Organize the parsed model information and component information into a structured data format to form a standard JSON file for subsequent storage, retrieval, and utilization; this information will provide important basic data for model simulation, analysis, and interoperability with other tools; Step 3), call the simulation model through the MWorks adapter: Step 3.1), expose the parameter interface and integrate it with the HTTP service; Step 3.2) Set simulation parameters, construct a request body that contains the parameter names to be modified and their corresponding expected values and conforms to the JSON format, and send a PUT or POST request to the corresponding HTTP endpoint exposed by the adapter. PUT is used to update the entire parameter set, and POST is used to add or partially update parameter values. Step 3.3) After receiving the request to set simulation parameters, the adapter first verifies the received parameter data to ensure that the parameter type is correct, the value is within a reasonable range and meets the requirements of the model. After the verification is successful, the SetParamValue method in the MWorks.Sysplorer Python API is used to set the new parameter values into the corresponding model parameters to complete the update of the simulation model parameters. Step 3.4) In order to meet different simulation accuracy and efficiency requirements, the adapter adjusts the simulation time step configuration by receiving an HTTP PATCH request sent by the digital thread platform; the request is sent to the corresponding endpoint of the adapter, and the request body carries the new time step value. After receiving the request, the adapter processes and transforms it, and then applies the time step setting by calling the model's simulation settings interface; Step 3.5) After all simulation parameters are configured, the adapter receives an HTTPPOST request from the digital thread platform. This request is sent to the adapter's simulation start endpoint. After receiving the request, the adapter starts the simulation calculation of the model by calling the simulation start interface defined in the MWorks.Sysplorer Python API, thus triggering the start of the simulation process. Step 3.6) Monitor simulation progress and obtain results. During the simulation, the adapter records the simulation progress status in real time and stores this status information in a location that is easily accessible via HTTP. The digital clue platform periodically or on demand sends HTTP GET requests to the adapter's simulation status query endpoint to obtain the latest simulation progress, so as to promptly display it to users or make decisions on subsequent operations. Step 3.7) For the simulation result data, the adapter organizes it into a structured JSON format after the simulation is completed and stores it in the corresponding result resource endpoint; The digital clues platform retrieves these simulation results data by sending HTTP GET requests.
2. The tool interoperability method for the digital clue platform and simulation model according to claim 1, characterized in that, In step 1.5), the name of the simulation model is obtained by using the GetMethod method in the Sysplorer Python API through the Python interpreter.
3. The tool interoperability method for the digital clue platform and simulation model according to claim 1, characterized in that, In step 2.1), the GetComponents method in the API is used to obtain a list of all nested components in the top-level model.
