A method and device for generating a stable cross-section definition file and a storage medium

CN116401216BActive Publication Date: 2026-10-23GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310336470.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2026-10-23
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

根据网络安全的要求,分析人员无查看断面定义内容的权限,只能看到断面名称描述,自动化人员录入后也未经过审核后就直接生效

Benefits of technology

[0123]区别于以往控制人员负责定义与运维,本发明根据构建的异构系统间断面的转换规则将稳定断面维护数据转换成稳定断面定义文件,实现量测与设备信息的转换;针对定义端和审核端的断面数据进行多维度的比较,对断面名称、对应的名称公式串和生效条件公式串进行科学性的展示,完成异构系统间的断面定义校核,最终实现防误目的,大大降低校核的人力投入,提升操作效率,保证断面定义的准确性,确保电网的安全稳定运行。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116401216B_ABST
    Figure CN116401216B_ABST
Patent Text Reader

Abstract

The application discloses a kind of stable cross section definition file generation method, device and storage medium, method includes: obtaining stable cross section maintenance data;Stable cross section maintenance data includes: several device names and corresponding device type, device direction, device coefficient and device state data;According to device type, each device name is simplified and handled, and first device nickname is obtained;According to first device nickname, device direction and corresponding device coefficient, generate a cross section name and corresponding name formula string;According to device state data, generate effective condition formula string;Cross section name, corresponding name formula string and effective condition formula string are taken as stable cross section content, stable cross section content is audited, and the stable cross section content after auditing is structured into cross section model file, the conversion of cross section definition and measurement and device information between heterogeneous systems is realized, the accuracy of cross section is guaranteed, cross section definition source end maintenance is realized, and the safe and stable operation of power grid is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power electronics technology, and in particular to a method, apparatus and storage medium for generating stable cross-section definition files. Background Technology

[0002] Stable sections are crucial monitoring and analysis targets for the safe and stable operation of power grids and emergency response to faults. Strengthening the monitoring level of stable sections enables a comprehensive understanding of the real-time operating status of the power grid and effectively enhances the power grid's safety early warning capabilities. With the rapid development of the power grid, changes to stable sections are becoming increasingly frequent due to the frequent changes in power grid operation modes. Currently, under the section definition model, the personnel defining sections and those entering sections belong to different professional departments. The process involves professional personnel defining sections online using Excel, followed by automation professionals entering them into the power grid control system for activation. Due to network security requirements, analysts do not have permission to view the section definition content; they can only see the section name and description. Furthermore, automation personnel's entries are not reviewed before being activated. Automation work is complex, and the daily workload is heavy. Due to cross-professional capabilities, inconsistent equipment names, and high offline interaction costs, the accuracy and timeliness of section updates are low, making section definition a challenging task for automation professionals, and the accuracy rate cannot be guaranteed, posing a significant risk of power grid safety accidents. Summary of the Invention

[0003] This invention provides a method, apparatus, and storage medium for generating stable cross-section definition files, enabling cross-section definition and conversion of measurement and equipment information between heterogeneous systems. This significantly reduces the manpower required for verification, improves operational efficiency, ensures the accuracy of cross-sections, enables source-end maintenance of cross-section definitions, and ensures the safe and stable operation of the power grid.

[0004] To enable cross-section definition and measurement / equipment information conversion between heterogeneous systems, this invention provides a method for generating stable cross-section definition files, including:

[0005] Acquire stable cross-section maintenance data; the stable cross-section maintenance data includes: several equipment names and their corresponding equipment types, equipment directions, equipment coefficients and equipment status data;

[0006] Based on the equipment type, each equipment name is simplified to obtain a first equipment abbreviation; based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, a cross-section name and a corresponding name formula string are generated; based on the equipment status data, an effective condition formula string is generated.

[0007] The cross-section name, the corresponding name formula string, and the effective condition formula string are used as stable cross-section content. The stable cross-section content is reviewed, and the reviewed stable cross-section content is constructed into a cross-section model file.

[0008] As a preferred embodiment, this invention converts stable section maintenance data into stable section definition files based on the constructed conversion rules for sections between heterogeneous systems, thereby realizing the conversion of measurement and equipment information. It performs multi-dimensional comparisons of section data from the definition and review ends, scientifically displaying the section name, corresponding name formula string, and effective condition formula string, completing the section definition verification between heterogeneous systems, ultimately achieving error prevention, greatly reducing the manpower required for verification, improving operational efficiency, ensuring the accuracy of section definitions, and ensuring the safe and stable operation of the power grid.

[0009] As a preferred solution, the name of each device is simplified according to its type to obtain a first abbreviation for the device, specifically:

[0010] If the device type is line and the scheduling name is no more than 3 characters, then the scheduling name is obtained as the first device abbreviation;

[0011] If the device type is line and the scheduling name is more than 3 characters, then the scheduling name is obtained and the last character "line" is removed, and this is used as the first device abbreviation.

