Methods, apparatus, storage media and computer equipment for building digital twin models

By constructing a digital twin model of the protection device, the problem of limited inspection scope was solved, enabling comprehensive virtual inspection and maintenance of the protection device and improving the reliability and safety of the device.

CN119068121BActive Publication Date: 2025-11-14GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411220778.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-11-14
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

The inspection scope of existing protection devices is limited, resulting in incomplete inspections and potential safety hazards.

Method used

A digital twin model of the protection device is constructed by acquiring size and material data for 3D modeling, determining communication data and configuration, generating communication and functional models, and establishing an information interaction channel through shared memory to form a digital twin model.

Benefits of technology

It enables comprehensive inspection and maintenance of protection devices in a virtual environment, timely detection of potential security risks, and improvement of device reliability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068121B_ABST
    Figure CN119068121B_ABST
Patent Text Reader

Abstract

This application provides a digital twin model construction method, apparatus, storage medium, and computer equipment. The digital twin model is obtained by associating data from a target 3D model, a target communication model, and a target functional model. This enables comprehensive inspection and maintenance of protection devices in a virtual environment, allowing for the timely detection of potential safety hazards and improving the reliability and security of the protection devices. Specifically, the target 3D model is obtained by creating a 3D model based on the size and material data of the protection device, providing a direct view of the device's physical structure and connection layout. The target communication data is obtained by mapping the communication data and configuration of the protection device, enabling real-time monitoring of the device's operating status and parameters. The target functional model is obtained by simplifying and compiling the protection device's source code, allowing for the evaluation of the protection device's performance and response under different operating conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of model building technology, and in particular to a method, apparatus, storage medium and computer equipment for building a digital twin model. Background Technology

[0002] In the core area of ​​the power industry, substations, as the nerve center of power grid operation, bear the critical task 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 their parameters and external connections are normal.

[0003] However, given the highly specialized and sensitive nature of protection devices, any operation on them must follow extremely strict standards and procedures. In particular, for equipment that has already been put into operation, adjustments, changes, and tests cannot be made at will. This limits the scope of inspection for protection devices to a certain extent, resulting in incomplete inspections and thus leading to certain safety hazards in the protection equipment. Summary of the Invention

[0004] The purpose of this application is to at least solve one of the above-mentioned technical defects, in particular 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 and thus causing certain safety hazards in the protection equipment.

[0005] This application provides a method for constructing a digital twin model, the method comprising:

[0006] Obtain the size and material data of the protective device to be constructed, and perform three-dimensional modeling of the protective device based on the size and material data to generate a target three-dimensional model;

[0007] The communication data and communication configuration of the protection device are determined, and the communication data is mapped in a preset ACSI class model using the MMS mechanism to form an initial communication model. Based on the communication configuration, the communication function of the initial communication model is constructed to generate a target communication model.

[0008] 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;

[0009] An information interaction channel between the target functional model and the target communication model is established based on shared memory, 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, the step of performing three-dimensional modeling of the protective device based on the size data and the material data to generate a target three-dimensional model includes:

[0011] Based on the dimensional data, the geometry is constructed in 3D modeling software to generate an initial 3D model;

[0012] The surface texture of the initial 3D model is optimized based on the material data to obtain the target 3D model.

[0013] Optionally, determining the communication data and communication configuration of the protection device includes:

[0014] 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;

[0015] Based on the defined structure, the logical device of the protection device and the logical nodes in the logical device are created, and the data items of each logical node are initialized to obtain communication data.

[0016] Optionally, the step of using the MMS mechanism to map the communication data in a preset ACSI-type 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 interface definition is mapped to the MMS communication protocol to obtain the initial communication model.

[0018] Optionally, the step of constructing the communication function of the initial communication model based on the communication configuration to generate the target communication model includes:

[0019] The functional items of the initial communication model are determined based on the communication configuration;

[0020] Multithreading technology and the MMS-EASE Lite software library are used to instantiate various functional items in the initial communication model to form the target communication model.

[0021] Optionally, the step of simplifying and compiling the programming source code using a preset simplification strategy to generate the target functional model includes:

