Simulation engine adaptation method and system and computer equipment

By providing a general simulation engine adaptation method and system in power software simulation technology, the problem of unified management and operation complexity of different power simulation models is solved, and the precise management and control of different simulation models is realized, and the adaptability and scalability of the simulation models are improved.

CN119512892APending Publication Date: 2025-02-25CHANGSHA KELIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411564925.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

Among the existing power software simulation technologies, domestic Simulab software and RTLAB software have difficulties in unified management and simplified model control and operation of different power simulation models, resulting in complex operations and cumbersome analysis.

Method used

A general simulation engine adaptation method and system is provided. By determining the simulation type and model information of the simulation model, the status monitoring and control function determination are performed, and the control parameters corresponding to the model information are determined based on these control functions, so that the simulation model can simulate and run according to the control parameters.

Benefits of technology

Accurate management, control and data analysis of different simulation models is realized, the dependence on different simulation software is reduced, operation and data analysis is simplified, and the adaptability and scalability of simulation models is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512892A_ABST
    Figure CN119512892A_ABST
Patent Text Reader

Abstract

The invention relates to a simulation engine adaptation method and system and computer equipment. Comprising the steps that the type and model information of a simulation model are accurately determined, state monitoring is conducted on the simulation model, and a control function is determined, so that control parameters can be adjusted in the simulation process according to real-time data, the dynamic control capacity and flexibility of simulation are enhanced, and the simulation efficiency is improved. The simulation models in different simulation software can be adjusted according to different control parameters, so that the different simulation models can be suitable for various different simulation scenes, and the adaptability and expandability of the models are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric power software simulation, and in particular to a simulation engine adaptation method, system and computer equipment. Background Art

[0002] At present, the field of power software simulation technology is mainly based on RTLAB software and its simulation machine to complete the simulation and verification of related wind power, photovoltaic, energy storage and other power systems, but its operation, data collection and subsequent analysis and verification are not very user-friendly, and even face problems such as complex operation, cumbersome analysis and even need to use other third-party software in some aspects. With the increasing requirements for domestic autonomy and control, it is necessary to gradually get rid of the dependence on foreign related industrial simulation software and fill the gaps in related fields in China, and the Simulab software for the localization of RTLAB has been derived.

[0003] In order to solve the unified management of different power simulation models by domestic Simulab software and RTLAB software and simplify the control and operation of models, that is, to solve the simulation management and operation of models under different simulation software, realize a universal model management interface, conform to the operating habits of Chinese people, and simplify subsequent data analysis, there are more and more prominent demands. Summary of the invention

[0004] Based on this, the purpose of this application is to provide a universal simulation engine adaptation method, system and computer equipment to unify the control of different simulation models and their related development on a common interface, and realize unified management, control and data analysis of models of different simulation software.

[0005] In a first aspect, the present application provides a simulation engine adaptation method, including:

[0006] Determining a simulation type of a simulation model and model information of the simulation model;

[0007] Performing status monitoring on the simulation model and determining a control function on the simulation model;

[0008] Based on the control function, control parameters corresponding to the model information are determined so that the simulation model performs simulation operation according to the control parameters.

[0009] In one embodiment, determining a simulation type of a simulation model and model information of the simulation model includes: responding to a user's selection trigger operation, and parsing the simulation type of the selected simulation model; dynamically loading a plurality of encapsulation unit functions, and preprocessing the simulation model to obtain model information; the model information includes at least a registration signal, a sampling factor, a sampling number, and a step size.

[0010] In one embodiment, the status monitoring of the simulation model includes: periodically monitoring the running status of the simulation model through a thread.

[0011] In one embodiment, determining the control function of the simulation model includes: when the simulation model is in an operating state, determining the control function after resetting the simulation model; when the simulation model is not in an operating state, determining the control function of the simulation model.

