Model construction method and device for power system, terminal equipment and storage medium
By constructing a structured dataset and topology model of the power system, the problem of low efficiency in power system operation and maintenance analysis is solved, and efficient operation status detection and evaluation are achieved.
Patent Information
- Application Number
- CN202511668167.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-14
- Publication Date
- 2026-02-10
AI Technical Summary
The existing power system operation and maintenance analysis is inefficient and cannot efficiently assess the operating status of the power system.
By acquiring structured datasets of the power system, performing data cleaning and content verification, and constructing a topology model, including the identification of substation nodes and pole nodes and the establishment of connecting lines, a distribution network model is generated for simulation operation.
It enables the modeling of power systems, improves the efficiency of operational status detection, and supports automatic detection and evaluation.
Smart Images

Figure CN121503055A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power systems, and more particularly to a method, apparatus, terminal equipment, and storage medium for model building of power systems. Background Technology
[0002] In modern power systems, with the development of new power systems characterized by new energy sources, new businesses, new loads, and new models, the power grid's requirements for the digitalization and overall performance of the distribution network are increasing. Currently, a large amount of power system operation data is stored in spreadsheet format, and the operating status of the power system can only be obtained through user analysis of the spreadsheet data, but this operation and maintenance analysis is inefficient. Summary of the Invention
[0003] This invention provides a model building method, apparatus, terminal equipment, and storage medium for power systems, which can solve the problem of low efficiency in the operation and maintenance analysis of power systems in the prior art.
[0004] The present invention provides a model building method for power systems, comprising: acquiring a structured dataset of the power system; wherein the structured dataset includes: operating data of several devices and connection lines between every two devices; The operating parameters of each device in the structured dataset are matched with a preset device library to obtain the device type and electrical data corresponding to each device. Based on the equipment type of each device, several substation nodes and several pole nodes are determined among all devices, and a topology model of the power system is constructed based on the several substation nodes, several pole nodes, and the connection lines between each pair of devices. The operational and electrical data of each substation node and each pole node are used to set the data for each node in the topology model to obtain the power distribution network model of the power system. This allows users to perform simulations based on the power distribution network model and obtain the operational evaluation results of the power system.
[0005] Furthermore, the acquisition of the structured dataset of the power system includes: Acquire source data from the power system; The source data is cleaned using regular expressions to obtain the filtered source data of the power system. The filtered source data is subjected to content validation to obtain the structured dataset of the power system.
[0006] Further, the filtered source data includes: the node name and coordinates of each device; the content validation of the filtered source data to obtain the structured dataset of the power system includes: Based on a preset standardized name library, the node name of each device in the filtered source data is checked; if the node name matches the standardized name library, the matching node name is recorded as a standardized node name, and the standardized node name and the corresponding device's running data are merged into the running data of the structured dataset; if the node name fails to match the standardized name library, the failing node name is recorded as an incorrect node name. Based on a preset Earth coordinate system, the coordinates of each device in the filtered source data are checked for errors. If the coordinates exist in the Earth coordinate system, the current coordinates are recorded as correct coordinates, and the connection lines between each pair of devices in the structured dataset are determined based on the connection relationship between each pair of devices and the coordinates of each device. If the coordinates do not exist in the Earth coordinate system, the current coordinates are recorded as the erroneous coordinates in the error report.
[0007] Furthermore, before determining several substation nodes and several pole nodes among all devices according to the device type of each device, and constructing the topology model of the power system based on the connection lines between every two devices, the following steps are also included: Determine the node name to which each device belongs; If the node name is Service Center, Power Supply Substation, or Distribution Substation, then the structured dataset of the corresponding device is stored in the Service Center folder; If the node name is the name of the medium-voltage feeder, then the structured dataset of the corresponding device is stored in the medium-voltage feeder subfolder; If the node name is the low-voltage feeder name, then the structured dataset of the corresponding device is stored in the low-voltage feeder subfolder.
[0008] Furthermore, the construction of the power system topology model based on several substation nodes, several pole nodes, and the connection lines between every two devices includes: Based on the connection lines between every two devices, connect several substation nodes and several pole nodes to obtain the initial topology; Missing connections are repaired for each node in the initial topology to obtain the final topology, which is then used as the topology model.
[0009] Further, the missing connection repair for each node of the initial topology to obtain the final topology, and the use of the final topology as the topology model, includes: The state of each node in the initial topology is detected; wherein, the node includes either a substation node or a pole node; the state of each node includes: a energized node and an unenergized node; If it is an unpowered node, the nearest powered target node is determined based on the coordinates, and the unpowered node and the powered target node are connected. If the node is already energized, no action is taken.
[0010] Furthermore, the step of setting the operational and electrical data of each substation node and each pole node for each node in the topology model also includes: Obtain the additional attributes of each substation node and each pole node, and set each node in the topology model; wherein, the additional attributes include: foundation status, switch status, and communication cable status.
[0011] Another embodiment of the present invention provides a network data processing device for a power system, comprising: a data acquisition module, a data matching module, a model building module, and a model evaluation module; The data acquisition module is used to acquire a structured dataset of the power system; wherein, the structured dataset includes: operating data of several devices and connection lines between every two devices; The data matching module is used to match the operating parameters of each device in the structured dataset with a preset device library to obtain the device type and electrical data corresponding to each device. The model building module is used to determine several substation nodes and several pole nodes among all devices according to the device type of each device, and to build the topology model of the power system based on the several substation nodes, several pole nodes and the connection lines between each pair of devices. The model evaluation module is used to set the operating and electrical data of each substation node and each pole node in the topology model to obtain the power distribution network model of the power system, so that users can perform simulation operation based on the power distribution network model and obtain the operation evaluation results of the power system.
[0012] Another embodiment of the present invention provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the steps of the model building method for power systems provided by the present invention.
[0013] Another embodiment of the present invention also provides a computer-readable storage medium item, including: a stored computer program, which, when the computer program is running, controls the device where the computer-readable storage medium is located to perform the steps of the model building method for power systems provided by the present invention.
[0014] The following benefits can be obtained by implementing the present invention: This invention discloses a method for constructing a power system model. The method involves acquiring a structured dataset of the power system, including operational data of several devices and connecting lines between each pair of devices. Based on a pre-defined device library, the operational data of each device in the structured dataset is matched to obtain the device type and electrical data corresponding to each device. According to the device type of each device, several substation nodes and several pole nodes are determined from all devices. Based on these substation nodes, pole nodes, and connecting lines between each pair of devices, a topology model of the power system is constructed. The operational and electrical data of each substation node and each pole node are used to set the parameters for each node in the topology model, resulting in a distribution network model of the power system. This model allows users to perform simulations based on the distribution network model and obtain operational evaluation results for the power system. This invention achieves power system modeling, enables simulations based on the constructed distribution network model, realizes automatic detection of the power system's operational status, and improves the efficiency of power system operational status detection. Attached Figure Description
[0015] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments 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 from these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating a model building method for a power system provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a network data processing device for a power system provided in an embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, 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.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0019] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0020] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0021] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0022] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0023] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0024] See Figure 1 To address the problem of low efficiency in the operation and maintenance analysis of power systems in existing technologies, an embodiment of the present invention provides a model building method for power systems, comprising: 101. Obtain a structured dataset of the power system; wherein the structured dataset includes: operating data of several devices and connection lines between each pair of devices.
[0025] In this embodiment, obtaining the structured dataset of the power system includes: Acquire source data from the power system; The source data is cleaned using regular expressions to obtain the filtered source data of the power system. The filtered source data is subjected to content validation to obtain the structured dataset of the power system.
[0026] In this embodiment, the filtered source data includes: the node name and coordinates of each device; the content validation of the filtered source data to obtain the structured dataset of the power system includes: Based on a preset standardized name library, the node name of each device in the filtered source data is checked; if the node name matches the standardized name library, the matching node name is recorded as a standardized node name, and the standardized node name and the corresponding device's running data are merged into the running data of the structured dataset; if the node name fails to match the standardized name library, the failing node name is recorded as an incorrect node name. Based on a preset Earth coordinate system, the coordinates of each device in the filtered source data are checked for errors. If the coordinates exist in the Earth coordinate system, the current coordinates are recorded as correct coordinates, and the connection lines between each pair of devices in the structured dataset are determined based on the connection relationship between each pair of devices and the coordinates of each device. If the coordinates do not exist in the Earth coordinate system, the current coordinates are recorded as the erroneous coordinates in the error report.
[0027] It should be noted that the operating data in this embodiment includes: the equipment type, electrical parameters, and operating parameters of each device; the equipment type can be determined by the device ID, name, model, manufacturer, commissioning date, and site of origin of the source data; the electrical parameters can be determined by the rated voltage, rated current, short-circuit impedance, insulation class, and frequency response characteristics of the source data; and the operating parameters can be determined by the active power, reactive power, temperature, oil level, switch status, and alarm signals of the source data.
[0028] In one specific embodiment, the source data is provided in the form of numerous spreadsheets. Each spreadsheet corresponds to a feeder and contains information associated with each pole or substation. Rows represent the definition of the pole or substation, while columns contain the name and corresponding attributes. Attributes include the following data: longitude and latitude of the substation / pole, number of electricity meters (users), upstream node name, approximate distance to the upstream node, cross-sectional area of the line to the upstream node, line type or conductor and insulation material, ground clearance (for overhead lines), voltage, pole type and condition, foundation condition, insulator condition, switch type and condition, substation type (substation only), transformer power (substation only), equipment owner, and other remarks. The files contain information such as service center, power supply substation, medium-voltage feeder name, distribution substation (for low-voltage feeders), and low-voltage feeder name. The source data file formats for low-voltage (LV) and medium-voltage (MV) feeders differ. Low-voltage feeder data is presented in a single worksheet. Medium-voltage feeder data is distributed across three worksheets: substation data, pole data, and line data.
[0029] All the above data was entered manually. Therefore, it may contain inconsistencies and spelling errors. Line lengths are approximate, i.e., estimated visually. Finally, the collected data was not initially intended for network modeling, and electrical data could not be found within it. Therefore, assumptions must be made based on textual descriptions of the equipment. Due to the sheer number of source data files, manually inspecting and editing their contents was virtually impossible.
[0030] Data preprocessing is performed using the following steps: 1) Read data: Read the spreadsheet containing power grid asset attributes (including substation / pole coordinates, number of users, front node name, etc.); after the script starts, select the required Excel workbook.
[0031] 2) Data cleaning: (1) Text Filtering and Correction: Regular expressions are widely used to process and correct text and numeric attributes. These methods include: removing leading and trailing spaces, replacing special characters, using three-level column header filtering techniques that include exact matches, regular expression patterns, or fuzzy matching searches, and defining columns based on content. To identify distribution substations in all nodes, a regular expression filter is applied, and then the identified objects are named according to naming conventions. Matching the preceding node name with the node name is also done using regular expressions and fuzzy string comparisons, as naming inconsistencies are quite frequent. Defined preceding node values are ignored in the following cases: 1. The previous node name value was not found in the node name list. 2. The previous node name points to the same node. 3. The preceding node name value is empty. 4. All preceding node names have the same value.
[0032] (2) Construct a DataFrame structured dataset using source data, supporting multi-type data processing. Its advantages include: a simple and intuitive interface, facilitating the processing and manipulation of large datasets; performance optimization, enabling it to process large datasets quickly and efficiently; the ability to store and process different data types, including numerical, categorical, and text data; and built-in methods for data analysis, facilitating the execution of complex data analysis tasks such as filtering, sorting, and aggregating data.
[0033] In a specific embodiment, the input data types are: spatial coordinates (such as the geographical location of utility poles), equipment and electrical parameters (line data and equipment parameters), and connections between equipment (electrical connections between equipment); data preprocessing requires standardized formatting, missing value marking, and outlier detection; the processing steps are: initial data screening and cleaning → establishing the original DataFrame → using three levels of fault tolerance for intelligent correction, from precise to regular expression to fuzzy matching → establishing the structured DataFrame; the output data is the processed original data, including spatial coordinates, equipment and electrical parameters, topological relationships, etc.
[0034] In one specific embodiment, to ensure that network creation does not terminate due to errors somewhere along the way, error tracing of the source data is first performed. Despite extensive corrections to the initial data, some insurmountable errors remain. Node names and geographic coordinates are the most basic data required to create the model.
[0035] The node name column should include locally unique values in numeric / text format. Node name values cannot be '0' or empty. The node name column should contain a power supply substation that conforms to the naming convention. Otherwise, the script will terminate and generate a corresponding report. The report will also include any non-unique values to facilitate data correction.
[0036] The longitude and latitude columns must contain numerical values reflecting the coordinates of the relevant nodes. Coordinate definitions use the World Geodetic Coordinate System (WGS84). The applied unit is degrees with arbitrary decimal places. The script will terminate if the correct longitude and latitude data are not found. Geographic coordinates are used to construct the network map and define the lengths of power lines. The script will only continue execution if no abnormal errors are found. This method saves users from searching for and deleting invalid data created based on problematic source data.
[0037] In summary, this step verifies the node name and coordinates. If the verification fails, the process terminates and an error report is output. The script will only continue to execute if no abnormal errors are found.
[0038] 102. Match the operating parameters of each device in the structured dataset with the preset device library to obtain the device type and electrical data corresponding to each device.
[0039] In one specific embodiment, a major limitation in defining the network project is the lack of electrical data in the source files. This means that the user must predefine a centralized database-supported library of device models containing the electrical parameters of lines and transformers. The required objects in the library are determined through careful analysis of approximately one hundred source data files.
[0040] 1) Predefined local equipment library (i.e., the equipment library described in this application, containing line / transformer electrical parameters): Type parameters are grouped and stored in folders according to equipment type and voltage level. This approach simplifies semantic searching for the desired type. Searches are based on the name field, therefore a naming convention is applied to each element. The target type name is defined based on text processing of one or more source data records corresponding to that element.
[0041] 2) Matching device type based on text semantic search: Transformers are mapped to corresponding sub-libraries according to their voltage levels; The lines are classified into the corresponding sub-databases according to "overhead line" / "cable". If no match is found, a dummy type is assigned and a corresponding warning message is given.
[0042] 103. Based on the equipment type of each device, determine a number of substation nodes and a number of pole nodes among all devices, and construct the topology model of the power system based on the number of substation nodes, the number of pole nodes, and the connection lines between each pair of devices.
[0043] In one specific embodiment, the source data of each node is identified by the name of the device type. If it contains "substation", it is identified as a substation node; if it contains "pole", it is identified as a pole node. The connection line between each pair of devices is determined based on the connection relationship of each node.
[0044] In this embodiment, before determining a number of substation nodes and a number of pole nodes among all devices according to the device type of each device, and constructing the topology model of the power system based on the connection lines between every two devices, the following steps are also included: Determine the node name to which each device belongs; If the node name is Service Center, Power Supply Substation, or Distribution Substation, then the structured dataset of the corresponding device is stored in the Service Center folder; If the node name is the name of the medium-voltage feeder, then the structured dataset of the corresponding device is stored in the medium-voltage feeder subfolder; If the node name is the low-voltage feeder name, then the structured dataset of the corresponding device is stored in the low-voltage feeder subfolder.
[0045] In one specific embodiment, a hierarchical project tree is constructed: folders are created according to the service center → medium-voltage feeder → low-voltage feeder hierarchy, isolating each feeder model: based on the source data, all node and device names are unique within a feeder. To preserve the original naming, the target project should be constructed to store the elements of each feeder separately. The project structure is created based on defined filename components, including service center, power supply substation, medium-voltage feeder name, distribution substation (for low-voltage feeders), and low-voltage feeder name. This information is used to create the project structure as follows: The Service Center folder is a folder that stores subfolders for high-voltage / medium-voltage substations, medium-voltage feeders, and high-voltage networks.
[0046] Medium-voltage feeder subfolders – located within the service center folder, storing medium-voltage feeder subnetworks, medium-voltage / low-voltage substations, and low-voltage feeder subfolders.
[0047] The Low-Voltage Feeder Subfolder – located within the Medium-Voltage Feeder Subfolder, stores low-voltage feeder elements such as lines, nodes, and loads. Therefore, each individual feeder will be defined in its own dedicated folder.
[0048] In this embodiment, constructing the topology model of the power system based on several substation nodes, several pole nodes, and the connection lines between every two devices includes: Based on the connection lines between every two devices, connect several substation nodes and several pole nodes to obtain the initial topology; Missing connections are repaired for each node in the initial topology to obtain the final topology, which is then used as the topology model.
[0049] In one specific embodiment, based on the processed data, substation and pole models are created one by one: Substation node: A primary or secondary substation object is created or updated in the corresponding subfolder in the model, then two buses are created or updated within the substation object, and then a transformer connecting the high-voltage bus and the low-voltage bus is created or updated, and each bus object and substation object is bound to coordinates; Pole Node: Generates a terminal model whose voltage value is set to a defined or default value based on data availability. If the number of users connected to the pole is available, a load element is created or updated. The number of users is set in the corresponding load attribute and used to calculate the load value (load value = number of users × default average load per user, default power factor cosφ = 0.95). The load value is assigned according to the project's unit prefix setting, so it is always correctly assigned.
[0050] In one specific implementation, feeder objects are automatically created as power access points: based on the definitions of previous node objects, lines connecting the nodes are created (or updated) one by one. Line lengths are determined based on geodesic distances (using an ellipsoidal model provided by Charles FF Karney). If a line has already been created between two nodes, it is marked to avoid duplicate creation of the same line due to data errors or when creating a missing line. These markings are checked before each new line is created. Switch models are placed or removed based on the corresponding switch records. If the line connects to a substation node, an additional feeder object is created. If a feeder object has already been created, only its connection points are updated. Feeder objects reside in the Feeder subfolder of the network data folder.
[0051] In this embodiment, the step of repairing missing connections for each node of the initial topology to obtain the final topology, and using the final topology as the topology model, includes: The state of each node in the initial topology is detected; wherein, the node includes either a substation node or a pole node; the state of each node includes: a energized node and an unenergized node; If it is an unpowered node, the nearest powered target node is determined based on the coordinates, and the unpowered node and the powered target node are connected. If the node is already energized, no action is taken.
[0052] The project structure is automatically defined / updated during each data import. This structure allows for clear storage of structured networks across all voltage levels.
[0053] In one specific embodiment, if an unpowered node exists, the nearest powered node is found based on geodesic distance (considering all available connections) (input data: topology nodes; check if there are any unpowered nodes; if so, find the nearest powered node next to it and connect to that node to form a complete connected network. The output is the repaired and updated node topology model).
[0054] Note: The status of energized nodes needs to be updated after each operation. The update is performed by deactivating and activating the current network model.
[0055] 104. The operating and electrical data of each substation node and each pole node are used to set the data for each node in the topology model to obtain the power distribution network model of the power system, so that users can perform simulation operation based on the power distribution network model and obtain the operation evaluation results of the power system.
[0056] In this embodiment, setting the operational and electrical data of each substation node and each pole node for each node in the topology model further includes: Obtain the additional attributes of each substation node and each pole node, and set each node in the topology model; wherein, the additional attributes include: foundation status, switch status, and communication cable status.
[0057] In one specific embodiment, all source data is applied as data extensions to the created objects, enabling the model to host the devices. Data extensions allow the data model to be expanded by adding custom attributes to user elements and other objects, allowing users to compare initial data with model data without switching between applications. External data also stores additional attributes independent of the simulation model, such as pole and foundation conditions, switch conditions, communication cable status, etc. This is very useful for network management and planning, as it stores all available information in one place.
[0058] like Figure 2 As shown, based on the above method embodiments, corresponding apparatus embodiments are provided; An embodiment of the present invention provides a network data processing device for a power system, comprising: a data acquisition module 201, a data matching module 202, a model building module 203, and a model evaluation module 204; The data acquisition module is used to acquire a structured dataset of the power system; wherein, the structured dataset includes: operating data of several devices and connection lines between every two devices; The data matching module is used to match the operating parameters of each device in the structured dataset with a preset device library to obtain the device type and electrical data corresponding to each device. The model building module is used to determine several substation nodes and several pole nodes among all devices according to the device type of each device, and to build the topology model of the power system based on the several substation nodes, several pole nodes and the connection lines between each pair of devices. The model evaluation module is used to set the operating and electrical data of each substation node and each pole node in the topology model to obtain the power distribution network model of the power system, so that users can perform simulation operation based on the power distribution network model and obtain the operation evaluation results of the power system.
[0059] It is understood that the above-described device embodiments correspond to the method embodiments of the present invention, and can implement the model building method for power systems provided by any of the above-described method embodiments of the present invention.
[0060] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0061] Based on the above embodiments of the model building method for power systems, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the model building method for power systems according to any embodiment of the present invention.
[0062] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0063] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0064] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0065] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the model building method for power systems described in any of the above-described method embodiments of the present invention.
[0066] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0067] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A model building method for power systems, characterized in that, include: Obtain a structured dataset of the power system; wherein the structured dataset includes: operating data of several devices and the connection lines between each pair of devices; The operating parameters of each device in the structured dataset are matched with a preset device library to obtain the device type and electrical data corresponding to each device. Based on the equipment type of each device, several substation nodes and several pole nodes are determined among all devices, and a topology model of the power system is constructed based on the several substation nodes, several pole nodes, and the connection lines between each pair of devices. The operational and electrical data of each substation node and each pole node are used to set the data for each node in the topology model to obtain the power distribution network model of the power system. This allows users to perform simulations based on the power distribution network model and obtain the operational evaluation results of the power system.
2. The model building method for power systems as described in claim 1, characterized in that, The acquisition of the structured dataset of the power system includes: Acquire source data from the power system; The source data is cleaned using regular expressions to obtain the filtered source data of the power system. The filtered source data is subjected to content validation to obtain the structured dataset of the power system.
3. The model building method for power systems as described in claim 2, characterized in that, The filtered source data includes: the node name and coordinates of each device; the content validation of the filtered source data to obtain the structured dataset of the power system includes: Based on a preset standardized name library, the node name of each device in the filtered source data is checked; if the node name matches the standardized name library, the matching node name is recorded as a standardized node name, and the standardized node name and the corresponding device's running data are merged into the running data of the structured dataset; if the node name fails to match the standardized name library, the failing node name is recorded as an incorrect node name. Based on a preset Earth coordinate system, the coordinates of each device in the filtered source data are checked for errors. If the coordinates exist in the Earth coordinate system, the current coordinates are recorded as correct coordinates, and the connection lines between each pair of devices in the structured dataset are determined based on the connection relationship between each pair of devices and the coordinates of each device. If the coordinates do not exist in the Earth coordinate system, the current coordinates are recorded as the erroneous coordinates in the error report.
4. The model building method for power systems as described in claim 3, characterized in that, Before determining several substation nodes and several pole nodes among all devices according to the device type of each device, and constructing the topology model of the power system based on the connection lines between every two devices, the following steps are also included: Determine the node name to which each device belongs; If the node name is Service Center, Power Supply Substation, or Distribution Substation, then the structured dataset of the corresponding device is stored in the Service Center folder; If the node name is the name of the medium-voltage feeder, then the structured dataset of the corresponding device is stored in the medium-voltage feeder subfolder; If the node name is the low-voltage feeder name, then the structured dataset of the corresponding device is stored in the low-voltage feeder subfolder.
5. The model building method for power systems as described in claim 4, characterized in that, The topology model of the power system is constructed based on several substation nodes, several pole nodes, and the connection lines between every two devices, including: Based on the connection lines between each pair of devices, connect several substation nodes and several pole nodes to obtain the initial topology; For each node in the initial topology, missing connections are repaired to obtain the final topology, which is then used as the topology model.
6. The model building method for power systems as described in claim 5, characterized in that, The process of repairing missing connections for each node in the initial topology to obtain the final topology, and using the final topology as the topology model, includes: The state of each node in the initial topology is detected; wherein, the node includes either a substation node or a pole node; the state of each node includes: a energized node and an unenergized node; If it is an unpowered node, the nearest powered target node is determined based on the coordinates, and the unpowered node and the powered target node are connected. If the node is already energized, no action is taken.
7. The model building method for power systems as described in claim 6, characterized in that, The step of setting the operational and electrical data of each substation node and each pole node for each node in the topology model also includes: Obtain the additional attributes of each substation node and each pole node, and set each node in the topology model; wherein, the additional attributes include: foundation status, switch status, and communication cable status.
8. A network data processing device for a power system, characterized in that, include: The module includes a data acquisition module, a data matching module, a model building module, and a model evaluation module. The data acquisition module is used to acquire a structured dataset of the power system; wherein, the structured dataset includes: operating data of several devices and connection lines between every two devices; The data matching module is used to match the operating parameters of each device in the structured dataset with a preset device library to obtain the device type and electrical data corresponding to each device. The model building module is used to determine several substation nodes and several pole nodes among all devices according to the device type of each device, and to build the topology model of the power system based on the several substation nodes, several pole nodes and the connection lines between each pair of devices. The model evaluation module is used to set the operating and electrical data of each substation node and each pole node in the topology model to obtain the power distribution network model of the power system, so that users can perform simulation operation based on the power distribution network model and obtain the operation evaluation results of the power system.
9. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the model building method for a power system as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, include: A stored computer program, wherein, when the computer program is executed, the device containing the computer-readable storage medium is controlled to perform the model building method for a power system as described in any one of claims 1-7.