[0022] The core functions of the protection device are determined, and the programming source code is analyzed based on the core functions to obtain the code architecture;

[0023] Based on the aforementioned code architecture, the programming source code is simplified, and a compiler is used to compile the simplified programming source code to generate the target functional model.

[0024] Optionally, the method further includes:

[0025] Determine the task scheduling mechanism of the protection device, and create a task chain for the target functional model based on the task scheduling mechanism;

[0026] The task chain is logically invoked according to the actual scheduling requirements of the protection device in order to synchronize the operating status of the protection device in the digital twin model.

[0027] This application also provides a digital twin model construction apparatus, comprising:

[0028] The 3D model building module is used to acquire the size data and material data of the protective device to be built, and to perform 3D modeling of the protective device based on the size data and the material data to generate a target 3D model;

[0029] The communication model construction module is used to determine the communication data and communication configuration of the protection device, and to perform data mapping on the communication data in a preset ACSI class model using the MMS mechanism to form an initial communication model, and to construct the communication function of the initial communication model based on the communication configuration to generate a target communication model.

[0030] The functional model construction module is used to obtain the programming source code of the protection device and to simplify and compile the programming source code using a preset simplification strategy to generate a target functional model.

[0031] The data sharing and mapping module is used to establish an information interaction channel between the target functional model and the target communication model based on 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, thereby forming a digital twin model of the protection device.

[0032] This application also provides a storage medium storing computer-readable instructions that, 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 of the above embodiments.

[0033] This application also provides a computer device, including: one or more processors, and memory;

[0034] 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 of the above embodiments.

[0035] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:

[0036] The digital twin model construction method, apparatus, storage medium, and computer equipment provided in this application, when constructing a digital twin model of a protection device, can first acquire the size and material data of the protection device, and then perform three-dimensional modeling of the protection device based on the size and material data to generate a target three-dimensional model. This target three-dimensional model allows for a direct view of the physical structure and connection layout of the protection device. Secondly, the communication data and configuration of the protection device can be determined, and the communication data can be mapped in a preset ACSI-type model using the MMS mechanism to form an initial communication model. Based on the communication configuration, the communication functions of the initial communication model are constructed to generate a target communication model. This target communication model allows for real-time monitoring of the protection device's operating status and parameters. Finally, the programming source code of the protection device can be acquired, and a preset simplification strategy can be used to simplify and compile the programming source code to generate a target functional model. This target functional model allows for accurate simulation of the protection device's logical functions and operations, thereby evaluating the protection device's performance and response under different operating conditions. After constructing these three models, this application can establish an information interaction channel between the target functional model and the target communication model based on shared memory. Furthermore, according to the modular structure of the protection device, the monitoring data of the target communication model is mapped to the target three-dimensional model, forming a digital twin model of the protection device. This application achieves comprehensive inspection and maintenance of the protection device in a virtual environment by associating data with models of three different dimensions. This allows for the timely detection of potential safety hazards in the protection device, thereby improving its reliability and security. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 A flowchart illustrating a digital twin model construction method provided in this application embodiment;

[0039] Figure 2 This application provides an architectural diagram of a target communication model.

[0040] Figure 3 A flowchart illustrating the communication process of a target communication model provided in an embodiment of this application;

[0041] Figure 4 A logical schematic diagram illustrating the construction of a target functional model provided in an embodiment of this application;

[0042] Figure 5 A schematic diagram of a digital twin model construction device provided in this application embodiment;

[0043] Figure 6 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0044] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0045] Given the highly specialized and sensitive nature of protection devices, any operation on them must follow extremely strict standards and procedures. In particular, for equipment that has already been put into operation, adjustments, changes, and tests cannot be made at will. This limits the scope of inspection for protection devices to a certain extent, resulting in incomplete inspections and thus creating certain safety hazards for the protection equipment.

[0046] Based on this, this application proposes the following technical solution, as detailed below:

[0047] In one embodiment, such as Figure 1 As shown, Figure 1 This is a flowchart illustrating a digital twin model construction method provided in an embodiment of this application. The present application provides a digital twin model construction method, specifically including the following:

