Self-adaptive step size integration method suitable for dynamic simulation of power system
By constructing the power angle equation based on the idea of variable substitution in the power system dynamic simulation, evaluating the error, and dynamically adjusting the simulation step size, the contradiction between calculation efficiency and accuracy in the power system simulation is solved, and a more efficient simulation process is achieved.
Patent Information
- Application Number
- CN202410679620.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, there is a contradiction between computational efficiency and simulation accuracy in power system dynamic simulation. In particular, the simulation step size of large-scale power systems is too small, resulting in excessive computational burden.
The equation of the power angle of the synchronous generator is constructed based on the idea of variable substitution, and the adaptive adjustment of the simulation step is realized through power angle error evaluation. The state variables and algebraic variables are updated using the implicit trapezoidal method, and the time step is dynamically adjusted to balance Computational efficiency and simulation accuracy.
It effectively reduces the computational burden of power system dynamic simulation, improves simulation accuracy and efficiency, realizes adaptive changes in simulation step size, and resolves the contradiction between computational efficiency and simulation accuracy.
Smart Images

Figure CN118690533A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power system simulation, in particular to an adaptive step-length integration method suitable for power system dynamic simulation. Background Art
[0002] Dynamic simulation of power systems over a long period of time is an important issue of general concern in the power industry. The increasing demand for electricity may cause the power system to be unable to operate under the conditions originally designed, and it is easy to lose stability and may cause serious accidents. Dynamic simulation is often used in industry and academia to check the response of power systems to disturbances. In the past few decades, dynamic simulation has become indispensable for any researcher involved in the planning, design, operation and safety of power systems. Power system operating companies rely on fast and accurate dynamic simulation to train operators, analyze a large number of scenarios, and evaluate the dynamic safety of power networks in real time or arrange operation plans in advance. On the other hand, researchers designing future power systems rely on dynamic simulation to evaluate the impact of changes in power networks, including adding new transmission lines and increasing renewable energy. In essence, power system dynamic simulation is a problem of solving differential algebraic equations of power systems. Usually, numerical integration methods are used to discretize differential equations, and algebraic equations are solved by the Newton-Raphson method, and then state variables and algebraic variables are continuously updated until the maximum simulation time. Therefore, in order to better balance the contradiction between computational efficiency and simulation accuracy, it is necessary to design a strategy for adaptively changing the simulation step size according to the error of the state variable itself.
[0003] However, the common solutions currently available have many disadvantages, including: the implicit trapezoidal method is widely used in dynamic simulation of power systems due to its high stability, high accuracy and high computational efficiency; the smaller the simulation step size of the implicit trapezoidal method, the more accurate the dynamic simulation results, but this will create a heavy computational burden for large-scale power systems. Summary of the invention
[0004] In view of the fact that in the prior art, when performing dynamic simulation on a power system, a large computational burden will be generated for a large-scale power system, and there is a contradiction between computational efficiency and simulation accuracy, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is how to provide a method for constructing an equation about the power angle based on the idea of variable substitution and performing error evaluation to achieve adaptive change of the simulation step length.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In the first aspect, an embodiment of the present invention provides an adaptive step integration method suitable for dynamic simulation of power systems, which includes collecting relevant data of the power system, constructing and initializing a differential algebraic equation group of the power system to obtain an initialized differential algebraic equation group; constructing the power angle of the synchronous generator based on the idea of variable substitution; fusing the power angle of the synchronous generator and the initialized differential algebraic equation group to obtain an improved differential algebraic equation group; calculating the power angle error using the time step of dynamic simulation and making a judgment based on the power angle error to obtain the final time step of dynamic simulation; discretizing based on the final dynamic simulation time step and the differential algebraic equation group of the power system to obtain a nonlinear algebraic equation group and calculating the Jacobian matrix of the nonlinear algebraic equation group.
[0008] As a preferred scheme of the adaptive step integration method suitable for dynamic simulation of power system described in the present invention, wherein: the relevant data of the power system includes the state variables of the power system and the algebraic variables of the power system; the state variables of the power system include the power angle of the synchronous generator, the speed of the synchronous generator, the electromagnetic power of the synchronous generator and the transient potential; the algebraic variables of the power system include the voltage amplitude and voltage phase angle of the node.
[0009] As a preferred solution of the adaptive step-size integration method suitable for dynamic simulation of power system described in the present invention, the calculation formula of the power angle of the synchronous generator is as follows:
[0010]
[0011] Where, δ is the power angle of the synchronous generator; ω s is the rated speed of the synchronous generator; ω is the speed of the synchronous generator.
[0012] As a preferred solution of the adaptive step-size integration method suitable for dynamic simulation of power system described in the present invention, the calculation formula of the rated speed of the synchronous generator and the speed of the synchronous generator is as follows:
[0013]
[0014] Among them, e is the cosine value of the synchronous generator power angle; f is the sine value of the synchronous generator power angle.
[0015] As a preferred solution of the adaptive step-size integration method suitable for dynamic simulation of power system described in the present invention, the improved differential algebraic equation group is obtained by adding the rated speed of the synchronous generator and the speed of the synchronous generator to the initialized differential algebraic equation group, and the calculation formula of the improved differential algebraic equation group is as follows:
[0016]
[0017] 0 = g(x,y)
[0018] x(0)=x0, y(0)=y0, e(0)=e0, f(0)=f0
[0019] Among them, e0 is the cosine value of the synchronous generator power angle in steady state; f0 is the sine value of the synchronous generator power angle in steady state.
[0020] As a preferred solution of the adaptive step-size integration method suitable for dynamic simulation of power system described in the present invention, wherein: the power angle error is calculated by using the time step of dynamic simulation to calculate the cosine value of the power angle of the synchronous generator and the sine value of the power angle of the synchronous generator by using the time step of dynamic simulation, and then the power angle error is calculated; the calculation formula for calculating the cosine value of the power angle of the synchronous generator and the sine value of the power angle of the synchronous generator is as follows:
[0021] e(t2)=e(t1)-hω s ω(t1)f(t1)
[0022] f(t2)=f(t1)+hω s ω(t1)e(t1)
[0023] e(t2) 2 +f(t2) 2 =1
[0024] Wherein, e(t2) is the value of the cosine value of the synchronous generator power angle at time t2; e(t1) is the value of the cosine value of the synchronous generator power angle at time t1; h is the time step of dynamic simulation; ω s is the rated speed of the synchronous generator; ω(t1) is the speed of the synchronous generator at time t1; f(t1) is the sine value of the power angle of the synchronous generator at time t1; f(t2) is the sine value of the power angle of the synchronous generator at time t2; the power angle error is calculated as follows:
[0025] error=e(t2) 2 +f(t2) 2 -1
[0026] Among them, error is the power angle error.
[0027] As a preferred scheme of the adaptive step integration method suitable for dynamic simulation of power system described in the present invention, the judgment based on the power angle error includes the following steps: inputting the time step of dynamic simulation; calculating the power angle error according to the time step of dynamic simulation; judging whether the power angle error is small enough, if the power angle error is greater than a first threshold, reducing the time step of dynamic simulation, and re-calculating the power angle error according to the time step of dynamic simulation; if the power angle error is less than or equal to the first threshold, proceeding to the next step; updating the state variables of the power system and the algebraic variables of the power system based on the implicit trapezoidal method; judging whether the set simulation time is reached, if the set simulation time is not reached, updating the simulation time, and re-entering the time step of dynamic simulation; if the set simulation time has been reached, ending the judgment process and obtaining the final time step of dynamic simulation.
[0028] In the second aspect, in order to further solve the safety problems existing in the dynamic simulation of the power system, the embodiment of the present invention provides an adaptive step-size integration system suitable for the dynamic simulation of the power system, which includes: an equation construction module, which is used to collect relevant data of the power system, construct an initialized differential algebraic equation group, and construct the power angle of the synchronous generator based on the variable substitution idea, and obtain an improved differential algebraic equation group according to the power angle of the synchronous generator and the initialized differential algebraic equation group; a parameter adjustment module, which is used to calculate the power angle error using the time step of the dynamic simulation, and adjust the time step of the dynamic simulation according to the power angle error and the set simulation time to obtain the final dynamic simulation time step; a variable calculation module, which is used to obtain a nonlinear algebraic equation group according to the final dynamic simulation time step and the differential algebraic equation group of the power system, and calculate the Jacobian matrix of the nonlinear algebraic equation group, the power system state variables and the power system algebraic variables.
[0029] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, it implements any step of an adaptive step integration method suitable for dynamic simulation of power systems as described in the first aspect of the present invention.
[0030] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of an adaptive step integration method suitable for dynamic simulation of a power system as described in the first aspect of the present invention.
[0031] The beneficial effects of the present invention are as follows: the present invention proposes an adaptive step-size integration method suitable for dynamic simulation of power systems, constructs an equation about the power angle of a synchronous generator based on the idea of variable substitution and performs error evaluation on the power angle error, thereby better balancing the contradiction between computational efficiency and simulation accuracy and realizing adaptive changes in the simulation step size. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0033] Figure 1 This is a flow chart for implementing the present invention in Example 1.
[0034] Figure 2 This is a rotation speed comparison diagram of the synchronous generator 1 in Example 2.
[0035] Figure 3 This is a comparison diagram of the speed error of the synchronous generator 1 in Example 2.
[0036] Figure 4 This is the time step diagram corresponding to the adaptive step method in Example 2. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0039] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0040] Example 1
[0041] Reference Figure 1 , which is the first embodiment of the present invention, provides an adaptive step-size integration method suitable for dynamic simulation of power systems, comprising the following steps:
[0042] S1: Collect relevant data of the power system, construct and initialize the differential algebraic equations of the power system, and obtain the initialized differential algebraic equations.
[0043] Preferably, Figure 1 The implementation process of the present invention is shown. First, the network equation is initialized, the simulation time is set to 0, the initial dynamic simulation time step is input into the network equation and the angle of attack error is calculated, and a judgment is made based on the angle of attack error. If the angle of attack error is greater than a first threshold, the time step of the dynamic simulation is reduced and the angle of attack error is recalculated; if the angle of attack error is less than or equal to the first threshold, the state variables of the power system and the algebraic variables of the power system are updated based on the implicit trapezoidal method, and then it is judged whether the set simulation time is reached. If the set simulation time is not reached, the simulation time is updated and the time step of the dynamic simulation is re-entered for subsequent calculations; if the set simulation time has been reached, the final dynamic simulation time step is obtained.
[0044] Preferably, the relevant data of the power system include state variables of the power system and algebraic variables of the power system.
[0045] Specifically, the state variables of the power system include the power angle of the synchronous generator, the speed of the synchronous generator, the electromagnetic power of the synchronous generator, and the transient potential.
[0046] Specifically, the algebraic variables of the power system include the voltage amplitude and voltage phase angle of the node.
[0047] Furthermore, the calculation formula of the initialized differential algebraic equation system is as follows:
[0048]
[0049] 0 = g(x,y)
[0050] x(0)=x0,y(0)=y0
[0051] Among them, x is the state variable of the power system; x0 is the initial value of the state variable; y is the algebraic variable of the power system; y0 is the initial value of the algebraic variable.
[0052] S2: Construct the power angle of the synchronous generator based on the idea of variable substitution.
[0053] Preferably, the calculation formula of the power angle of the synchronous generator is as follows:
[0054]
[0055] Where, δ is the power angle of the synchronous generator; ω s is the rated speed of the synchronous generator; ω is the speed of the synchronous generator.
[0056] Specifically, based on the idea of variable substitution, let e = cosδ, f = sinδ, and the calculation formulas of the rated speed of the synchronous generator and the speed of the synchronous generator are as follows:
[0057]
[0058] Among them, e is the cosine value of the synchronous generator power angle; f is the sine value of the synchronous generator power angle.
[0059] Specifically, by using the power angle of the synchronous generator as the criterion for step size adjustment, the power angle directly reflects the instantaneous deviation between the generator and the system, more accurately predicts the dynamic behavior of the power system, and is more suitable for guiding the selection of step size.
[0060] S3: The power angle of the synchronous generator and the initialized differential algebraic equations are merged to obtain an improved differential algebraic equations.
[0061] Preferably, the improved differential algebraic equations are obtained by adding the rated speed of the synchronous generator and the speed of the synchronous generator to the initialized differential algebraic equations to obtain an improved differential algebraic equations.
[0062] Specifically, the calculation formula of the improved differential algebraic equation system is as follows:
[0063]
[0064] 0=g(x,y)
[0065] x(0)=x0, y(0)=y0, e(0)=e0, f(0)=f0
[0066] Among them, e0 is the cosine value of the synchronous generator power angle in steady state; f0 is the sine value of the synchronous generator power angle in steady state.
[0067] Specifically, the power angle is coupled with the differential equations of the system state variables through the idea of variable substitution, so that the power angle can be easily derived from the state variables and integrated into the improved differential algebraic equations, which improves the calculation efficiency and reduces resource consumption.
[0068] S4: Calculate the power angle error using the time step of the dynamic simulation and make a judgment based on the power angle error to obtain the final time step of the dynamic simulation.
[0069] Preferably, the power angle error is calculated using the time step of the dynamic simulation by calculating the cosine value of the power angle of the synchronous generator and the sine value of the power angle of the synchronous generator using the time step of the dynamic simulation, and then calculating the power angle error.
[0070] Specifically, the calculation formula for calculating the cosine value of the synchronous generator power angle and the sine value of the synchronous generator power angle is as follows:
[0071] e(t2)=e(t1)-hω s ω(t1)f(t1)
[0072] f(t2)=f(t1)+hω s ω(t1)e(t1)
[0073] e(t2) 2 +f(t2) 2 =1
[0074] Wherein, e(t2) is the value of the cosine value of the synchronous generator power angle at time t2; e(t1) is the value of the cosine value of the synchronous generator power angle at time t1; h is the time step of dynamic simulation; ω s is the rated speed of the synchronous generator; ω(t1) is the speed of the synchronous generator at time t1; f(t1) is the sine value of the power angle of the synchronous generator at time t1; f(t2) is the sine value of the power angle of the synchronous generator at time t2.
[0075] Furthermore, the calculation formula of the power angle error is as follows:
[0076] error=e(t2) 2 +f(t2) 2 -1
[0077] Among them, error is the power angle error.
[0078] Specifically, judging according to the power angle error includes the following steps: inputting a time step of the dynamic simulation.
[0079] The power angle error is calculated based on the time step of the dynamic simulation.
[0080] Determine whether the power angle error is small enough. If the power angle error is greater than the first threshold, reduce the time step of the dynamic simulation and recalculate the power angle error according to the time step of the dynamic simulation; if the power angle error is less than or equal to the first threshold, proceed to the next step.
[0081] The state variables and algebraic variables of the power system are updated based on the implicit trapezoidal method.
[0082] Determine whether the set simulation time has been reached. If not, update the simulation time and re-enter the time step of the dynamic simulation. If the set simulation time has been reached, end the judgment process and obtain the final time step of the dynamic simulation.
[0083] Furthermore, the calculation formula for updating the simulation time is as follows:
[0084] t=t+h
[0085] Among them, t is the set simulation time.
[0086] Specifically, for the first threshold for determining the power angle error, an initial threshold is set and the size of the time step of the dynamic simulation is determined. The initial threshold is dynamically adjusted according to demand to obtain the optimal time step of the dynamic simulation, and then the final first threshold is obtained.
[0087] Specifically, by using the time step of the dynamic simulation to calculate the power angle error, as long as the time step of the dynamic simulation is small enough, the value of the power angle error will also be small. The required dynamic simulation time step can be calculated based on the maximum allowable power angle error.
[0088] S5: Discretize the power system differential algebraic equations based on the final dynamic simulation time step to obtain a nonlinear algebraic equation system and calculate the Jacobian matrix of the nonlinear algebraic equation system.
[0089] Preferably, the calculation formula of the nonlinear algebraic equation system is as follows:
[0090]
[0091] 0=g(x(t2),y(t2))
[0092] Among them, x(t2) is the value of the power system state variable at time t2; x(t1) is the value of the power system state variable at time t1; y(t1) is the value of the power system algebraic variable at time t1; y(t2) is the value of the power system algebraic variable at time t2.
[0093] Specifically, calculating the Jacobian matrix of the nonlinear algebraic equation group includes calculating the Jacobian matrix of the nonlinear algebraic equation group, and calculating the values of the power system state variables at time t2 and the values of the power system algebraic variables at time t2 according to the Newton-Raphson method.
[0094] Specifically, by discretizing the differential algebraic equations of the power system and calculating the corresponding nonlinear algebraic equations and Jacobian matrix, a data basis is provided for the subsequent calculation of the system state using the Newton-Raphson iteration method, thereby improving the accuracy of the discrete equations.
[0095] This embodiment also provides an adaptive step-size integration system suitable for dynamic simulation of power systems, including: an equation construction module, which is used to collect relevant data of the power system, construct an initialized differential algebraic equation group, and construct the power angle of the synchronous generator based on the idea of variable substitution, and obtain an improved differential algebraic equation group according to the power angle of the synchronous generator and the initialized differential algebraic equation group; a parameter adjustment module, which is used to calculate the power angle error using the time step of the dynamic simulation, and adjust the time step of the dynamic simulation according to the power angle error and the set simulation time to obtain the final dynamic simulation time step; a variable calculation module, which is used to obtain a nonlinear algebraic equation group according to the final dynamic simulation time step and the differential algebraic equation group of the power system, and calculate the Jacobian matrix of the nonlinear algebraic equation group, the power system state variables and the power system algebraic variables.
[0096] This embodiment also provides a computer device, which is applicable to an adaptive step-size integration method applicable to dynamic simulation of power systems, and includes: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute computer-executable instructions to implement an adaptive step-size integration method applicable to dynamic simulation of power systems as proposed in the above embodiment.
[0097] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0098] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, an adaptive step-size integration method suitable for dynamic simulation of a power system as proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0099] In summary, the present invention proposes an adaptive step-size integration method suitable for dynamic simulation of power systems. Based on the idea of variable substitution, an equation about the power angle of the synchronous generator is constructed and the power angle error is evaluated, so as to better balance the contradiction between computational efficiency and simulation accuracy and realize adaptive change of the simulation step size.
[0100] Example 2
[0101] Reference Figure 2 to Figure 4 , which is the second embodiment of the present invention. This embodiment is different from the first embodiment in that, in order to verify its beneficial effects, experimental comparison data between the present invention and the prior art are provided.
[0102] This example uses the IEEE 9-bus system as an example for simulation verification, including 3 synchronous generators. The load adopts a constant impedance model. The total simulation time of the system is 5s. At 0.1 seconds, a three-phase short circuit fault occurs on bus 5. At 0.2 seconds, the relay protection action cuts off line 4-5. The maximum allowable error err_max is 1e -4 , where the steady-state parameters of the IEEE 9-bus system are shown in Table 1, including the active power P of the load L0 and reactive power Q L0 and voltage amplitude V0, as shown in Table 2, are the parameters of the generator in the IEEE 9-bus system, providing a data basis for subsequent simulation verification.
[0103] Table 1 Steady-state parameters
[0104] node <![CDATA[Active power P L0 (MW)]]> <![CDATA[Reactive power Q L0 (Mvar)]]> <![CDATA[Voltage amplitude V0]]> 1 0 0 1.04 2 0 0 1.025 3 0 0 1.025 4 0 0 1.026 5 90 30 1.013 6 0 0 1.032 7 100 35 1.016 8 0 0 1.023 9 125 50 0.996
[0105] Table 2 Generator parameters
[0106] dynamo node <![CDATA[Damping coefficient D i > <![CDATA[Winding resistance R ai > <![CDATA[Angular velocity ω in synchronization s > <![CDATA[Inertia constant H i > <![CDATA[Direct-axis synchronization X di > 1 1 0.0125 0.0041 120π 23.64 0.0608 2 2 0.0068 0.0026 120π 6.40 0.1198 3 3 0.0048 0.0035 120π 3.01 0.1813
[0107] like Figure 2 The figure shows a comparison between the rotational speed of the synchronous generator 1 obtained by the method provided by the present invention and the rotational speed of the synchronous generator 1 obtained by the implicit trapezoidal method with a fixed step length of 1 ms. It can be seen from the figure that the rotational speed of the synchronous generator 1 obtained by the method provided by the present invention and the rotational speed of the synchronous generator 1 obtained by the implicit trapezoidal method with a fixed step length of 1 ms have the same accuracy.
[0108] like Figure 3 The figure shows a comparison between the rotational speed of the synchronous generator 1 obtained by the method provided by the present invention and the rotational speed of the synchronous generator 1 obtained by the implicit trapezoidal method with a fixed step length of 10 ms. The implicit trapezoidal method with a fixed step length of 1 ms is used as the standard value. It can be seen from the figure that the rotational speed error of the synchronous generator 1 obtained by the method provided by the present invention is much smaller than the rotational speed error of the synchronous generator 1 obtained by the implicit trapezoidal method with a fixed step length of 10 ms.
[0109] like Figure 4 The figure shows the time step corresponding to each simulation step obtained by the method provided by the present invention. It can be seen from the figure that the method provided by the present invention can adaptively adjust the simulation step in the whole simulation process, so as to better balance the computational efficiency and simulation accuracy. Although the traditional fixed-step implicit trapezoidal method has high accuracy when taking a 1ms step, the whole simulation process requires 5000 integrations. If a 10ms step is taken, the whole simulation process only requires 1000 integrations, but the accuracy is greatly reduced at this time. Therefore, the contradiction between computational efficiency and simulation accuracy is difficult to resolve in the traditional fixed-step implicit trapezoidal method. The present invention can better balance the contradiction between computational efficiency and simulation accuracy and realize adaptive change of simulation step.
[0110] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. An adaptive step-size integration method suitable for dynamic simulation of power systems, characterized in that: include: Collect relevant data of the power system, construct and initialize the differential algebraic equation group of the power system, and obtain the initialized differential algebraic equation group; Construct the power angle of synchronous generator based on the idea of variable substitution; The power angle of the synchronous generator and the initialized differential algebraic equation group are merged to obtain an improved differential algebraic equation group; The power angle error is calculated using the time step of the dynamic simulation and a judgment is made based on the power angle error to obtain the final time step of the dynamic simulation; Discretization is performed based on the final dynamic simulation time step and the power system differential algebraic equation group to obtain a nonlinear algebraic equation group and the Jacobian matrix of the nonlinear algebraic equation group is calculated.
2. The adaptive step-size integration method for power system dynamic simulation according to claim 1, characterized in that: The relevant data of the power system include state variables of the power system and algebraic variables of the power system; The state variables of the power system include the power angle of the synchronous generator, the speed of the synchronous generator, the electromagnetic power of the synchronous generator and the transient potential; The algebraic variables of the power system include voltage amplitudes and voltage phase angles of nodes.
3. The adaptive step-size integration method for power system dynamic simulation according to claim 2, characterized in that: The calculation formula of the power angle of the synchronous generator is as follows: Where, δ is the power angle of the synchronous generator; ω s is the rated speed of the synchronous generator; ω is the speed of the synchronous generator.
4. The adaptive step-size integration method for power system dynamic simulation according to claim 3, characterized in that: The calculation formula of the rated speed of the synchronous generator and the speed of the synchronous generator is as follows: Among them, e is the cosine value of the synchronous generator power angle; f is the sine value of the synchronous generator power angle.
5. The adaptive step-size integration method for power system dynamic simulation according to claim 4, characterized in that: The improved differential algebraic equation group is obtained by adding the rated speed of the synchronous generator and the speed of the synchronous generator to the initialized differential algebraic equation group, thereby obtaining a set of improved differential algebraic equation groups; The calculation formula of the improved differential algebraic equation system is as follows: 0 = g(x,y) x(0)=x0, y(0)=y0, e(0)=e0, f(0)=f0 Among them, e0 is the cosine value of the synchronous generator power angle in steady state; f0 is the sine value of the synchronous generator power angle in steady state.
6. The adaptive step-size integration method for power system dynamic simulation according to claim 5, characterized in that: The method of calculating the power angle error by using the time step of the dynamic simulation is to calculate the cosine value of the power angle of the synchronous generator and the sine value of the power angle of the synchronous generator by using the time step of the dynamic simulation, and then calculate the power angle error; The calculation formula for calculating the cosine value of the synchronous generator power angle and the sine value of the synchronous generator power angle is as follows: e(t2)=e(t1)-hω s ω(t1)f(t1) f(t2)=f(t1)+hω s ω(t1)e(t1) e(t2) 2 +f(t2) 2 =1 Wherein, e(t2) is the value of the cosine value of the synchronous generator power angle at time t2; e(t1) is the value of the cosine value of the synchronous generator power angle at time t1; h is the time step of dynamic simulation; ω s is the rated speed of the synchronous generator; ω(t1) is the speed of the synchronous generator at time t1; f(t1) is the sine value of the power angle of the synchronous generator at time t1; f(t2) is the sine value of the power angle of the synchronous generator at time t2; The calculation formula of the power angle error is as follows: error=e(t2) 2 +f(t2) 2 -1 Among them, error is the power angle error.
7. The adaptive step-size integration method for power system dynamic simulation according to claim 6, characterized in that: The determination according to the power angle error comprises the following steps: Enter the time step for dynamic simulation; Calculate the power angle error according to the time step of dynamic simulation; Determine whether the power angle error is small enough. If the power angle error is greater than the first threshold, reduce the time step of the dynamic simulation, and recalculate the power angle error according to the time step of the dynamic simulation; if the power angle error is less than or equal to the first threshold, proceed to the next step; Updating state variables of the power system and algebraic variables of the power system based on implicit trapezoidal method; Determine whether the set simulation time has been reached. If not, update the simulation time and re-enter the time step of the dynamic simulation. If the set simulation time has been reached, end the judgment process and obtain the final time step of the dynamic simulation.
8. An adaptive step-size integration system suitable for power system dynamic simulation, based on an adaptive step-size integration method suitable for power system dynamic simulation according to any one of claims 1 to 7, characterized in that: include, An equation building module is used to collect relevant data of the power system, build an initialized differential algebraic equation group, and build the power angle of the synchronous generator based on the idea of variable substitution, and obtain an improved differential algebraic equation group according to the power angle of the synchronous generator and the initialized differential algebraic equation group; A parameter adjustment module is used to calculate the power angle error using the time step of the dynamic simulation, and to make a judgment based on the power angle error and the set simulation time, and adjust the time step of the dynamic simulation to obtain the final time step of the dynamic simulation; The variable calculation module is used to obtain a nonlinear algebraic equation group according to the final dynamic simulation time step and the power system differential algebraic equation group, and calculate the Jacobian matrix of the nonlinear algebraic equation group, the power system state variables and the power system algebraic variables.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of an adaptive step-size integration method suitable for dynamic simulation of a power system as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of an adaptive step-size integration method suitable for dynamic simulation of a power system as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Short-line power distribution network parallel simulation method and device based on long transmission delay, equipment and medium
CN120068422A
Power system time domain simulation method based on Jacobian matrix adaptive updating
CN121435531A
Static var generator adaptive step size electromechanical transient simulation method and system
CN122263750A