[0012] If the equipment type is a main transformer, then the main transformer substation name and the corresponding English alias of the main transformer will be used as the first equipment abbreviation; wherein the English alias of the main transformer is selected from the OCS system field;

[0013] If the equipment type is a generator unit, the generator plant name and the corresponding English alias of the generator unit will be used as the first equipment abbreviation; wherein the English alias of the generator unit is selected from the OCS system field;

[0014] If the equipment type is cuttable, then the first name following the cuttable region name is used as the first equipment abbreviation;

[0015] If the device type is computing, then the second name following the computing region name is used as the first device abbreviation.

[0016] As a preferred embodiment, the present invention simplifies each equipment name according to the equipment type and simplification conversion rules to obtain the equipment abbreviation, thereby simplifying and converting measurement and equipment information and providing a scientific display of the cross-section name.

[0017] As a preferred embodiment, before generating a cross-section name and a corresponding name formula string based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, the method further includes:

[0018] A list of selected devices is generated based on each device's first abbreviation, device orientation, and device coefficient.

[0019] If the equipment type is a line, and the starting station, coefficient, and symbol of the first line and the second line are the same, the abbreviations of the first equipment of the first line and the second line will be merged.

[0020] If the equipment type is a main transformer, when the station, direction, coefficient, and sign of the first and second main transformers are the same, the abbreviations of the first equipment of the first and second main transformers are merged.

[0021] If the equipment type is a generator set, when the station, coefficient, and symbol of the first generator set and the second generator set are the same, the abbreviations of the first equipment of the first generator set and the second generator set will be merged.

[0022] Each of the symbols indicates whether the name of the initial plant or the plant to which the equipment belongs is the same or different;

[0023] After merging the first device abbreviation and the corresponding device coefficient of all devices in the selected device list, several second device abbreviations are obtained.

[0024] As a preferred embodiment, the present invention simplifies each equipment name according to the equipment type and simplification conversion rules to obtain an abbreviation of the equipment. The abbreviations of equipment with the same station name, coefficient, and symbol conditions are merged to obtain a second abbreviation of the equipment. This reduces the complexity of multiple duplicate equipment names, simplifies and converts measurement and equipment information, and provides a scientific display of the section name.

[0025] As a preferred embodiment, a cross-section name and a corresponding name formula string are generated based on the abbreviation of the first equipment, the direction of each line, and the corresponding line coefficient, specifically as follows:

[0026] All abbreviations of the second equipment are combined into a section name, and a corresponding name formula string is generated; the name formula string includes the symbol, coefficient and serial number of each equipment.

[0027] As a preferred embodiment, the present invention obtains the cross-section name by simplifying and merging the names of multiple devices, thereby completing the definition and display of the cross-section name and realizing the conversion between measurement and device information.

[0028] As a preferred embodiment, an effective condition formula string is generated based on the device status data, specifically as follows:

[0029] Obtain the effective time, effective status, and corresponding effective status formula string for each device, and generate the effective condition formula string.

[0030] As a preferred embodiment, the present invention generates a formula string of effective conditions to display the effective conditions of the cross section, thereby simplifying and converting measurement and equipment information and providing a scientific display of the effective conditions of the cross section.

[0031] As a preferred embodiment, the cross-section name, the corresponding name formula string, and the effective condition formula string are taken as stable cross-section content. The stable cross-section content is reviewed, and the reviewed stable cross-section content is constructed into a cross-section model file, specifically as follows:

[0032] Generate an XML-formatted cross-section model file using the cross-section name, the corresponding name formula string, and the effective condition formula string as the stable cross-section content;

[0033] The cross-section model file is checked to see if it meets the definition conditions. If not, the result of incorrect definition is reported and the cross-section definition operation is returned.

[0034] The definition conditions include: whether the cross-section definition satisfies the topological relationship, whether the upper and lower limit values ​​of the cross-section are set within the preset range, and whether the cross-section name corresponds one-to-one with the equipment that makes up the cross-section.

[0035] As a preferred solution, this invention performs multi-dimensional comparisons of cross-sectional data at the definition and review ends, scientifically displays the cross-sectional name, corresponding name formula string, and effective condition formula string, completes the cross-sectional definition verification between heterogeneous systems, ultimately achieves the purpose of preventing errors, greatly reduces the manpower input for verification, improves operational efficiency, ensures the accuracy of cross-sectional definitions, and ensures the safe and stable operation of the power grid.

[0036] Accordingly, the present invention also provides a stable cross-section definition file generation device, comprising: a cross-section content generation module and a cross-section content review module;

[0037] The section content generation module is used to acquire stable section maintenance data. The stable section maintenance data includes: several equipment names and their corresponding equipment types, equipment directions, equipment coefficients, and equipment status data. Based on the equipment type, each equipment name is simplified to obtain a first equipment abbreviation. Based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, a section name and a corresponding name formula string are generated. Based on the equipment status data, an effective condition formula string is generated.

