Data source automatic switching method and device suitable for online security analysis

Through the automatic data source switching method, the problem of online security analysis stopping calculation due to abnormal data source is solved, and the continuous reliability of safe and stable operation of the power grid is achieved.

CN119887441APending Publication Date: 2025-04-25STATE GRID HEBEI ELECTRIC POWER CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411935925.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Online safety analysis stops calculation due to unexpected situations such as grid model maintenance or abnormal status estimation data, resulting in the dispatching and operation personnel being unable to accurately grasp the grid operation, which poses great safety hazards.

Method used

It provides an automatic data source switching method, which obtains model and state estimation data of each original data source by requesting grid model services and state estimation services, checks model parameters and operation data, builds an online security analysis calculation data package, and automatically switches to the most suitable data source according to the set control parameters.

Benefits of technology

The continuous and reliable operation of the online safety analysis function is realized, the problem of stopping calculations due to abnormal data source is avoided, and the reliability of safe and stable operation of the power grid is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119887441A_ABST
    Figure CN119887441A_ABST
Patent Text Reader

Abstract

The invention discloses a data source automatic switching method and device suitable for online security analysis. The method comprises the following processes of online calculation data packet generation of multiple data sources, data source switching control parameter setting, data source automatic selection, data source manual selection, data source switching information and historical storage and consultation of control parameter modification. The automatic switching of the data sources supports the acquisition of online analysis and calculation data from multiple sources, thereby avoiding the problems that the online safety analysis is stopped when a single data source is abnormal, and the scheduling operation personnel cannot timely recognize the risk of the power grid, improving the reliability and continuity of the online safety analysis operation, and guaranteeing the safe and stable operation of the power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power system automation, and in particular relates to a data source automatic switching method and device suitable for online safety analysis. Background Art

[0002] With the rapid development of ultra-high voltage AC / DC hybrid power grids, large-scale access to new energy, and the continuous advancement of power market reforms, the structural form and system characteristics of the power system have undergone major changes. Online security analysis based on the power dispatching technical support system carries the important responsibility of quickly and accurately warning of potential safety risks in the power grid and providing scientific and accurate auxiliary decision-making information for the safe and stable operation of the power grid.

[0003] Traditional online safety and stability analysis obtains power grid models and state estimation data from the superior or local dispatching center. When the power grid model is undergoing maintenance, or various emergencies such as data anomalies and network interruptions occur in the state estimation application, the online safety and stability analysis stops calculating due to the lack of valid data. The dispatching and operating personnel are unable to accurately grasp the power grid operation status at this time. If an accident occurs in the power grid, the dispatching and operating personnel lack handling experience and response strategies, which will cause great safety hazards.

[0004] In view of the above situation, there is an urgent need for an automatic data source switching method suitable for online safety analysis to meet the continuous and reliable operation requirements of the online safety analysis function and ensure the safety and stability of the power grid. Summary of the invention

[0005] The purpose of the present invention is to improve the deficiencies in existing functions and provide a method for automatically switching data sources suitable for online security analysis to solve the problem that the online security analysis function cannot run continuously and reliably.

[0006] To achieve the above object, the present invention provides a data source automatic switching method suitable for online security analysis, comprising:

[0007] S1. Request the power grid model service to obtain the power grid equipment model of each original data source, and obtain the state estimation data of each original data source by requesting the state estimation service; check the model parameters and operation data, carry out data integration and power flow calculation for the sections that pass the inspection, and construct the online safety analysis calculation data package under each original data source as the candidate data source for online safety analysis;

[0008] S2. Set control parameters, including switching type and priority; the switching type includes automatic switching and manual switching; the priority is to set the priority for each candidate data source when automatically switching;

[0009] S3. According to the set control parameters, obtain the data packet used for the actual calculation of the online security analysis from the candidate data source, and switch the data source to the obtained data packet;

[0010] S4. Automatically record the switching time and switching description of the data source switching. Any modification of any control parameter needs to be manually confirmed, and the modification history is saved in the history library.

[0011] Furthermore, the power grid model service described in S1 is an application server deployed on the power grid model, which responds to client requests to provide power grid model data, including voltage level, plant information, main transformer information, unit information, line information, bus information, load information, capacitor information, switch information and switch information;

