Method and device for simulating oscillation risk of automatic voltage control system
By using a joint simulation method combining Matlab and BPA, the reactive power of the wind farm is dynamically adjusted, which solves the accuracy problem of AVC system simulation and improves the stability and optimization capability of the power system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-05
- Publication Date
- 2026-04-10
AI Technical Summary
Existing technologies struggle to accurately simulate the continuous processes of automatic voltage control (AVC) systems, especially in the case of concentrated wind power integration, which impacts the stability of the power system.
By combining Matlab and BPA simulation methods, a BPA model of a wind farm is established, the active power output value is modified and power flow calculation is performed, and reactive power is dynamically adjusted to realize the simulation of oscillation risk of the voltage control system.
This method enables the simulation of the dynamic behavior of AVC systems on a continuous time scale, improving the accuracy of simulation results and the stability of power systems, and providing support for power grid optimization.
Smart Images

Figure CN121840609A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of power systems, and in particular, to a simulation method and device for oscillation risk of an automatic voltage control system. BACKGROUND
[0002] Wind power, as a clean and renewable energy, is increasing in the proportion of power systems. However, the intermittency and uncertainty of wind power bring challenges to the stable operation of power systems, especially the oscillation problem of the wind power automatic voltage control (AVC) system.
[0003] The AVC system architecture is based on the energy management system (EMS) of the power grid, which can use real-time operation data of the transmission network to scientifically decide the best reactive power and voltage adjustment scheme from the perspective of global optimization of the transmission network, and automatically issue it to power plants, substations and lower-level power grid dispatching institutions for execution to maintain the stability of the power grid. However, in recent years, a large number of offshore wind farms have been built in some coastal areas, and the centralized access of a large number of offshore wind power will lead to system oscillation, interfere with the normal operation of the AVC system, and further affect the stability of the power system.
[0004] At present, it is difficult to accurately simulate the continuous process controlled by the AVC system. SUMMARY
[0005] In view of the above problems, the embodiments of the present application provide a simulation method and device for oscillation risk of an automatic voltage control system, which aims to solve the above problems or at least partially solve the above problems.
[0006] In a first aspect, the embodiments of the present application provide a simulation method for oscillation risk of an automatic voltage control system, which comprises: establishing a BPA model of N wind farms, obtaining a first DAT file, wherein the network parameters of the BPA model are included in the first DAT file; modifying the active power output values of the N wind farms in the first DAT file by Matlab respectively, and obtaining a second DTA file; performing power flow calculation based on the second DTA file to generate a first PFO file; modifying the reactive power of the N wind farms in the second DTA file based on the voltage of each node in the wind power centralized access area in the first PFO file, and generating a third DTA file; performing power flow calculation based on the third DTA file to obtain a second PFO file; determining the oscillation risk of the voltage control system based on the second PFO file.
[0007] In a second aspect, the embodiments of the present application further provide a simulation device for oscillation risk of an automatic voltage control system, comprising: a BPA model of N wind farms is established, a first DAT file is obtained, and the network parameters of the BPA model are included in the first DAT file; active power output values of the N wind farms in the first DAT file are modified respectively by Matlab, and a second DTA file is obtained; power flow calculation is performed based on the second DTA file, and a first PFO file is generated; reactive power of the N wind farms in the second DTA file is modified based on the voltage of each node in the wind power concentrated access area in the first PFO file, and a third DTA file is generated; power flow calculation is performed based on the third DTA file, and a second PFO file is obtained; the oscillation risk of the voltage control system is determined based on the second PFO file.
[0008] In a third aspect, the embodiments of the present application further provide an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, which when executed cause the processor to perform the steps of the first aspect.
[0009] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores one or more programs, which when executed by an electronic device comprising a plurality of applications, cause the electronic device to perform the steps of the first aspect.
[0010] The above at least one technical solution adopted by the embodiments of the present application can achieve the following beneficial effects: by establishing the BPA model of the N wind farms, obtaining the first DAT file, modifying the active power output value of the wind farm in the first DAT file through Matlab to obtain the modified second DAT file, performing power flow calculation based on the second DAT file to obtain the first PFO file. Then, the reactive power of the wind farm in the second DTA file is modified through the node voltage of the wind power concentrated access area in the first PFO file to obtain the modified third DTA file; power flow calculation is performed based on the third DTA file to obtain the second PFO file; and the oscillation risk of the voltage control system is determined based on the second PFO file. In the embodiments of the present application, the powerful numerical calculation capability of Matlab and the mature application of BPA in power system simulation are combined, and the interaction of the two kinds of software is realized through a data exchange interface. Modeling is performed through BPA, and Matlab calls BPA to perform power flow calculation and dynamic simulation. Matlab can read and process large-scale data, quickly import the active power data of the wind farm, and dynamically adjust the reactive power output of the wind farm according to the change of the voltage, so as to ensure that the system voltage is maintained within a reasonable range. Through the joint simulation of Matlab and BPA, the dynamic behavior of the AVC system can be simulated on a continuous time scale, and the change of the system in actual operation can be more truly reflected. BRIEF DESCRIPTION OF DRAWINGS
[0011] The accompanying drawings, which are included to provide a further understanding of the present application, form a part of the present application and illustrate the illustrative embodiments of the present application and together with the description serve to explain the present application. In the drawings: Figure 1 A flowchart of the simulation method of the oscillation risk of the automatic voltage control system provided by the embodiments of the present application is shown; Figure 2 A content diagram of the PFO file provided by the embodiments of the present application is shown; Figure 3 A structure diagram of the wind farm wiring diagram provided by the embodiments of the present application is shown; Figure 4 A flowchart of the simulation method of the oscillation risk of the automatic voltage control system provided by another embodiment of the present application is shown; Figure 5 A voltage change curve and a reactive power change curve provided by the embodiments of the present application are shown; Figure 6 A voltage change curve and a reactive power change curve provided by another embodiment of the present application are shown; Figure 7 A structure diagram of the simulation device of the oscillation risk of the automatic voltage control system provided by the embodiments of the present application is shown; Figure 8A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0012] For the purpose of making the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in combination with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of the present application.
[0013] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that such use can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the term "comprising" and its variants are to be interpreted as meaning "including but not limited to" an open term.
[0014] As described in the background, in recent years, some coastal areas have begun to build wind farms in large numbers, and the centralized access of a large number of offshore wind power will lead to system oscillation, interfere with the normal operation of the AVC system, and further affect the stability of the power system. And the research on the AVC system of the power grid has made significant progress. For example, researchers have proposed a coordination method for updating and coordinating constraints of power stations, and by introducing a reactive power margin vector, an optimization model based on reactive power margin is established to achieve more efficient reactive power optimization. In addition, the Common Information Model is widely used to simulate the coordination environment of the AVC system to improve the standardization and flexibility of data interaction.
[0015] However, although these studies have improved the performance of the AVC system to some extent, the prior art still cannot accurately simulate the continuous process of AVC control. AVC control is essentially a continuous dynamic process, and current researches are mostly focused on the calculation of power flow at a certain section, which is difficult to fully reflect the dynamic behavior of the AVC system.
[0016] Based on this, the present application proposes a simulation method for oscillation risk of an automatic voltage control system, which can simulate the dynamic behavior of the AVC system on a continuous time scale through joint simulation of Matlab and BPA, and more truly reflect the changes of the system in actual operation.
[0017] The present application will be described in detail below through specific embodiments.
[0018] Figure 1The flowchart shows a simulation method for the oscillation risk of an automatic voltage control system provided by an embodiment of the present application. From Figure 1 it can be seen that the present application at least includes steps S101 - step S103: Step S101: Establish a BPA model for N wind farms, and obtain a first DAT file, which includes the network parameters of the BPA model.
[0019] Among them, the DAT file is a common data file format. When technicians perform BPA modeling, they need to set the data and model parameters used in the modeling and save them to the first DAT file.
[0020] As shown in Figure 2 the layout of the wind farm shown, there are 5 500KV substations, one of which is connected to 8 wind farms, and each wind farm has 100 wind turbines. According to the data of 4 wind farms in this area obtained, after simplification, the modeling of each wind farm is first completed, and the data is copied and filled into 8 B cards. In order to sort out a clearer node data matrix, the BQ card or BT card will be used according to the actual situation, and the sub-type will be modified in the second column of the B card. BQ represents the PV node, but the reactive power of the node needs to satisfy Qmin < Q < Qmax, and it will be automatically converted to the PQ node when it exceeds the limit. BT represents the PQ node, but the node voltage is controlled by the on-load tap-changing transformer.
[0021] Step S102: Use Matlab to modify the active power output values of N wind farms in the first DAT file respectively, and obtain a second DTA file.
[0022] Among them, the difference between the second DAT file and the first DAT file is that the active power output values of the wind farms are different, and the second DAT file includes the modified active power output values.
[0023] Due to the large amount of data, the workload of manual input and calculation in BPA is too large. Therefore, the embodiment of the present application uses Matlab to call BPA for automatic calculation. Matlab can read and process large-scale data, improving the data processing speed.
[0024] Step S103: Perform a power flow calculation based on the second DTA file to generate a first PFO file.
[0025] Among them, the PFO file is a file for storing the power flow calculation results after the power flow calculation, and the PFO file is a common file type.
[0026] Specifically, the first PFO file includes node voltages. Exemplarily, the data in the first PFO file can be referred to Figure 2 as shown.
[0027] Step S104: Based on the node voltages of the wind power centralized access area in the first PFO file, modify the reactive power of N wind farms in the second DTA file to generate the third DTA file.
[0028] Geographic connection diagram of wind farm as follows Figure 3 As shown in the figure, point P is the concentrated wind power access area, and the study focuses on the influence of wind power fluctuations on the voltage at this point.
[0029] Real-time adjustment of reactive power was achieved using Matlab scripts. Specifically, the reactive power output of the wind farm was dynamically adjusted based on voltage changes to ensure that the system voltage remained within a reasonable range. This dynamic control capability makes the simulation results closer to actual operating conditions, providing strong support for the optimization of the AVC system.
[0030] Step S105: Perform power flow calculation based on the third DTA file to obtain the second PFO file.
[0031] Step S106: Based on the second PFO file, determine the oscillation risk of the voltage control system.
[0032] Using Matlab's plotting capabilities, the second PFO file can be used to display the real-time curves of voltage and reactive power changes. This visualization analysis not only facilitates researchers' observation of the system's dynamic behavior but also allows for the rapid identification of potential problems such as voltage fluctuations and insufficient reactive power. For example, by setting a boundary line, it is possible to intuitively determine whether the voltage exceeds the allowable range, thereby assessing the oscillation risk of the voltage control system.
[0033] from Figure 1 As shown in the diagram, this application combines Matlab's powerful numerical computation capabilities with BPA's mature application in power system simulation, achieving interaction between the two software programs through a data exchange interface. Modeling is performed using BPA, while Matlab calls BPA for power flow calculations and dynamic simulations. Matlab can read and process large-scale data, quickly importing active power data from wind farms and dynamically adjusting the reactive power output of wind farms based on voltage changes to ensure the system voltage remains within a reasonable range. Through joint simulation using Matlab and BPA, the dynamic behavior of the AVC system can be simulated on a continuous time scale, more realistically reflecting changes in the system during actual operation.
[0034] In some embodiments of this application, in the above method, step S102 specifically modifies the active power output value in the following ways, such as... Figure 4 As shown, steps S201-S203 are included: S201: Obtain the correspondence between the real name information and the pseudonym information of N wind farms.
[0035] Since the DAT file stores codes, it is necessary to pre-set the code information (code) corresponding to the real name information of each wind farm in the DAT file.
[0036] S202: Match the pseudonym information of each wind farm in the first DAT file with the real name information based on the correspondence.
[0037] S203: Modify the active power output value of the successfully matched wind farm and obtain the second DTA file.
[0038] Specifically, a nested loop is used to modify the active power output values of all wind farms. The nested loop process is as follows: Inner loop: Modify each column of the wind farm real name matrix for a single wind farm, extract the real name information of the wind farm, and store it.
[0039] The middle loop iterates through each row of the wind farm name matrix, using the `isequal` function to match the names with the actual names. For each successfully matched wind farm, the active power output value corresponding to its actual name is passed to the function, thus modifying the active power output of a single wind farm.
[0040] Outer loop: After each modification, the power flow calculation program is called to perform the power flow calculation. If the power flow does not converge, the system will report an error. That is, steps S102 and S103 are performed for a single wind farm. After modifying the active power output value of a single wind farm in S102, S103 performs the power flow calculation. Then, it returns to S102 to modify the active power output value of the next wind farm, until the active power output values of all wind farms have been modified.
[0041] Specifically, when modifying the active power output value of a single wind farm, the starting position of the active power output value of each wind farm is determined; the active power output value in the first DTA file is preprocessed, and the preprocessed active power output value is replaced at the starting position to obtain the second DTA file.
[0042] Specifically, open the calculation file (first DTA file) in the specified path and read its contents as a string in read-only mode. Use the strfind function to find the location of the specified wind farm's code name in the file. The 43rd to 47th bits of the B card represent the actual active power value. Locate the starting position of the wind farm's active power output using an offset of (+42). Restrict and format the input active power output value (P): if the input value is less than 0, adjust it to 0 (to avoid unreasonable negative values). Use the floor function to round the active power output value down to ensure it is an integer. Convert the adjusted active power value to a string, ensuring its length is 3 characters (padding with leading zeros if less than 3 characters). Then convert the file contents to a character array for character-by-character modification. At the located active power output position, replace each character with the adjusted active power value. Convert the modified character array back to a string, open the calculation file in overwrite mode, and save the modified content to the file.
[0043] In this embodiment, Matlab is used to read and process large-scale data, enabling the rapid import of active power data and corresponding code information from wind farms. Matlab's matrix operations and data processing capabilities make batch processing of high-frequency acquired data (such as power measurement data once per second) efficient and accurate.
[0044] In some embodiments of this application, after obtaining the first PFO file, in order to find the voltage at point P, the strfind function can be used to find the start marker (node-related data list) and end marker (--------------) of the node data. The start and end points of the node data are extracted to form a complete node data matrix. The number of rows is calculated; char(13) represents a newline character, and the number of newline characters determines the number of rows. The sscanf function is used to parse the node data, and the number of rows facilitates the extraction of key parameters (such as node voltage). The extracted node voltage is stored in the variable U for subsequent analysis.
[0045] Each wind farm is designed to generate 10 MVar of reactive power. Without modifying the reactive power output of the wind farms, the voltage change is as follows: Figure 5 As shown, the voltage oscillations are quite severe. When active power increases, the voltage tends to decrease significantly, resulting in extremely poor voltage stability, which affects the safety and stability of the power grid. Therefore, by monitoring the voltage changes of wind farms in real time and automatically adjusting reactive power according to demand, the grid can be kept stable and a reliable power supply can be provided.
[0046] Specifically, the reactive power of the wind farm is adjusted by monitoring whether the node voltage in the concentrated wind power access area in the first PFO file exceeds a voltage threshold. If the node voltage exceeds the voltage threshold, the reactive power of the wind farm in the second DTA file is adjusted according to preset rules. For example, if the difference between the node voltage and the voltage threshold is greater than a preset difference, the reactive power of the wind farm is reduced; or if the difference between the node voltage and the voltage threshold is less than a preset difference, the reactive power of the wind farm is increased.
[0047] For example, if the first measured voltage data is 232.4 kV, and the measured voltage difference exceeds 1 kV, if the node voltage is >233.4 kV, then the reactive power is reduced by 10 MVar; if the node voltage is <231.4 kV, then the reactive power is increased by 10 MVar. This adjustment strategy is to maintain the node voltage within a reasonable range.
[0048] Finally, iterate through all wind farms, locate the reactive power field, read and dynamically adjust the reactive power according to the node voltage, write the adjusted reactive power value back to the file, and save the modified content to the third DAT file.
[0049] After adding AVC regulation, the voltage change is as follows Figure 6 As shown, it was found that the voltage was still out of range at many points in time, with the most severe deviation being 7KV. This is related to the lack of good real-time performance of the AVC, leading to misjudgments. The AVC system in the wind power centralized access area still has a great risk of oscillation.
[0050] The AVC system has limitations in handling rapidly changing power scenarios, especially in areas with concentrated offshore wind power where voltage fluctuations are extremely rapid, where its control mechanisms appear outdated. Wind power, as a new energy source, exhibits significant instability in its output power and voltage; both can change every second, or even faster. In such situations, by the time the AVC system completes measurement, control, and verification, the bus voltage may have already changed significantly, potentially causing the system to reverse its regulation and exacerbating power system oscillations. Therefore, improving the overall control time of the AVC system from minutes to seconds is crucial for enhancing its ability to adapt to rapidly changing scenarios. This not only helps reduce misjudgments but also effectively improves the voltage stability of the power system, enhancing the economy and reliability of grid operation.
[0051] As can be seen from the above embodiments, the simulation method for oscillation risk of an automatic voltage control system provided in this application has the following technical effects: 1. Highly efficient data processing capabilities Matlab enables the rapid import of active power data and corresponding code information from wind farms by reading and processing large-scale data. Matlab's matrix operations and data processing capabilities make batch processing of high-frequency acquired data (such as power measurement data once per second) efficient and accurate.
[0052] 2. Dynamic simulation capability An AVC system is essentially a continuous dynamic control process, while traditional simulation methods can usually only perform power flow calculations on a specific cross-section, making it difficult to reflect its dynamic characteristics. The method proposed in this paper, through joint simulation using Matlab and BPA, can simulate the dynamic behavior of the AVC system on a continuous time scale, more realistically reflecting the changes in the system during actual operation.
[0053] 3. Precise reactive power control This method utilizes Matlab scripts to achieve real-time adjustment of reactive power. Based on voltage changes, it dynamically adjusts the reactive power output of the wind farm to ensure the system voltage remains within a reasonable range. This dynamic control capability makes the simulation results more closely resemble actual operating conditions, providing strong support for the optimization of AVC systems.
[0054] 4. Visual Analysis Matlab's plotting capabilities allow for real-time display of voltage and reactive power variation curves. This visualization analysis not only facilitates researchers' observation of system dynamics but also enables rapid identification of potential issues such as voltage fluctuations and insufficient reactive power. For example, by setting thresholds (such as 231.4 kV and 233.4 kV), it is possible to intuitively determine whether the voltage exceeds the allowable range.
[0055] 5. Flexibility and scalability This method stores wind farm data and code name information in Excel files, giving the simulation model high flexibility and scalability. By modifying the contents of the Excel file, it can easily adapt to different wind farm or grid configurations. Furthermore, the Matlab scripts can be adjusted according to different simulation requirements, further expanding its application scope.
[0056] 6. Accident Reproduction and Analysis Hybrid simulation methods can more realistically recreate accident scenarios caused by AVC oscillations. This approach not only helps in analyzing the causes of accidents but also provides data support for improving the control strategies of AVC systems.
[0057] 7. Compatibility with existing simulation tools BPA is a widely used software in the field of power system simulation, possessing mature power system models and algorithms. Using Matlab to call BPA for power flow calculations and dynamic simulations fully leverages BPA's advantages while combining it with Matlab's flexibility. This hybrid simulation approach can be seamlessly integrated into existing simulation environments without the need to develop additional complex simulation tools.
[0058] 8. Real-time feedback and iterative optimization During the simulation, the AVC system was iteratively optimized by reading simulation results (such as voltage and reactive power) in real time and adjusting the control strategy based on feedback. This method can effectively improve the voltage stability and reactive power utilization of the system, providing technical support for the intelligent operation of the power grid.
[0059] In some embodiments of this application, a simulation device for the oscillation risk of an automatic voltage control system is provided, which corresponds one-to-one with the simulation method for the oscillation risk of an automatic voltage control system described in the above embodiments. For example... Figure 7 As shown, the simulation device for the oscillation risk of the automatic voltage control system includes a setup module 101, a modification module 102, a calculation module 103, and a determination module 104.
[0060] Module 101 is used to establish BPA models for N wind farms and obtain the first DAT file, which includes the network parameters of the BPA model. Processing module 102 is used to modify the active power output values of N wind farms in the first DAT file using Matlab to obtain the second DTA file; Calculation module 103 is used to perform power flow calculations based on the second DTA file and generate a first PFO file; The processing module 102 is also used to modify the reactive power of N wind farms in the second DTA file based on the voltage of each node in the wind power centralized access area in the first PFO file, and generate a third DTA file. The calculation module 103 is also used to perform power flow calculations based on the third DTA file to obtain the second PFO file; The determination module 104 is used to determine the oscillation risk of the voltage control system based on the second PFO file.
[0061] In some embodiments of this application, in the above-described apparatus, the processing module 102 is specifically used to obtain the correspondence between the real name information and the pseudonym information of N wind farms; match the pseudonym information and the real name information of each wind farm in the first DAT file based on the correspondence; modify the active power output value of the successfully matched wind farms, and obtain the second DTA file.
[0062] In some embodiments of this application, in the above-described apparatus, the processing module 102 is specifically used to determine the starting position of the active power output value of each wind farm; preprocess the active power output value in the first DTA file; replace the preprocessed active power output value with the starting position; and obtain the second DTA file.
[0063] In some embodiments of this application, in the above-described apparatus, the processing module 102 is specifically used to adjust the active power output value to a preset value or round down. Convert the adjusted active power output value into a string and set the string length to a preset length.
[0064] In some embodiments of this application, in the above-described apparatus, the processing module 102 is specifically used to monitor that the node voltage of the wind power centralized access area in the first PFO file exceeds the voltage threshold, and adjust the reactive power of the wind farm in the second DTA file according to a preset rule.
[0065] In some embodiments of this application, in the above-described apparatus, the processing module 102 is specifically used to reduce the reactive power of the wind farm if the difference between the node voltage and the voltage threshold is greater than a preset difference and the node voltage is greater than a preset voltage; or to increase the reactive power of the wind farm if the difference between the node voltage and the voltage threshold is greater than a preset difference and the node voltage is less than a preset voltage.
[0066] In some embodiments of this application, in the above-described apparatus, the processing module 102 is further configured to define PV nodes in the PFO file using a BQ card, and automatically convert them to PQ nodes according to reactive power outage conditions; define PQ nodes using a BT card, and control the node voltage through a load-regulating transformer.
[0067] It should be noted that any of the above-mentioned simulation devices for the oscillation risk of automatic voltage control systems can be used to implement the aforementioned simulation method for the oscillation risk of automatic voltage control systems, which will not be elaborated here.
[0068] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Figure 8 As shown, at the hardware level, this electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or it may include non-volatile memory, such as at least one disk drive. Of course, this electronic device may also include other hardware required for other business operations.
[0069] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0070] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.
[0071] The processor reads the corresponding computer program from non-volatile memory into main memory and then runs it, forming a simulation device at the logical level to simulate the oscillation risk of an automatic voltage control system. The processor executes the program stored in memory and specifically performs the aforementioned methods.
[0072] The processor may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0073] This electronic device can execute a simulation method for oscillation risk of an automatic voltage control system provided in several embodiments of this application, and can be implemented as a simulation device for oscillation risk of an automatic voltage control system. Figure 7 The functions of the embodiments shown are not described in detail here.
[0074] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by an electronic device including multiple applications, enable the electronic device to perform a simulation method for oscillation risk of an automatic voltage control system provided in several embodiments of this application.
[0075] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0077] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0078] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0080] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0081] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0082] It should also be noted that 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 limitation, 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.
[0083] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A simulation method for the oscillation risk of an automatic voltage control system, characterized in that, The method includes: Establish BPA models for N wind farms and obtain the first DAT file, which includes the network parameters of the BPA model. The active power output values of N wind farms in the first DAT file are modified using Matlab to obtain the second DTA file. Power flow calculations are performed based on the second DTA file to generate the first PFO file; Based on the voltage of each node in the wind power centralized access area in the first PFO file, modify the reactive power of N wind farms in the second DTA file to generate the third DTA file. Power flow calculations are performed based on the third DTA file to obtain the second PFO file; Based on the second PFO file, the oscillation risk of the voltage control system is determined.
2. The method according to claim 1, characterized in that, The step of modifying the active power output values of N wind farms in the first DAT file using Matlab to obtain the second DTA file includes: Obtain the correspondence between real-name information and pseudonym information for N wind farms; Based on the aforementioned correspondence, the pseudonym information and real name information of each wind farm in the first DAT file are matched. Modify the active power output value of the successfully matched wind farm to obtain the second DTA file.
3. The method according to claim 2, characterized in that, The process of modifying the active power output value of the successfully matched wind farm to obtain the second DTA file includes: Determine the starting point for the active power output of each wind farm; The active power output values in the first DTA file are preprocessed, and the preprocessed active power output values are replaced at the starting position to obtain the second DTA file.
4. The method according to claim 3, characterized in that, The preprocessing of the active power output values in the first DTA file includes: Adjust the active power output value to the preset value or round it down; Convert the adjusted active power output value into a string and set the string length to a preset length.
5. The method according to claim 1, characterized in that, The process of modifying the reactive power of N wind farms in the second DTA file based on the node voltages of the wind power centralized access area in the first PFO file to generate the third DTA file includes: If the node voltage of the wind power centralized access area in the first PFO file exceeds the voltage threshold, the reactive power of the wind farm in the second DTA file is adjusted according to the preset rules.
6. The method according to claim 5, characterized in that, The adjustment of the reactive power of the wind farm in the second DTA file according to preset rules includes: If the difference between the node voltage and the voltage threshold is greater than a preset difference, and the node voltage is greater than a preset voltage, the reactive power of the wind farm is reduced; or If the difference between the node voltage and the voltage threshold is greater than a preset difference, and the node voltage is less than a preset voltage, the reactive power of the wind farm is increased.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: In the PFO file, PV nodes are defined using BQ cards and automatically converted to PQ nodes based on reactive power outage conditions. The PQ node is defined using a BT card, and the node voltage is controlled by a load-regulating transformer.
8. A simulation device for the oscillation risk of an automatic voltage control system, characterized in that, The device includes: A module is established to build BPA models for N wind farms and obtain the first DAT file, which includes the network parameters of the BPA model. The modification module is used to modify the active power output values of N wind farms in the first DAT file using Matlab to obtain the second DTA file; The calculation module is used to perform power flow calculations based on the second DTA file and generate the first PFO file; The modification module is also used to modify the reactive power of N wind farms in the second DTA file based on the voltage of each node in the wind power centralized access area in the first PFO file, and generate a third DTA file. The calculation module is also used to perform power flow calculations based on the third DTA file to obtain the second PFO file; The determination module is used to determine the oscillation risk of the voltage control system based on the second PFO file.
9. An electronic device, comprising: processor; as well as A memory configured to store computer-executable instructions, characterized in that, when executed, the executable instructions cause the processor to perform the steps of the simulation method for the oscillation risk of an automatic voltage control system as described in any one of claims 1-7.
10. A computer-readable storage medium storing one or more programs, characterized in that, When the one or more programs are executed by an electronic device including multiple applications, the electronic device performs the steps of the simulation method for the oscillation risk of an automatic voltage control system as described in any one of claims 1-7.
Citation Information
Patent Citations
Regional power grid voltage and reactive power automatic control system
CN102290818A
Reactive voltage control simulation system and method based on power grid regulation and control integrated mode
CN103454928A
Method for calculating power flow of power system containing IPFC through MATLAB and BPA combined simulation
CN111064197A
Stochastic load flow calculation method for large-scale power system based on PSD-BPA
CN112217215A
Power grid automatic voltage control simulation method based on continuous power flow simulation
CN112865108A