[0038] The cross-section content review module is used to review the cross-section name, the corresponding name formula string, and the effective condition formula string as stable cross-section content, and construct a cross-section model file from the reviewed stable cross-section content.

[0039] As a preferred solution, the cross-section content generation module converts stable cross-section maintenance data into stable cross-section definition files according to the constructed cross-section conversion rules between heterogeneous systems, realizing the conversion of measurement and equipment information; the cross-section content review module performs multi-dimensional comparison of cross-section data at the definition end and the review end, scientifically displays the cross-section name, the corresponding name formula string, and the effective condition formula string, completes the cross-section definition verification between heterogeneous systems, and ultimately achieves the purpose of preventing errors, greatly reducing the manpower input for verification, improving operational efficiency, ensuring the accuracy of cross-section definitions, and ensuring the safe and stable operation of the power grid.

[0040] As a preferred embodiment, the cross-section content generation module includes a simplification unit and a merging unit;

[0041] The simplification unit is used to obtain the scheduling name as the first device abbreviation if the device type is line and the scheduling name is no more than 3 characters.

[0042] If the device type is line and the scheduling name is more than 3 characters, then the scheduling name is obtained and the last character "line" is removed, and this is used as the first device abbreviation.

[0043] If the equipment type is a main transformer, then the main transformer substation name and the corresponding English alias of the main transformer will be used as the first equipment abbreviation; wherein the English alias of the main transformer is selected from the OCS system field;

[0044] If the equipment type is a generator unit, the generator plant name and the corresponding English alias of the generator unit will be used as the first equipment abbreviation; wherein the English alias of the generator unit is selected from the OCS system field;

[0045] If the equipment type is cuttable, then the first name following the cuttable region name is used as the first equipment abbreviation;

[0046] If the device type is computing, then the second name following the computing region name is used as the first device abbreviation;

[0047] The merging unit is used to generate a list of selected devices based on the first device abbreviation, device orientation, and device coefficient of each device;

[0048] If the equipment type is a line, and the starting station, coefficient, and symbol of the first line and the second line are the same, the abbreviations of the first equipment of the first line and the second line will be merged.

[0049] If the equipment type is a main transformer, when the station, direction, coefficient, and sign of the first and second main transformers are the same, the abbreviations of the first equipment of the first and second main transformers are merged.

[0050] If the equipment type is a generator set, when the station, coefficient, and symbol of the first generator set and the second generator set are the same, the abbreviations of the first equipment of the first generator set and the second generator set will be merged.

[0051] Each of the symbols indicates whether the name of the initial plant or the plant to which the equipment belongs is the same or different;

[0052] After merging the first device abbreviation and the corresponding device coefficient of all devices in the selected device list, several second device abbreviations are obtained.

[0053] As a preferred solution, the simplification unit simplifies each equipment name according to the equipment type and simplification conversion rules to obtain the equipment abbreviation. The merging unit merges the equipment abbreviations with the same station name, coefficient, and symbol conditions to obtain the second equipment abbreviation. This reduces the complexity of multiple duplicate equipment names, simplifies and converts measurement and equipment information, and provides a scientific display of the section name.

[0054] As a preferred option, the cross-section content review module includes a cross-section definition generation unit and a cross-section definition review unit;

[0055] The section definition generation unit is used to merge all the abbreviations of the second devices into a section name and generate a corresponding name formula string; the name formula string includes the symbol, coefficient and serial number of each device; obtain the effective time, effective status and corresponding effective status formula string of each device, and generate an effective condition formula string;

[0056] The section definition review unit is used to generate an XML-formatted section model file by taking the section name, the corresponding name formula string, and the effective condition formula string as stable section content;

[0057] The cross-section model file is checked to see if it meets the definition conditions. If not, the result of incorrect definition is reported and the cross-section definition operation is returned.

[0058] The definition conditions include: whether the cross-section definition satisfies the topological relationship, whether the upper and lower limit values ​​of the cross-section are set within the preset range, and whether the cross-section name corresponds one-to-one with the equipment that makes up the cross-section.

[0059] As a preferred solution, the cross-section definition generation unit generates a stable cross-section definition file to realize the conversion between measurement and equipment information; the cross-section definition review unit performs multi-dimensional comparison of the cross-section data at the definition end and the review end, and scientifically displays the cross-section name, the corresponding name formula string and the effective condition formula string, completes the cross-section definition verification between heterogeneous systems, and ultimately achieves the purpose of preventing errors, greatly reduces the manpower input for verification, improves operational efficiency, ensures the accuracy of cross-section definition, and ensures the safe and stable operation of the power grid.

[0060] Accordingly, the present invention also provides a computer-readable storage medium comprising a stored computer program; wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a stable section definition file generation method as described in the present invention. Attached Figure Description

[0061] Figure 1 This is a flowchart illustrating an embodiment of a method for generating stable cross-section definition files provided by the present invention;