[0012] The state estimation service is deployed on the state estimation application server, responds to client requests, and provides power grid state estimation operation data, including main transformer operation information, unit operation information, line operation information, bus operation information, load operation information, capacitor operation information, switch operation information and knife operation gate information.

[0013] Furthermore, the model parameter check in S2 includes: bus voltage upper and lower limit check, unit active / reactive upper and lower limit check, capacitor voltage type check, AC line impedance parameter check, transformer model parameter check;

[0014] The original data source is a database used for online security analysis before data source switching;

[0015] The operation data inspection includes: unit active output over-limit inspection, machine end voltage over-limit inspection, AC line head and end power balance inspection, transformer power balance inspection, transformer tap inspection, node power balance inspection;

[0016] If the model parameter check and the operation data check fail, an alarm will be given.

[0017] Furthermore, the data integration and power flow calculation described in S2 is to convert the original power grid equipment model and state estimation data into node branch model data, and use the AC power flow algorithm to perform power flow calculation; if the power flow calculation does not converge, an alarm prompts.

[0018] Furthermore, the construction of online analysis and calculation data in S2 is to generate calculation data in a specified format according to the online analysis and calculation purpose, fault set, monitoring element, and calculation parameters set in the database, and to package and generate online calculation data packets for subsequent online analysis.

[0019] Furthermore, the process of automatic switching is as follows:

[0020] If the switching type in the control parameters is selected as automatic switching, the generation of the calculation data packet under the optimal data source is checked according to the set data source priority. If the calculation data packet under the optimal data source is generated normally, the data packet is sent for calculation as the online analysis calculation data;

[0021] Set a threshold value n. If the calculation data packet under the optimal data source is abnormal for n consecutive rounds, check the calculation data packet generation of the next priority data source until all data sources under all priorities have been checked.

[0022] If the calculation data packets under all priority data sources generate exceptions, an alarm prompt will be issued;

[0023] When the online computing data is selected as a non-optimal data source, and the optimal data source has generated data packets normally for multiple consecutive rounds, the online computing data will be automatically restored to the data packets under the optimal data source.

[0024] Furthermore, the calculation data packets under the optimal data source have generated abnormalities for n consecutive rounds, and the generation abnormalities include failure of model service request, failure of state estimation service request, failure of data check, non-convergence of power flow calculation, failure of calculation data generation, etc., which result in the calculation data packets being unable to be generated normally.

[0025] Furthermore, the manual switching process is to check only the generation of calculation data packets under the data source according to the set specific data source. If the calculation data packet is generated normally, the data packet is sent as online analysis calculation data for calculation; if it is abnormal, an alarm is prompted.

[0026] Furthermore, the automatic recording and storage in S4 includes: when the online data source is switched, automatically recording the switching time and the switching description and saving them to the history library, wherein the switching description includes the data source before the switching, the data source after the switching, and the switching reason;

[0027] When any control parameter is modified, a confirmation dialog box will be automatically opened for manual confirmation and modification, and the modification operation will be saved to the history library. The content of the modification operation includes: modification time, modification person, control parameters before modification, and control parameters after modification.

[0028] The present invention also discloses a data source automatic switching device suitable for online security analysis, comprising:

[0029] The data packet generation module obtains model and state estimation data through model service and state estimation service, and forms an online calculation data packet through data inspection, data integration, power flow calculation and calculation data generation.

[0030] A control parameter setting module is used to set the control parameters of data source switching, including the switching type, specific data source, and the priority corresponding to each data source;

[0031] A data source selection module is used to switch the data source according to the set control parameters;

[0032] The record storage module automatically records the switching time and description and saves them to the history library when the data source switches; when the user modifies the control parameters, the modification operation is saved to the history library.

[0033] Compared with the prior art, the beneficial effects achieved by the present invention are: providing a method for automatically switching between multiple data sources for online security analysis, avoiding the online security analysis from stopping calculation due to lack of valid data, and automatically switching to the most appropriate data source when responding to emergencies, so that the online security analysis service is not interrupted.

[0034] In addition, the data source automatic switching method of the present invention is also compatible with manual switching, which improves the flexibility of online calculation data selection. The present invention improves the continuity and reliability of the online safety analysis function operation, ensures the safe and stable operation of the power grid, and has good practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the data source switching principle of the present invention;