[0048] S110: Obtain the size and material data of the protective device to be constructed, and perform three-dimensional modeling of the protective device based on the size and material data to generate the target three-dimensional model.

[0049] In this step, when a user needs to perform digital twin modeling of a protection device in a substation, they can first construct a target 3D model of the protection device. During the 3D model construction process, the computer equipment can first acquire the size and material data of the protection device, and then perform 3D modeling of the protection device based on this size and material data to generate the target 3D model of the protection device.

[0050] Among them, size data refers to the physical dimensions and geometric features 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. Material data refers to the material characteristics used in each component of the protective device. These data describe the material types and related properties of the protective device and its components, such as material, color, and texture.

[0051] Specifically, computer equipment can use methods such as laser scanning and photogrammetry to take actual measurements and pictures of the protection device from various angles, and then analyze the actual measurement and picture results to generate the size data of the protection device; in addition, computer equipment can also read the factory technical documents, equipment labels and nameplates of the protection device to identify the material data of the protection device.

[0052] Understandably, because the target 3D model, created using dimensional and material data, can accurately reproduce the physical appearance and internal structure of the protective device in a virtual environment, including the layout and connections of each component, users can intuitively view the appearance and structure of each component of the protective device through this target 3D model. This allows them to promptly identify potential physical problems, such as damage, aging, or incorrect connections. Furthermore, users can also use this target 3D model to simulate the installation and maintenance of the protective device in a virtual environment, thus avoiding errors during 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 the target communication model.

[0054] In this step, after the target 3D model of the protection device is constructed through step S110, the computer equipment can also construct the target communication model of the protection device. During the model construction process, the computer equipment 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. Then, based on the communication configuration, the communication function of the initial communication model is constructed to generate the target communication model.

[0055] Among them, communication data refers to the actual data related to data transmission between the protection device and other devices or systems. This data can include the actual values ​​of multiple data objects such as data parameters, data structures, and control commands, such as voltage, current, and switch status. Communication configuration refers to the parameters required for the protection device to configure its communication functions. This data ensures that the protection device can correctly connect to the communication network and communicate effectively with other devices or systems, such as network configuration, communication protocol configuration, security configuration, and reporting control blocks.

[0056] Specifically, the computer can use the MMS mechanism to map communication data within a pre-defined ACSI class model, forming an initial communication model. Here, the MMS mechanism refers to a standard communication protocol used for communication transmission in substations, while the ACSI class model refers to the Abstract Communication Service Interface Model in the IEC 61850 standard, which defines communication services for logical devices, logical nodes, and data objects. IEC 61850, as an international standard, defines the communication network and system for substation automation. Therefore, the initial communication model obtained by the computer device using the MMS mechanism to map communication data within the pre-defined ACSI class model can communicate with other devices or systems through MMS. Furthermore, the computer device can construct the communication functions of the initial communication model based on the communication configuration. The resulting target communication model can realize 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] Understandably, since the target communication model, obtained through communication data and configuration modeling, can simulate the data transmission and communication protocols between the protection device and other devices or systems, users can monitor the operating status and parameters of the protection device in real time, promptly detect and handle abnormal situations, reduce the possibility of protection device failure, and ensure the normal operation of the protection device. Furthermore, users can also use this target communication model to simulate various communication attacks and failures of the protection device to verify its anti-attack capabilities and recovery capabilities.

[0058] S130: 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 the target functional model.

[0059] In this step, after obtaining the target communication model of the protection device through step S120, the computer equipment can also construct the target functional model of the protection device. During the model construction process, the computer equipment can first obtain the programming source code of the protection device, and then use a preset simplification strategy to simplify and compile the programming source code to generate the target functional model.

[0060] In this context, "programming source code" refers to the software code used to control and operate the protection device. This software code is the core part of the protection device to achieve its functions and is usually written by developers using programming languages. The functions of the protection device include, but are not limited to, fault detection, isolation, and protection logic. Preset simplification strategies refer to a set of rules and methods defined during the compilation process to simplify the programming source code, aiming to reduce resource consumption, improve code readability, and reduce code size.