[0012] In one embodiment, the control functions include at least loading, stopping, resetting, signal parameter registration / unregistration, data callback registration and their abnormal associations; the control parameters include user input parameters and callback parameters; the control parameters corresponding to the model information are determined based on the control function so that the simulation model performs simulation operation according to the control parameters, including: obtaining the user input parameters corresponding to the control function, and preliminarily simulating the simulation model according to the user input parameters; detecting the process of the preliminary simulation operation of the simulation model to determine the callback parameters; and continuing the simulation operation of the simulation model according to the callback parameters.

[0013] In one embodiment, the process of the preliminary simulation operation of the simulation model is detected to determine the callback parameters, including: determining the data corresponding to the registration signal during the preliminary simulation operation of the simulation model; performing abnormal operation and call detection on the simulation model to determine abnormal operation information; and using the data corresponding to the registration signal and the abnormal operation information as callback parameters.

[0014] In one embodiment, the method further comprises: determining and displaying relevant messages and error prompts of the simulation model to implement backtracking of relevant control functions of the simulation model.

[0015] In a second aspect, the present application also provides a simulation engine adaptation system, the system comprising a preloading module, a model control module, and a state monitoring module, wherein:

[0016] A preloading module, used to determine a simulation type of a simulation model and model information of the simulation model;

[0017] A state monitoring module, used for monitoring the state of the simulation model;

[0018] The model control module is used to determine the control function of the simulation model and determine the control parameters corresponding to the model information based on the control function, so that the simulation model performs simulation operation according to the control parameters.

[0019] In one embodiment, the system further includes a log module, a communication module, and a configuration file module; the log module is used to determine and display relevant messages and error prompts of the simulation model to achieve backtracking of relevant control functions of the simulation model.

[0020] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above simulation engine adaptation method when executing the computer program.

[0021] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above simulation engine adaptation method are implemented.

[0022] The above-mentioned simulation engine adaptation method, system, computer device and readable storage medium, by accurately determining the type and model information of the simulation model, and performing state monitoring and determining the control function of the simulation model, the simulation process can adjust the control parameters according to the real-time data, thereby enhancing the dynamic control capability and flexibility of the simulation. Since the simulation models in different simulation software can be adjusted according to different control parameters, different simulation models can be applied to a variety of different simulation scenarios, thereby enhancing the adaptability and scalability of the model. Therefore, the present application realizes the precise management, control and data analysis of different simulation models, reduces the dependence, operation and switching of different simulation software, reduces the development cycle by using a unified control interface, and greatly improves the operation efficiency and operation space of the simulation model. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is an application schematic diagram of a simulation engine adaptation system in one embodiment;

[0024] Figure 2 A schematic diagram of a flow chart of a simulation engine adaptation method in one embodiment;

[0025] Figure 3 A schematic diagram of the structure of a simulation engine adaptation system in one embodiment;

[0026] Figure 4 is a schematic diagram of a simulation engine adaptation method in one embodiment;

[0027] Figure 5 A schematic diagram of the structure of a preloading module in one embodiment;

[0028] Figure 6 A schematic diagram of a process for preprocessing a simulation model in one embodiment;

[0029] Figure 7A schematic diagram of a flow chart of a simulation engine adaptation method in another embodiment;

[0030] Figure 8 A schematic diagram of the structure of a model control module in an embodiment;

[0031] Fig. 9 A schematic diagram of a flow chart of simulating a simulation model in one embodiment;

[0032] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] The simulation engine adaptation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, and through the interaction between the terminal 102 and the server 104. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 is used to obtain the simulation model determined by the user. The server 104 is used to determine the simulation type of the simulation model and the model information of the simulation model, and to monitor the status of the simulation model. The server 104 is also used to determine the control function of the simulation model, and determine the control parameters corresponding to the model information based on the control function, so that the simulation model performs simulation operation according to the control parameters, and finally displays the simulation results on the terminal 102. Among them, the terminal 102 can be, but is not limited to, various personal computers, smart phones, drone equipment, smart vehicle-mounted equipment, portable wearable devices, etc. Server 104 is implemented by an independent server or a server cluster composed of multiple servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0035] In one embodiment, Figure 2 As shown, a simulation engine adaptation method is provided, which is implemented by linking a preloading module, a model control module, and a state monitoring module in a simulation engine adaptation system, and includes the following steps:

[0036] Step 202: Determine the simulation type of the simulation model and the model information of the simulation model.

[0037] Among them, the simulation model is a model under different simulation software.

[0038] Specifically, the preloading module is mainly a preprocessing classification established for different simulation software. It performs preprocessing classification according to different simulation software, and drives the API provided by the corresponding simulation software to drive the simulation model, complete the model selection, signal parameters and other model information reading. Figure 3 As shown, Figure 3 FIG. 4 is a schematic diagram of the structure of a simulation engine adaptation system in an embodiment.

[0039] In one embodiment, the preprocessing of the simulation engine adaptation system also includes data cleaning, format conversion, etc., so as to ensure the quality and availability of the data and provide an accurate data basis for subsequent data analysis and execution.

[0040] Step 204: monitor the status of the simulation model and determine the control function of the simulation model.

[0041] Specifically, the model control module is used to load, stop, reset, register / unregister signal parameters, register data callbacks and their abnormal associations for different simulation software models under the simulation engine adaptation system. Through the feedback of the state monitoring module on the state monitoring of the simulation model, the model control module performs the state switching of the simulation model and enables related control functions. Therefore, the simulation engine adaptation system will realize the control functions of compiling, loading, executing, pausing and resetting the simulation model, and dynamically detect the running status of the controlled simulation model.

[0042] Step 206: Determine control parameters corresponding to the model information based on the control function, so that the simulation model performs simulation operation according to the control parameters.

[0043] Specifically, after the simulation model performs preliminary simulation of the control function according to the control parameters, the callback parameters will be fed back to the simulation engine adaptation system to enable the callback parameters to continue the simulation of the simulation model, display the signal waveform in real time, and carry out subsequent data analysis and display, generate relevant reports, etc.

[0044] In one embodiment, this new type of universal simulation engine adaptation system for automated testing provides a simulation interactive interface. Figure 4 As shown, Figure 4The schematic diagram of a simulation engine adaptation method is shown in FIG. When the user triggers the simulation interaction interface of the simulation software, the simulation engine adaptation system can identify simulation models of different simulation types, such as simulation type A to simulation type N, and realize function control, state monitoring, data collection and model information acquisition, so that the simulation software can complete related test tasks on the simulation machine.

[0045] In the above-mentioned simulation engine adaptation method, in view of the shortcomings of existing simulation software such as the cumbersome and inconvenient control of simulation models and subsequent data analysis, this application designs a simulation engine adaptation system for dynamic classification adaptation of simulation models. Simulation technicians only need to add model control modules, state monitoring modules, etc. in the simulation engine adaptation system to complete the model control operations and data collection work under different simulation software. Therefore, it greatly simplifies the support for model control operations of different simulation software, as well as subsequent data and waveform display work, that is, unifying control and analysis, and using a set of simulation engine adaptation systems to unify different model simulation software into a universal abstract engine for implementation.

[0046] In addition, when the simulation engine adaptation system is targeted at the electric power energy system, it supports full-digital and semi-physical power simulation testing, and realizes functions such as control, testing and data playback of the power simulation model, providing more convenient, simple and reliable operation and more efficient data collection callback for the development or use of different simulation software.

[0047] In one embodiment, determining the simulation type of a simulation model and the model information of the simulation model includes: responding to a user selection trigger operation and parsing the simulation type of the selected simulation model; dynamically loading multiple encapsulation unit functions and preprocessing the simulation model to obtain model information.

[0048] The model information at least includes a registration signal, a sampling factor, a sampling number, and a step size. The preloading module includes an engine classification unit, a simulation API encapsulation unit, and a model information acquisition unit, such as Figure 5 As shown, Figure 5 A schematic diagram of the structure of a preload module.