[0062] Figure 2 This is a schematic diagram of an embodiment of a stable cross-section definition file generation device provided by the present invention. Detailed Implementation

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

[0064] Example 1

[0065] In this embodiment, based on the power grid operation mode and topology, the three-zone system is selected. The three-zone dispatch operation management system (OMS system) includes OCS I zone, OCS III zone, and OMS III zone. In OCS I zone, analysis professionals use a stable section maintenance tool to define sections, and in OCS III zone, an XML format stable section model file based on the CIM model extension is generated. After the professionals review the stable section model file, the automation personnel trigger section synchronization, generate the section model file, and send it to the OCS I zone system. The OCS I zone system parses and stores the file, and it becomes effective.

[0066] Please refer to Figure 1 The present invention provides a method for generating a stable cross-section definition file, comprising steps S101-S103:

[0067] Step S101: Obtain stable section maintenance data; the stable section maintenance data includes: several equipment names and corresponding equipment types, equipment directions, equipment coefficients and equipment status data.

[0068] Step S102: Simplify each equipment name according to the equipment type to obtain a first equipment abbreviation; generate a cross-section name and a corresponding name formula string according to the first equipment abbreviation, equipment direction and corresponding equipment coefficient; generate an effective condition formula string according to the equipment status data.

[0069] For example, the equipment names of devices 1-4 are: Dangui Station-220kV.Danlei A Line, Dangui Station-220kV.Danlei B Line, Qianwan Plant-#2 Generator and Qianwan Plant-220kV#2 Transformer-High, respectively; the equipment type of devices 1 and 2 is line, the equipment type of device 3 is generator set, and the equipment type of device 4 is main transformer.

[0070] In this embodiment, each device name is simplified according to the device type to obtain a first device abbreviation, specifically:

[0071] If the device type is line and the scheduling name is no more than 3 characters, then the scheduling name is obtained as the first device abbreviation;

[0072] If the device type is line and the scheduling name is more than 3 characters, then the scheduling name is obtained and the last character "line" is removed, and this is used as the first device abbreviation.

[0073] For example, the scheduling name is the name after "." in the device name. If the scheduling name of device 1 is more than 3 characters, then the scheduling name is obtained and "Danleijia" after deleting the last "line" is used as the first device abbreviation; if the scheduling name is less than or equal to 3 characters, then the full name is displayed, such as "Mabai Line" as the first device abbreviation.

[0074] If the equipment type is a main transformer, then the main transformer substation name and the corresponding English alias of the main transformer will be used as the first equipment abbreviation; wherein the English alias of the main transformer is selected from the OCS system field;

[0075] For example, if the equipment name is "Luming Station-220kV#1 Transformer-High", then the main transformer substation name "Luming Station" and the corresponding English alias of the main transformer "1B" will be combined to form "Luming Station 1B" as the first equipment abbreviation;

[0076] If the equipment type is a generator unit, the generator plant name and the corresponding English alias of the generator unit will be used as the first equipment abbreviation; wherein the English alias of the generator unit is selected from the OCS system field;

[0077] For example, if the equipment name of device 3 is "Qianwan Plant-#2 Generator", then the plant name "Qianwan Plant" and the corresponding English alias "2G" of the unit will be combined into "Qianwan Plant 2G" as the abbreviation of the first equipment.

[0078] If the equipment type is cuttable, then the first name following the cuttable region name is used as the first equipment abbreviation;

[0079] For example, if the device name is "Foshan area - Keqie Leigang Yougong", then the name "Keqie Leigang Yougong" after the "-" is taken as the first device abbreviation;

[0080] If the device type is computing, then the second name following the computing region name is used as the first device abbreviation;

[0081] For example, if the device name is "Real-time Calculation - Xi'an Electric Power Chu Sui DC", then the name "Xi'an Electric Power Chu Sui DC" after the "-" is taken as the first device abbreviation.

[0082] In this embodiment, before generating a cross-section name and a corresponding name formula string based on the first device abbreviation, device direction, and corresponding device coefficient, the method further includes:

[0083] A list of selected devices is generated based on each device's first abbreviation, device orientation, and device coefficient.

[0084] For example, the device names, first device abbreviations, device orientations, device coefficients, and symbols of devices 1-4 are used to generate a list of selected devices:

[0085]

[0086] The symbol indicates whether the name of the first-end station is the same as or different from the station to which the equipment belongs. Taking the line as an example, if the name of the station before the "->" symbol in the direction is the same as the station to which the equipment belongs, the symbol is +; if it is the same as the name of the station after the symbol, the symbol is -.

[0087] In this embodiment, if the equipment type is a line, and the direction of the equipment in the selected equipment list is inconsistent with the direction shown in the scheduling name, or the program cannot determine whether the directions are consistent, the actual direction will be displayed in the section name. For example, if the equipment direction of the scheduling name "Guizhong Jia Line" is "Zhongshan Station -> Guishan Station", the section name will display "Zhong -> Gui".