[0036] Figure 2 is the AC line segment three-phase permanent short circuit fault calculation data in FASTEST format in an embodiment of the present invention;

[0037] Figure 3 It is a flow chart of automatic switching of data sources of the present invention. DETAILED DESCRIPTION

[0038] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0039] The present invention provides a data source automatic switching method suitable for online security analysis, and its principle schematic diagram is shown as follows: Figure 1 As shown, the method specifically comprises the following steps:

[0040] S1. Request the power grid model service to obtain the power grid equipment model of each data source, and obtain the state estimation data of each data source by requesting the state estimation service; check the model parameters and operation data, and carry out data integration and flow calculation for the sections that pass the inspection, and build online safety analysis and calculation data packages under each data source as candidate data sources for online safety analysis.

[0041] In this embodiment, computing data packets under data source 1 to data source N are generated as candidate data sources for online security analysis. The generation of computing data packets for any data source i includes the following steps:

[0042] 1) Data request: Obtain the power grid equipment model of data source i by requesting the power grid model service, and obtain the state estimation data of data source i by requesting the state estimation service. If the data request fails, an alarm prompt will be given.

[0043] 2) Data check: including model parameter check and operation data check. Model parameter check is mainly responsible for checking the integrity and rationality of the static model parameters of the power grid, including: bus voltage upper and lower limit check, unit active / reactive upper and lower limit check, capacitor voltage type check, AC line impedance parameter check, transformer model parameter check. Operation data check is mainly responsible for checking whether the equipment operation data is reasonable and whether it meets the requirements of conventional laws, including: unit active output over-limit check, machine-end voltage over-limit check, AC line head and end power balance check, transformer power balance check, transformer tap check, node power balance check. If the data check fails, an alarm will be prompted.

[0044] 3) Power flow calculation: The original power grid equipment model and state estimation data are converted into node branch model data, and the AC power flow algorithm is used to perform power flow calculation. If the power flow calculation does not converge, an alarm will be issued.

[0045] 4) Forming calculation data packages: For the sections where the power flow calculation converges, online analysis and calculation data generation is carried out. According to the online analysis and calculation purpose, fault set, monitoring components, calculation parameters, etc. set in the database, calculation data in FASTEST format are generated and packaged to generate online calculation data packages for subsequent online analysis. Figure 2 The figure shows the calculation data of the three-phase permanent short circuit fault of the AC line segment in the FASTEST format in this embodiment.

[0046] S2. The data source control parameters are set. First, the switching type selection includes manual switching and automatic switching. When the switching type is automatic switching, set the priority for each candidate data source. When the switching type is manual switching, set the specific data source selection. The switching type only supports single selection, and you can choose between manual switching and automatic switching.

[0047] When the switching type is set to automatic switching, the data source priority parameter is activated. The data source priority is set based on field operation experience, and data with high transmission reliability and high power flow convergence are selected as the optimal data source. The highest priority is 1, and the smaller value is given priority, which decreases as the value increases.

[0048] When manual switching is selected as the switching type, the selection list of all current data sources is activated and a single selection is made manually. When an abnormality of the manually specified data source causes the online process to be interrupted, the data source will not be switched and only an alarm prompt will be sent.

[0049] S3. Obtain data packets used for actual calculation of online security analysis from candidate data sources according to the set data source control parameters to implement data source switching.

[0050] If the switching type in the data source control parameters is set to automatic switching, the calculation data package under the optimal data source is obtained according to the set data source priority as the online analysis calculation data to be sent for calculation. The specific process is as follows Figure 3 As shown, the following steps are included:

[0051] S3-1. Obtain the priority of each candidate data source in the data source control parameters.

[0052] S3-2. Check the generation status of computing data packets under each candidate data source from high to low priority. If the generation of computing data packets under the optimal data source is normal, send the data packet as online analysis computing data for calculation. If the generation of computing data packets under the optimal data source is abnormal for multiple consecutive rounds, check the generation status of computing data packets of the next priority data source.

[0053] The generation anomaly includes the failure of model service request, state estimation service request failure, data check failure, power flow calculation non-convergence, calculation data generation failure, etc., which lead to the failure of calculation data packet to be generated normally.