[0049] Specifically, Figure 6 As shown, Figure 6The figure is a flow chart for preprocessing the simulation model. By determining the simulation type selected by the user, the simulation type of the simulation model is parsed through the engine classification unit, and the functions of different simulation API encapsulation units are dynamically loaded. Then the simulation API encapsulation unit performs secondary encapsulation for the API development kits provided by different simulation software, and adapts the general development module of the simulation engine adaptation system. Finally, the model information acquisition unit preprocesses and parses the simulation model imported by the user and obtains relevant model information. The model information includes the name, id, and dimension of the signal / parameter; model engineering information; sampling factor, sampling number, step size, etc., to provide information support for the subsequent acquisition of registered signals, parameter setting, and later data parsing and analysis.

[0050] In this embodiment, different encapsulation unit functions are dynamically loaded through user selection, and the APIs of various simulation software can be adapted, so that the supporting development control is no longer limited to a certain simulation software, and it can be easily expanded and adapted to different simulation requirements and application scopes. And by preprocessing model information, the computational burden during simulation runtime can be reduced, and the efficiency and response speed of simulation can be improved.

[0051] In one embodiment, the simulation engine adaptation system provides a universal interface IO for control and monitoring. By combining different simulation software API operations, the relevant control code is customized in the engine universal interface IO to achieve cross-team collaborative design of simulation models and improve the maintainability and reusability of the models. At the same time, through the expansion and customization of the interface, the diversified needs of future simulation software can be realized to meet different application scenarios.

[0052] In one embodiment, the status monitoring of the simulation model includes: periodically monitoring the running status of the simulation model through a thread.

[0053] Specifically, Figure 7 As shown, Figure 7 The flowchart of the simulation engine adaptation method in another embodiment is shown. After the simulation engine adaptation system determines the simulation model corresponding to the simulation type selected by the user and obtains the model information of the simulation model, it will monitor the status of the simulation model through the status monitoring module. The status monitoring module is used for the detection function of the model status loaded in the simulation software. It can refresh the running status of the simulation model of different simulation software through independent threads and periodic timing, and report it to the simulation engine adaptation system, and then the simulation engine adaptation system will feed back to the upper-level simulation interaction interface to display the model status.

[0054] In one embodiment, determining the control function of the simulation model includes: when the simulation model is in an operating state, determining the control function after resetting the simulation model; when the simulation model is not in an operating state, determining the control function of the simulation model.

[0055] Specifically, refer to Figure 7 As shown, after the state monitoring module monitors the state of the simulation model, when it is determined that the simulation model is in the running state, the simulation model will be reset, and then the control function of the simulation model after the reset will be determined; when it is determined that the simulation model is not in the running state, the control function of the simulation model will be directly determined, and then the control parameters corresponding to the model information will be determined according to the control function. After determining the control parameters corresponding to the model information, the simulation model can be loaded and executed, and the simulation data of the simulation model running according to the control parameters can be stored and uploaded.

[0056] In this embodiment, when the simulation model is in the running state, by determining the control function after resetting the simulation model, it can be ensured that the simulation model can quickly recover to a predetermined state after experiencing an abnormality or a specific event, thereby improving the control accuracy and stability of the simulation. When the simulation model is not in the running state, the simulation model can be adaptively adjusted according to changes in the simulation environment and updates to the simulation requirements to adapt to new simulation conditions.

[0057] In one embodiment, control parameters corresponding to model information are determined based on the control function so that the simulation model performs simulation operation according to the control parameters, including: obtaining user input parameters corresponding to the control function, and preliminarily simulating the simulation model according to the user input parameters; detecting the process of the preliminary simulation operation of the simulation model to determine callback parameters; and continuing the simulation operation of the simulation model according to the callback parameters.

[0058] The control functions include at least loading, stopping, resetting, signal parameter registration / unregistration, data callback registration and their abnormal associations; the control parameters include user input parameters and callback parameters. Figure 8 As shown, Figure 8 The present invention is a structural diagram of a model control module, which includes a model control unit, a signal data acquisition callback unit, a parameter setting unit, an anomaly detection unit and a signal registration / deregistration unit thereof.