[0061] Specifically, the computer device can first obtain access to the version control system, thereby downloading the programming source code of the protection device from the version control system's repository. Then, the computer device can use preset simplification strategies to simplify and compile the programming source code, such as deleting unnecessary code, optimizing algorithms and logic, refactoring code, and optimizing compilation, to simplify the programming source code, and then compile the simplified programming source code into a lightweight target functional model.

[0062] Understandably, since the target functional model, compiled from simplified source code, possesses the same core functions as the protection device, but is more streamlined and efficient, users can precisely simulate the logical functions and operations of the protection device in a virtual environment. This includes various protection logics, fault detection, and response mechanisms, ensuring the protection device functions correctly and optimizing performance, while avoiding the dangers of on-site debugging. Furthermore, users can use this target functional model to simulate various fault scenarios of the protection device to analyze its response and processing capabilities, thereby improving its fault handling capabilities and system stability.

[0063] S140: Establish an information interaction channel between the target functional 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.

[0064] In this step, after the target functional model of the protection device is constructed through step S130, the computer equipment can establish an information interaction channel between the target functional 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, thereby obtaining a complete digital twin model.

[0065] As is understood, shared memory refers to a mechanism that allows multiple programs or modules to access the same memory region. In this application, a computer device can establish an information exchange channel between a target functional model and a target communication model based on shared memory, enabling the target functional module and the target communication module to access the same memory region, thereby improving the consistency and real-time performance of data synchronization and achieving efficient data transmission. In summary, 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 to send it to other devices or systems in the form of MMS messages for real-time monitoring and response to various simulated events in the target functional module.

[0066] For example, when the target functional module detects a device fault and takes corresponding protective actions, it writes this status information into shared memory. Then, the target communication model can read this status information from the shared memory and use the MMS protocol format to package this status information into a message to send it to other systems or devices over the network.

[0067] In addition, computer equipment can map the monitoring data of the target communication model to the corresponding blocks in the target 3D model according to the block structure of the protection device, thereby realizing the visualization of monitoring data in the virtual environment and providing data support for the real-time display of online monitoring data, equipment parameters and waveform data of the target 3D model of the protection device.

[0068] Furthermore, this application links the target functional model, target communication model, and target 3D model of the protection device to form a complete closed-loop digital twin model. Through this digital twin model, users can perform comprehensive inspection and maintenance of the protection device in a virtual environment, thereby promptly identifying potential safety hazards and improving the reliability and security of the protection device. Furthermore, users can also use this digital twin model to optimize device design and functions, conduct debugging and verification in a virtual environment, to improve the performance and stability of the protection device.

[0069] In the above embodiments, when it is necessary to construct a digital twin model of the protection device, the size and material data of the protection device can be obtained first, and a three-dimensional model of the protection device can be created based on the size and material data to generate a target three-dimensional model. This target three-dimensional model allows for a direct view of the physical structure and connection layout of the protection device. Secondly, the communication data and configuration of the protection device can be determined, and the communication data can be mapped in a preset ACSI-type model using the MMS mechanism to form an initial communication model. Based on the communication configuration, the communication functions of the initial communication model are constructed to generate a target communication model. This allows for real-time monitoring of the operating status and parameters of the protection device. Finally, the programming source code of the protection device can be obtained, and a preset simplification strategy can be used to simplify and compile the programming source code to generate a target functional model. This target functional model allows for accurate simulation of the logical functions and operations of the protection device, thereby evaluating the performance and response of the protection device under different operating conditions. After constructing these three models, this application can also establish an information interaction channel between the target functional 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. This application uses data to associate three different dimensions of models to achieve comprehensive inspection and maintenance of protection devices in a virtual environment, thereby enabling timely detection of potential safety hazards and improving the reliability and security of the protection devices.

[0070] In one embodiment, step S110, which involves creating a three-dimensional model of the protective device based on dimensional and material data to generate a target three-dimensional model, may include:

[0071] S111: Based on dimensional data, construct the geometry in 3D modeling software to generate an initial 3D model.

[0072] S112: Optimize the surface texture of the initial 3D model based on the material data to obtain the target 3D model.