[0088] For example, the names of the first and last power stations on a line, such as the line "Hangang Jia Line", are as follows: Hanjiang Station -> Ganghua Station in the positive direction and Ganghua Station -> Hanjiang Station in the negative direction; the direction indicated by the dispatching name refers to the positive direction.

[0089] When the initial letter abbreviation of the first and last station names is inconsistent with the dispatch name, the direction will be displayed in the section name regardless of whether the line direction is forward or backward. For example, if the dispatch name is "Shanhua B Line", the section name will be displayed as "Shanhua B (Xian->Hua)" and "Shanhua B (Hua->Xian)".

[0090] If the equipment type is a line, and the starting station, coefficient, and symbol of the first line and the second line are the same, the abbreviations of the first equipment of the first line and the second line will be merged.

[0091] For example, the starting station of the equipment named "Guishan Station-220kV. Guizhong B Line" and the equipment named "Guishan Station-220kV. Guizhong A Line" is "Guishan Station", and the coefficients and symbols are consistent. The equipment abbreviation is combined into "Guizhong A B".

[0092] If the equipment type is a main transformer, when the station, direction, coefficient, and sign of the first and second main transformers are the same, the abbreviations of the first equipment of the first and second main transformers are merged.

[0093] For example, when the station, direction, coefficient, and symbol of equipment with the equipment name "Luming Station-220kV#1 Transformer-High" and equipment with the equipment name "Luming Station-220kV#2 Transformer-High" are the same, the equipment abbreviation is combined into "Luming Station 1B+2B".

[0094] If the equipment type is a generator set, when the station, coefficient, and symbol of the first generator set and the second generator set are the same, the abbreviations of the first equipment of the first generator set and the second generator set will be merged.

[0095] For example, when the station, coefficient, and symbol of equipment named "Baisha Factory-#2 Generator" and equipment named "Baisha Factory-#1 Generator" are the same, the equipment abbreviation is combined into "Baisha Factory 1G+2G".

[0096] Each of the symbols indicates whether the name of the initial plant or the plant to which the equipment belongs is the same or different;

[0097] After merging the first device abbreviation and the corresponding device coefficient of all devices in the selected device list, several second device abbreviations are obtained.

[0098] In this embodiment, all abbreviations of the second devices are combined as the section name:

[0099]

[0100] In this embodiment, a cross-section name and a corresponding name formula string are generated based on the abbreviation of the first device, the direction of each line, and the corresponding line coefficient, specifically as follows:

[0101] All abbreviations of the second equipment are combined into a section name, and a corresponding name formula string is generated; the name formula string includes the symbol, coefficient and serial number of each equipment.

[0102] In this embodiment, after selecting the components of a cross-section, the system automatically generates a cross-section name formula string. There is a one-to-one correspondence between the components of the cross-section and the @ serial number in the name formula string; the first component is represented by @1. The symbol and direction are linked. The name formula string includes the symbol, coefficient, and @ serial number for each component. For example, the name formula string corresponding to the cross-section name "0.4*Danlei Jia Yi + Qianwan Factory 2B + Qianwan Factory 2G" is "0.4*@1+0.4*@2+@3+@4". When performing power flow calculations for the cross-section, the active power / voltage values ​​of the components are replaced with the @ serial numbers, and the power flow value of the cross-section is obtained through numerical calculation.

[0103] In this embodiment, an effective condition formula string is generated based on the device status data, specifically as follows:

[0104] Obtain the effective time, effective status, and corresponding effective status formula string for each device, and generate the effective condition formula string.

[0105] In this embodiment, for the active status of switches, disconnectors, and grounding devices, the formula string uses "@1" to indicate activation and "!@1" to indicate deactivation; for other device statuses, such as lines, main transformers, generators, loads, busbars, and capacitors, the formula string uses "@1&16777344" to indicate deactivation and "!@1&16777344" to indicate activation, where "16777344" represents several device statuses in the OCS system: charging, out of operation, and hot standby; the active condition components of the device have a one-to-one correspondence with the "@" number in the formula string.

[0106] In this embodiment, the effective time includes two forms: one is "from * o'clock to * o'clock every day", and the other is "from * year * month * day * o'clock to * year * month * day * o'clock".

[0107] When the effective time of the effective condition is empty, the effective condition only includes the equipment status, such as the **line power outage. When the effective time is not empty, the effective condition requires both the equipment status and the effective time to be met for the equipment to take effect.

[0108] For example, when the effective time type is "daily", the hour, minute and second of the corresponding start and end time are valid. In order to ensure the consistency of the format, the year, month and day still need to be filled in. For example, you can fill in a previous day or a subsequent day, such as: start_time = "2010-01-01 00:10:10", which means that it will be effective from 0:10:10 every day.