[0059] Specifically, Fig. 9 As shown, Fig. 9The present invention is a flowchart of simulating a simulation model. The model control unit is used to select the control function of the simulation model, including compiling, loading, stopping, resetting, etc. The simulation model parameters are set by the parameter setting unit to obtain the user input parameters corresponding to the control function. After dynamically adjusting the parameter input of the model simulation, the simulation model can be preliminarily simulated according to the user input parameters. Then, the process of the preliminary simulation of the simulation model is detected to determine the callback parameters. The signal data acquisition callback unit obtains the callback parameters in the simulation model in real time and uploads them to the library, and the simulation of the simulation model is continued according to the callback parameters.

[0060] In this embodiment, the process of the preliminary simulation operation of the simulation model is detected, and the callback parameters are determined, allowing the simulation to be dynamically adjusted and monitored in real time during operation, that is, through data callback and data packaging, no lock is required, which improves the performance of data transmission and enhances the real-time and dynamic nature of the simulation. At the same time, the simulation model is flexibly adjusted according to the user input parameters and callback parameters, and different simulation requirements are adapted based on different control functions, thereby improving the scalability of the simulation model.

[0061] In one embodiment, the process of the preliminary simulation operation of the simulation model is detected to determine the callback parameters, including: determining the data corresponding to the registration signal during the preliminary simulation operation of the simulation model; performing abnormal operation and call detection on the simulation model to determine the abnormal operation information; and using the data corresponding to the registration signal and the abnormal operation information as callback parameters.

[0062] Specifically, refer to Fig. 9 As shown, the abnormal operation and call detection during the model simulation is performed through the abnormal detection unit, and relevant abnormal operation information is provided. The data corresponding to the registered signal during the initial simulation run of the simulation model is determined, and the user registers the signal of interest through the signal registration / unregistration unit, and automatically binds it to the signal data acquisition callback unit to achieve the capture of the signal of interest, while the data acquisition of the non-registered signal is not performed. Through the signal data acquisition callback unit, the simulation data of the registered signal in the model is obtained in real time and uploaded to the library to provide support for the later data analysis.

[0063] In this embodiment, by using the data corresponding to the registration signal and the abnormal operation information as callback parameters, the running state of the simulation model can be controlled more accurately, and the reset and abnormal processing of the simulation model can be achieved, thereby optimizing the control function of the simulation model.

[0064] In one embodiment, the method further includes: determining and displaying relevant messages and error prompts of the simulation model to achieve backtracking of relevant control functions of the simulation model.

[0065] In one embodiment, the system further includes a log module, a communication module, and a configuration file module; the log module is used to determine and display relevant messages and error prompts of the simulation model to achieve backtracking of relevant control functions of the simulation model.

[0066] In one embodiment, the user accurately parses the simulation model details and uses automated tools to efficiently set up test scenarios corresponding to the simulation model, verify the simulation engine adaptation system performance, accelerate the simulation engine adaptation system integration process, and perform automated checks on design specifications, such as naming specifications, structural rationality, parameter consistency, etc., to improve the standardization level and quality consistency of the simulation model.

[0067] In one embodiment, the user deeply analyzes the simulation model structure and data flow characteristics, identifies and solves the bottlenecks that affect the simulation effectiveness, and provides an optimization method for the simulation engine to adapt the system performance.

[0068] In one embodiment, the integration of third-party tools with the simulation engine adaptation system can promote effective interaction between model information and diverse tool sets, and support multi-dimensional analysis and decision-making in complex system design.

[0069] Therefore, through the above comprehensive applications, the simulation engine adaptation system not only strengthens the intrinsic quality of the simulation model, but also systematically improves the rigor and consistency of the design through the automated design specification checking mechanism, significantly reduces the time cost of manual learning and related software operations, accelerates project advancement, and ensures that every step from design to implementation is accurate and efficient. At the same time, the application of the simulation engine adaptation method in the automated testing system also improves the degree of automated testing and reduces the workload and learning difficulty of operators, reducing labor costs.