[0073] In this embodiment, when constructing the target 3D model, the computer device can first construct the geometry based on the size data in 3D modeling software to generate an initial 3D model, and then optimize the surface texture of the initial 3D model according to the material data to obtain a high-quality and proportional target 3D model.

[0074] Specifically, the computer equipment can first select suitable 3D modeling software, such as AutoCAD, SolidWorks, CATIA, etc., and then create a basic sketch in the 3D modeling software. Based on the obtained dimensional data, multiple views of each component in the protective device are drawn, such as front view, side view, top view, etc. The 2D sketch can then be converted into a 3D shape, and the components are combined according to the component structure of the protective device to obtain the initial 3D model. Next, the computer equipment can optimize the appearance color, texture, etc. of the initial 3D model according to the appearance details of each component in the material data to enhance the realism of the model and obtain the target 3D model.

[0075] Furthermore, after obtaining the target 3D model of the protective device, the computer equipment can save the target 3D model in a native file format supported by 3D modeling software, such as .sldprt supported by SolidWorks and .CATPart supported by CATIA. Finally, the computer equipment can convert the native file format into commonly used 3D file formats, such as .OBJ and .GLTF, 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: Obtain the capability description file of the protection device, parse the capability description file, and obtain the definition structure and communication configuration of the protection device.

[0078] S122: Create the logic device of the protection device and the logic nodes in the logic device according to the defined structure, and initialize the data items of each logic node to obtain communication data.

[0079] In this embodiment, when determining the communication data and configuration of the protection device, the computer device can first obtain the capability description file of the protection device and parse it to obtain the definition structure and communication configuration of the protection device. Then, the computer device can create the logical device of the protection device and the logical nodes in the logical device according to the definition structure, and initialize the data items of each logical node to obtain the communication data.

[0080] It is understood that a capability description document refers to a document used in a substation to describe the capabilities of a protection device. It details the functions and capabilities of the protection device, including the data objects supported by the protection device, communication protocols, and the device's logical control and operational quality. Therefore, by parsing the capability description document, this application can obtain the definition structure and communication configuration of the protection device. Here, the definition structure refers to the definition of the data structures within the protection device in the capability description document.

[0081] Specifically, this application can create logical devices and logical nodes based on the defined structure of the protection device. Here, a logical device refers to a component within the protection device, while a logical node refers to the specific function of that component. Therefore, under each logical node, the computer device can create and initialize specific data items, such as voltage, current, and switch status, thereby forming communication data.

[0082] Furthermore, in addition to the IP address, subnet mask, and gateway configuration of the protection device, the communication configuration of this application may also include a report control block. This report control block can be configured according to the configuration definition in the capability description file, such as setting the triggering conditions for reports, including timed sending or event-driven sending, and setting whether buffering is required. This enables the target communication model to correctly generate and send reports during the communication process.

[0083] In one embodiment, step S120, which uses the MMS mechanism to map communication data in a preset ACSI class model to form an initial communication model, may include:

[0084] S123: Define the interface in the preset ACSI class model based on the communication data, and map the ACSI class model after interface definition to the MMS communication protocol to obtain the 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 interface definition to the MMS communication protocol to obtain the initial communication model.

[0086] Understandably, since ACSI is a set of abstract interfaces defined in the IEC 61850 standard to describe how different devices or systems exchange data and services, computer devices can define the communication services of logical devices, logical nodes, and data objects of the protection device based on the interfaces of communication data in the ACSI class model. However, these interfaces are independent of specific communication protocols, so computer devices can implement specific communication through specific communication service mappings. In this application, the MMS communication protocol can be used, enabling the initial communication model to communicate with different devices or systems using MMS.

[0087] In one embodiment, step S120, which involves constructing the communication function of the initial communication model based on the communication configuration and generating the target communication model, may include:

[0088] S124: Determine the functional items of the initial communication model based on the communication configuration.

[0089] S125: Using multi-threading technology and the MMS-EASE Lite software library, various functional items are instantiated in the initial communication model to form the target communication model.