[0109] When the effective time type is "monthly", the day, hour, minute and second of the corresponding start and end time are valid. In order to ensure the consistency of the format, the year and month still need to be filled in. For example: start_time = "2010-01-01 00:10:10", which means that it will be effective from 0:10:10 on the 1st of each month.

[0110] When the effective time type is "annual", the month, day, hour, minute and second of the corresponding start and end time are valid. In order to ensure the consistency of the format, the year still needs to be filled in. For example: start_time = "2010-01-01 00:10:10", which means that it will be effective from 0:10:10 on January 1st of each year.

[0111] When the effective time type is "specified time", the year, month, day, hour, minute, and second of the corresponding start and end times are all valid, indicating that it will be effective within a specific specified time period.

[0112] For each type of start and end time period, both must be valid and legal; for example, the end time must be longer than the start time. When the start time is longer than the end time, it indicates that the period spans a day / month / year.

[0113] Step S103: The cross-section name, the corresponding name formula string, and the effective condition formula string are taken as stable cross-section content. The stable cross-section content is reviewed, and the reviewed stable cross-section content is constructed into a cross-section model file.

[0114] In this embodiment, the cross-section name, the corresponding name formula string, and the effective condition formula string are used as stable cross-section content to generate an XML format cross-section model file;

[0115] The cross-section model file is checked to see if it meets the definition conditions. If not, the result of incorrect definition is reported and the cross-section definition operation is returned.

[0116] The definition conditions include: whether the cross-section definition satisfies the topological relationship, whether the upper and lower limit values ​​of the cross-section are set within the preset range, and whether the cross-section name corresponds one-to-one with the equipment that makes up the cross-section.

[0117] In this embodiment, the reviewed stable cross-section content is constructed into a cross-section model file. The cross-section model file also includes stable cross-section attribute elements. The attribute elements in the cross-section model file are described as follows:

[0118]

[0119]

[0120]

[0121] In this embodiment, after the cross-section model file is generated by the OCS III system, the file is copied to a specified path in the OCS I system for parsing and storing in the database. No manual intervention is required during the transfer, realizing a fully automated and manual-free process for the I system.

[0122] Implementing the embodiments of the present invention has the following effects:

[0123] Unlike previous methods where control personnel were responsible for defining and maintaining sections, this invention converts stable section maintenance data into stable section definition files based on the established conversion rules for sections between heterogeneous systems, thus enabling the conversion of measurement and equipment information. It performs multi-dimensional comparisons of section data from the definition and review ends, scientifically displaying section names, corresponding name formula strings, and effective condition formula strings. This completes the verification of section definitions between heterogeneous systems, ultimately achieving error prevention, significantly reducing manpower investment in verification, improving operational efficiency, ensuring the accuracy of section definitions, and guaranteeing the safe and stable operation of the power grid.

[0124] Example 2

[0125] Please refer to Figure 2 A stable cross-section definition file generation device provided in this embodiment of the invention includes: a cross-section content generation module 201 and a cross-section content review module 202;

[0126] The section content generation module 201 is used to acquire stable section maintenance data. The stable section maintenance data includes: several equipment names and their corresponding equipment types, equipment directions, equipment coefficients, and equipment status data. Based on the equipment type, each equipment name is simplified to obtain a first equipment abbreviation. Based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, a section name and a corresponding name formula string are generated. Based on the equipment status data, an effective condition formula string is generated.

[0127] The cross-section content review module 202 is used to review the cross-section name, the corresponding name formula string, and the effective condition formula string as stable cross-section content, and construct the reviewed stable cross-section content into a cross-section model file.

[0128] The cross-section content generation module 201 includes a simplification unit and a merging unit;

[0129] The simplification unit is used to obtain the scheduling name as the first device abbreviation if the device type is line and the scheduling name is no more than 3 characters.

[0130] If the device type is line and the scheduling name is more than 3 characters, then the scheduling name is obtained and the last character "line" is removed, and this is used as the first device abbreviation.

[0131] If the equipment type is a main transformer, then the main transformer substation name and the corresponding English alias of the main transformer will be used as the first equipment abbreviation; wherein the English alias of the main transformer is selected from the OCS system field;

[0132] If the equipment type is a generator unit, the generator plant name and the corresponding English alias of the generator unit will be used as the first equipment abbreviation; wherein the English alias of the generator unit is selected from the OCS system field;

[0133] If the equipment type is cuttable, then the first name following the cuttable region name is used as the first equipment abbreviation;

[0134] If the device type is computing, then the second name following the computing region name is used as the first device abbreviation;

[0135] The merging unit is used to generate a list of selected devices based on the first device abbreviation, device orientation, and device coefficient of each device;

[0136] If the equipment type is a line, and the starting station, coefficient, and symbol of the first line and the second line are the same, the abbreviations of the first equipment of the first line and the second line will be merged.

[0137] If the equipment type is a main transformer, when the station, direction, coefficient, and sign of the first and second main transformers are the same, the abbreviations of the first equipment of the first and second main transformers are merged.

