A power grid simulation result analysis method, device, equipment and medium
Patent Information
- Application Number
- CN202511705136.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2045-11-18
AI Technical Summary
[0005]本申请的目的是提供一种电网仿真结果解析方法、装置、设备及介质,解决目前电网仿真结果SOT文件的分析主要依赖人工逐个处理,效率低下且易出错的问题
[0051]本申请所提供的电网仿真结果解析方法,通过获取待解析的暂稳结果文件;将暂稳结果文件解析为多个主结构体,并解析各主结构体对应的子结构体;根据各主结构体的类型对各主结构体下的子结构体执行分析,以得到对应的各分析结果;将各子结构体的分析结果汇总整合,以生成稳定分析汇总信息。由此可知,本方案能够实现对电网仿真暂稳结果sot文件的快速批量读取与解析,并能够自动执行数据分析,最后进行结果的汇总与统计,能够有效替代传统的人工分析,显著提高了电网仿真结果的分析效率。
Smart Images

Figure CN121525664B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power system simulation and analysis technology, and in particular to a method, device, equipment and medium for analyzing power grid simulation results. Background Technology
[0002] With the large-scale construction and commissioning of ultra-high voltage AC / DC projects and new energy sources such as wind power and photovoltaics, the difficulty and volume of power grid safety and stability analysis and assessment work have increased explosively. Every year, the annual centralized calculations and 2-3 year rolling calculations carried out by power grid dispatching, planning and other professionals involve hundreds of adjustment methods. At the same time, it is necessary to perform batch scanning of thousands of fault cards in various provincial grid companies for each method, accumulating millions of transient stability output files (SOT).
[0003] SOT files are result files generated by simulation software after transient simulation. Their content mainly includes basic information such as simulation time, power flow operation name, and transient stabilization operation name, as well as dynamic response data of bus voltage, transient process data of generators, and dynamic response data of DC converters. The data range for each file can be selected by the user. However, currently, the analysis of these SOT files of power grid simulation results still largely relies on manual analysis, which is not only time-consuming and labor-intensive but also suffers from inefficiency, susceptibility to errors and omissions, and unintuitive statistical results.
[0004] Given the above, how to solve the problem that the analysis of SOT files of power grid simulation results currently relies mainly on manual processing one by one, which is inefficient and prone to errors, is an urgent problem for technicians in this field. Summary of the Invention
[0005] The purpose of this application is to provide a method, device, equipment, and medium for analyzing power grid simulation results, which solves the problem that the analysis of current power grid simulation results SOT files mainly relies on manual processing one by one, which is inefficient and prone to errors.
[0006] To address the aforementioned technical problems, this application provides a method for analyzing power grid simulation results, comprising:
[0007] Obtain the metastability result file to be parsed from the power grid simulation result folder;
[0008] The transient stability result file is parsed into multiple main structures, and the substructures corresponding to each main structure are parsed; wherein, the main structure represents the aggregation of power grid simulation data of the same type; and the substructure represents the simulation curves corresponding to the main structure.
[0009] The type of each main structure is determined, and the substructures under each main structure are analyzed according to the type of each main structure to obtain the corresponding analysis results;
[0010] The analysis results of each of the substructures are summarized and integrated to generate a stable analysis summary.
[0011] On the one hand, the metastable result file is parsed into multiple main structures, including:
[0012] Obtain the coordinate number and coordinate name from the transient stability result file;
[0013] The transient stability result file is divided into multiple data segments based on the coordinate number and coordinate name;
[0014] Each of the data segments is defined as a main structure.
[0015] On the other hand, parsing the substructures corresponding to each of the main structures includes:
[0016] Obtain the header and curve data from the data segment;
[0017] The data segment is divided into multiple substructures based on the header and curve data.
[0018] On the other hand, determining the type of each of the main structures includes:
[0019] Obtain the coordinate names corresponding to each of the main structures;
[0020] The type of each main structure is determined based on its corresponding coordinate name;
[0021] The main structure type includes at least the power angle analysis type, voltage analysis type, and commutation failure analysis type.
[0022] On the other hand, when the type of the main structure is power angle analysis type, the substructures under each main structure are analyzed according to the type of each main structure, including:
[0023] Extract the power angle curve data corresponding to the substructures under the main structure;
[0024] Determine whether the power angle difference value of the power angle curve data within the first preset time window is greater than the power angle instability threshold.
[0025] If not, then confirm that the power angle of the power angle curve data is stable;
[0026] If so, confirm that the power angle curve data has power angle instability and record its header name.
[0027] On the other hand, when the type of the main structure is voltage analysis type, the substructures under each main structure are analyzed according to the type of each main structure, including:
[0028] Extract the voltage curve data corresponding to the sub-structures under the main structure;
[0029] Obtain the total number of data points of the voltage curve data within the second preset time window;
[0030] The number of data points in the second preset time window where the voltage curve data is less than the voltage instability threshold is determined.
[0031] The instability estimation probability corresponding to the voltage curve data is determined based on the total number of data points and the count of the data points.
[0032] Determine whether the estimated instability probability is not less than the instability critical value;
[0033] If not, then confirm that the voltage curve data is stable;
[0034] If so, confirm that the voltage curve data shows voltage instability and record its header name.
[0035] On the other hand, when the type of the main structure is commutation failure analysis type, the substructures under each main structure are analyzed according to the type of each main structure, including:
[0036] Extract the first commutation overlap angle curve data and the second commutation overlap angle curve data corresponding to the sub-structures under the main structure;
[0037] Obtain the first total number of data points of the first commutation overlap angle curve data and the second total number of data points of the second commutation overlap angle curve data within the third preset time window;
[0038] The first point data count is determined to be equal to the commutation failure threshold within the third preset time window; wherein, when consecutive point data in the first commutation overlap angle curve data are equal to the commutation failure threshold, the first point data count is accumulated once.
[0039] The second point data count is determined when the second commutation overlap angle curve data is equal to the commutation failure threshold within the third preset time window; wherein, when consecutive point data in the second commutation overlap angle curve data are equal to the commutation failure threshold, the second point data count is accumulated once;
[0040] The first number of commutation failures is determined based on the first total number of data points and the first data point count, and the second number of commutation failures is determined based on the second total number of data points and the second data point count.
[0041] The maximum value between the first commutation failure count and the second commutation failure count is determined as the total number of commutation failures.
[0042] To address the aforementioned technical problems, this application also provides a power grid simulation result analysis device, comprising:
[0043] The acquisition module is used to obtain the transient stability result file to be parsed based on the power grid simulation result folder;
[0044] The parsing module is used to parse the stabilization result file into multiple main structures and parse the substructures corresponding to each main structure; wherein, the main structure represents the aggregation of power grid simulation data of the same type; and the substructure represents the simulation curves corresponding to the main structure.
[0045] An analysis module is used to determine the type of each main structure and to perform analysis on the substructures under each main structure according to the type of each main structure to obtain the corresponding analysis results.
[0046] The integration module is used to summarize and integrate the analysis results of each of the substructures to generate stable analysis summary information.
[0047] To address the aforementioned technical problems, this application also provides a power grid simulation result analysis device, comprising:
[0048] Memory, used to store computer programs;
[0049] A processor is used to implement the steps of the above-described power grid simulation result analysis method when executing the computer program.
[0050] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the aforementioned power grid simulation result analysis method.
[0051] The power grid simulation result parsing method provided in this application obtains the transient stability result file to be parsed; parses the transient stability result file into multiple main structures, and parses the substructures corresponding to each main structure; performs analysis on the substructures under each main structure according to the type of each main structure to obtain the corresponding analysis results; and summarizes and integrates the analysis results of each substructure to generate stability analysis summary information. Therefore, this solution can achieve rapid batch reading and parsing of power grid simulation transient stability result (.sot) files, automatically perform data analysis, and finally summarize and statistically analyze the results, effectively replacing traditional manual analysis and significantly improving the efficiency of power grid simulation result analysis.
[0052] In addition, this application also provides a power grid simulation result analysis device, equipment and medium, with the same effect as above. Attached Figure Description
[0053] To more clearly illustrate the embodiments of this application, the accompanying 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 based on these drawings without creative effort.
[0054] Figure 1 A flowchart illustrating a method for analyzing power grid simulation results provided in this application embodiment;
[0055] Figure 2 A schematic diagram of a power grid simulation result analysis device provided in this application embodiment;
[0056] Figure 3 This is a structural diagram of a power grid simulation result analysis device provided in an embodiment of this application. Detailed Implementation
[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0058] The core of this application is to provide a method, device, equipment, and medium for analyzing power grid simulation results, which solves the problem that the analysis of current power grid simulation result SOT files mainly relies on manual processing one by one, which is inefficient and prone to errors.
[0059] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] Figure 1 A flowchart illustrating a method for analyzing power grid simulation results provided in an embodiment of this application. Figure 1 As shown, the method includes:
[0061] S10: Obtain the transient stability result file to be parsed based on the power grid simulation result folder.
[0062] In practice, the total number and filenames of the transient stability results (SOT) files to be parsed are first read from the power grid simulation results folder provided by the user, thereby obtaining the SOT files.
[0063] S11: Parse the quasi-stabilized result file into multiple main structures, and parse the substructures corresponding to each main structure.
[0064] Subsequently, each SOT file is parsed, specifically into multiple main SotPage structures, and then into corresponding substructures TitPage structures. It's important to note that the main SotPage structure represents the aggregation of power grid simulation data of the same type; the substructure TitPage structure represents the simulation curve under the corresponding main structure, such as the 500kV voltage curve data for station A. This embodiment does not impose restrictions on the specific parsing methods for the main SotPage and substructure TitPage structures; it depends on the specific implementation.
[0065] S12: Determine the type of each main structure, and perform analysis on the substructures under each main structure according to the type of each main structure to obtain the corresponding analysis results.
[0066] Further, the type of each main structure SotPage is determined. The type of a main structure SotPage should at least include power angle analysis, voltage analysis, and commutation failure analysis types. Subsequently, analysis is performed on the substructures TitPage under each main structure SotPage according to their types to obtain the corresponding analysis results. It is understood that since the type of a main structure SotPage at least includes power angle analysis, voltage analysis, and commutation failure analysis types, the subsequent analysis of the substructures TitPage should at least include power angle analysis, voltage analysis, and commutation failure analysis. This embodiment does not limit the specific analysis process; it depends on the specific implementation.
[0067] S13: Summarize and integrate the analysis results of each substructure to generate a summary of stable analysis information.
[0068] Finally, after obtaining the analysis structure of each substructure (TitPage), the analysis results are summarized and integrated to generate stability analysis summary information. This embodiment does not limit the specific content included in the stability analysis summary information; for example, it may include the analysis number, SOT file name, power angle stability state, voltage stability state, number of commutation failures, etc. The stability analysis summary information can also be output in a table format for easy viewing and filtering.
[0069] In this embodiment, the process involves acquiring the transient stability result file to be parsed; parsing the transient stability result file into multiple main structures and parsing the substructures corresponding to each main structure; performing analysis on the substructures under each main structure according to their type to obtain the corresponding analysis results; and summarizing and integrating the analysis results of each substructure to generate a summary stability analysis information. Therefore, this solution can achieve rapid batch reading and parsing of the transient stability result (.sot) file of power grid simulation, automatically perform data analysis, and finally summarize and statistically analyze the results. It effectively replaces traditional manual analysis and significantly improves the efficiency of power grid simulation result analysis.
[0070] Based on the above embodiments, in some embodiments, the stabilization result file is parsed into multiple main structures, including:
[0071] S101: Retrieve the coordinate number and coordinate name from the transient stability results file.
[0072] S102: Divide the transient stability result file into multiple data segments based on the coordinate number and coordinate name.
[0073] S103: Define each data segment as a separate main structure.
[0074] To parse the main structure SotPage from the sot file, this embodiment specifically obtains the coordinate numbers and coordinate names from the quasi-stability results sot file. Based on the coordinate numbers and coordinate names, the quasi-stability results sot file is divided into multiple data segments. For example, coordinate names in SotPage containing the string "power angle" are classified as power angle analysis, those containing the string "voltage" are classified as voltage analysis, and those containing the string "converter" are classified as commutation failure analysis. Finally, each data segment is defined as a separate main structure SotPage. It is important to note that the main structure SotPage must include at least the coordinate number, coordinate name, substructure pointers, and the number of substructures.
[0075] Correspondingly, the substructures corresponding to each main structure are parsed, including:
[0076] S111: Retrieves the header and curve data from the data segment.
[0077] S112: Divide the data segment into multiple substructures based on the header and curve data.
[0078] To parse the sub-structure TitPage within the main structure SotPage, this embodiment specifically obtains the header and curve data from the data segment (i.e., the main structure SotPage), and divides the data segment into multiple sub-structures TitPage based on the header and curve data. It is important to note that the sub-structure TitPage includes both header and curve data.
[0079] It should also be noted that since the number of main structure SotPage and substructure TitPage in each sot file is dynamic, ranging from a few to hundreds, in specific implementations, SotPage and TitPage can be defined as arrays of structure pointers to achieve batch, fast, dynamic fragmentation and custom parsing of multiple sot files. Finally, M main structures SotPage are obtained, and each main structure further yields n1, n2, ..., n. i A substructure named TitPage.
[0080] In this way, the parsing of the main structure SotPage and the substructure TitPage was realized respectively.
[0081] Based on the above embodiments, in some embodiments, the type of each main structure is determined, including:
[0082] S121: Get the coordinate names corresponding to each main structure.
[0083] S122: Determine the type of each main structure based on the corresponding coordinate name.
[0084] Among them, the types of main structures include at least power angle analysis type, voltage analysis type and commutation failure analysis type.
[0085] Since the main structure SotPage represents an aggregation of data of the same type, in order to determine the type of the main structure SotPage, this embodiment specifically obtains the coordinate name corresponding to each main structure SotPage, and determines the type of each main structure SotPage based on the corresponding coordinate name.
[0086] The main structure SotPage can be categorized into at least three types: power angle analysis, voltage analysis, and commutation failure analysis. To help those skilled in the art better understand the specific analysis process of the substructure TitPage, the analysis process of the substructure TitPage is explained in detail below, taking into account the different types of the main structure SotPage:
[0087] (i) When the type of the main structure SotPage is power angle analysis type;
[0088] In some embodiments, analysis is performed on the substructures under each main structure according to the type of each main structure, including:
[0089] S131: Extract the power angle curve data corresponding to the substructures under the main structure.
[0090] S132: Determine whether the power angle difference value of the power angle curve data within the first preset time window is greater than the power angle instability threshold; if not, confirm that the power angle of the power angle curve data is stable; if yes, confirm that the power angle curve data has power angle instability and record its header name.
[0091] During the power angle analysis, the power angle curve data corresponding to the substructure TitPage under the main structure SotPage is extracted, which is the power angle difference data of a certain unit. Then, based on expert experience judgment logic, a custom first preset time window t1 is selected for judgment. In this embodiment, there is no restriction on the specific selection method of the first preset time window t1. For example, the entire time period of curve simulation can be selected, which has excellent judgment effect.
[0092] Furthermore, the difference in power angle curve data within the first preset time window t1 is determined. Is it greater than the angle instability threshold k1? In this embodiment, the value of the angle instability threshold k1 is not limited; for example, it can be set to 500. If the angle difference value is confirmed... If the power angle difference is not greater than the power angle instability threshold k1, then the power angle of the power angle curve data is confirmed to be stable. If the power angle difference value is confirmed... If the value is greater than the power angle instability threshold k1, then the power angle curve data is confirmed to have power angle instability, and its header name is recorded.
[0093] (ii) When the type of the main structure SotPage is voltage analysis type;
[0094] In some embodiments, analysis is performed on the substructures under each main structure according to the type of each main structure, including:
[0095] S141: Extract the voltage curve data corresponding to the substructures under the main structure.
[0096] S142: Obtain the total number of data points of the voltage curve data within the second preset time window.
[0097] S143: Determine the number of data points where the voltage curve data is less than the voltage instability threshold within the second preset time window.
[0098] S144: Determine the instability estimation probability corresponding to the voltage curve data based on the total number of data points and the data point count.
[0099] S145: Determine whether the estimated probability of instability is not less than the instability critical value; if not, confirm that the voltage curve data is stable; if so, confirm that the voltage curve data has voltage instability and record its header name.
[0100] During voltage analysis, the voltage curve data corresponding to the substructure TitPage under the main structure SotPage is extracted, i.e., the data of a certain bus voltage curve. Then, based on expert experience and judgment logic, a custom second preset time window t2 is selected for judgment. In this embodiment, the specific selection method of the second preset time window t2 is not limited; for example, the last 1 second of the curve simulation time period can be selected, which has excellent judgment results.
[0101] Furthermore, the total number of voltage curve data points N1 within the second preset time window t2 is obtained, and the number of data points I where the voltage curve data within the second preset time window t2 is less than the voltage instability threshold k2 is determined. i,j That is, when the point data y on the voltage curve data i,j When I is less than the voltage instability threshold k2, i,j Add 1, otherwise leave it unchanged. It should be noted that in this embodiment, there is no restriction on the value of the voltage instability threshold k2. For example, the voltage instability threshold k2 can be set to 0.9.
[0102] Subsequently, based on the total number of data points N1 and the number of data points I... i,j The instability estimation probability corresponding to the voltage curve data is determined by the following formula:
[0103] ;
[0104] Where P is the estimated probability of instability.
[0105] Finally, determine whether the estimated instability probability P is not less than the instability critical value P. k In this embodiment, the instability critical value P k The size is not limited; for example, it can be set to 50%. If the estimated probability of instability P is confirmed to be less than the instability critical value P... k If the voltage curve data confirms voltage stability, then the instability estimation probability P is not less than the instability critical value P. k If so, it is confirmed that there is voltage instability in the voltage curve data, and the header name is recorded.
[0106] (iii) When the type of the main structure SotPage is commutation failure analysis type;
[0107] In some embodiments, analysis is performed on the substructures under each main structure according to the type of each main structure, including:
[0108] S151: Extract the first commutation overlap angle curve data and the second commutation overlap angle curve data corresponding to the substructures under the main structure.
[0109] S152: Obtain the first total number of data points of the first commutation overlap angle curve data and the second total number of data points of the second commutation overlap angle curve data within the third preset time window.
[0110] S153: Determine the first data point count within the third preset time window where the first commutation overlap angle curve data equals the commutation failure threshold; wherein, when consecutive data points in the first commutation overlap angle curve data equal the commutation failure threshold, the first data point count is accumulated once.
[0111] S154: Determine the second point data count within the third preset time window when the second commutation overlap angle curve data is equal to the commutation failure threshold; wherein, when consecutive point data in the second commutation overlap angle curve data are equal to the commutation failure threshold, the second point data count is accumulated once.
[0112] S155: Determine the first number of commutation failures based on the first total data points and the first data point count, and determine the second number of commutation failures based on the second total data points and the second data point count.
[0113] S156: The maximum value between the first commutation failure count and the second commutation failure count is determined as the total number of commutation failures.
[0114] During the commutation failure analysis, the first commutation overlap angle curve data corresponding to the substructure TitPage under the main structure SotPage is extracted (i.e., the data contained in the table header). The data in the first field) and the second commutation overlap angle curve data (i.e., the data in the header containing the second commutation overlap angle curve) (Data from the fields). Then, based on expert experience and judgment logic, a custom third preset time window t3 is selected for judgment. In this embodiment, there are no restrictions on the specific selection method of the third preset time window t3. For example, the entire time period of the curve simulation period can be selected, which has excellent judgment effect.
[0115] Further, the first total data point N2 and the second total data point N3 of the first commutation overlap angle curve data within the third preset time window t3 are obtained. Then, the first data point count I of the first commutation overlap angle curve data within the third preset time window t3 that equals the commutation failure threshold k3 is determined. i,h And determine the second point data count I within the third preset time window where the second commutation overlap angle curve data at t3 equals the commutation failure threshold k3. i,l That is, when the point data y on the first commutation overlap angle curve data... i,h When I equals the commutation failure threshold k3, i,h Add 1, otherwise remain unchanged, when the point data y on the second commutation overlap angle curve data. i,l When I equals the commutation failure threshold k3,i,l Increment by 1, otherwise remain unchanged. It is important to note that when consecutive data points in the first commutation overlap angle curve data equal the commutation failure threshold k3, the first data point count I... i,h Only once is the second point data count I accumulated when consecutive point data in the second commutation overlap angle curve data equals the commutation failure threshold k3. i,l Only accumulates once.
[0116] Subsequently, based on the first total data point count N2 and the first data point count I... i,h Determine the number of first commutation failures And based on the second total data point count N3 and the second data point count I i,l Determine the number of second commutation failures Finally, the number of first reversal failures, A, is... h Number of second commutation failures A l The maximum value in is determined to be the total number of commutation failures, A, that is... .
[0117] In this way, power angle analysis, voltage analysis, and commutation failure analysis of the power grid simulation results were implemented respectively. Users can subsequently focus on the instability curve based on the stability analysis summary information. If the judgments of power angle instability and voltage instability derived from the results are inconsistent with the conclusions drawn from manually examining the curves, the thresholds based on expert experience can be iteratively revised. For example, the power angle instability threshold k1 can be set to 400, and the instability critical value P... k Set to 40% to meet the user's needs for customized analysis.
[0118] In the above embodiments, the method for analyzing power grid simulation results has been described in detail. This application also provides embodiments of the power grid simulation result analysis device.
[0119] Figure 2 This is a schematic diagram of a power grid simulation result analysis device provided in an embodiment of this application. Figure 2 As shown, the device includes:
[0120] Module 10 is used to obtain the transient stability result file to be parsed based on the power grid simulation result folder.
[0121] The parsing module 11 is used to parse the stabilization result file into multiple main structures and parse the substructures corresponding to each main structure; wherein, the main structure represents the aggregation of power grid simulation data of the same type; and the substructure represents the simulation curve under the corresponding main structure.
[0122] Analysis module 12 is used to determine the type of each main structure and perform analysis on the substructures under each main structure according to the type of each main structure to obtain the corresponding analysis results.
[0123] Integration module 13 is used to summarize and integrate the analysis results of each substructure to generate stable analysis summary information.
[0124] In some embodiments, the parsing module 11 includes:
[0125] The first acquisition submodule is used to obtain the coordinate number and coordinate name from the transient stability result file;
[0126] The first partitioning submodule is used to divide the transient stability result file into multiple data fragments based on the coordinate number and coordinate name;
[0127] Define submodules to define each data fragment as a separate main structure.
[0128] In some embodiments, the parsing module 11 includes:
[0129] The second acquisition submodule is used to acquire the header and curve data in the data segment;
[0130] The second partitioning submodule is used to divide data segments into multiple substructures based on the header and curve data.
[0131] In some embodiments, the analysis module 12 includes:
[0132] The third submodule is used to obtain the coordinate names corresponding to each main structure.
[0133] The first determination submodule is used to determine the type of each main structure based on the corresponding coordinate name;
[0134] Among them, the types of main structures include at least power angle analysis type, voltage analysis type and commutation failure analysis type.
[0135] In some embodiments, the analysis module 12 includes:
[0136] The first extraction submodule is used to extract the power angle curve data corresponding to the substructures under the main structure;
[0137] The first judgment submodule is used to determine whether the power angle difference value of the power angle curve data within the first preset time window is greater than the power angle instability threshold; if not, the power angle of the power angle curve data is confirmed to be stable; if so, the power angle curve data is confirmed to have power angle instability, and its header name is recorded.
[0138] In some embodiments, the analysis module 12 includes:
[0139] The second extraction submodule is used to extract the voltage curve data corresponding to the substructures under the main structure.
[0140] The fourth acquisition submodule is used to acquire the total number of data points of the voltage curve data within the second preset time window;
[0141] The second determining submodule is used to determine the number of data points in the second preset time window where the voltage curve data is less than the voltage instability threshold.
[0142] The third determination submodule is used to determine the instability estimation probability corresponding to the voltage curve data based on the total number of data points and the point data count.
[0143] The second judgment submodule is used to determine whether the estimated probability of instability is not less than the instability critical value; if not, the voltage curve data is confirmed to be stable; if so, the voltage curve data is confirmed to have voltage instability and its header name is recorded.
[0144] In some embodiments, the analysis module 12 includes:
[0145] The third extraction submodule is used to extract the first commutation overlap angle curve data and the second commutation overlap angle curve data corresponding to the substructures under the main structure.
[0146] The fifth acquisition submodule is used to acquire the first total number of data points of the first commutation overlap angle curve data and the second total number of data points of the second commutation overlap angle curve data within the third preset time window;
[0147] The fourth determining submodule is used to determine the first data count when the first commutation overlap angle curve data is equal to the commutation failure threshold within the third preset time window; wherein, when consecutive data points in the first commutation overlap angle curve data are equal to the commutation failure threshold, the first data count is accumulated once;
[0148] The fifth determining submodule is used to determine the second point data count when the second commutation overlap angle curve data is equal to the commutation failure threshold within the third preset time window; wherein, when consecutive point data in the second commutation overlap angle curve data are equal to the commutation failure threshold, the second point data count is accumulated once;
[0149] The sixth determining submodule is used to determine the first number of commutation failures based on the first total number of data points and the first data point count, and to determine the second number of commutation failures based on the second total number of data points and the second data point count;
[0150] The seventh determination submodule is used to determine the maximum value between the first commutation failure count and the second commutation failure count as the total number of commutation failures.
[0151] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0152] Figure 3This is a structural diagram of a power grid simulation result analysis device provided in an embodiment of this application. Figure 3 As shown, the power grid simulation result analysis equipment includes:
[0153] Memory 20 is used to store computer programs;
[0154] The processor 21 is used to implement the steps of the power grid simulation result analysis method mentioned in the above embodiments when executing a computer program.
[0155] The power grid simulation result analysis device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0156] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0157] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the power grid simulation result analysis method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the power grid simulation result analysis method.
[0158] In some embodiments, the power grid simulation result analysis device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0159] Those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the equipment for analyzing power grid simulation results and may include more or fewer components than shown.
[0160] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.
[0161] It is understood that if the methods in the above embodiments 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, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0162] The foregoing has provided a detailed description of a method, apparatus, device, and medium for analyzing power grid simulation results provided in this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of this application.
[0163] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for analyzing power grid simulation results, characterized in that, include: Obtain the metastability result file to be parsed from the power grid simulation result folder; The transient stability result file is parsed into multiple main structures, and the substructures corresponding to each main structure are also parsed; wherein, the main structure represents the aggregation of power grid simulation data of the same type; the substructure represents the simulation curves corresponding to the main structure; the substructure includes a header and curve data; The type of each main structure is determined, and the substructures under each main structure are analyzed according to the type of each main structure to obtain the corresponding analysis results; The analysis results of each of the substructures are summarized and integrated to generate a summary of stability analysis information; Determine the type of each of the main structures, including: Obtain the coordinate names corresponding to each of the main structures; The type of each main structure is determined based on its corresponding coordinate name; The types of the main structure include at least power angle analysis type, voltage analysis type and commutation failure analysis type; When the type of the main structure is commutation failure analysis, the substructures under each main structure are analyzed according to their respective types, including: Extract the first commutation overlap angle curve data and the second commutation overlap angle curve data corresponding to the sub-structures under the main structure; Obtain the first total number of data points of the first commutation overlap angle curve data and the second total number of data points of the second commutation overlap angle curve data within the third preset time window; The first point data count is determined to be equal to the commutation failure threshold within the third preset time window; wherein, when consecutive point data in the first commutation overlap angle curve data are equal to the commutation failure threshold, the first point data count is accumulated once. The second point data count is determined when the second commutation overlap angle curve data is equal to the commutation failure threshold within the third preset time window; wherein, when consecutive point data in the second commutation overlap angle curve data are equal to the commutation failure threshold, the second point data count is accumulated once; The first commutation failure count is determined based on the first total data points and the first data point count, and the second commutation failure count is determined based on the second total data points and the second data point count. The maximum value between the first commutation failure count and the second commutation failure count is determined as the total number of commutation failures.
2. The method for analyzing power grid simulation results according to claim 1, characterized in that, The quasi-stabilized result file is parsed into multiple main structures, including: Obtain the coordinate number and coordinate name from the transient stability result file; The transient stability result file is divided into multiple data segments based on the coordinate number and coordinate name; Each of the data segments is defined as a main structure.
3. The method for analyzing power grid simulation results according to claim 2, characterized in that, The analysis of the substructures corresponding to each main structure includes: Obtain the header and curve data from the data segment; The data segment is divided into multiple substructures based on the header and curve data.
4. The method for analyzing power grid simulation results according to claim 1, characterized in that, When the type of the main structure is power angle analysis, the substructures under each main structure are analyzed according to their respective types, including: Extract the power angle curve data corresponding to the substructures under the main structure; Determine whether the power angle difference value of the power angle curve data within the first preset time window is greater than the power angle instability threshold. If not, then confirm that the power angle of the power angle curve data is stable; If so, confirm that the power angle curve data has power angle instability and record its corresponding header name.
5. The method for analyzing power grid simulation results according to claim 1, characterized in that, When the type of the main structure is voltage analysis type, the substructures under each main structure are analyzed according to the type of each main structure, including: Extract the voltage curve data corresponding to the sub-structures under the main structure; Obtain the total number of data points of the voltage curve data within the second preset time window; The number of data points in the second preset time window where the voltage curve data is less than the voltage instability threshold is determined. The instability estimation probability corresponding to the voltage curve data is determined based on the total number of data points and the count of the data points. Determine whether the estimated instability probability is not less than the instability critical value; If not, then confirm that the voltage curve data is stable; If so, confirm that the voltage curve data shows voltage instability and record the corresponding header name.
6. A device for analyzing power grid simulation results, characterized in that, include: The acquisition module is used to obtain the transient stability result file to be parsed based on the power grid simulation result folder; The parsing module is used to parse the transient stability result file into multiple main structures and parse the substructures corresponding to each main structure; wherein, the main structure represents the aggregation of power grid simulation data of the same type; the substructure represents the simulation curves corresponding to the main structure; the substructure includes a header and curve data; An analysis module is used to determine the type of each main structure and to perform analysis on the substructures under each main structure according to the type of each main structure to obtain the corresponding analysis results. An integration module is used to summarize and integrate the analysis results of each of the substructures to generate stable analysis summary information; The analysis module includes: The third acquisition submodule is used to acquire the coordinate names corresponding to each of the main structures; The first determination submodule is used to determine the type of each main structure based on the corresponding coordinate name; The types of the main structure include at least power angle analysis type, voltage analysis type and commutation failure analysis type; The third extraction submodule is used to extract the first commutation overlap angle curve data and the second commutation overlap angle curve data corresponding to the substructure under the main structure when the type of the main structure is commutation failure analysis type. The fifth acquisition submodule is used to acquire the first total number of data points of the first commutation overlap angle curve data and the second total number of data points of the second commutation overlap angle curve data within the third preset time window; The fourth determining submodule is used to determine the first point data count within the third preset time window when the first commutation overlap angle curve data is equal to the commutation failure threshold; wherein, when consecutive point data in the first commutation overlap angle curve data are equal to the commutation failure threshold, the first point data count is accumulated once; The fifth determining submodule is used to determine the second point data count within the third preset time window when the second commutation overlap angle curve data is equal to the commutation failure threshold; wherein, when consecutive point data in the second commutation overlap angle curve data are equal to the commutation failure threshold, the second point data count is accumulated once; The sixth determining submodule is used to determine the first commutation failure number based on the first total data points and the first data point count, and to determine the second commutation failure number based on the second total data points and the second data point count; The seventh determination submodule is used to determine the maximum value between the first commutation failure count and the second commutation failure count as the total number of commutation failures.
7. A device for analyzing power grid simulation results, characterized in that, include: Memory, used to store computer programs; A processor is configured to implement the steps of the power grid simulation result analysis method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the power grid simulation result analysis method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
File management method and system for PSD-BPA transient calculation result
CN114218167A