[0090] In this embodiment, when constructing the 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] Multithreading technology refers to the technique of enabling multiple threads to execute concurrently. In computer programming, it allows for the simultaneous control of multiple tasks to improve overall processing performance. The MMS-EASE Lite software library provides a series of functions and tools for implementing the MMS communication protocol, thus improving the quality and efficiency of the target communication model.

[0092] Specifically, computer equipment can determine the functional items of the initial communication model through communication configuration, such as remote measurement data, remote transmission of switch status, remote control of equipment, setting of equipment parameters, and recording of waveform data. Then, multi-threading technology and the MMS-EASE Lite software library can be used to create and start instances corresponding to these functional items in the initial communication model to realize the complete communication function 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, computer devices can establish corresponding components in the target communication model to process and manage these signals, such as telemetry, telesensing, and telepulse measurement components, to instantiate discrete signals such as switch states and continuously changing signals such as voltage or current, and then perform corresponding processing.

[0094] To better explain this target communication model, the following will be conducted through... Figure 2 and Figure 3 To further illustrate, illustratively, such as Figure 2 and Figure 3 As shown, Figure 2 This application provides an architectural diagram of a target communication model. Figure 3 This is a flowchart illustrating the communication process of a target communication model provided in an embodiment of this application.

[0095] Figure 2In this model, computer equipment can parse the capability description file (ICD file) to obtain the model structure. This model structure can include logical devices (LD0), logical nodes (LN), and data objects (DO) of the protection device (IED). The target communication model constructed from this can realize data transmission between the MMS server and the station control layer server. Internally, data or operation requests can be placed into a data or operation queue in a multi-threaded manner and then sent to the IEC104 client. The client can use the IEC104 protocol to send requests to external systems and receive data, such as obtaining remote signaling, telemetry, and remote pulse data, within the IEC104 service segment. Furthermore, the IEC104 client can also construct a 104-point table file, stored in RCD format, which describes the relationship between devices and signals. This allows mapping of point numbers and references, connecting the IEC104 point table to the target communication model. The mapped point number can uniquely identify devices and signals, while the reference can represent an object reference in the IEC61850 standard.

[0096] Figure 3 In this context, the MMS client can upload data to the MMS service, respond to periodic calls to the MMS service, and control the remote and customized modifications of the MMS service. This allows the MMS service to operate in memory through remote signaling / telemetry data buffer queues, remote control data buffer queues, and fixed-value data buffer queues, thereby achieving data communication in the target communication model obtained based on the model structure.

[0097] In one embodiment, step S130, which involves 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 analyze the programming source code based on the core functions to obtain the code architecture.

[0099] S132: 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.

[0100] In this embodiment, when constructing the target functional model, the computer device can first determine the core functions of the protection device, thereby parsing the programming source code based on the core functions to obtain the code architecture. Then, the computer device can 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, such as Figure 4 As shown, Figure 4A logical schematic diagram illustrating the construction of a target functional model provided in an embodiment of this application; Figure 4 In this process, computer equipment can obtain the programming source code of the protection device, such as C code, through a protection visualization program. Compiling this source code directly using compiler 1 yields the original, lightweight device program, the original running program of the protection device. After simplifying the source code, compiling it again using compiler 2 produces the lightweight twin program, which in turn generates a primary model, namely the target functional model of the protection device. The core functions of the device program and the twin program are identical. When the power simulation software schedules tasks for the twin program through its scheduling core, the twin program's running data becomes the output of the target functional model. The power simulation software serves as the external input source for the target functional model; it can connect to the target functional model through a custom interface to perform comprehensive simulation of the protection equipment via task scheduling.

[0102] In one embodiment, the method may further include:

[0103] S150: Determine the task scheduling mechanism of the protection device, and create a task chain for the target function model based on the task scheduling mechanism.

[0104] S160: Logically call the task chain according to the actual scheduling needs of the protection device in order 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 further determine the task scheduling mechanism of the protection device and create a task chain for the target functional model based on the task scheduling mechanism. Then, the computer device can logically invoke the task chain according to the actual scheduling needs of the protection device to synchronize the operating status of the protection device in the digital twin model.

[0106] 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., without any restrictions.