[0138] If the equipment type is a generator set, when the station, coefficient, and symbol of the first generator set and the second generator set are the same, the abbreviations of the first equipment of the first generator set and the second generator set will be merged.

[0139] Each of the symbols indicates whether the name of the initial plant or the plant to which the equipment belongs is the same or different;

[0140] After merging the first device abbreviation and the corresponding device coefficient of all devices in the selected device list, several second device abbreviations are obtained.

[0141] The cross-section content review module 202 includes a cross-section definition generation unit and a cross-section definition review unit;

[0142] The section definition generation unit is used to merge all the abbreviations of the second devices into a section name and generate a corresponding name formula string; the name formula string includes the symbol, coefficient and serial number of each device; obtain the effective time, effective status and corresponding effective status formula string of each device, and generate an effective condition formula string;

[0143] The section definition review unit is used to generate an XML-formatted section model file by taking the section name, the corresponding name formula string, and the effective condition formula string as stable section content;

[0144] The cross-section model file is checked to see if it meets the definition conditions. If not, the result of incorrect definition is reported and the cross-section definition operation is returned.

[0145] The definition conditions include: whether the cross-section definition satisfies the topological relationship, whether the upper and lower limit values ​​of the cross-section are set within the preset range, and whether the cross-section name corresponds one-to-one with the equipment that makes up the cross-section.

[0146] The aforementioned stable section definition file generation apparatus can implement a stable section definition file generation method according to the above method embodiments. The options in the above method embodiments are also applicable to this embodiment, and will not be detailed here. The remaining content of this application embodiment can be referred to the content of the above method embodiments, and will not be repeated in this embodiment.

[0147] Implementing the embodiments of the present invention has the following effects:

[0148] The cross-section content generation module converts stable cross-section maintenance data into stable cross-section definition files according to the constructed cross-section conversion rules between heterogeneous systems, realizing the conversion of measurement and equipment information. The cross-section content review module performs multi-dimensional comparison of cross-section data at the definition end and the review end, scientifically displaying the cross-section name, the corresponding name formula string, and the effective condition formula string, completing the cross-section definition verification between heterogeneous systems, ultimately achieving the purpose of preventing errors, greatly reducing the manpower input for verification, improving operational efficiency, ensuring the accuracy of cross-section definitions, and ensuring the safe and stable operation of the power grid.

[0149] Example 3

[0150] Accordingly, the present invention also provides a computer-readable storage medium comprising 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 a stable section definition file generation method as described in any of the above embodiments.

[0151] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units 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.

[0152] 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.

[0153] 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.

[0154] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created based on the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0155] Wherein, if the modules / units integrated in the terminal device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of 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 the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.

[0156] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A method for generating a stable cross-section definition file, characterized in that, include: Obtain stable section maintenance data; The stable section maintenance data includes: several equipment names and their corresponding equipment types, equipment directions, equipment coefficients, and equipment status data; Based on the equipment type, each equipment name is simplified to obtain a first equipment abbreviation; based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, a cross-section name and a corresponding name formula string are generated; based on the equipment status data, an effective condition formula string is generated. The step of generating a cross-section name and a corresponding name formula string based on the abbreviation of the first device, the direction of each line, and the corresponding line coefficient is as follows: All abbreviations of the second equipment are combined into a section name, and a corresponding name formula string is generated; the name formula string includes the symbol, coefficient, and serial number of each equipment. The step of generating the effective condition formula string based on the device status data is as follows: Obtain the effective time, effective status, and corresponding effective status formula string for each device, and generate the effective condition formula string; The cross-section name, the corresponding name formula string, and the effective condition formula string are used as stable cross-section content. The stable cross-section content is reviewed, and the reviewed stable cross-section content is constructed into a cross-section model file, specifically as follows: Generate an XML-formatted cross-section model file using the cross-section name, the corresponding name formula string, and the effective condition formula string as the stable cross-section content; The cross-section model file is checked to see if it meets the definition conditions. If not, the result of incorrect definition is reported and the cross-section definition operation is returned. The definition conditions include: whether the cross-section definition satisfies the topological relationship, whether the upper and lower limit values ​​of the cross-section are set within the preset range, and whether the cross-section name corresponds one-to-one with the equipment that makes up the cross-section.

2. The method for generating a stable cross-section definition file as described in claim 1, characterized in that, The step of simplifying each device name according to the device type to obtain a first device abbreviation is as follows: If the device type is line and the scheduling name is no more than 3 characters, then the scheduling name is obtained as the first device abbreviation; If the device type is line and the scheduling name is more than 3 characters, then the scheduling name is obtained and the last character "line" is removed, and then it is used as the first device abbreviation. If the equipment type is a main transformer, then the main transformer substation name and the corresponding English alias of the main transformer will be used as the first equipment abbreviation; wherein the English alias of the main transformer is selected from the OCS system field; If the equipment type is a generator unit, the generator plant name and the corresponding English alias of the generator unit will be used as the first equipment abbreviation; wherein the English alias of the generator unit is selected from the OCS system field; If the equipment type is cuttable, then the first name following the cuttable region name is used as the first equipment abbreviation; If the device type is computing, then the second name following the computing region name is used as the first device abbreviation.

