A multi-source heterogeneous model digital integration construction method and system
By using a multi-source heterogeneous model digital integration construction method, the problem of inconsistent digital model transmission in ship systems was solved, enabling system cascade simulation and real ship mission simulation, optimizing the design process, and providing digital service support.
Patent Information
- Application Number
- CN202411817146.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-12-10
AI Technical Summary
Existing technologies cannot effectively solve the problem of inconsistent data transmission between digital models of multiple disciplines and systems in ship systems. They are particularly limited in cross-system joint simulation and actual ship CAE technology applications, and are unable to reflect the multidisciplinary characteristics of different levels and different equipment.
A multi-source heterogeneous model digital integration construction method is adopted. By defining standardized encapsulation, designing composite data models, building association mapping based on macro commands and driving the task engine, a digital integration system with task operation process as the main line is established. The model integration is carried out using the FMI standard and Modelica language to realize the unified service interface and application encapsulation of the model.
It achieves consistent data transfer and cascaded simulation of digital models from multiple disciplines and systems, supports real-ship mission simulation and decision support, optimizes the design process, reduces the number of times model data needs to be manually corrected, and improves design efficiency.
Smart Images

Figure CN119621044B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of heterogeneous model integration technology in ship auxiliary design, and in particular to a method and system for digital integration and construction of multi-source heterogeneous models. Background Technology
[0002] With the development of modern computer technology and modeling simulation, digital design and digital testing technologies in digital engineering have become capable of replacing physical testing, significantly improving operational efficiency and becoming an important tool in the design process of complex systems. An increasing number of aerospace and marine system R&D projects are adopting digital engineering using system modeling and virtual simulation technologies to optimize product design and reduce development costs and time. Over the years, the marine systems field has established a considerable scale of digital software platforms or support capabilities in R&D design, testing and verification, final delivery, use and maintenance, and full lifecycle data management, including CAD software, engineering simulation software, and full lifecycle management software. Currently, there are conditions to support the single-discipline analysis and verification needs of various specialties within the marine systems field, such as control, structure, hydraulics, and electrical systems, while also supporting the viewing and management of product lifecycle data.
[0003] However, there are barriers to model data interaction between software, requiring a large amount of secondary modeling. In order to solve the requirements of data interoperability, model transfer and process integration in the ship development, testing, type approval, delivery and use and maintenance stages, it is necessary to study and form a digital integration construction method for multi-source heterogeneous models. Taking the operation process as the main line, it drives the simulation environment of each small scenario, completes the connection and integration of data links between different levels and professions, and forms a runnable multi-level digital model.
[0004] For the integrated construction of multi-source heterogeneous models, the development, integration, and use of existing standardized models mostly adopt Modelica and FMI standards to achieve unified simulation model construction for multiple disciplines such as electromechanical, hydraulic, control, and thermal. The Modelica language specification supports model visualization construction (including one-dimensional translational and rotational motion in mechanics, three-dimensional multibody simulation, electronics, control, hydraulics, electromagnetics, and thermodynamics), encapsulation (parameter extraction and custom parameter panels, modular encapsulation, layout, etc.), compilation, analysis, solving, and post-processing for multiple physics domains. It also provides related analysis and optimization tools to support subsequent design work. In addition, it provides FMU import / export interfaces for some CAE-related software, supporting the import and export of FMU models conforming to FMI 1.0 and 2.0 specifications. The FMI standard interface provides integration and co-simulation of heterogeneous models (C / C++ / Fortran models, Matlab / Simulink models, and FMU models), unifying heterogeneous models built with different modeling languages and software tools into model components conforming to the FMI interface specification using different encapsulation methods, and then hybridizing them to form a heterogeneous integrated model.
[0005] However, there is still a lack of relevant technical capabilities for complex system-level applications such as ship system development, testing and verification, operation and maintenance, multi-level emergent characteristic analysis of systems, and interactive verification of test data and design mechanisms.
[0006] On the one hand, unified simulation models for various disciplines such as electromechanical, hydraulic, and thermal control have been built based on the import / export interfaces of Modelica and FMU. However, at present, multi-domain simulation mainly relies on single-domain software to build multi-disciplinary models, which cannot fully reflect the multi-disciplinary characteristics of different levels and equipment in the ship system. For cross-system joint simulation of mission operations, the characteristics of the ship as a "giant system" are not suitable. It is necessary to establish a heterogeneous model calling and integration environment driven by the mission engine to solve the shortcomings in the hierarchical simulation model of equipment-level multi-disciplinary characteristics and overall multi-disciplinary characteristics. On the other hand, the purpose of digital integration and application of multi-source heterogeneous models is to use digital models to support the simulation of actual ship missions. However, actual ship CAE technology has strong limitations. It is necessary to combine the coordination and management of numerical simulation resources in the actual environment. In view of the problems of large number of measurement points, large amount of data, and difficulty of manual correspondence in actual ship data collection, the digital model integration and construction needs to consider the impact of model accuracy, simulation step size on numerical accuracy, and computational efficiency. It is necessary to combine the experience and rules of ship design to establish a unified service interface for digital models to complete the application encapsulation of digital models to support the actual ship to carry out digital applications such as auxiliary decision-making. Summary of the Invention
[0007] One objective of this application is to provide a method and system for the digital integration and construction of multi-source heterogeneous models, in order to solve the problem that digital models of multiple disciplines and systems cannot transmit data in a consistent manner under the existing technology.
[0008] To achieve the above objectives, some embodiments of this application provide a method for digitally integrating and constructing multi-source heterogeneous models, the method comprising the following steps:
[0009] Step 1. Define the standardized encapsulation of the multi-source heterogeneous model;
[0010] Step 2. Design a composite data model;
[0011] Step 3. Establish the association mapping between the multi-source heterogeneous model and the composite data based on macro commands;
[0012] Step 4. The task engine drives the multi-source heterogeneous model;
[0013] Step 5. Perform integrated co-simulation based on the multi-source heterogeneous model.
[0014] Furthermore, step 1 includes: for various heterogeneous models, based on the heterogeneous model open interface FMI standard, completing the standardized encapsulation of heterogeneous models, FMI import and export, and integrated modeling of FMU models;
[0015] For the white-box model, it is encapsulated in the form of a DLL, and called in the co-simulation model through the encapsulated interface;
[0016] For gray-box model formats, the input and output data formats of function functions are defined by supporting the FMI standard.
[0017] For other computing software models that do not support the above standards, the two parties shall agree to use JSON format for data exchange via network protocol communication.
[0018] Furthermore, step 2 includes: taking the task scenario requirements as input to the multi-source heterogeneous model and conducting task process analysis; conducting task analysis, functional analysis, and architecture design based on top-down sorting using structured text language; and building a hierarchical operation system model library based on heterogeneous model encapsulation standards, Modelica language, and other algorithm-based construction languages to support the construction of digital models for subsystems.
[0019] Furthermore, the hierarchical structure of the operation system model library is used to store data in the form of a model tree. The component nodes of the structure tree contain various types of information and are stored using an object-oriented database method. At the same time, a top-level data class is established for the top-level task.
[0020] Furthermore, step 3 includes: establishing a topological association based on macro commands to build an association mapping between the established models, which is used to define the correlation between different models;
[0021] The definition of the relationships between different models includes establishing a time-based refresh mechanism and an observer mechanism to monitor the model status in real time. The time-based refresh mechanism uses time as the control mechanism for model refresh. The entire model has one and only one irreversible clock. When the model is built or the calculation and analysis are completed, a refresh time is established for the model. When the model data is modified, a modification time is established for the model, and a refresh action is issued by calculating and comparing the time difference. When the state of the device model changes, the system detects the change in the model state, updates the modification time of the current model, and if the modification time of the model is greater than the refresh time, the model is refreshed. If there are related models in the model waiting to be refreshed, the specific storage location and model state of the related models are found in the model tree according to the model path of the related models. It is checked whether there are related macro commands that have caused the model data to be modified, and all the objects to be observed are notified so that they can automatically update their own states. The observer mechanism is based on the one-to-many dependency relationship between object models. When the state of an object model changes, all the observer objects are notified to automatically update their states.
[0022] The process of establishing correlation mappings between the established models includes establishing model correlations in two ways: one is to establish implicit correlations in the definition, and when refreshing the design data, to directly add correlation information in the correlation layer of the model based on the correlation mapping between the models; the other is to define related data using model names, and to establish a composite model of the device by defining parameter information.
[0023] Furthermore, the step of issuing a refresh action by calculating and comparing time differences includes: when the modification time of the model is greater than the refresh time, the model is determined to need to be refreshed, including recalculation, analysis or regeneration; or when there are related models, when the modification time of the related model is greater than the refresh time of the model, the model is also determined to need to be refreshed.
[0024] Furthermore, step 4 includes establishing a task operation process, driven by task execution messages, and injecting preconditions based on the established model-data association mapping to drive the relevant models.
[0025] The task execution message triggers the digital co-simulation environment to drive the corresponding performance model to complete the calculation task, parse the main parameter list, assign input parameters to each model performing the operation, generate model data links, and complete parameter transmission loop verification.
[0026] Furthermore, the model driven by job task execution messages includes the following processes: event design and development, event management mechanism, event handling and response, bidirectional correlation mapping of event data streams, and implementation of event visualization design;
[0027] The event design and development includes external and internal events. External events include input computation signals from outside the program, which are used to construct the behavior of the simulation application system through interactive coding by calling the unified communication function interface at the system's underlying layer. Internal events include internal execution signals generated from parsing task instructions, involving the driving signals of the simulation small scene model, algorithm model, API, and FMU model. These various models have calling dependencies. The data chain branches for solving are generated based on the input computation signals from outside the program, and the overall loop check of the data chain branches is checked. The calls are implemented in the form of APIs through the model and data association mapping function interface based on macro commands.
[0028] The event management mechanism is as follows: event source components are managed based on the registered graphics component library, and external events are listened to and managed; based on the events collected by the listener, the events are filtered and processed to form processable events, which are then entered into the system event handler and handed over to the response function for processing according to the system operation status;
[0029] The event handling response is driven by event propagation and adopts a delegation-based event handling framework. It establishes an event listening relationship between the event listener and the event source component, transforming GUI interaction actions into calls to relevant event handlers for processing. When an event source generates a relevant event, the event listener immediately monitors the occurrence of the event. Based on an event list maintained internally by the listener, once it polls and checks that the occurrence conditions of a certain event are met, it activates the event handler to respond to the event according to different types of external events, combined with the component event management mechanism, and executes the event response operation to complete the loading of the small scene simulation model.
[0030] The implementation of bidirectional association mapping of event data streams: bidirectional mapping between simulation application and simulation model, which can visually associate simulation parameters, variables and system graphical components, establish a bidirectional mapping relationship between application and simulation model, and realize the integration of the two; it also provides system model parameters or variable trees, which can quickly associate and bind variable parameter attributes with the model; it also allows manual association of model and global variable parameter information, and supports visual management and removal of model-bound parameters, parameter binding and unbinding, and data visualization display;
[0031] The visualization design for the implemented events is as follows: Based on the mapping between application system interface parameters and system simulation models, combined with the application's model calculation and analysis technology, model parameters can be directly modified and the simulation process controlled through the application interface. Interface data is automatically applied to the system model as the data foundation for model calculation. For input-type graphical components, input parameter values can be directly applied to the simulation model before the simulation model calculation runs. During operation, the input parameter values are transmitted to the background simulation solver engine in real time for real-time data processing. Based on the event management and event handling response mechanism, data change events in the background simulation model are monitored. After system processing, these events are generated and transmitted to the system display interface for data display. It also supports data reception of variables associated with graphical components, transmitting the data to the graphical components and visualizing the data according to the built-in display methods of the graphical components, with timely data refresh and display. The data reception refers to process data generated during the simulation model calculation and operation, transmitted by the application's calculation engine. After receiving the data, the graphical components promptly refresh and display the data with visual effects.
[0032] Further, step 5 includes: conducting multi-source joint simulation based on the completion of the above steps. The multi-source joint simulation environment is driven by the task operation process to connect the data link of the simulation small scene. It can receive the task instructions of the task inference engine, complete the parsing of the task instructions, generate the simulation tasks that need to be completed in the task process, complete the scheduling analysis of the corresponding software and model through the simulation scheduling interface based on the simulation tasks, collect and store the simulation task calculation results, and drive the simulation animation to display the simulation results.
[0033] The simulation tasks include simulation start-up, simulation pause, simulation continuation or stop, and simulation end information feedback. The specific process is as follows:
[0034] ① Simulation Startup
[0035] The task simulation software sends a simulation start request and related simulation task parameters. The simulation environment responds to the simulation start request and performs internal platform processing, including opening the simulation model, initializing parameters, configuring the simulation, starting the simulation operation, and notifying the task simulation software of the execution status of the request.
[0036] ② Pause, continue, or stop the simulation
[0037] The task simulation software sends a request to pause, continue, or stop the simulation, the simulation environment responds to the request, performs internal processing, and notifies the task simulation software of the execution status of the request.
[0038] ③ Simulation end information feedback
[0039] The co-simulation environment sends simulation completion information to the task simulation software.
[0040] On the other hand, embodiments of this application provide a multi-source heterogeneous model digital integration construction system, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the system is triggered to execute the above-mentioned multi-source heterogeneous model digital integration construction method. Attached Figure Description
[0041] Figure 1 This is a flowchart illustrating the technical route of the present invention;
[0042] Figure 2 This is a standardized interface information diagram of the multi-source heterogeneous model of the present invention;
[0043] Figure 3 This is an example diagram of data reception in the multi-source heterogeneous model of the present invention;
[0044] Figure 4 This is a model tree structure diagram of the multi-source heterogeneous model of the present invention;
[0045] Figure 5 This is an example diagram of the data structure of the multi-source heterogeneous model of the present invention. Detailed Implementation
[0046] 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. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0048] This application proposes a method and system for the digital integration and construction of multi-source heterogeneous models. Based on ship digital model integration and construction technology, this method uses the task operation process as the main thread to drive various small-scene simulation environments. It utilizes multi-source heterogeneous model integration technology based on FMI (Functional Mock-up Interface) to develop a multi-source heterogeneous model integration interface, establishes an integrated CAD / CAE composite model, and forms a digital integrated application system based on a joint simulation environment. This system conducts full-process operation simulation and completes the digital conversion of small-scene simulation models. It provides a unified service interface and application encapsulation function for digital models, offering digital services such as decision support, status monitoring, and operation simulation training. It supports the storage, loading, and topological association of various design models (CAD models), computational analysis models (CAE models), and information models, resolving information silos caused by data incompatibility between systems, ensuring consistent data transmission and a foundation for collaborative design. Based on this, it integrates digital models at different levels, achieving consistent transmission of digital models across multiple disciplines and systems.
[0049] In some embodiments, to address the challenges of complex typical task environments involving the coupling of different disciplines such as hydraulics, control, electrical, and mechanical, and the current inability of multi-domain simulation to fully reflect the disciplinary characteristics of different levels and disciplines in the system co-simulation process, a heterogeneous model encapsulation standard is defined, and a multi-source heterogeneous model integration interface tool is developed based on integrated CAD / CAE composite model technology to associate models and data.
[0050] The primary challenge in digital design is establishing digital models. For ships, these models must not only represent the ship as a whole but also the individual components, and must adhere to the design process from coarse to fine, from overall functional and performance design to detailed local design. Therefore, a top-down design process is essential, as is the integration of design and analysis calculations. Furthermore, the results of digital simulations must be able to trace back to the design requirement model, achieving a closed-loop verification of the digital design. In the preliminary and even technical design stages of a ship, designers continuously adjust design schemes and perform performance analyses and calculations. The fragmented approach of CAD technology, primarily focused on describing design information, and CAE technology, used for performance analysis, is no longer sufficient. A CAD / CAE interrelationship technology must be adopted to achieve CAD / CAE integration. However, CAD models mainly contain discrete information such as dimensions, models, and locations, while CAE models involve the model's role and characteristics, such as plates and beams in structural analysis. This involves a conversion from the design model to the calculation model, a conversion that reflects the experience and rules of ship design.
[0051] To meet the needs of multi-scheme, multi-disciplinary collaboration, mutual influence between CAD and analytical calculations, modification, and rapid response in preliminary ship design, this application proposes a system-level digital model integration and construction method based on heterogeneous model encapsulation standards and composite modeling technology. This addresses issues such as information silos caused by data incompatibility between systems and the lack of topological connections between CAD and analytical calculations. Figure 1 As shown, the method includes the following steps:
[0052] Step 1. Define the standardized encapsulation of heterogeneous models.
[0053] Traditional heterogeneous model integration requires customized development for different simulation software, lacking a standardized model interface reference, resulting in significant limitations in application. Developing software interfaces based on standardized interfaces greatly improves the application of models. For various heterogeneous models used in constructing the overall model of a ship system, this project, based on the Heterogeneous Model Open Interface (FMI) standard, completes standardized encapsulation of heterogeneous models, FMI import / export, and integrated model building of FMU models, supporting model data exchange and joint system simulation solutions.
[0054] For models such as C / C++ / Fortran / Python (white-box model), they are encapsulated in the form of DLLs, etc., and called in the co-simulation model through the encapsulated interface.
[0055] For gray-box model formats, by supporting the FMI standard and defining the input and output data formats of function calls, rapid model import can be achieved, such as... Figure 2 As shown.
[0056] For other computing software models that do not support the above standards, communication between the two parties is agreed to use JSON format for data exchange via network protocols, such as... Figure 3 As shown, this implements model integration and invocation.
[0057] Step 2. Design of composite data model.
[0058] First, based on the requirements of the mission scenario as input, we conduct a typical mission process analysis of the target ship. We then use a structured text language to sort things out from top to bottom, and carry out mission analysis (requirements analysis), functional analysis, and architecture design. Based on the heterogeneous model encapsulation standard, and using Modelica and other algorithm-based construction languages, we build an operation system model library in a hierarchical structure to support the construction of digital models of subsystems such as ship structure, operation system, and mission scenario elements.
[0059] Among these, model tree storage is a key technology in the data core. The hull structure is the design tree structure component node used to establish the preliminary detailed design hull model. It contains its geometric representation, design definition, and other information, and is stored using an object-oriented database method. This creates a model tree integrating design data, analysis and calculation data, and drawings for ship compartments and equipment, such as... Figure 4 As shown, a top-level data class is also created for the top-level task, such as... Figure 5 As shown.
[0060] Step 3. Build a model-data association mapping based on macro commands.
[0061] Using macro-command-based topology association technology, an association mapping is established between the various models, defining the relationships between different models. For example, when the location of a piece of equipment changes, it is necessary to determine whether the weight and movement of the equipment have a significant impact on the weight distribution of the entire ship. If the calculation results exceed the limits (the verification rule coefficients such as the strength of special points and the safety factor exceed the limits), it is necessary to push whether the design of the system to which it belongs needs to be adjusted (to carry out manual intervention).
[0062] Therefore, a time-based refresh mechanism (Init) and an observer mechanism (Observe) are needed to monitor the model state in real time. The observer mechanism (Observe) is based on a one-to-many dependency relationship between object models; the time-based refresh mechanism (Init) uses time as the control mechanism for model refresh. The entire system has one and only one irreversible clock. When a model is built or completes calculation and analysis, a refresh time is established for that model; when the model's data is modified, a modification time is established for that model, and a refresh action is issued by calculating and comparing the time difference. For example, when the state of the device prototype model changes (the device's 3D coordinates move), the system detects the change in the model's coordinates, updates the current model's modification time, and if the modification time of the model is greater than the refresh time, it executes the operation to refresh the model. If the model in the refresh state has associated models, the system finds the specific storage location and model state of the associated models in the model tree based on their model paths, checks whether any related macro commands have been executed that caused the model data to be modified, and notifies all the objects to be observed (node models and device models) so that they can automatically update their own states, ensuring that when the model is modified, its associated models are also adjusted accordingly.
[0063] Achieving model relevance is fundamental to ensuring orderly model updates. In some embodiments, model relevance is established in two ways. One is to establish implicit relevance in the definition, such as the equipment model being the basic unit of compartment layout. When the compartment model or system model changes, the equipment model should be updated accordingly. This relevance is achieved by directly adding association information (Refs) to the relevant layer of the model during design data updates, based on the association mapping between models.
[0064] Another type of correlation is reflected in the defined data. For example, if an equipment model is placed on a certain deck, its placement is constrained by the cabin model. At the same time, the equipment model corresponds to a certain node model in the system model. When the attached deck or the system model changes, the equipment model on this deck should also change accordingly. In this case, the system will first allow users to define relevant data using the model name and establish a composite model of the equipment by defining parameters such as positioning points and interfaces.
[0065] In addition to establishing a unified model tree, a model refresh mechanism is also needed. Ship equipment layout is an iterative process of "design – calculation and analysis – design modification – recalculation and analysis." The established calculation and analysis models and dependent models need to be recalculated and the corresponding data modified after the relevant models are modified. Some calculations require considerable time or resources. If the model is refreshed immediately after each modification, the system overhead will be too large, and it is easy to fall into an infinite loop.
[0066] In this implementation, time is used as the control mechanism for model refresh. A refresh time is established for the model after it is built or after calculation and analysis are completed. When the model's data is modified, a modification time is established for that model. The entire database has one and only one irreversible clock. When the modification time of a model is greater than the refresh time, the model is determined to need to be refreshed, i.e., recalculated, analyzed, or regenerated. When there are related models, if the modification time of a related model is greater than the refresh time of this model, this model is also determined to need to be refreshed. Thus, the entire model tree is determined by each model itself to decide whether it needs to be refreshed, and this refresh mechanism is designed into the underlying data structure.
[0067] By using composite modeling technology and defining digital models of ship equipment, the performance parameters of the equipment are associated with the equipment model itself. When performing system and layout-related calculations (CAE), the equipment model can be automatically refreshed and modified based on the calculation results, thereby reducing iterative calculations and iterative design, reducing the number of times model data is manually corrected, and optimizing the design process.
[0068] Step 4. Task engine-driven model.
[0069] First, it is necessary to establish a task operation process, driven by task execution messages, and inject preconditions based on the established model-data association mapping to drive the relevant models to complete the digital simulation process.
[0070] The task execution message acts as an event that triggers the digital co-simulation environment to drive the corresponding performance model to complete the calculation task. At the same time, it parses the main parameter list, assigns input parameters to each model performing the operation, generates model data links, and completes parameter transfer loop verification.
[0071] The main processes include: event design and development, event management mechanism, event handling and response, bidirectional correlation mapping of event data flow, and implementation of event visualization design.
[0072] ①Event Design and Development
[0073] Events in a co-simulation environment mainly include external and internal events. External events originate from input computation signals outside the program, such as task execution instructions formed according to the agreed format between the communicating parties. These instructions, through interactive coding, construct arbitrarily complex simulation application system behaviors by calling the unified communication function interface at the system's underlying level. Internal events originate from the system's internal execution signals generated by parsing task instructions. These include execution signals of driving signals for simulation small-scene models, algorithm models, APIs, FMU models, etc. These various models have calling dependencies, requiring the generation of solution data chain branches based on external input computation signals and checking the overall loop verification of the data chain. For example, the input for performing a full-ship loading calculation is the stability and strength calculation of each compartment based on liquid level / volume, which is implemented as an API call through a model-data association mapping function interface based on macro commands.
[0074] ② Incident Management Mechanism
[0075] Event management primarily involves managing event source components, event listeners, events, and event handlers. Event source components are managed based on a registered graphical component library, allowing for the listening and management of external events, effectively monitoring external events. Events collected by listeners are filtered and processed to form manageable events, which are then entered into the system event handler and processed by the corresponding function based on the system's operational status. This method completes the event management of the simulation application system.
[0076] ③ Event handling response
[0077] Event handling is driven by event propagation and adopts a delegation-based event handling framework. It establishes event listening relationships between event listeners and event source components, with the aim of transforming GUI interaction actions into calls to relevant event handlers for processing.
[0078] When an event source generates a relevant event, the event listener immediately monitors the occurrence of the event. Based on an event list maintained internally by the listener, once the polling check finds that the occurrence conditions of a certain event have been met, the event handler is activated to respond to the event according to the different types of external events, combined with the component event management mechanism, and the event response operation is executed to complete the loading of the expected small scene simulation model.
[0079] In this implementation, the event response is executed using a network message communication format, the interface tools of the task simulation engine are called, the event execution data link is allocated, and a unified service interface for the digital model is formed.
[0080] The unified service interface for digital models uses the UDP protocol for communication and has a custom command format, including the commands shown in Table 1 below.
[0081] Table 1. Custom Instruction Format for the Unified Service Interface of Digital Models
[0082]
[0083] Specific command format:
[0084] 1) Task simulation instruction format
[0085]
[0086] Command Examples
[0087] $START$#TASKSIM#A_PORT#Scene1#3#VA=10;VB=20;VC=30#$END$
[0088] 2) Simulation result command format
[0089]
[0090] The simulation results are described in Table 2 below:
[0091] Table 2. Description of Simulation Results
[0092] Serial Number value illustrate 1 0 success 2 1 Calculate the superboundary 3 2 In simulation anomalies
[0093] Command Examples
[0094]
[0095] 3) Display simulation data command format
[0096] $frame header$#instruction type#model result storage path#$frame tail$
[0097] Command Examples
[0098] $START$#SHOWDATA#C: / / Data / / result.msr#$END$
[0099] 4) Command format for obtaining model intrinsic parameters
[0100] Request instruction:
[0101] $Frame Header$#Command Type#Model Identifier#Parameter Name#$Frame Trailer$
[0102] Feedback instructions:
[0103] $Frame Header$#Command Type#Model Identifier#Parameter Name#Parameter Value#$Frame Trailer$
[0104] Command Examples
[0105] Request instruction:
[0106] $START$#GETPARAM#ModelA#Param1#$END$
[0107] Feedback instructions:
[0108] $START$#REPLYPARAM#ModelA#Param1#100#$END$
[0109] ④ Implement bidirectional association mapping of event data streams.
[0110] The two-way mapping technology between simulation applications and simulation models can visually associate simulation parameters, variables and system graphical components, establish a two-way mapping relationship between the application and the simulation model, and achieve seamless integration between the two.
[0111] It provides system model parameters or variable trees, allowing for quick association and binding of variable parameter attributes with the model. It also allows users to manually associate the model with global variable parameter information, while supporting visual management and removal of model-bound parameters. Combined with the system model, it enables parameter binding and unbinding, as well as data visualization.
[0112] ⑤ Implement event visualization design
[0113] Based on the mapping between application system interface parameters and system simulation model, and combined with the application's model calculation and analysis technology, the software can automatically apply interface data to the system model as the data basis for model calculation by directly modifying model parameters and controlling the simulation process through the application interface.
[0114] For input-type graphical components, the input parameter values can be directly applied to the simulation model before the simulation model is run. During the run, the user's input parameter values can be transmitted to the background simulation solver engine in real time to participate in data processing and achieve the purpose of controlling the simulation run.
[0115] Meanwhile, based on the event management and event handling response mechanism, data change events in the background simulation model can be monitored, processed by the system to form external events, and transmitted to the system display interface for data display.
[0116] It supports receiving data from variables associated with graphical components, passing data to the graphical components, and visualizing the data according to the specific display methods built into the graphical components, with timely data refresh and display. Specifically, the data received is process data generated during the simulation model's calculation and execution. This data is passed by the application's calculation engine, and upon receiving the data, the graphical components promptly refresh and display it with specific visualization effects.
[0117] Step 5. Heterogeneous model integration and co-simulation.
[0118] Based on the above steps, multi-source joint simulation and multi-source integrated joint simulation environment are carried out. The main task operation process is used to connect the data links of the simulation small scene. It can receive the task instructions from the task inference engine, complete the parsing of the task instructions, generate the simulation tasks that need to be completed in the task process, and complete the scheduling and analysis of the corresponding software and model through the simulation scheduling interface based on the simulation tasks. It also collects and stores the simulation task calculation results and drives the simulation animation to display the simulation results.
[0119] Task simulation includes simulation start-up, simulation pause, resumption or stop, and simulation end information feedback. The specific process is as follows:
[0120] ① Simulation Startup
[0121] The task simulation software sends a "Start Simulation" request along with relevant simulation task parameters, such as the simulation model name, parameter information, simulation end time, and simulation step size. The simulation model name is a required parameter; if other parameters are not provided, the default parameters provided by the model are used. The multi-source performance model integration environment responds to the "Start Simulation" request, performs internal platform processing, including opening the simulation model, initializing parameters, configuring the simulation, and starting the simulation, and notifies the task simulation software of the request execution status.
[0122] ② Pause, continue, or stop the simulation
[0123] The task simulation software sends a "pause, continue, or stop" request. The multi-source performance model integration environment responds to the request, performs internal processing, and notifies the task simulation software of the execution status of the request.
[0124] ③ Simulation end information feedback
[0125] The multi-source performance model integration environment sends simulation completion information (success, failure, etc.) to the task simulation software.
[0126] Example
[0127] This embodiment will take the integrated construction process of a multi-source heterogeneous ship model as an example to carry out the full-process operation simulation as follows:
[0128] 1) Based on system requirements and the ship's mission, compile a list of design requirements and capability requirements for the entire ship (including information on functions, performance, and interfaces), and transmit it to the digital integration environment in the form of logical views and text to build the work process.
[0129] 2) Construct the work process, define the main objects and work nodes for work execution, and define the sequence and parallel relationships between the nodes according to the task execution requirements.
[0130] 3) Construct simulation models for each small scenario (Modelica model, algorithm model, DLL file, etc.). The Modelica model includes three types of objects: simulation models built using the Modelica language, models exported based on the FMI standard, and FMU integrated models.
[0131] 4) Then, using the workflow as the main line, drive the simulation environment of each small scene (Modelica model, algorithm model, dll file, etc.), use the multi-source heterogeneous integration technology of the base FMI to complete the development of the multi-source heterogeneous model integration interface, establish an integrated CAD / CAE composite model, form a digital integration construction tool based on the joint simulation environment, carry out full-process operation simulation, complete the digital conversion of the small scene simulation model, reverse verify the design requirements with the simulation calculation results, and complete the digital design closed loop.
[0132] The specific steps are as follows:
[0133] a) After completing step 3), select a scene and click OK to load the scene. If you need to load multiple scenes, repeat this step.
[0134] b) Click on Global Variable Relationships. In the pop-up window, you can set the relationships between variables. Click OK after editing.
[0135] c) Click "Get Instruction," select the scene in the pop-up window, set the global parameter input values, and click "OK" to generate the instruction.
[0136] d) The background drives relevant software and models to perform task simulation;
[0137] e) After the simulation is completed, the test program will receive a return command. Click to view the results to see the result variables of this task simulation.
[0138] f) Click on Data Summary to view the six degrees of freedom files for this task simulation in separate files.
[0139] Some embodiments of this application also provide a multi-source heterogeneous model digital integration construction system, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the system is triggered to execute the aforementioned multi-source heterogeneous model digital integration construction method.
[0140] In summary, this application provides a method and system for constructing a digital integration of multi-source heterogeneous models. It addresses the basic verification needs of target ships based on digital models, and constructs a multi-source performance model integration environment based on key technologies for digital model integration. This provides a basic environment for digital model integration, testing, scheduling, and application, and provides reliable support data for decision support and application encapsulation.
[0141] The key technologies for digital model integration and construction in this application embodiment can achieve the following effects:
[0142] (1) Meet the requirements for digital model integration and co-simulation for human-computer interaction operations.
[0143] The environments of typical mission areas for target vessels are complex, involving the coupling of different disciplines such as hydraulics, control, electrical, and mechanics. Currently, multi-domain simulations mainly rely on single-domain software to build single-discipline models, which cannot fully reflect the disciplinary characteristics of different levels and disciplines in the system co-simulation process. Furthermore, there is a disconnect between the multidisciplinary characteristics at the equipment level and the overall system level. Integrating and constructing hierarchical simulation models is crucial to achieving consistent, layer-by-layer transmission of multi-source models across the entire ship. Therefore, it is necessary to build a digital modeling and simulation system to support the construction and simulation application of digital models for the system.
[0144] This invention takes the work process as the main line, drives the simulation environment of each small scene, uses the multi-source heterogeneous integration technology of the base FMI to develop a multi-source heterogeneous model integration interface, establishes an integrated CAD / CAE composite model, forms a digital integrated application system based on the joint simulation environment, carries out full-process operation simulation, completes the digital conversion of small scene simulation models, provides a unified service interface and application encapsulation function for digital models, provides digital services such as decision support, status monitoring and operation simulation training, and realizes consistent transfer of digital models.
[0145] (2) Digital-enabled ship services
[0146] Based on the model built in the design phase, and combined with the collected experimental data, actual ship data and simulation data as data sources, digital simulations are carried out for actual ships. Traditional small-scale simulation models are digitally converted and application encapsulated based on fixed data packages to support digital service applications such as decision support, status monitoring and operation simulation training for actual ship operations.
[0147] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, and similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.
[0148] In a typical configuration of this application, both the terminal and the network device include one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0149] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0150] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.
[0151] Furthermore, a portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions invoking the methods of this application may be stored in a fixed or removable recording medium, and / or transmitted via a data stream in a broadcast or other signal carrying medium, and / or stored in the working memory of a computer device operating according to the program instructions. Here, one embodiment of this application includes a device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run methods and / or technical solutions based on the foregoing embodiments of this application.
[0152] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device in software or hardware.
Claims
1. A method for digitally integrating and constructing multi-source heterogeneous models, characterized in that, include: Step 1. Define the standardized encapsulation of the multi-source heterogeneous model; Step 2. Design a composite data model; Step 3. Establish the association mapping between the data in the multi-source heterogeneous model and the composite data model based on macro commands; Step 4. The task engine drives the multi-source heterogeneous model; Step 4 includes establishing a task job process, using the job task execution message as the driver, and injecting preconditions based on the established model-data association mapping to drive the model. The task execution message triggers the digital co-simulation environment to drive the corresponding performance model to complete the calculation task, parse the main parameter list, assign input parameters to each model performing the operation, generate model data links, and complete parameter transmission loop verification. The model driven by job task execution messages includes the following processes: event design and development, event management mechanism, event handling and response, bidirectional correlation mapping of event data flow, and implementation of event visualization design; The event design and development includes external and internal events. External events include input computation signals from outside the program, which are used to construct the behavior of the simulation application system through interactive coding by calling the unified communication function interface at the system's underlying layer. Internal events include internal execution signals generated from parsing task instructions, involving the driving signals of the simulation small scene model, algorithm model, API, and FMU model. These various models have calling dependencies. The data chain branches for solving are generated based on the input computation signals from outside the program, and the overall loop check of the data chain branches is checked. The calls are implemented in the form of APIs through the model and data association mapping function interface based on macro commands. The event management mechanism is as follows: event source components are managed based on a registered graphical component library; external events are listened to and managed; based on the events collected by the listener, the collected events are filtered and processed to form processable events, which are then entered into the system event handler and handed over to the response function for processing according to the system operation status. The event handling response is driven by event propagation and adopts a delegation-based event handling framework. It establishes an event listening relationship between the event listener and the event source component, transforming GUI interaction actions into calls to relevant event handlers for processing. When an event source generates a relevant event, the event listener immediately monitors the occurrence of the event. Based on an event list maintained internally by the listener, once it polls and checks that the occurrence conditions of a certain event are met, it activates the event handler to respond to the event according to different types of external events, combined with the component event management mechanism, and executes the event response operation to complete the loading of the small scene simulation model. Achieve bidirectional association mapping of the event data stream: bidirectional mapping between simulation application and simulation model, which can visually associate simulation parameters, variables and system graphical components, establish a bidirectional mapping relationship between application and simulation model, and realize the integration of the two; it also provides system model parameters or variable tree, which can quickly associate and bind variable parameter attributes with the model; it also allows manual association of model and global variable parameter information, and supports visual management and removal of model-bound parameters, parameter binding and unbinding, and data visualization display; Step 5. Perform integrated co-simulation based on the multi-source heterogeneous model.
2. The method according to claim 1, characterized in that, Step 1 specifically includes: for various heterogeneous models, based on the heterogeneous model open interface FMI standard, completing the standardized encapsulation of heterogeneous models, FMI import and export, and integrated modeling of FMU models; For the white-box model, it is encapsulated in the form of a DLL, and called in the co-simulation model through the encapsulated interface; For gray-box model formats, the input and output data formats of function functions are defined by supporting the FMI standard. For other computing software models that do not support the above standards, the two parties shall agree to use JSON format for data exchange via network protocol communication.
3. The method according to claim 1, characterized in that, Step 2 specifically includes: taking the task scenario requirements as input to the multi-source heterogeneous model and conducting task process analysis; conducting task analysis, functional analysis, and architecture design based on top-down sorting using structured text language; and building a hierarchical operation system model library based on heterogeneous model encapsulation standards, Modelica language, and other algorithm-based construction languages to support the construction of digital models for subsystems.
4. The method according to claim 3, characterized in that, The hierarchical structure of the operation system model library includes storing data in the form of a model tree, where the component nodes of the model tree contain various types of information and are stored using an object-oriented database approach; at the same time, a top-level data class is established for the top-level task.
5. The method according to claim 1, characterized in that, Step 3 specifically includes: establishing a topological association based on macro commands, building an association mapping between the established models, and defining the correlation between different models; The definition of the relationships between different models includes establishing a time-based refresh mechanism and an observer mechanism to monitor the model status in real time. The time-based refresh mechanism uses time as the control mechanism for model refresh. The entire model has one and only one irreversible clock. When the model is built or the calculation and analysis are completed, a refresh time is established for the model. When the model data is modified, a modification time is established for the model, and a refresh action is issued by calculating and comparing the time difference. When the state of the device model changes, the system detects the change in the model state, updates the modification time of the current model, and if the modification time of the model is greater than the refresh time, the model is refreshed. If there are related models in the model waiting to be refreshed, the specific storage location and model state of the related models are found in the model tree according to the model path of the related models. It is checked whether there are related macro commands that have caused the model data to be modified, and all the objects to be observed are notified so that they can automatically update their own states. The observer mechanism is based on the one-to-many dependency relationship between object models. When the state of an object model changes, all the observer objects are notified to automatically update their states. The process of establishing correlation mappings between the established models includes establishing model correlations in two ways: one is to establish implicit correlations in the definition, and when refreshing the design data, to directly add correlation information in the correlation layer of the model based on the correlation mapping between the models; the other is to define related data using model names, and to establish a composite model of the device by defining parameter information.
6. The method according to claim 5, characterized in that, The step of issuing a refresh action by calculating and comparing time differences includes: when the modification time of the model is greater than the refresh time, the model is determined to need to be refreshed, including recalculation, analysis or regeneration; or when there are related models, when the modification time of the related model is greater than the refresh time of the model, the model is also determined to need to be refreshed.
7. The method according to claim 1, characterized in that, The visualization design of the implementation event is as follows: Based on the mapping between the application system interface parameters and the system simulation model, combined with the application's model calculation and analysis technology, the model parameters can be directly modified and the simulation process controlled through the application interface. The interface data is automatically applied to the system model as the data basis for model calculation. For input-type graphical components, the input parameter values can be directly applied to the simulation model before the simulation model calculation runs. During the operation, the input parameter values are transmitted to the background simulation solving engine in real time to participate in data processing. Based on the event management and event handling response mechanism, the system monitors data change events in the background simulation model, processes them into external events, and transmits them to the system display interface for data display. It also supports receiving data from variables associated with graphical components, passing the data to the graphical components, and visualizing the data according to the built-in display methods of the graphical components, and responding to data refresh and display in a timely manner; wherein, the data received is process data generated during the simulation model calculation and operation, which is transmitted by the application calculation engine, and after the graphical components receive the data, they refresh and display the data in a timely manner with visualization effects.
8. The method according to claim 1, characterized in that, Step 5 includes: conducting multi-source joint simulation based on the completion of the above steps. The multi-source joint simulation environment is driven by the task operation process to connect the data link of the simulation small scene. It can receive the task instructions of the task inference engine, complete the parsing of the task instructions, generate the simulation tasks that need to be completed in the task process, complete the scheduling analysis of the corresponding software and model through the simulation scheduling interface based on the simulation tasks, collect and store the simulation task calculation results, and drive the simulation animation to display the simulation results. The simulation tasks include simulation start-up, simulation pause, simulation continuation or stop, and simulation end information feedback. The specific process is as follows: ① Simulation Startup The task simulation software sends a simulation start request and related simulation task parameters. The simulation environment responds to the simulation start request and performs internal platform processing, including opening the simulation model, initializing parameters, configuring the simulation, starting the simulation operation, and notifying the task simulation software of the execution status of the request. ② Pause, continue, or stop the simulation The task simulation software sends a request to pause, continue, or stop the simulation, the simulation environment responds to the request, performs internal processing, and notifies the task simulation software of the execution status of the request. ③ Simulation end information feedback The co-simulation environment sends simulation completion information to the task simulation software.
9. A multi-source heterogeneous model digital integration construction system, the system comprising a memory for storing computer program instructions and a processor for executing program instructions, wherein, When the computer program instructions are executed by the processor, the system is triggered to perform the method of any one of claims 1 to 8.
Citation Information
Patent Citations
Model integration method in ship design
CN112149229A
Simulation software architecture of comprehensive task processing system and working method
CN112379866A
Joint simulation control method for multimode data fusion
CN115292774A