[0054] Specifically, the method for determining the abnormality of multiple consecutive rounds of calculation data packets is as follows:

[0055] 1) Check whether there is an abnormal flag in the current round of calculation data packet generation process, that is, in each link of step S1. If an abnormality occurs in any link, mark the data generation abnormality of this round, and add 1 to the number of abnormal data packet generation. When the number of abnormalities exceeds the threshold value n, the number of abnormalities is directly set to the threshold value; in this embodiment, the threshold value n is set to 5.

[0056] 2) If all steps of the data calculation in this round are normal, mark the data generation in this round as normal. Check whether the number of abnormalities in data packet generation is greater than 0. If so, reduce the number of abnormalities by 1, otherwise keep it as 0;

[0057] 3) When the number of calculation data packet anomalies reaches the threshold value of 5, it means that the data source has been abnormal for multiple consecutive rounds and is not suitable for online analysis. It is necessary to trigger data source switching, check the calculation data packet generation of subsequent priority data sources, and select a suitable data source for online analysis.

[0058] S3-3. Record the priority of the data source finally used for online analysis. When the online computing data is selected as a non-optimal data source, and the data source with a higher priority than the current one has generated data packets normally for multiple consecutive rounds, the online computing data will be automatically restored to the data packet under the high-priority data source.

[0059] The specific method is as follows:

[0060] 1) Determine whether the priority of the data source currently used for online analysis is optimal. If not, obtain a data source queue that is prioritized over the current data source;

[0061] 2) According to the priority from high to low, the generation status and abnormal number of each source data packet in the priority data source queue are judged in turn;

[0062] 3) Taking the optimal data source as an example, if the number of abnormalities of the optimal data source is checked to see if it is 0, if it is not 0, then continue to wait for the next round of data packet generation until the number of abnormalities drops to 0;

[0063] 4) If the number of exceptions of the optimal data source is 0, it means that the optimal data source has been normal for many rounds and can be used for online analysis again, triggering the data source recovery logic, selecting the optimal data source as the final data source for online analysis, and recording the priority of the data source finally used for online analysis.

[0064] S3-4. If the calculation data packets under all data sources generate exceptions, an alarm prompt will be issued.

[0065] If the switching type in the data source control parameters is selected as manual switching, then according to the specific data source set, only the calculation data packet generation under the data source is checked. If the calculation data packet generation is normal, the data packet will be sent for calculation as the data source of the online analysis calculation data. If it is abnormal, an alarm will be prompted.

[0066] S4. When the data source is switched or the control parameters are modified, historical records are automatically stored for subsequent reference.

[0067] When the online data source switches, the switching time, data source before switching, data source after switching, switching reason, etc. are automatically recorded to provide data source description for subsequent calculation result verification.

[0068] When the control parameters are modified, for example, when the switching type is changed from automatic switching to manual switching, the modification time, the modification person, the control parameters before the modification, and the control parameters after the modification are recorded to provide a basis for subsequent online analysis of process changes. To prevent misoperation, when any control parameter is modified, a confirmation dialog box must be automatically opened for manual confirmation and modification.

[0069] Online safety analysis supports obtaining calculation data from multiple data sources, avoiding the problem of online safety analysis being shut down due to anomalies in a single data source. The data source automatic switching method disclosed in the present invention can be adaptively adjusted to automatically select a data source for actual application scenarios; in addition, it is also compatible with manual switching, improving the flexibility of online calculation data selection. The present invention improves the continuity and reliability of the online safety analysis function, ensures the safe and stable operation of the power grid, and has good practicality.

Claims

1. A data source automatic switching method suitable for online security analysis, characterized in that: include: S1. Request the power grid model service to obtain the power grid equipment model of each original data source, and obtain the state estimation data of each original data source by requesting the state estimation service; Check model parameters and operation data, conduct data integration and power flow calculation for sections that have passed the inspection, and construct online safety analysis calculation data packages under various original data sources as candidate data sources for online safety analysis; S2. Set control parameters, including switching type and priority; the switching type includes automatic switching and manual switching; The priority is to set a priority for each candidate data source during automatic switching; S3. According to the set control parameters, obtain the data packet used for the actual calculation of the online security analysis from the candidate data source, and switch the data source to the obtained data packet; S4. Automatically record the switching time and switching description of the data source switching. Any modification of any control parameter needs to be manually confirmed, and the modification history is saved in the history library.