[0107] Specifically, the computer equipment can define the task chain of the target functional model based on the task scheduling mechanism of the protection device to ensure that the target functional model can execute tasks in the correct steps and order. Then, the computer equipment can determine the scheduling logic according to the actual scheduling needs of the protection device in a real-world scenario, and then use power simulation software to simulate the scheduling task chain based on this scheduling logic, so that the target functional model can execute the corresponding tasks. Therefore, the target functional model can use different time steps to manage and execute multiple tasks simultaneously, thereby improving the accuracy of the simulation results.

[0108] The digital twin model construction apparatus provided in the embodiments of this application will be described below. The digital twin model construction apparatus described below and the digital twin model construction method described above can be referred to in correspondence.

[0109] In one embodiment, such as Figure 5 As shown, Figure 5 This application provides a schematic diagram of the structure of a digital twin model building device according to an embodiment of the present application; the present application also provides a schematic diagram of the structure of a digital twin model building device, including a three-dimensional model building module 210, a communication model building module 220, a functional model building module 230, and a data sharing mapping module 240, specifically including the following:

[0110] The 3D model building module 210 is used to obtain the size and material data of the protective device to be built, and to perform 3D modeling of the protective device based on the size and material data to generate the target 3D model.

[0111] The communication model construction module 220 is used to determine the communication data and communication configuration of the protection device, and to use the MMS mechanism to map the communication data in the preset ACSI class model to form an initial communication model, and to construct the communication function of the initial communication model based on the communication configuration to generate the target communication model.

[0112] The functional model building module 230 is used to obtain the programming source code of the protection device and to simplify and compile the programming source code using a preset simplification strategy to generate the target functional model.

[0113] The data sharing and mapping module 240 is used to establish an information interaction channel between the target functional model and the target communication model based on 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, so as to form a digital twin model of the protection device.

[0114] In the above embodiments, when it is necessary to construct a digital twin model of the protection device, the size and material data of the protection device can be obtained first, and a three-dimensional model of the protection device can be created based on the size and material data to generate a target three-dimensional model. This target three-dimensional model allows for a direct view of the physical structure and connection layout of the protection device. Secondly, the communication data and configuration of the protection device can be determined, and the communication data can be mapped in a preset ACSI-type model using the MMS mechanism to form an initial communication model. Based on the communication configuration, the communication functions of the initial communication model are constructed to generate a target communication model. This allows for real-time monitoring of the operating status and parameters of the protection device. Finally, the programming source code of the protection device can be obtained, and a preset simplification strategy can be used to simplify and compile the programming source code to generate a target functional model. This target functional model allows for accurate simulation of the logical functions and operations of the protection device, thereby evaluating the performance and response of the protection device under different operating conditions. After constructing these three models, this application can also establish an information interaction channel between the target functional 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. This application uses data to associate three different dimensions of models to achieve comprehensive inspection and maintenance of protection devices in a virtual environment, thereby enabling timely detection of potential safety hazards and improving the reliability and security of the protection devices.

[0115] In one embodiment, the 3D model building module 210 may include:

[0116] The geometry construction submodule is used to construct geometry in 3D modeling software based on dimensional data, generating an initial 3D model.

[0117] The surface texture optimization submodule is used to optimize the surface texture of the initial 3D model based on the material data to obtain the target 3D model.

[0118] In one embodiment, the communication model construction 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 devices of the protection device and the logical nodes in the logical devices according to the defined structure, and to initialize the data items of each logical node to obtain communication data.

[0121] In one embodiment, the communication model construction module 220 may further include:

[0122] The interface definition submodule is used to define the interface in the preset ACSI class model based on the communication data, and to map the ACSI class model after interface definition to the MMS communication protocol to obtain the initial communication model.

[0123] In one embodiment, the communication model construction module 220 may further include:

[0124] The project determination submodule is a functional project used to determine the initial communication model based on the communication configuration.

[0125] The Function Building Submodule is used to instantiate various functional items in the initial communication model using multithreading technology and the MMS-EASE Lite software library to form the 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 then use a compiler to compile the simplified programming source code to generate the 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 for the target functional model based on the task scheduling mechanism.