[0070] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0071] Based on the same inventive concept, the embodiment of the present application also provides a simulation engine adaptation device for implementing the simulation engine adaptation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more simulation engine adaptation device embodiments provided below can refer to the limitations of the simulation engine adaptation method above, and will not be repeated here.

[0072] In one embodiment, a simulation engine adaptation device is provided, comprising: a model information determination module, a control function determination module and a simulation operation module, wherein;

[0073] The model information determination module is used to determine the simulation type of the simulation model and the model information of the simulation model.

[0074] The control function determination module is used to monitor the state of the simulation model and determine the control function of the simulation model.

[0075] The simulation operation module is used to determine the control parameters corresponding to the model information based on the control function, so that the simulation model can perform simulation operation according to the control parameters.

[0076] Each module in the above simulation engine adaptation can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0077] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O), a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a simulation engine adaptation method is implemented. The display unit of the computer device is used to form a visually visible image, and is a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0078] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0079] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0080] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0081] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0082] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0083] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0084] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A simulation engine adaptation method, characterized in that: The method comprises: Determining a simulation type of a simulation model and model information of the simulation model; Performing status monitoring on the simulation model and determining a control function on the simulation model; Based on the control function, control parameters corresponding to the model information are determined so that the simulation model performs simulation operation according to the control parameters.

2. The method according to claim 1, characterized in that The determining of the simulation type of the simulation model and the model information of the simulation model includes: triggering an operation in response to a user's selection and parsing a simulation type of the selected simulation model; Dynamically load multiple encapsulation unit functions, and preprocess the simulation model to obtain model information; the model information at least includes a registration signal, a sampling factor, a sampling number, and a step size.

3. The method according to claim 1, characterized in that The state monitoring of the simulation model comprises: Periodically monitoring the running state of the simulation model through a thread; The determining of the control function of the simulation model comprises: When the simulation model is in an operating state, determining a control function after resetting the simulation model; When the simulation model is not in the running state, a control function of the simulation model is determined.

4. The method according to claim 1, characterized in that: The control functions at least include loading, stopping, resetting, signal parameter registration / unregistration, data callback registration and abnormal association thereof; the control parameters include user input parameters and callback parameters; The determining the control parameters corresponding to the model information based on the control function so that the simulation model performs simulation operation according to the control parameters includes: Acquiring user input parameters corresponding to the control function, and preliminarily performing simulation operation on the simulation model according to the user input parameters; Detecting the process of the preliminary simulation operation of the simulation model to determine callback parameters; The simulation of the simulation model is continued according to the callback parameters.

5. The method according to claim 4, characterized in that The detecting of the preliminary simulation running process of the simulation model to determine the callback parameters includes: Determine data corresponding to a registration signal during a preliminary simulation run of the simulation model; Performing abnormal operation and call detection on the simulation model to determine abnormal operation information; The data corresponding to the registration signal and the abnormal operation information are used as callback parameters.

6. The method according to any one of claims 1 to 5, characterized in that: The method further includes: determining and displaying relevant messages and error prompts of the simulation model to achieve backtracking of relevant control functions of the simulation model.

7. A simulation engine adaptation system, characterized in that: The system includes a preloading module, a model control module, and a state monitoring module, wherein: A preloading module, used to determine a simulation type of a simulation model and model information of the simulation model; A state monitoring module, used for monitoring the state of the simulation model; The model control module is used to determine the control function of the simulation model and determine the control parameters corresponding to the model information based on the control function, so that the simulation model performs simulation operation according to the control parameters.

8. The system according to claim 7, characterized in that The system also includes a log module, a communication module, and a configuration file module; the log module is used to determine and display relevant messages and error prompts of the simulation model to achieve backtracking of relevant control functions of the simulation model.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.