2. The data source automatic switching method according to claim 1, characterized in that: The power grid model service described in S1 is an application server deployed in the power grid model, which responds to client requests to provide power grid model data, including voltage level, plant information, main transformer information, unit information, line information, bus information, load information, capacitor information, switch information and switch information; The original data source is a database used for online security analysis before data source switching; The state estimation service is deployed on the state estimation application server, responds to client requests, and provides power grid state estimation operation data, including main transformer operation information, unit operation information, line operation information, bus operation information, load operation information, capacitor operation information, switch operation information and knife operation gate information.

3. The data source automatic switching method according to claim 1 or 2, characterized in that: The model parameter check in S2 includes: bus voltage upper and lower limit check, unit active / reactive upper and lower limit check, capacitor voltage type check, AC line impedance parameter check, transformer model parameter check; The operation data inspection includes: unit active output over-limit inspection, machine end voltage over-limit inspection, AC line head and end power balance inspection, transformer power balance inspection, transformer tap inspection, node power balance inspection; If the model parameter check and the operation data check fail, an alarm will be given.

4. The method for automatically switching data sources according to claim 1, characterized in that: The data integration and power flow calculation described in S2 is to convert the original power grid equipment model and state estimation data into node branch model data, and use the AC power flow algorithm to perform power flow calculation; if the power flow calculation does not converge, an alarm prompts.

5. The data source automatic switching method according to claim 1 or 4, characterized in that: The construction of online analysis and calculation data in S2 is to generate calculation data in a specified format according to the online analysis and calculation purpose, fault set, monitoring element, and calculation parameters set in the database, and to package and generate online calculation data packets for subsequent online analysis.

6. The method for automatically switching data sources according to claim 1, characterized in that: The process of automatic switching is as follows: If the switching type in the control parameters is selected as automatic switching, the generation of the calculation data packet under the optimal data source is checked according to the set data source priority. If the calculation data packet under the optimal data source is generated normally, the data packet is sent for calculation as the online analysis calculation data; Set a threshold value n. If the calculation data packet under the optimal data source is abnormal for n consecutive rounds, check the calculation data packet generation of the next priority data source until all data sources under all priorities have been checked. If the calculation data packets under all priority data sources generate exceptions, an alarm prompt will be issued; When the online computing data is selected as a non-optimal data source, and the optimal data source has generated data packets normally for multiple consecutive rounds, the online computing data will be automatically restored to the data packets under the optimal data source.

7. The method for automatically switching data sources according to claim 6, characterized in that: The calculation data packet under the optimal data source has generated abnormalities for n consecutive rounds. The generation abnormalities include model service request failure, state estimation service request failure, data check failure, power flow calculation non-convergence, calculation data generation failure, etc., which result in the calculation data packet being unable to be generated normally.

8. The data source automatic switching method according to claim 1, characterized in that: The manual switching process is to check the generation of calculation data packets under the data source according to the specific data source set. If the calculation data packet is generated normally, the data packet is sent as online analysis calculation data for calculation; if it is abnormal, an alarm is prompted.

9. The method for automatically switching data sources according to claim 1, characterized in that: The automatic recording and storage in S4 includes: when the online data source switches, automatically recording the switching time and the switching description and saving them to the history library, wherein the switching description includes the data source before the switching, the data source after the switching, and the switching reason; When any control parameter is modified, a confirmation dialog box will be automatically opened for manual confirmation and modification, and the modification operation will be saved to the history library. The content of the modification operation includes: modification time, modification person, control parameters before modification, and control parameters after modification.

10. A data source automatic switching device suitable for online security analysis, characterized in that: include: The data packet generation module obtains the model and state estimation data through the model service and state estimation service, and forms an online calculation data packet through data inspection, data integration, power flow calculation and calculation data generation; A control parameter setting module is used to set the control parameters of data source switching, including the switching type, specific data source, and the priority corresponding to each candidate data source; A data source selection module is used to switch the data source according to the set control parameters; The record storage module automatically records the switching time and description and saves them to the history library when the data source switches; when the user modifies the control parameters, the modification operation is saved to the history library.