Digital twinborn model construction method and device, storage medium and computer equipment
By building a three-dimensional, communication and functional model of the protection device, the problem of limited inspection scope is solved, comprehensive virtual inspection and maintenance of the protection device is achieved, and safety and reliability are improved.
Patent Information
- Application Number
- CN202411220778.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-02
AI Technical Summary
The inspection range of the protective device is limited, resulting in incomplete inspection and poses safety hazards.
By obtaining the size data and material data of the protection device, the communication data and configuration are determined, the MMS mechanism is used to map data, the communication function model is built, and the information interaction channel between the functions and the communication model is established based on shared memory, forming a Digital twins for comprehensive inspection and maintenance.
It realizes comprehensive inspection and maintenance of the virtual environment of the protection device, timely discovers potential safety hazards, and improves reliability and safety.
Smart Images

Figure CN119068121A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of model building technology, and in particular to a digital twin model building method, device, storage medium and computer equipment. Background Art
[0002] In the core area of the power industry, substations, as the nerve center of power grid operation, bear the key tasks of power distribution and conversion. Their stable operation is directly related to the safety and efficiency of the entire power grid, and protection devices are important equipment to ensure the safe and stable operation of the power grid. These protection devices can only work correctly when they are in good condition and the parameters and external connections are normal.
[0003] However, given the high degree of professionalism and sensitivity of the protection device, any operation on it must follow extremely strict standards and procedures. In particular, for equipment that has been put into operation, it cannot be adjusted, changed or tested at will. This limits the inspection scope of the protection device to a certain extent, resulting in incomplete inspections, which in turn leads to certain safety hazards in the protection equipment. Summary of the invention
[0004] The purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defect that the inspection scope of the protection device in the prior art is limited to a certain extent, resulting in incomplete inspection, which in turn leads to certain safety hazards in the protection equipment.
[0005] The present application provides a method for constructing a digital twin model, the method comprising:
[0006] Acquire size data and material data of the protection device to be constructed, and perform three-dimensional modeling on the protection device according to the size data and the material data to generate a target three-dimensional model;
[0007] Determine the communication data and communication configuration of the protection device, and use the MMS mechanism to perform data mapping on the communication data in a preset ACSI class model to form an initial communication model, and construct a communication function of the initial communication model based on the communication configuration to generate a target communication model;
[0008] Acquire the programming source code of the protection device, and use a preset simplification strategy to compile the programming source code to simplify the code and generate a target function model;
[0009] An information interaction channel is established between the target functional model and the target communication model based on a shared memory method, and the monitoring data of the target communication model is mapped to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device.
[0010] Optionally, performing three-dimensional modeling on the protection device according to the size data and the material data to generate a target three-dimensional model includes:
[0011] Based on the dimension data, geometric shapes are constructed in a three-dimensional modeling software to generate an initial three-dimensional model;
[0012] The surface texture of the initial three-dimensional model is optimized according to the material data to obtain a target three-dimensional model.
[0013] Optionally, determining the communication data and communication configuration of the protection device includes:
[0014] Obtaining a capability description file of the protection device, and parsing the capability description file to obtain a definition structure and communication configuration of the protection device;
[0015] The logical device of the protection apparatus and the logical nodes in the logical device are created according to the definition structure, and the data items of each logical node are initialized to obtain communication data.
[0016] Optionally, the adopting the MMS mechanism to perform data mapping on the communication data in a preset ACSI class model to form an initial communication model includes:
[0017] Based on the communication data, an interface is defined in a preset ACSI class model, and the ACSI class model after the interface definition is mapped to the MMS communication protocol to obtain an initial communication model.
[0018] Optionally, constructing the communication function of the initial communication model based on the communication configuration to generate a target communication model includes:
[0019] Determining functional items of the initial communication model according to the communication configuration;
[0020] Multithreading technology and MMS-EASE Lite software library are used to instantiate various functional items in the initial communication model to form a target communication model.
[0021] Optionally, the adopting a preset simplification strategy to perform code simplification compilation on the programming source code to generate a target function model includes:
[0022] Determine the core function of the protection device, and parse the programming source code based on the core function to obtain a code architecture;
[0023] The programming source code is simplified based on the code architecture, and the simplified programming source code is compiled by a compiler to generate a target functional model.
[0024] Optionally, the method further comprises:
[0025] Determining a task scheduling mechanism of the protection device, and creating a task chain of the target function model based on the task scheduling mechanism;
[0026] The task chain is logically called according to the actual scheduling requirements of the protection device to synchronize the operating status of the protection device in the digital twin model.
[0027] The present application also provides a digital twin model construction device, comprising:
[0028] A three-dimensional model building module, used to obtain the size data and material data of the protection device to be built, and perform three-dimensional modeling on the protection device according to the size data and the material data to generate a target three-dimensional model;
[0029] A communication model building module, used to determine the communication data and communication configuration of the protection device, and use the MMS mechanism to perform data mapping on the communication data in a preset ACSI class model to form an initial communication model, and to build a communication function of the initial communication model based on the communication configuration to generate a target communication model;
[0030] A functional model building module, used for obtaining the programming source code of the protection device, and compiling the programming source code by code simplification using a preset simplification strategy to generate a target functional model;
[0031] A data sharing mapping module is used to establish an information interaction channel between the target functional model and the target communication model based on a shared memory, and to map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device.
[0032] The present application also provides a storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the digital twin model construction method described in any of the above embodiments.
[0033] The present application also provides a computer device, comprising: one or more processors, and a memory;
[0034] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the digital twin model construction method described in any one of the above embodiments are performed.
[0035] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0036] The digital twin model construction method, device, storage medium and computer equipment provided in the present application can first obtain the size data and material data of the protection device when it is necessary to build a digital twin model of the protection device, and perform three-dimensional modeling of the protection device based on the size data and material data to generate a target three-dimensional model, so that the physical structure and connection layout of the protection device can be intuitively viewed through the target three-dimensional model; secondly, the communication data and communication configuration of the protection device can be determined, and the MMS mechanism can be used to map the communication data in a preset ACSI class model to form an initial communication model, and the communication function of the initial communication model can be constructed based on the communication configuration to generate a target communication model, so that the operating status and operating parameters of the protection device can be monitored in real time through the target communication model; finally, the programming source code of the protection device can be obtained, and the preset simplification strategy can be used to simplify and compile the programming source code to generate a target functional model, so that the logical function and operation of the protection device can be accurately simulated through the target functional model, thereby evaluating the performance and response of the protection device under different working conditions. After constructing these three models, the present application can also establish an information interaction channel between the target function model and the target communication model based on shared memory, and map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device. The present application realizes comprehensive inspection and maintenance of the protection device in a virtual environment by associating data with models of three different dimensions, so that potential safety hazards of the protection device can be discovered in time, thereby improving the reliability and safety of the protection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 A schematic diagram of a process for constructing a digital twin model provided in an embodiment of the present application;
[0039] Figure 2 A schematic diagram of the architecture of a target communication model provided in an embodiment of the present application;
[0040] Figure 3 A flowchart of a target communication model communication process provided in an embodiment of the present application;
[0041] Figure 4 A logical schematic diagram of a target function model constructed according to an embodiment of the present application;
[0042] Figure 5 A schematic diagram of the structure of a digital twin model building device provided in an embodiment of the present application;
[0043] Figure 6 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] Given the high degree of professionalism and sensitivity of protective devices, any operation on them must follow extremely strict standards and procedures. In particular, for equipment that has been put into operation, adjustments, changes and tests cannot be made at will. This limits the inspection scope of the protective devices to a certain extent, resulting in incomplete inspections, which in turn leads to certain safety hazards in the protective equipment.
[0046] Based on this, this application proposes the following technical solutions, see below for details:
[0047] In one embodiment, Figure 1 As shown, Figure 1 A flowchart of a method for constructing a digital twin model provided in an embodiment of the present application; the present application provides a method for constructing a digital twin model, which specifically includes the following:
[0048] S110: Acquire size data and material data of the protection device to be constructed, and perform three-dimensional modeling on the protection device according to the size data and material data to generate a target three-dimensional model.
[0049] In this step, when the user needs to perform digital twin modeling on the protection device in the substation, the target three-dimensional model of the protection device can be constructed first. In the process of constructing the three-dimensional model, the computer device can first obtain the size data and material data of the protection device, and then perform three-dimensional modeling on the protection device according to the size data and material data to generate the target three-dimensional model of the protection device.
[0050] Among them, dimensional data refers to the physical dimensions and geometric characteristics of the protective device. These data describe the size, shape, and distance and positional relationships between the components of the protective device, such as length, width, height, and volume; and material data refers to the material characteristics used in each component of the protective device. These data describe the material type and related characteristics of the protective device and its components, such as material, color, texture, etc.
[0051] Specifically, the computer equipment can use laser scanning, photogrammetry and other methods to measure and photograph the protective device from various angles, and then analyze the measured photographic results to generate dimensional data of the protective device; in addition, the computer equipment can also read the factory technical documents, equipment labels and nameplates of the protective device to identify the material data of the protective device.
[0052] It is understandable that, since the target 3D model obtained by modeling with size data and material data can accurately reproduce the physical appearance and internal structure of the protection device in the virtual environment, including the layout and connection of each component, through the target 3D model, the user can intuitively view the appearance and structure of each component of the protection device, so as to timely discover potential physical problems, such as damage, aging or wrong connection. Furthermore, the user can also complete the installation and maintenance of the protection device in the virtual environment through the target 3D model to avoid errors in actual operation.
[0053] S120: Determine the communication data and communication configuration of the protection device, and use the MMS mechanism to map the communication data in the preset ACSI class model to form an initial communication model, and construct the communication function of the initial communication model based on the communication configuration to generate a target communication model.
[0054] In this step, after the target three-dimensional model of the protection device is constructed in step S110, the computer device can also construct a target communication model of the protection device. In the process of model construction, the computer device can first determine the communication data and communication configuration of the protection device, and then use the MMS mechanism to map the communication data in the preset ACSI class model to form an initial communication model, and then construct the communication function of the initial communication model based on the communication configuration to generate a target communication model.
[0055] Among them, communication data refers to the actual data related to data transmission between the protection device and other equipment or systems. These data may include the actual values of multiple data objects such as data parameters, data structures and control commands, such as voltage, current, switch status, etc.; and communication configuration refers to the parameters required for the protection device to configure the communication function. These data can ensure that the protection device can be correctly connected to the communication network and communicate effectively with other equipment or systems, such as network configuration, communication protocol configuration, safety configuration and report control block.
[0056] Specifically, the computer can use the MMS mechanism to map the communication data in the preset ACSI class model to form an initial communication model. The MMS mechanism here refers to a standard communication protocol for communication transmission in the substation, and the ACSI class model refers to the abstract communication service interface model in the IEC61850 standard, which can define the communication services of logical devices, logical nodes and data objects, wherein IEC61850, as an international standard, defines the communication network and system of substation automation. Therefore, the computer device uses the MMS mechanism to map the communication data in the preset ACSI class model to obtain the initial communication model, which can communicate with other devices or systems through MMS. Then, the computer device can also construct the communication function of the initial communication model based on the communication configuration, and the target communication model generated in this way can realize the important functions of the protection device, such as remote measurement of data, remote transmission of switch status, remote control of equipment, setting of equipment parameters and recording of waveform data.
[0057] It can be understood that, since the target communication model obtained by modeling the communication data and communication configuration can simulate the data transmission and communication protocol between the protection device and other devices or systems, through the target communication model, the user can monitor the operating status and parameters of the protection device in real time, so as to timely discover and handle abnormal situations, reduce the possibility of protection device failure, and ensure the normal operation of the protection device. Furthermore, the user can also simulate various communication attacks and failures of the protection device through the target communication model to verify the anti-attack ability and recovery ability of the protection device.
[0058] S130: Acquire programming source code of the protection device, and use a preset simplification strategy to simplify and compile the programming source code to generate a target function model.
[0059] In this step, after the target communication model of the protection device is obtained through modeling in step S120, the computer device can also construct a target functional model of the protection device. In the process of model construction, the computer device can first obtain the programming source code of the protection device, and then use a preset simplification strategy to compile the programming source code to simplify the code to generate the target functional model.
[0060] Among them, programming source code refers to the software code used to control and operate the protection device. These software codes are the core part of the protection device to realize its functions, and are usually written by developers using programming languages. Among them, the functions of the protection device include but are not limited to fault detection, isolation, and protection logic. The preset simplification strategy refers to a set of rules and methods defined in the compilation process to simplify the programming source code with the goal of reducing resource consumption, improving code readability, and reducing code size.
[0061] Specifically, the computer device can first obtain access rights to the version control system, so that the programming source code of the protection device can be downloaded from the repository of the version control system. Then, the computer device can simplify and compile the programming source code using a preset simplification strategy, such as deleting unnecessary code, optimizing algorithms and logic, code refactoring and compiling optimization to simplify the programming source code, and then compile the simplified programming source code into a lightweight target function model.
[0062] It is understandable that, since the target function model compiled by the simplified programming source code has the same core functions as the protection device, and is more streamlined and efficient, through the target function model, users can accurately simulate the logical functions and operations of the protection device in a virtual environment, such as various protection logics, fault detection and response mechanisms, to ensure the normal function of the protection device and optimize performance, and avoid the danger of on-site debugging. Furthermore, users can also simulate various fault scenarios of the protection device through the target function model to analyze the response and processing capabilities of the protection device, and improve the fault handling capabilities and system stability of the protection device.
[0063] S140: Establish an information interaction channel between the target functional model and the target communication model based on a shared memory method, and map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device.
[0064] In this step, after the target function model of the protection device is constructed through step S130, the computer device can establish an information interaction channel between the target function model and the target communication model based on shared memory, and map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device, so as to obtain a complete digital twin model.
[0065] It is understandable that shared memory refers to a mechanism that allows multiple programs or modules to access the same memory area. In the present application, a computer device can establish an information interaction channel between a target functional model and a target communication model based on shared memory, so that the target functional module and the target communication module can access the same memory area to improve the consistency and real-time performance of data synchronization, thereby achieving efficient data transmission. In short, this mechanism allows the target functional module to transmit its internal state to the target communication module in real time, and the target communication module sends it to other devices or systems in the form of an MMS message to monitor and respond to various simulation events in the target functional module in real time.
[0066] For example, when the target functional module detects a device failure and takes corresponding protection actions, it will write the status information into the shared memory. Then the target communication model can read the status information from the shared memory and package the status information into messages using the MMS protocol format to send them to other systems or devices through the network.
[0067] In addition, the computer equipment can also map the monitoring data of the target communication model to the corresponding blocks in the target three-dimensional model according to the block structure of the protection device, thereby realizing the visualization of the monitoring data in a virtual environment and providing data support for the real-time display of online monitoring data, equipment parameters and waveform data of the target three-dimensional model of the protection device.
[0068] Furthermore, the present application links the target function model, target communication model and target three-dimensional model of the protection device to form a complete closed-loop digital twin model. Through the digital twin model, users can conduct comprehensive inspection and maintenance of the protection device in a virtual environment, so as to timely discover potential safety hazards of the protection device, thereby improving the reliability and safety of the protection device. Furthermore, users can also use the digital twin model to optimize the device design and function in a virtual environment, perform debugging and verification, so as to improve the performance and stability of the protection device.
[0069] In the above embodiment, when it is necessary to build a digital twin model of the protection device, the size data and material data of the protection device can be obtained first, and the protection device can be three-dimensionally modeled according to the size data and material data to generate a target three-dimensional model, so that the physical structure and connection layout of the protection device can be intuitively viewed through the target three-dimensional model; secondly, the communication data and communication configuration of the protection device can be determined, and the MMS mechanism can be used to map the communication data in the preset ACSI class model to form an initial communication model, and the communication function of the initial communication model can be constructed based on the communication configuration to generate a target communication model, so that the operating status and operating parameters of the protection device can be monitored in real time through the target communication model; finally, the programming source code of the protection device can be obtained, and the programming source code can be simplified and compiled using a preset simplification strategy to generate a target function model, so that the logical function and operation of the protection device can be accurately simulated through the target function model, so as to evaluate the performance and response of the protection device under different working conditions. After constructing these three models, the present application can also establish an information interaction channel between the target function model and the target communication model based on a shared memory method, and map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device. This application realizes comprehensive inspection and maintenance of protective devices in a virtual environment through data association of models in three different dimensions, so that potential safety hazards of protective devices can be discovered in time, thereby improving the reliability and safety of protective devices.
[0070] In one embodiment, performing three-dimensional modeling of the protection device according to the size data and the material data in step S110 to generate a target three-dimensional model may include:
[0071] S111: constructing geometric shapes in 3D modeling software based on the dimension data to generate an initial 3D model.
[0072] S112: Optimizing the surface texture of the initial three-dimensional model according to the material data to obtain a target three-dimensional model.
[0073] In this embodiment, when constructing a target three-dimensional model, the computer device can first construct a geometric shape in a three-dimensional modeling software based on the size data to generate an initial three-dimensional model, and then optimize the surface texture of the initial three-dimensional model according to the material data to obtain a high-quality and proportional target three-dimensional model.
[0074] Specifically, the computer device can first select a suitable 3D modeling software, such as AutoCAD, SolidWorks, CATIA, etc., and then create a basic sketch in the 3D modeling software, and draw multiple views of each component in the protective device according to the acquired dimensional data, such as a front view, a side view, a top view, etc., and then convert the two-dimensional sketch into a three-dimensional shape, and combine the various components according to the component structure of the protective device to obtain an initial three-dimensional model; then, the computer device can optimize the appearance color, texture, etc. of the initial three-dimensional model according to the appearance details of each component in the material data to enhance the realism of the model and obtain the target three-dimensional model.
[0075] Furthermore, after obtaining the target 3D model of the protection device, the computer device can also save the target 3D model as a native file format supported by the 3D modeling software, such as .sldprt supported by SolidWorks, .CATPart supported by CATIA, etc. Finally, the computer device can convert the native file format into a commonly used 3D file format, such as .OBJ, .GLTF and other format files according to actual needs, for easy sharing and manufacturing.
[0076] In one embodiment, determining the communication data and communication configuration of the protection device in step S120 may include:
[0077] S121: Acquire a capability description file of the protection device, and parse the capability description file to obtain a definition structure and communication configuration of the protection device.
[0078] S122: Create a logical device of the protection device and a logical node in the logical device according to the defined structure, and initialize the data item of each logical node to obtain communication data.
[0079] In this embodiment, when determining the communication data and communication configuration of the protection device, the computer device may first obtain the capability description file of the protection device, and parse the capability description file to obtain the definition structure and communication configuration of the protection device. Then, the computer device may create a logical device of the protection device and a logical node in the logical device according to the definition structure, and initialize the data item of each logical node to obtain the communication data.
[0080] It can be understood that the capability description file refers to a file used in a substation to describe the capabilities of a protection device, which describes in detail the functions and capabilities of the protection device, including the data objects, communication protocols, and logical control and operation quality of the device supported by the protection device. Therefore, by parsing the capability description file, the present application can obtain the definition structure and communication configuration of the protection device. Among them, the definition structure refers to the definition of the data structure in the protection device by the capability description file.
[0081] Specifically, the present application can create logical devices and logical nodes according to the definition structure of the protection device, where the logical device refers to a component in the protection device, and the logical node refers to the specific function of the component. Therefore, under each logical node, the computer device can create and initialize specific data items, such as voltage, current, switch status, etc., to form communication data.
[0082] Furthermore, in addition to the IP address, subnet mask and gateway configurations of the protection device, the communication configuration of the present application may also include a report control block, which can be set according to the configuration definition of the capability description file, such as setting the trigger conditions for the report, including timed sending or event-driven, and setting whether buffering is required, etc., so that the target communication model can correctly generate and send reports during the communication process.
[0083] In one embodiment, in step S120, the communication data is mapped in a preset ACSI class model using an MMS mechanism to form an initial communication model, which may include:
[0084] S123: Based on the communication data, an interface is defined in a preset ACSI class model, and the ACSI class model after the interface definition is mapped to the MMS communication protocol to obtain an initial communication model.
[0085] In this embodiment, when the computer device performs data mapping on the communication data, it can first define the interface in the preset ACSI class model based on the communication data, and then map the ACSI class model after the interface definition to the MMS communication protocol to obtain the initial communication model.
[0086] It can be understood that since ACSI is a set of abstract interfaces defined in the IEC 61850 standard, it is used to describe how to exchange data and services between different devices or systems. Therefore, the computer device can define the communication services of the logical devices, logical nodes and data objects of the protection device according to the interface of the communication data in the ACSI class model. However, these interfaces are independent of the specific communication protocol, so the computer device can achieve specific communication through specific communication service mapping. In this application, the MMS communication protocol can be used, so that the initial communication model can use MMS to communicate data with different devices or systems.
[0087] In one embodiment, the communication function of constructing the initial communication model based on the communication configuration in step S120 to generate the target communication model may include:
[0088] S124: Determine functional items of the initial communication model according to the communication configuration.
[0089] S125: Multithreading technology and MMS-EASE Lite software library are used to instantiate various functional items in the initial communication model to form a target communication model.
[0090] In this embodiment, when constructing a target communication model, the computer device can first determine the functional items of the initial communication model based on the communication configuration, and then use multi-threading technology and the MMS-EASE Lite software library to instantiate each functional item in the initial communication model, thereby obtaining a fully functional target communication model.
[0091] Among them, multithreading technology refers to the technology of realizing concurrent execution of multiple threads. In computer programming, it can control multiple tasks at the same time to improve the overall processing performance. The MMS-EASE Lite software library can provide a series of functions and tools for implementing the MMS communication protocol, thereby improving the quality and communication efficiency of the target communication model.
[0092] Specifically, the computer equipment can determine the functional items of the initial communication model through communication configuration, such as remote measurement of data, remote transmission of switch status, remote control of equipment, setting of equipment parameters and recording of waveform data, etc., and then can use multi-threading technology and MMS-EASE Lite software library to create and start instances corresponding to these functional items in the initial communication model to realize the complete communication functions of the target communication model and ensure that it can perform all necessary protection, monitoring, control and measurement tasks.
[0093] Furthermore, for different signal types, such as switch states and continuously changing data, the computer device can establish corresponding components in the target communication model to process and manage these signals, such as measurement components such as telesignaling, telemetering, and telepulse, to instantiate discrete signals such as switch states and continuously changing signals such as voltage or current, and then perform corresponding processing.
[0094] In order to better explain this target communication model, Figure 2 and Figure 3 To further illustrate, schematically, Figure 2 and Figure 3 As shown, Figure 2 A schematic diagram of the architecture of a target communication model provided in an embodiment of the present application; Figure 3 A flowchart of a target communication model communication process provided in an embodiment of the present application.
[0095] Figure 2In the MMS, the computer device can obtain the model structure by parsing the capability description file (ICD file), which may include the logical device (LD0), logical node (LN), data object (DO) and other contents of the protection device (IED). The target communication model thus constructed can realize data transmission between the MMS server and the station control layer server. Inside the MMS server, data or operation requests can be put into the data or operation queue in the form of multi-threading, and then sent to the IEC104 client. The client can send requests to the external system and receive data in the IEC104 service segment through the IEC104 protocol, such as obtaining telesignaling, telemetering and telepulse data. Furthermore, the IEC104 client can also construct a 104 point table file, which is stored in the RCD format and describes the relationship between the device and the signal, so that the point number and reference can be mapped to connect the IEC104 point table with the target communication model. Among them, the mapped point number can uniquely identify the device and signal, and the reference can represent the object reference in the IEC61850 standard.
[0096] Figure 3 In the process, the MMS client can upload data to the MMS service, respond to periodic calls to the MMS service, and control the remote control and customized modifications of the MMS service, so that the MMS service can operate in the memory through the telesignaling / telemetry data buffer queue, the remote control data buffer queue and the fixed value data buffer queue to realize the data communication in the target communication model obtained based on the model structure.
[0097] In one embodiment, in step S130, using a preset simplification strategy to simplify and compile the programming source code to generate a target functional model may include:
[0098] S131: Determine the core functions of the protection device, and parse the programming source code based on the core functions to obtain a code architecture.
[0099] S132: Simplify the programming source code based on the code architecture, and compile the simplified programming source code using a compiler to generate a target functional model.
[0100] In this embodiment, when constructing the target functional model, the computer device may first determine the core function of the protection device, and then parse the programming source code based on the core function to obtain the code architecture. Then the computer device may simplify the programming source code based on the code architecture, and use a compiler to compile the simplified programming source code to generate the target functional model.
[0101] Indicatively, Figure 4 As shown, Figure 4A logical schematic diagram of a target function model constructed according to an embodiment of the present application; Figure 4 In the present invention, the computer device can obtain the programming source code of the protection device, such as C code, through the protection visualization program; wherein, by directly compiling the programming source code through compiler 1, the device program before lightweighting, the original running program of the machine protection device, can be obtained; and after simplifying the programming source code, compiler 2 is used to compile it, and the lightweight twin program can be obtained, and then a model is generated, that is, the target function model of the protection device. Among them, the core functions of the device program and the twin program are the same. When the power simulation software performs task scheduling on the twin program through the scheduling core, the running data of the twin program is the output of the target function model. Among them, the power simulation software is the external input source of the target function model, which can be connected to the target function model through a custom interface to fully simulate the protection device through task scheduling.
[0102] In one embodiment, the method may further include:
[0103] S150: Determine a task scheduling mechanism of the protection device, and create a task chain of the target function model based on the task scheduling mechanism.
[0104] S160: Perform a logical call on the task chain according to the actual scheduling requirements of the protection device to synchronize the operating status of the protection device in the digital twin model.
[0105] In this embodiment, after constructing the digital twin model of the protection device, the computer device can also determine the task scheduling mechanism of the protection device and create a task chain of the target function model based on the task scheduling mechanism. Then the computer device can perform a logical call on the task chain according to the actual scheduling requirements of the protection device to synchronize the operating status of the protection device in the digital twin model.
[0106] Among them, the task scheduling mechanism refers to the method of managing and arranging the execution order and time of various protection tasks in the protection device. The protection tasks here may include fault detection, fault isolation, etc., which are not limited here.
[0107] Specifically, the computer device can define the task chain of the target function model based on the task scheduling mechanism of the protection device to ensure that the target function model can perform tasks in the correct steps and sequence. Then, the computer device can determine the scheduling logic according to the actual scheduling requirements of the protection device in the real scene, and then use the power simulation software to simulate the scheduling task chain according to these scheduling logics so that the corresponding tasks are performed in the target function model. Therefore, the target function model can use different time steps to manage and execute multiple tasks at the same time, thereby improving the accuracy of the simulation results.
[0108] The digital twin model construction device provided in an embodiment of the present application is described below. The digital twin model construction device described below and the digital twin model construction method described above can be referenced to each other.
[0109] In one embodiment, Figure 5 As shown, Figure 5 A structural schematic diagram of a digital twin model construction device provided in an embodiment of the present application; the present application also provides a structural schematic diagram of a digital twin model construction device, including a three-dimensional model construction module 210, a communication model construction module 220, a functional model construction module 230 and a data sharing mapping module 240, specifically including the following:
[0110] The three-dimensional model building module 210 is used to obtain the size data and material data of the protection device to be built, and perform three-dimensional modeling on the protection device according to the size data and material data to generate a target three-dimensional model.
[0111] The communication model building module 220 is used to determine the communication data and communication configuration of the protection device, and use the MMS mechanism to map the communication data in the preset ACSI class model to form an initial communication model, and build the communication function of the initial communication model based on the communication configuration to generate a target communication model.
[0112] The functional model building module 230 is used to obtain the programming source code of the protection device, and use a preset simplification strategy to simplify and compile the programming source code to generate a target functional model.
[0113] The data sharing mapping module 240 is used to establish an information interaction channel between the target functional model and the target communication model based on a shared memory, and map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device.
[0114] In the above embodiment, when it is necessary to build a digital twin model of the protection device, the size data and material data of the protection device can be obtained first, and the protection device can be three-dimensionally modeled according to the size data and material data to generate a target three-dimensional model, so that the physical structure and connection layout of the protection device can be intuitively viewed through the target three-dimensional model; secondly, the communication data and communication configuration of the protection device can be determined, and the MMS mechanism can be used to map the communication data in the preset ACSI class model to form an initial communication model, and the communication function of the initial communication model can be constructed based on the communication configuration to generate a target communication model, so that the operating status and operating parameters of the protection device can be monitored in real time through the target communication model; finally, the programming source code of the protection device can be obtained, and the programming source code can be simplified and compiled using a preset simplification strategy to generate a target function model, so that the logical function and operation of the protection device can be accurately simulated through the target function model, so as to evaluate the performance and response of the protection device under different working conditions. After constructing these three models, the present application can also establish an information interaction channel between the target function model and the target communication model based on a shared memory method, and map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device. This application realizes comprehensive inspection and maintenance of protective devices in a virtual environment through data association of models in three different dimensions, so that potential safety hazards of protective devices can be discovered in time, thereby improving the reliability and safety of protective devices.
[0115] In one embodiment, the 3D model building module 210 may include:
[0116] The geometry construction submodule is used to construct the geometry in the 3D modeling software based on the dimension data to generate an initial 3D model.
[0117] The surface texture optimization submodule is used to optimize the surface texture of the initial three-dimensional model according to the material data to obtain the target three-dimensional model.
[0118] In one embodiment, the communication model building module 220 may include:
[0119] The file parsing submodule is used to obtain the capability description file of the protection device and parse the capability description file to obtain the definition structure and communication configuration of the protection device.
[0120] The data initialization submodule is used to create the logical device of the protection device and the logical nodes in the logical device according to the defined structure, and initialize the data items of each logical node to obtain communication data.
[0121] In one embodiment, the communication model building module 220 may further include:
[0122] The interface definition submodule is used to define the interface in a preset ACSI class model based on the communication data, and map the ACSI class model after the interface definition to the MMS communication protocol to obtain an initial communication model.
[0123] In one embodiment, the communication model building module 220 may further include:
[0124] The project determination submodule is used to determine the functional projects of the initial communication model according to the communication configuration.
[0125] The function construction submodule is used to instantiate each function item in the initial communication model by using multi-threading technology and MMS-EASE Lite software library to form a target communication model.
[0126] In one embodiment, the functional model building module 230 may include:
[0127] The code parsing submodule is used to determine the core functions of the protection device and parse the programming source code based on the core functions to obtain the code architecture.
[0128] The code compilation submodule is used to simplify the programming source code based on the code architecture, and use a compiler to compile the simplified programming source code to generate a target functional model.
[0129] In one embodiment, the method may further include:
[0130] The task chain creation module is used to determine the task scheduling mechanism of the protection device and create a task chain of the target function model based on the task scheduling mechanism.
[0131] The task logic calling module is used to make logical calls to the task chain according to the actual scheduling requirements of the protection device, so as to synchronize the operating status of the protection device in the digital twin model.
[0132] In one embodiment, the present application also provides a storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the digital twin model construction method described in any of the above embodiments.
[0133] In one embodiment, the present application also provides a computer device, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the digital twin model construction method as described in any of the above embodiments.
[0134] Indicatively, Figure 6 As shown, Figure 6This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 6 The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301 for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to perform the digital twin model construction method of any of the above embodiments.
[0135] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.
[0136] Those skilled in the art will understand that Figure 6 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.
[0137] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0138] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0139] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for constructing a digital twin model, characterized in that: The method comprises: Acquire size data and material data of the protection device to be constructed, and perform three-dimensional modeling on the protection device according to the size data and the material data to generate a target three-dimensional model; Determine the communication data and communication configuration of the protection device, and use the MMS mechanism to perform data mapping on the communication data in a preset ACSI class model to form an initial communication model, and construct a communication function of the initial communication model based on the communication configuration to generate a target communication model; Acquire the programming source code of the protection device, and use a preset simplification strategy to compile the programming source code to simplify the code and generate a target function model; An information interaction channel is established between the target functional model and the target communication model based on a shared memory method, and the monitoring data of the target communication model is mapped to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device.
2. The digital twin model construction method according to claim 1, characterized in that: The three-dimensional modeling of the protection device according to the size data and the material data to generate a target three-dimensional model includes: Based on the dimension data, geometric shapes are constructed in a three-dimensional modeling software to generate an initial three-dimensional model; The surface texture of the initial three-dimensional model is optimized according to the material data to obtain a target three-dimensional model.
3. The digital twin model construction method according to claim 1, characterized in that: Determining the communication data and communication configuration of the protection device includes: Obtaining a capability description file of the protection device, and parsing the capability description file to obtain a definition structure and communication configuration of the protection device; The logical device of the protection apparatus and the logical nodes in the logical device are created according to the definition structure, and the data items of each logical node are initialized to obtain communication data.
4. The method for constructing a digital twin model according to claim 1, characterized in that: The method of using the MMS mechanism to map the communication data in a preset ACSI class model to form an initial communication model includes: Based on the communication data, an interface is defined in a preset ACSI class model, and the ACSI class model after the interface definition is mapped to the MMS communication protocol to obtain an initial communication model.
5. The digital twin model construction method according to claim 1, characterized in that: The communication function of constructing the initial communication model based on the communication configuration to generate a target communication model includes: Determining functional items of the initial communication model according to the communication configuration; Multithreading technology and MMS-EASE Lite software library are used to instantiate various functional items in the initial communication model to form a target communication model.
6. The digital twin model construction method according to claim 1, characterized in that: The method of using a preset simplification strategy to compile the programming source code to simplify the code and generate a target function model includes: Determine the core function of the protection device, and parse the programming source code based on the core function to obtain a code architecture; The programming source code is simplified based on the code architecture, and the simplified programming source code is compiled by a compiler to generate a target functional model.
7. The digital twin model construction method according to claim 1, characterized in that: The method further comprises: Determining a task scheduling mechanism of the protection device, and creating a task chain of the target function model based on the task scheduling mechanism; The task chain is logically called according to the actual scheduling requirements of the protection device to synchronize the operating status of the protection device in the digital twin model.
8. A digital twin model construction device, characterized in that: include: A three-dimensional model building module, used to obtain the size data and material data of the protection device to be built, and perform three-dimensional modeling on the protection device according to the size data and the material data to generate a target three-dimensional model; A communication model building module, used to determine the communication data and communication configuration of the protection device, and use the MMS mechanism to perform data mapping on the communication data in a preset ACSI class model to form an initial communication model, and to build a communication function of the initial communication model based on the communication configuration to generate a target communication model; A functional model building module, used for obtaining the programming source code of the protection device, and compiling the programming source code by code simplification using a preset simplification strategy to generate a target functional model; A data sharing mapping module is used to establish an information interaction channel between the target functional model and the target communication model based on a shared memory, and to map the monitoring data of the target communication model to the target three-dimensional model according to the block structure of the protection device to form a digital twin model of the protection device.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the digital twin model construction method as described in any one of claims 1 to 7.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the digital twin model construction method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Construction method and equipment of digital twinborn model of power data communication network, and medium
CN115801594A
Method and system for constructing digital twin information model of power distribution terminal, and medium
CN115934676A
Automatic modeling method and system for digital twin feeder of power distribution terminal and medium
CN117195465A
User side energy storage scheduling optimization control method and device based on digital twin architecture
CN117613903A
Method for creating a digital twin of an infrastructure component
US20220414862A1