[0131] The task logic invocation module is used to logically invoke the task chain according to the actual scheduling needs of the protection device, so as to synchronize the operating status of the protection device in the digital twin model.

[0132] In one embodiment, this application also provides a storage medium storing computer-readable instructions that, 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 of the above embodiments.

[0133] In one embodiment, this application also provides a computer device storing computer-readable instructions that, 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 of the above embodiments.

[0134] Indicatively, such as Figure 6 As shown, Figure 6This is a schematic diagram of the internal structure of a computer device 300 provided in an embodiment of this application. The computer device 300 can be provided as a server. (Refer to...) Figure 6 The computer device 300 includes a processing component 302, which further includes one or more processors, and memory resources represented by memory 301 for storing instructions, such as application programs, that can be executed by the processing component 302. The application programs stored in memory 301 may include one or more modules, each corresponding to a set of instructions. Furthermore, 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 also 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 on an operating system stored in memory 301, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.

[0136] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0137] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0138] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0139] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily 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 this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded 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 includes: Obtain the size and material data of the protective device to be constructed, and perform three-dimensional modeling of the protective device based on the size and material data to generate a target three-dimensional model; The communication data and communication configuration of the protection device are determined, and the communication data is mapped in a preset ACSI class model using the MMS mechanism to form an initial communication model. Based on the communication configuration, the communication function of the initial communication model is constructed to generate a target communication model. 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; An information interaction channel between the target functional model and the target communication model is established based on shared memory, 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 step of performing three-dimensional modeling of the protective device based on the size data and the material data to generate a target three-dimensional model includes: Based on the dimensional data, the geometry is constructed in 3D modeling software to generate an initial 3D model; The surface texture of the initial 3D model is optimized based on the material data to obtain the target 3D model.

3. The digital twin model construction method according to claim 1, characterized in that, The determination of the communication data and communication configuration of the protection device includes: 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; Based on the defined structure, the logical device of the protection device and the logical nodes in the logical device are created, and the data items of each logical node are initialized to obtain communication data.

4. The digital twin model construction method according to claim 1, characterized in that, The step of using the MMS mechanism to map the communication data in a preset ACSI-type 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 interface definition is mapped to the MMS communication protocol to obtain the initial communication model.

5. The digital twin model construction method according to claim 1, characterized in that, The communication function that constructs the initial communication model based on the communication configuration and generates the target communication model includes: The functional items of the initial communication model are determined based on the communication configuration; Multithreading technology and the MMS-EASE Lite software library are used to instantiate various functional items in the initial communication model to form the target communication model.

6. The digital twin model construction method according to claim 1, characterized in that, The step of simplifying and compiling the programming source code using a preset simplification strategy to generate the target functional model includes: The core functions of the protection device are determined, and the programming source code is analyzed based on the core functions to obtain the code architecture; Based on the aforementioned code architecture, the programming source code is simplified, and a compiler is used to compile the simplified programming source code to generate the target functional model.

7. The digital twin model construction method according to claim 1, characterized in that, The method further includes: Determine the task scheduling mechanism of the protection device, and create a task chain for the target functional model based on the task scheduling mechanism; The task chain is logically invoked according to the actual scheduling requirements of the protection device in order 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: The 3D model building module is used to acquire the size data and material data of the protective device to be built, and to perform 3D modeling of the protective device based on the size data and the material data to generate a target 3D model; The communication model construction module is used to determine the communication data and communication configuration of the protection device, and to perform data mapping on the communication data in a preset ACSI class model using the MMS mechanism to form an initial communication model, and to construct the communication function of the initial communication model based on the communication configuration to generate a target communication model. The functional model construction module is used to obtain the programming source code of the protection device and to simplify and compile the programming source code using a preset simplification strategy to generate a target functional model. The data sharing and mapping module is used to establish an information interaction channel between the target functional model and the target communication model based on 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, thereby forming a digital twin model of the protection device.

9. A storage medium, characterized in that: The storage medium stores computer-readable instructions that, 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

  • Method and system for constructing digital twin information model of power distribution terminal, and medium

    CN115934676A

  • User side energy storage scheduling optimization control method and device based on digital twin architecture

    CN117613903A