3. The method for generating a stable cross-section definition file as described in claim 2, characterized in that, Before generating a cross-section name and a corresponding name formula string based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, the process further includes: A list of selected devices is generated based on each device's first abbreviation, device orientation, and device coefficient. If the equipment type is a line, and the starting station, coefficient, and symbol of the first line and the second line are the same, the abbreviations of the first equipment of the first line and the second line will be merged. If the equipment type is a main transformer, when the station, direction, coefficient, and sign of the first and second main transformers are the same, the abbreviations of the first equipment of the first and second main transformers are merged. If the equipment type is a generator set, when the station, coefficient, and symbol of the first generator set and the second generator set are the same, the abbreviations of the first equipment of the first generator set and the second generator set will be merged. Each of the symbols indicates whether the name of the initial plant or the plant to which the equipment belongs is the same or different; After merging the first device abbreviation and the corresponding device coefficient of all devices in the selected device list, several second device abbreviations are obtained.

4. A device for generating stable cross-section definition files, characterized in that, include: Cross-section content generation module and cross-section content review module; The section content generation module is used to acquire stable section maintenance data. The stable section maintenance data includes: several equipment names and their corresponding equipment types, equipment directions, equipment coefficients, and equipment status data. Based on the equipment type, each equipment name is simplified to obtain a first equipment abbreviation. Based on the first equipment abbreviation, equipment direction, and corresponding equipment coefficient, a section name and a corresponding name formula string are generated. Based on the equipment status data, an effective condition formula string is generated. The step of generating a cross-section name and a corresponding name formula string based on the abbreviation of the first device, the direction of each line, and the corresponding line coefficient is as follows: All abbreviations of the second equipment are combined into a section name, and a corresponding name formula string is generated; the name formula string includes the symbol, coefficient, and serial number of each equipment. The step of generating the effective condition formula string based on the device status data is as follows: Obtain the effective time, effective status, and corresponding effective status formula string for each device, and generate the effective condition formula string; The cross-section content review module is used to review the cross-section name, the corresponding name formula string, and the effective condition formula string as stable cross-section content, and construct a cross-section model file from the reviewed stable cross-section content. Specifically: Generate an XML-formatted cross-section model file using the cross-section name, the corresponding name formula string, and the effective condition formula string as the stable cross-section content; The cross-section model file is checked to see if it meets the definition conditions. If not, the result of incorrect definition is reported and the cross-section definition operation is returned. The definition conditions include: whether the cross-section definition satisfies the topological relationship, whether the upper and lower limit values ​​of the cross-section are set within the preset range, and whether the cross-section name corresponds one-to-one with the equipment that makes up the cross-section.

5. The stable section definition file generation device as described in claim 4, characterized in that, The cross-section content generation module includes a simplification unit and a merging unit; The simplification unit is used to obtain the scheduling name as the first device abbreviation if the device type is line and the scheduling name is no more than 3 characters. If the device type is line and the scheduling name is more than 3 characters, then the scheduling name is obtained and the last character "line" is removed, and then it is used as the first device abbreviation. If the equipment type is a main transformer, then the main transformer substation name and the corresponding English alias of the main transformer will be used as the first equipment abbreviation; wherein the English alias of the main transformer is selected from the OCS system field; If the equipment type is a generator unit, the generator plant name and the corresponding English alias of the generator unit will be used as the first equipment abbreviation; wherein the English alias of the generator unit is selected from the OCS system field; If the equipment type is cuttable, then the first name following the cuttable region name is used as the first equipment abbreviation; If the device type is computing, then the second name following the computing region name is used as the first device abbreviation; The merging unit is used to generate a list of selected devices based on the first device abbreviation, device orientation, and device coefficient of each device; If the equipment type is a line, and the starting station, coefficient, and symbol of the first line and the second line are the same, the abbreviations of the first equipment of the first line and the second line will be merged. If the equipment type is a main transformer, when the station, direction, coefficient, and sign of the first and second main transformers are the same, the abbreviations of the first equipment of the first and second main transformers are merged. If the equipment type is a generator set, when the station, coefficient, and symbol of the first generator set and the second generator set are the same, the abbreviations of the first equipment of the first generator set and the second generator set will be merged. Each of the symbols indicates whether the name of the initial plant or the plant to which the equipment belongs is the same or different; After merging the first device abbreviation and the corresponding device coefficient of all devices in the selected device list, several second device abbreviations are obtained.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program; wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform a stable section definition file generation method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Power network stability section control limit identification method of considering stability control system operating state

    CN105140912A

  • Power grid continuous operation simulation section generation method and system

    CN109586272A