Double-fed variable speed pumped storage unit dynamic modeling method and device, electronic equipment and medium

By constructing an initial electromechanical transient coupling model using global basic parameters, and combining hydraulic system characteristic data and stability analysis, the inertial time constant of the water flow was optimized. This solved the problems of hydraulic characteristic differences and insufficient stability in the modeling of doubly-fed variable-speed pumped storage units, and achieved high-precision dynamic modeling and simulation analysis.

CN123184081APending Publication Date: 2026-11-27STATE GRID ECONOMIC TECH RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611011170.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-08
Publication Date
2026-11-27

Smart Images

  • Figure CN123184081A_ABST
    Figure CN123184081A_ABST
Patent Text Reader

Abstract

The specification belongs to the technical field of power system regulation, and provides a dynamic modeling method and device for double-fed variable-speed pumped storage units, an electronic equipment and a medium. The method comprises the following steps: obtaining global basic parameters of the double-fed variable-speed pumped storage unit, and performing typical working condition dynamic modeling on the double-fed variable-speed pumped storage unit to obtain an initial electromechanical transient coupling model; performing port-controlled Hamilton standard form reconstruction and stability analysis on a hydraulic system according to hydraulic operation parameters and in combination with the initial electromechanical transient coupling model to obtain characteristic data of the hydraulic system; establishing a comprehensive cost objective function, and solving the comprehensive cost objective function according to the characteristic data of the hydraulic system to obtain an optimal water flow inertia time constant; and loading the optimal water flow inertia time constant into the initial electromechanical transient coupling model to obtain a final electromechanical transient coupling model. The scheme improves the simulation precision, stability analysis reliability and engineering adaptation capability of the electromechanical transient coupling model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of power system control technology, and in particular to a dynamic modeling method, device, electronic equipment and medium for doubly-fed variable-speed pumped-storage units. Background Technology

[0002] Currently, pumped storage power stations are the core regulating power source for realizing the consumption of new energy sources and peak shaving and valley filling in new power systems. Doubly fed variable speed pumped storage units are widely used due to their advantages of flexible operating condition switching and wide power regulation range. During the operation of the unit, there are simultaneous hydraulic fluid dynamics, mechanical transmission dynamics, and electrical transient responses. The strong coupling characteristics of multiple links in water, electromechanical, and electrical systems are significant. Hydraulic parameters such as water flow inertia and water hammer effect directly affect the transient stability of the unit connected to the grid. Traditional modeling methods simply give fixed water flow inertia parameters without distinguishing the differences in hydraulic characteristics under different water conveyance structures and operating conditions. It is difficult to accurately depict the dynamic evolution process of the unit under a wide range of variable operating conditions, and the simulation results of the model deviate significantly from the actual operating characteristics of the power station.

[0003] In related technologies, the stability analysis of pumped-storage unit hydraulic systems often employs the classical Lyapunov function. This analytical tool is only applicable to the system's zero equilibrium point and cannot be adapted to non-zero steady-state operating points such as unit power generation and pumping under load, making it difficult to complete large-scale asymptotic stability verification under typical operating conditions. Furthermore, current technologies lack quantitative optimization methods for the water flow inertia time constant, relying solely on engineering experience to select parameters without considering the investment cost of the water conveyance system and the stable operation risks under unit disturbances. This makes it impossible to obtain optimal hydraulic parameters that balance economic efficiency and transient stability, resulting in insufficient engineering adaptability of the constructed electromechanical coupling model.

[0004] After the basic model is built in the conventional dynamic modeling process, there is a lack of a standardized parameter optimization closed-loop process. The key hydraulic parameters in the basic electromechanical transient coupling model have not been corrected by theoretical optimal solution. If they are directly used for simulation analysis, there will be problems with the calculation of transient oscillation amplitude and operating condition switching response speed. This results in obvious defects in model accuracy, reliability and engineering practical value, and cannot meet the requirements of high-precision analysis scenarios such as power grid transient simulation and unit control strategy optimization. Summary of the Invention

[0005] In view of this, the embodiments of this specification provide a dynamic modeling method, device, electronic equipment and medium for doubly-fed variable-speed pumped-storage units to solve the technical defects existing in the prior art.

[0006] According to a first aspect of the embodiments of this specification, a dynamic modeling method for a doubly-fed variable-speed pumped-storage unit is provided, comprising: The full-domain basic parameters of the doubly-fed variable-speed pumped-storage unit are obtained, and the doubly-fed variable-speed pumped-storage unit is dynamically modeled under typical operating conditions based on the full-domain basic parameters to obtain the initial electromechanical transient coupling model. The hydraulic operating parameters of the hydraulic system in which the doubly fed variable speed pumped storage unit is located are obtained. Based on the hydraulic operating parameters and the initial electromechanical transient coupling model, the port-controlled Hamiltonian canonical form reconstruction and stability analysis of the hydraulic system are performed to obtain the hydraulic system characteristic data. A comprehensive cost objective function is established, and the comprehensive cost objective function is solved based on the characteristic data of the hydraulic system to obtain the optimal flow inertia time constant; The optimal water flow inertia time constant is loaded into the initial electromechanical transient coupling model to obtain the final electromechanical transient coupling model of the doubly fed variable speed pumped storage unit.

[0007] In one possible implementation, the doubly-fed variable-speed pumped-storage unit is dynamically modeled under typical operating conditions based on the global fundamental parameters to obtain an initial electromechanical transient coupling model, including: Based on the hydraulic parameters in the global basic parameters, a turbine system model and a pump system model are built respectively. The turbine system model is used to characterize the joint dynamic characteristics of the water intake system and the turbine body, and the pump system model is used to characterize the hydraulic coupling relationship and operating efficiency under pumping conditions. Based on the electrical parameters of the doubly-fed motor in the global basic parameters, a transient model of the doubly-fed motor is built. The transient model of the doubly-fed motor is used to characterize the correlation between the active power, reactive power and rotor current components of the AC excitation doubly-fed motor. Based on the global basic parameters of the converter in the global basic parameters, a transient and decoupling control model of the converter is built. The transient and decoupling control model of the converter is used to characterize the electrical transient response process and decoupling control strategy of the generator-side and grid-side converters. The turbine system model, pump system model, doubly fed generator transient model, and converter transient and decoupled control model are integrated to form an initial electromechanical transient coupling model.

[0008] In one possible implementation, the converter transient and decoupling control model includes: The transient model of the machine-side converter is used to characterize the instantaneous changes and electrical response characteristics of various electrical quantities under dynamic operating conditions during the interaction between the machine-side converter and the rotor winding of the doubly fed motor. A decoupled control model for the generator side is used for the decoupled control of the generator's active power, reactive power, and operating speed. The transient model of the grid-side converter is used to characterize the instantaneous dynamic changes of the port electrical parameters and the transient energy transfer process of the grid-side converter when energy flows bidirectionally. A grid-side decoupling control model is used to decompose the grid-side current component based on voltage-oriented vector control.

[0009] In one possible implementation, based on the hydraulic operating parameters and in conjunction with the initial electromechanical transient coupling model, a port-controlled Hamiltonian canonical form reconstruction and stability analysis of the hydraulic system are performed to obtain hydraulic system characteristic data, including: Based on the hydraulic operating parameters, the mathematical equations of the hydraulic subsystem are extracted from the initial electromechanical transient coupling model; Combining the pre-obtained nonlinear characteristics of rigid water hammer, flow characteristics, and pipe friction resistance characteristics, the mathematical equations of the hydraulic subsystem are reconstructed into a port-controlled Hamiltonian canonical form model. Using the hydraulic momentum of the water column in the water intake pipe as a state variable, a shifted Lyapunov function is constructed. Based on the shifted Lyapunov function, an asymptotic stability analysis of the hydraulic system at a non-zero equilibrium point is performed to obtain the stability analysis results. Determine the correlation between the inertial time constant of the water flow and the energy decay coefficient of the system, analyze the influence of the inertial time constant of the water flow on the system's steady domain and dynamic response, and output parameter influence information; The port-controlled Hamiltonian canonical form model, stability analysis results, and parameter influence information are used as characteristic data of the hydraulic system.

[0010] In one possible implementation, a comprehensive cost objective function is established, and the comprehensive cost objective function is solved based on the hydraulic system characteristic data to obtain the optimal flow inertia time constant, including: Using the inertial time constant of water flow as the independent variable and the comprehensive operating cost, which includes the economic cost of engineering construction and the cost of operational stability risk, as the dependent variable, a comprehensive cost objective function is constructed. Based on the hydraulic system characteristic data, the first derivative of the comprehensive cost objective function is solved with the flow inertia time constant as the variable. The first derivative value is set to zero to obtain the optimal expression for the flow inertia time constant. The optimal water flow inertia time constant expression is obtained by solving the expression.

[0011] In one possible implementation, the method further includes: The final electromechanical transient coupling model was simulated and tested under various typical test conditions.

[0012] In one possible implementation, the final electromechanical transient coupling model is simulated and tested under various typical test conditions, including: A simulation test environment was established by setting up various typical test conditions, including steady-state operation of the unit, switching between multiple operating conditions, and power step disturbances. The final electromechanical transient coupling model is imported into the simulation test environment, and simulation calculations are performed sequentially under various typical test conditions and disturbance scenarios to obtain simulation results. Based on the simulation results, the dynamic performance, stability, and power regulation capability of the final electromechanical transient coupling model are verified, and the test results are output.

[0013] According to a second aspect of the embodiments of this specification, a dynamic modeling device for a doubly-fed variable-speed pumped-storage unit is provided, comprising: The modeling module is used to obtain the global basic parameters of the doubly-fed variable speed pumped storage unit, and to perform dynamic modeling of the doubly-fed variable speed pumped storage unit under typical operating conditions based on the global basic parameters, so as to obtain the initial electromechanical transient coupling model. The analysis module is used to obtain the hydraulic operating parameters of the hydraulic system in which the doubly fed variable speed pumped storage unit is located. Based on the hydraulic operating parameters and combined with the initial electromechanical transient coupling model, the hydraulic system is reconstructed and its stability is analyzed by port-controlled Hamiltonian canonical form to obtain hydraulic system characteristic data. The solution module is used to establish a comprehensive cost objective function and solve the comprehensive cost objective function based on the hydraulic system characteristic data to obtain the optimal flow inertia time constant; The output module is used to load the optimal water flow inertia time constant into the initial electromechanical transient coupling model to obtain the final electromechanical transient coupling model of the doubly fed variable speed pumped storage unit.

[0014] According to a third aspect of the embodiments of this specification, an electronic device is provided, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method are implemented.

[0015] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method.

[0016] The solution provided in this manual first establishes an initial electromechanical transient coupling model covering typical operating conditions based on the unit's overall basic parameters. Then, hydraulic operating parameters are extracted to reconstruct the hydraulic subsystem using a port-controlled Hamiltonian canonical form. Combined with a shifted Lyapunov function, non-zero equilibrium point stability analysis is conducted to obtain hydraulic system characteristic data. Subsequently, a comprehensive cost objective function integrating the economic costs of engineering construction and the risk costs of stable unit operation is constructed and solved to obtain the theoretically optimal flow inertia time constant. Finally, this optimal parameter is assigned to the initial coupling model to obtain the optimized final electromechanical transient coupling model. On the one hand, the port-controlled Hamiltonian energy modeling framework accurately characterizes the nonlinear dynamic characteristics of the hydraulic system, overcoming the limitation of traditional Lyapunov functions being only applicable to zero equilibrium points, and enabling large-scale asymptotic stability quantitative analysis under unit load operation conditions. On the other hand, it abandons the crude method of relying on engineering experience to select the flow inertia time constant, obtaining the optimal hydraulic core parameters that balance the investment cost of water conveyance projects and the grid disturbance tolerance capacity through mathematical extreme value solutions, significantly reducing the deviation between the model simulation results and the actual dynamic characteristics of the power plant operation. A complete closed-loop dynamic modeling process for doubly-fed variable-speed pumped-storage units with sufficient theoretical support has been established, which effectively improves the simulation accuracy, stability analysis reliability, and engineering adaptability of the electromechanical transient coupling model, and can better meet the high-precision analysis application needs of new power system transient simulation and unit control strategy optimization. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating a dynamic modeling method for a doubly-fed variable-speed pumped-storage unit provided in one embodiment of this specification. Figure 2 This is a schematic diagram illustrating the working principle of the control model of the water turbine governor; Figure 3 This is a schematic diagram illustrating the working principle of the control model of the water pump system; Figure 4 They are different A schematic diagram of the decay process of the Lyapunov function; Figure 5 This is a schematic diagram of the overall cost objective function. Figure 6 These are the mechanical torque response curves under different water flow inertia time constants during power generation. Figure 7 These are the mechanical torque response curves under different water flow inertia time constants during pumping operations; Figure 8 This is a waveform diagram under power generation conditions; Figure 9 It is a dynamic response waveform diagram under pumping conditions; Figure 10 This is a dynamic response waveform diagram of a doubly fed pumped storage unit when it continuously switches between different operating conditions. Figure 11 It is a waveform diagram of mechanical power, stator current, stator-side active power and reactive power under power generation conditions; Figure 12 This is a power tracking waveform diagram of a doubly-fed pumped storage unit under pumping conditions; Figure 13 This is a schematic diagram of the structure of a dynamic modeling device for a doubly-fed variable-speed pumped-storage unit provided in one embodiment of this specification; Figure 14 This is a structural block diagram of an electronic device provided in one embodiment of this specification. Detailed Implementation

[0018] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0019] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0020] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0021] This specification provides a dynamic modeling method for doubly-fed variable-speed pumped-storage units. This specification also relates to a dynamic modeling device for doubly-fed variable-speed pumped-storage units, an electronic device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0022] See Figure 1 , Figure 1 A flowchart illustrating a dynamic modeling method for a doubly-fed variable-speed pumped-storage unit according to an embodiment of this specification is shown, specifically including the following steps: Step 110: Obtain the global basic parameters of the doubly-fed variable-speed pumped-storage unit, and perform dynamic modeling of the doubly-fed variable-speed pumped-storage unit under typical operating conditions based on the global basic parameters to obtain the initial electromechanical transient coupling model.

[0023] In this step, the overall basic parameters refer to the original parameters covering the structural, electrical, and hydraulic characteristics of all equipment, including hydraulics, motors, and converters. These include the dimensions of the water intake pipes, turbine and pump parameters, nameplate parameters of the doubly-fed generator, converter capacity, and control parameters. Specifically, they can be categorized into hydraulic parameters, doubly-fed generator electrical parameters, and overall converter basic parameters. The initial electromechanical transient coupling model refers to the combined hydro-mechanical-electrical mathematical model of the unit built solely based on the overall basic parameters and without optimal flow inertia time constant correction.

[0024] Step 120: Obtain the hydraulic operating parameters of the hydraulic system where the doubly fed variable speed pumped storage unit is located. Based on the hydraulic operating parameters and combined with the initial electromechanical transient coupling model, perform port-controlled Hamiltonian canonical form reconstruction and stability analysis of the hydraulic system to obtain hydraulic system characteristic data.

[0025] In this step, hydraulic operating parameters refer to parameters characterizing the transient operating state of the hydraulic system, such as real-time and rated flow rate, head, pipe friction coefficient, and guide vane opening. Port-Controlled Hamiltonian (PCH) refers to a standardized mathematical expression describing a nonlinear hydraulic system from an energy perspective, capable of distinguishing between lossless energy conversion, dissipative damping, and external input ports.

[0026] Step 130: Establish the comprehensive cost objective function, and solve the comprehensive cost objective function based on the hydraulic system characteristic data to obtain the optimal flow inertia time constant.

[0027] In this step, the comprehensive cost objective function refers to a quantitative evaluation function that uses the water flow inertia time constant as a variable and integrates engineering construction costs and stability risks under power grid disturbances. The hydraulic system characteristic data includes three types of data sets: the port-controlled Hamiltonian canonical form model of the hydraulic system, stability conclusions at non-zero equilibrium points, and the influence of the water flow inertia time constant on system dynamics. The optimal water flow inertia time constant refers to the water flow inertia characteristic parameter that minimizes the comprehensive cost while balancing engineering investment and unit transient stability performance.

[0028] Step 140: Load the optimal water flow inertia time constant into the initial electromechanical transient coupling model to obtain the final electromechanical transient coupling model of the doubly fed variable speed pumped storage unit.

[0029] In this step, the final electromechanical transient coupling model refers to the complete unit coupling model after replacing the original parameters of the hydraulic subsystem with the optimal water flow inertia time constant, thus completing parameter optimization.

[0030] The above-mentioned method enables integrated modeling of multiple components, including hydraulics, motors, and converters, fully covering the typical operating characteristics of the unit's power generation and pumping. Through the PCH framework and shifted Lyapunov functions, it can complete the quantitative analysis of stability at non-zero steady-state points under load, breaking through the limitation of traditional stability analysis being only applicable to zero equilibrium points. Theoretically optimal hydraulic parameters are obtained through mathematical extremum solutions, replacing traditional empirical values. It simultaneously considers the construction cost of water conveyance projects and the unit's tolerance to power grid disturbances, forming a complete closed loop of basic modeling, theoretical analysis of hydraulic characteristics, optimization of key parameters, and high-precision final model, significantly reducing the deviation between the model and the actual operating characteristics of the power station.

[0031] In one embodiment, a typical operating condition dynamic model of the doubly-fed variable-speed pumped-storage unit is performed based on global fundamental parameters to obtain an initial electromechanical transient coupling model, specifically including: On the one hand, based on the hydraulic parameters in the overall basic parameters, a turbine system model and a pump system model are built respectively. The turbine system model is used to characterize the joint dynamic characteristics of the water intake system and the turbine body, while the pump system model is used to characterize the hydraulic coupling relationship and operating efficiency under pumping conditions.

[0032] The hydraulic parameters include basic parameters related to the water intake pipeline, flow rate parameters, guide vane opening parameters, and turbine speed parameters. The turbine system model refers to a hydraulic sub-model that integrates the fluid dynamics of the water intake pipeline with the flow and torque characteristics of the turbine, adaptable to power generation conditions. In this embodiment, the turbine system model consists of three parts: the water intake system, the governor system, and the turbine body. The governor system receives speed deviation signals and controls the guide vane opening of the pumped storage system, thereby changing the water pressure and flow rate of the water intake system and acting on the turbine body to generate mechanical torque. The mechanical torque drives the rotor to move and change the speed. The speed difference is then fed back to the governor, forming a closed-loop control.

[0033] Figure 2 The control model of the turbine governor is shown, in which, This represents the change in the unit's speed deviation. R p The slip coefficient, K p , , These are the proportional, integral, and derivative coefficients of the speed governor. and For the gain and time constant of the hydraulic servo system, , These are the target guide vane opening and the actual guide vane opening, respectively. and To limit the maximum and minimum speed of guide vane movement, and To limit the maximum and minimum position amplitude of the guide vane travel boundary.

[0034] Depend on Figure 2 It can be seen that the governor control model mainly consists of three parts: a deviation calculation stage, a PID control algorithm, and an electro-hydraulic servo execution system. The externally input unit speed deviation is subtracted from the slip coefficient feedback signal at the controller output to form a comprehensive error, which is then fed into the PID controller to obtain the target guide vane opening. Subsequently, the target guide vane opening is input to a servo follow-up system with position negative feedback, passing sequentially through a first-order inertial stage representing the dynamic response of the hydraulic pressure distribution valve and an integral stage representing the action of the main servo cylinder, ultimately transforming it into the actual guide vane opening. Simultaneously, to realistically depict the safety constraints and anti-collision zone of the turbine's physical mechanism, speed limiting and position limiting stages are added to the servo system. The system dynamically adjusts the turbine's guide vane opening based on the input command and operating status, thereby controlling the mechanical power input to the turbine.

[0035] In this embodiment, the water diversion system adopts a nonlinear dynamic model of the turbine, and its joint dynamic model with the turbine body can be expressed as: (1) In the formula, The effective head of the turbine, For the static head of the water turbine, The head loss due to friction along the pipeline, The flow rate in the water pipe. For dynamic traffic, This represents the actual guide vane opening. This represents the turbine gain coefficient. Let be the inertial time constant of the water flow. To output mechanical power to the water turbine, This is the rotational damping coefficient. This represents the change in the unit's speed deviation. is the coefficient of friction.

[0036] A pump system model refers to a hydraulically coupled sub-model that can characterize the water flow in the pipeline, the pump head, and the power loss under pumping conditions. Figure 3 The control model of the water pump system is shown, such as Figure 3 As shown, the water pump system model mainly consists of an opening optimizer 210, a speed controller servo execution system 220, and a water pump and water intake pipeline system 230. Among them, H 0 represents the static head. This is a reference value for active power. K g1 This is the proportional coefficient of the feedforward compensation stage of the speed governor. τ g1, τ g2 These are the time constants of the feedforward compensation element and the inertial element of the distribution valve, respectively. For dynamic head, For net driving head, For dynamic traffic, No-load flow rate Indicates pump efficiency. P mp This refers to the mechanical power output by the water pump.

[0037] Combination Figure 3 As shown, the opening optimizer 210 receives the active power reference value. With static head H 0, the target guide vane opening is output through the optimal rotational speed and guide vane calculation formula. Target speed ω ref The speed controller servo actuator 220 achieves dual closed-loop control, with one path controlling the target guide vane opening via a first-order inertial element. Perform dynamic correction, and the other path will output the actual speed. ω With target speed ω ref The difference is used to obtain the speed deviation d. ω The speed adjustment output from the proportional-integral (PI) controller is superimposed on the corrected guide vane reference value, and then combined with the actual guide vane opening. G The deviation input is generated and constrained by upper and lower limits. and The servo actuator and integral actuator output the actual guide vane opening. G and set the opening degree and Hard limit; water pump and water supply pipeline system 230 with static head H 0 and dynamic head The difference H d As input, the hydrodynamic parameters of the water intake pipeline and the guide vane opening correction coefficient are fed in. G max - G ) / G Calculate the dynamic flow Q d Dynamic traffic Q d With no-load flow Divide by pump efficiency after calculation η Final output mechanical power P mp Meanwhile, the water pump parabolic characteristic unit is based on the actual guide vane opening. G Calculate dynamic head The data is fed back to the front-end opening optimizer 210, forming a closed-loop coupled simulation architecture for the entire chain of speed, guide vanes, hydraulic pipelines, and pump output. This architecture can fully reproduce the entire process of power setting, speed and guide vane coordinated control, pipeline hydraulic transients, and dynamic interaction of pump output under the pumping operation of the variable speed pumped storage unit.

[0038] Unlike turbine operation, in pumped storage systems, the unit's speed and active power are primarily tracked rapidly in a closed loop by the rotor-side converter during pump operation. Therefore, the guide vanes on the pump side typically do not participate in closed-loop speed regulation; instead, a cooperative optimization open-loop control strategy based on hydraulic characteristics is employed to achieve optimal operating efficiency. During normal operation, the head and power of variable-speed pumped storage units typically exhibit a large dynamic range, and deviations from the rated operating range under actual conditions will lead to reduced operating efficiency. To ensure efficient operation of the unit under different head and power commands, the optimal speed and guide vane opening are adjusted in real-time based on the comprehensive characteristic curve of the pump-turbine system to track the highest efficiency. An equivalent approximate calculation of this speed and guide vane optimization process is performed using linear equations, and its mathematical expression is as follows: (2) Under pumping conditions, the effective head generated by the pump is constrained by the system's static head and exhibits a complex nonlinear coupling relationship with the unit's real-time speed and dynamic flow rate. To reflect this physical characteristic in the dynamic simulation model, a parabolic polynomial derived from the fundamental equations of fluid mechanics is used, with the following mathematical expression: (3) In the formula, , , All of these are polynomial fitting constants for the characteristic curves, determined by the internal characteristics of the water pump.

[0039] In pumping mode, the dynamic equation of the water intake pipeline can be expressed by the following equation: (4) In the formula, The head loss can be expressed as: (5) In the formula, f g denoted as the friction coefficient of the guide vane.

[0040] Efficiency under pumping conditions Determined by dynamic flow rate and rotational speed, the operating characteristic curve equation can be obtained by fitting a polynomial function, as follows: (6) In the formula, , , The fitting coefficients are denoted as .

[0041] On the other hand, based on the electrical parameters of the doubly-fed motor in the global basic parameters, a transient model of the doubly-fed motor is built. The transient model of the doubly-fed motor is used to characterize the correlation between the active power, reactive power and rotor current components of the AC excitation doubly-fed motor.

[0042] The electrical parameters of a doubly-fed induction generator (DFIG) include stator current, rotor current, stator self-inductance, rotor self-inductance, and mutual inductance between the stator and rotor. The transient model of a DFIG refers to a dynamic mathematical model describing the instantaneous changes in the voltage, current, and active and reactive power of the stator and rotor in an AC-excited DFIG.

[0043] In this embodiment, a vector control strategy based on stator voltage orientation can be adopted, aligning the q-axis of the synchronous rotating coordinate system with the stator voltage vector of the doubly-fed motor, and defining the direction orthogonal to it as the d-axis direction. In this coordinate system, the stator and rotor flux linkages of the AC excitation motor can be represented by stator current, rotor current, stator self-inductance, rotor self-inductance, and stator-rotor mutual inductance. The voltage equations in the synchronous rotating coordinate system further describe the relationship between stator and rotor resistance voltage drops, flux linkage changes, and cross-coupling terms in the rotating coordinate system.

[0044] In electromechanical transient modeling, the flux linkage differential term can be ignored based on the transient analysis scale, and the stator resistance voltage drop can be ignored when the stator resistance is small, thus obtaining the relationship between stator-side active and reactive power and rotor current components. This relationship provides a mathematical basis for subsequent active and reactive power decoupling control of the generator-side converter.

[0045] On the other hand, based on the global basic parameters of the converter in the global basic parameters, a transient and decoupling control model of the converter is built. The transient and decoupling control model of the converter is used to characterize the electrical transient response process and decoupling control strategy of the generator side and grid side converters.

[0046] Among them, the basic parameters of the converter across the entire domain include relevant parameters of the machine-side and grid-side converters, as well as parameters related to decoupling control.

[0047] Specifically, the converter transient and decoupling control model includes: The transient model of the machine-side converter is used to characterize the instantaneous changes and electrical response characteristics of various electrical quantities under dynamic operating conditions during the interaction between the machine-side converter and the rotor winding of the doubly fed motor. Specifically, it refers to the mathematical model that describes the instantaneous changes of voltage and current when energy interacts between the rotor-side converter and the motor rotor.

[0048] The decoupled control model on the generator side is used for the decoupled control of the generator's active power, reactive power, and operating speed. Specifically, it refers to a control model that uses stator voltage-oriented vector control to separate the rotor current torque and excitation components, and independently control the generator's speed, active power, and reactive power.

[0049] The transient model of the grid-side converter is used to characterize the instantaneous dynamic changes of the port electrical parameters and the transient energy transfer process of the grid-side converter when energy flows bidirectionally. Specifically, it refers to the model that describes the instantaneous changes of port electrical quantities during the bidirectional power flow between the grid and the DC bus.

[0050] The grid-side decoupling control model is used to decompose the grid-side current component based on voltage-oriented vector control. Specifically, it adopts grid voltage-oriented vector control to separate the active and reactive current components on the grid side and independently regulate the bus voltage and grid-connected reactive power.

[0051] In this embodiment, the generator-side converter is directly connected to the generator rotor winding, and variable speed constant frequency operation is achieved by adjusting the rotor current. Under stator voltage-oriented control, the rotor current can be decomposed into excitation and torque components, thereby realizing independent adjustment of stator-side active and reactive power. In power generation mode, power priority control is adopted to quickly track grid dispatch commands; in pumping mode, speed priority control is adopted to track the optimal speed command under different water heads and ensure efficient pump operation.

[0052] The grid-side converter is connected in parallel between the grid and the DC bus to stabilize the DC bus voltage and ensure bidirectional flow of slip power between the converter and the grid. Voltage-oriented vector control decomposes the grid-side current into active and reactive current components. The active component is used to maintain the DC-side energy balance, while the reactive component is used to regulate the reactive power exchanged with the grid. Thus, the fast decoupling control on the electrical side and the nonlinear dynamic control on the hydraulic machinery side together constitute the complete electromechanical transient model of the doubly-fed variable-speed pumped-storage unit.

[0053] The converter transient and decoupled control model can completely reproduce the power electronic transient processes of converters on both sides of the generator and the grid, accurately simulate current and voltage surges under disturbances, and realize multi-objective decoupled control simulation of power, speed, DC bus voltage, and grid-connected reactive power. The control logic is consistent with the actual vector control strategy in engineering, and can distinguish the functional characteristics of the converters on both sides, respectively simulating the entire process of bidirectional energy flow in power generation and pumping, thus improving the simulation accuracy of the electrical control part of the electromechanical coupling model.

[0054] Finally, the turbine system model, pump system model, doubly fed generator transient model, and converter transient and decoupled control model are integrated to form an initial electromechanical transient coupling model.

[0055] This embodiment can independently model two operating conditions: power generation and pumping, fully covering the entire operating range of variable speed pumped storage units. At the same time, it can independently characterize the dynamic characteristics of hydraulics, motors, and converters, with clear boundaries for each sub-module, facilitating individual debugging and parameter replacement. Furthermore, it can achieve multi-scale coupling of hydraulic fluid dynamics, motor electromagnetic transients, and power electronic converter control dynamics, thereby providing a complete basic model carrier for subsequent theoretical analysis of hydraulic systems.

[0056] In one embodiment, based on hydraulic operating parameters and combined with an initial electromechanical transient coupling model, a port-controlled Hamiltonian canonical form reconstruction and stability analysis of the hydraulic system are performed to obtain hydraulic system characteristic data, specifically including: First, based on the hydraulic operating parameters, the mathematical equations of the hydraulic subsystem are extracted from the initial electromechanical transient coupling model.

[0057] Then, by combining the pre-obtained nonlinear characteristics of rigid water hammer, flow characteristics, and pipe friction resistance characteristics, the mathematical equations of the hydraulic subsystem are reconstructed into a port-controlled Hamiltonian canonical form model.

[0058] It is understandable that the nonlinear characteristics of rigid water hammer refer to the nonlinear mathematical relationship of pressure transients generated when valves and guide vanes in the water intake pipeline are rapidly adjusted; the port-controlled Hamiltonian canonical form model refers to the standardized energy-type hydraulic system equations, which can distinguish dissipative ports, input ports, and energy storage states.

[0059] During the transient process of a hydroelectric turbine, the water intake system exhibits significant hydraulic inertia and non-minimum phase characteristics due to its long intake pipes and large flow rate. When the guide vanes open rapidly, the system attempts to increase mechanical output, but the transient decompression caused by the inertia of the water flow leads to a brief reverse adjustment in output power, which can easily induce oscillations. Traditional linearized transfer functions are insufficient to accurately capture the energy surge and nonlinear evolution under such large disturbances. Therefore, this embodiment uses the Port-Controlled Hamiltonian (PCH) theory to model the hydraulic system. This theory differs from the traditional approach of relying on algebraic transformations to offset the nonlinear characteristics of the system, preserving the nonlinear damping dissipation mechanism of the hydraulic system, and the energy function can naturally serve as a candidate Lyapunov function. To accurately characterize the nonlinear dissipation mechanism of the hydraulic system, a rigid water hammer nonlinear equation is introduced, as follows: (7) Combining the nonlinear flow characteristics of the water turbine and pipeline friction resistance Under normal forward flow conditions, the nonlinear state equation of the hydraulic system can be expressed as: (8) To analyze system stability from the perspective of energy flow and reveal its energy dissipation mechanism, the nonlinear system state equation expressed above is reconstructed into a port-controlled Hamiltonian canonical form, as follows: (9) In the formula, The total energy of the system, The matrix is ​​an antisymmetric matrix, representing the lossless energy conversion between kinetic and potential energy. The damping matrix is ​​positive definite, representing the energy dissipation capacity of the system due to water flow friction and work. The gradient of the Hamiltonian function. For the external input matrix, The external control input is used. The entire equation represents the state changes of the system, which are determined by the lossless conversion of internal energy, energy dissipation, and external energy injection.

[0060] The hydraulic momentum of the water column inside the water intake pipe is selected as the state variable. And define the system's native Hamiltonian function as the fluid kinetic energy, that is: (10) Furthermore, the gradient of the state variables gives the flow rate of the hydraulic system, which satisfies: (11) By comparing and mapping equations (8) and (9), the characteristic matrices of a single-order hydraulic PCH system can be derived, as follows: (12) In the characteristic matrix, J =0 indicates that there is no lossless energy exchange within the single-order hydraulic subsystem, and at the same time Damping matrix This physically represents that friction and work consume the kinetic energy of the water column, indicating that the system naturally possesses dissipative properties. The internal water flow oscillations naturally subside as energy is consumed, ensuring the stability of the hydraulic system when faced with large disturbances.

[0061] To analyze the energy balance mechanism of the system at the steady-state operating point, it is assumed that the guide vane opening remains at a steady-state value during steady-state operation of the unit. At this point, the system reaches equilibrium, and the corresponding steady-state flow rate is State variables are defined as follows: At this point, the equivalent steady-state damping of the system at the equilibrium point is: Since at the equilibrium point, the system's state no longer undergoes dynamic evolution, i.e., the state derivative... Substituting this into the nonlinear equation (2), the following steady-state equilibrium condition can be satisfied: (13) As can be seen from equation (13), the static head potential energy provided by the upstream and downstream reservoirs is... This overcomes the steady-state damping within the system caused by friction between the water intake pipe wall and the guide vane opening. This external energy injection and internal energy dissipation cancel each other out, forming a dynamic balance, thereby determining and stabilizing the unit's operating state at the rated flow rate. .

[0062] Meanwhile, the hydraulic momentum of the water column in the water intake pipe is used as a state variable to construct a shifted Lyapunov function. Based on the shifted Lyapunov function, the asymptotic stability analysis of the hydraulic system at the non-zero equilibrium point is performed, and the stability analysis results are obtained.

[0063] Understandably, the hydraulic momentum of the water column in the water intake pipe is a core state variable that characterizes the magnitude of the inertia of the water flow in the pipe and is directly related to the inertia time constant of the water flow; the shifted Lyapunov function refers to an improved energy criterion function constructed for the non-zero steady-state operating point of the system, used for large-scale asymptotic stability determination; the stability analysis result refers to the conclusion that the hydraulic system can spontaneously converge to the steady-state operating point after being disturbed when the unit is running under load.

[0064] Within the PCH framework, to prove that the system can regain stability after encountering a disturbance at the steady point due to its own dissipation properties, it is necessary to introduce a Hamiltonian function that characterizes the internal hydraulic kinetic energy of the system. Stability analysis should be performed. However, directly using the Hamiltonian function... Its minimum value is located at the origin, i.e., the stationary state when the unit is stopped, while the target equilibrium point of the pumped storage unit during grid-connected operation is the rated operating point. To determine if the system is at a non-zero equilibrium point To achieve large-scale asymptotic stability, we introduce the Bregman divergence and construct a shifted Lyapunov function, as follows: (14) After simplifying equation (14), we can obtain the Lyapunov function expressed in terms of the deviation of the rated kinetic energy of the water flow, as follows: (15) It can be seen from equation (15) that If the function is positive definite over a wide range, then it is positive definite only at the current operating point. It takes a value of zero. For By taking the derivative along the system's trajectory, we can observe its energy dissipation characteristics, as follows: (16) Substituting equation (8) into equation (16), we get: (17) Simultaneously, the correlation between the inertial time constant of the water flow and the energy decay coefficient of the system is determined, the influence of the inertial time constant of the water flow on the system's steady domain and dynamic response is analyzed, and the parameter influence information is output.

[0065] It is understandable that the parameter influence information refers to the quantitative correspondence between the change in the inertial time constant of the water flow and the size of the system's stability domain and the speed of the dynamic response to disturbances.

[0066] In a doubly-fed pumped storage system, the turbine, pumps, and converters contain numerous electrical and mechanical parameters. However, while converter parameters determine the system's electromechanical transient response performance, the core issue determining the long-range stability of complex electromechanical coupled systems lies in the non-minimum phase characteristics of the hydraulic system. Among these, the water flow inertial time constant... It is a key physical quantity for quantifying the intensity of the water hammer effect and the nonlinear dynamic hysteresis characteristics of the water diversion pipe. Therefore, the focus is on... A thorough analysis was conducted to reveal the constraint mechanism on the closed-loop stability region of the system.

[0067] This represents the inertia of the water column in the water intake pipe. Physically, it indicates the time required to accelerate the static water flow in the pipe to its rated velocity under rated head. The hydraulic calculation formula for this is: (18) In the formula, This indicates the equivalent total length of the water diversion pipeline. Indicates the rated flow rate of the unit. This represents the equivalent cross-sectional area of ​​the water diversion pipeline. Indicates the rated head of the unit. It represents the acceleration due to gravity.

[0068] From equation (18), we can see that the longer the water column, the faster the flow velocity. The larger it is. Furthermore, substituting equation (15) into equation (17), we can obtain: (19) In the formula, The energy decay coefficient, which represents the system's recovery capability, determines the rate at which the system returns to a stable point after deviating from equilibrium.

[0069] It can be seen from equation (19) that and Inversely proportional, when When the value increases, the effective energy decay coefficient of the system increases. A sharp decrease in flow rate leads to a slower dissipation of disturbance energy and a longer duration of flow fluctuations, which macroscopically manifests as sluggish dynamic response, weak disturbance immunity, and poor relative stability of the unit; conversely, when... When decreasing, With increased speed, water flow oscillations within the water diversion system can be quickly reduced, the system becomes more sensitive to governor commands, and relative stability is significantly enhanced. Figure 4 Showing different The decay process of the Lyapunov function.

[0070] Figure 4 The vertical axis represents the dimensionless Lyapunov function, from Figure 4 As can be seen, all curves monotonically decay to 0 over time, indicating that the system is stable; however, The larger the curve, the longer its tailing process as it approaches the equilibrium point.

[0071] Finally, the port-controlled Hamiltonian canonical form model, stability analysis results, and parameter influence information are used as characteristic data of the hydraulic system.

[0072] This embodiment uses the energy PCH framework to uniformly characterize nonlinear hydraulic systems, providing clear physical meaning for modeling and facilitating the derivation of stability theory. It employs a shifted Lyapunov function to adapt to the non-zero operating point of the unit under load, overcoming the limitation of traditional Lyapunov functions being only applicable to the zero equilibrium point during shutdown. Quantification yields the correspondence between the flow inertia time constant and the system's stability margin and transient oscillation characteristics, providing theoretical data support for subsequent parameter optimization.

[0073] In one embodiment, a comprehensive cost objective function is established, and the comprehensive cost objective function is solved based on the hydraulic system characteristic data to obtain the optimal flow inertia time constant, specifically including: First, a comprehensive cost objective function is constructed, with the water flow inertia time constant as the independent variable and the comprehensive operating cost, which includes the economic cost of engineering construction and the risk cost of operational stability, as the dependent variable.

[0074] In this embodiment, the comprehensive cost objective function includes two sub-costs: one is the economic cost of water pipeline construction, and the other is the operational stability risk cost caused by the instability of the hydraulic system under power grid disturbance; the independent variable is the water flow inertia time constant, which is an adjustable hydraulic core parameter; the dependent variable is the comprehensive operational cost, which refers to the quantitative value of the sum of economic cost and stability risk cost.

[0075] Then, by combining the characteristic data of the hydraulic system, the first derivative of the comprehensive cost objective function is solved with the inertial time constant of the water flow as the variable. The value of the first derivative is set to zero to obtain the expression for the optimal inertial time constant of the water flow.

[0076] Finally, the expression for the optimal water flow inertia time constant is solved to obtain the optimal water flow inertia time constant.

[0077] However, in the actual design of pumped storage power stations, The selection of cannot be infinitely minimized. From a control perspective, The smaller the value, the weaker the hydraulic inertia of the water conveyance system, which is more conducive to improving the response speed and operational stability of the doubly-fed variable-speed pumped storage unit control system; however, from an engineering implementation perspective, The reduction in diameter will force an increase in the diameter of the water transmission pipeline and a reduction in its length, directly leading to a significant increase in investment in civil engineering and pipe materials, and a significant decrease in economic efficiency. Currently, in the design of pumped storage power station projects... The selection of parameters often relies on engineering experience, single economic constraints, or independent stability boundary verification. There is a lack of quantitative optimization methods that take into account both engineering economy and the operational stability of the unit control system, making it difficult to accurately determine the optimal parameter values ​​that are suitable for the regulation characteristics of the doubly fed variable speed pumped storage unit.

[0078] To address the aforementioned issues, and in order to further determine the optimal flow inertia time constant suitable for a doubly-fed variable-speed pumped storage unit system... Taking into account both the economic efficiency of the project and the stability of the control system, a weighted sum of the economic cost of the project and the risk cost of system operation is established by introducing weighting coefficients, resulting in the following comprehensive cost objective function with dual constraints. : (20) In the formula, This represents the economic cost of engineering construction; in practice, it is reduced. This means increasing the excavation diameter of the water diversion tunnel or adding a surge chamber, leading to increased construction costs. Inversely proportional; This represents the operational stability risk cost term, due to the water hammer effect of the water diversion system. An increase in this value will cause the integral of the adjustment time error of the primary frequency regulation and power point tracking of the system to increase exponentially, easily triggering ultra-low frequency oscillations in the power grid. Proportional; , These represent the penalty weighting coefficients for the two costs mentioned above, respectively.

[0079] To find the extreme point that minimizes the total cost, for about By differentiating and setting the derivative to zero, the expression for the optimal water flow inertia time constant can be derived, as follows: (twenty one) The risk cost penalty weight will be applied. Normalization is applied and set to 1. Since economic and construction risks are more severe than operational risks, an economic and construction weight is assigned. The curve of the comprehensive cost objective function is as follows: Figure 5 As shown.

[0080] from Figure 5 As can be seen, the function curve exhibits typical characteristics of a nonlinear convex function, possessing a unique global minimum point. Within a smaller interval, the curve is steeper, indicating that as... The reduction in efficiency is primarily driven by civil engineering economics and water hammer constraints, resulting in higher construction costs and safety risks for the system; while... Over a larger interval, the curve exhibits a slow, quadratic upward trend, at which point deterioration in operational stability gradually becomes the dominant cost. After global optimization, when... At 2.47 s, the comprehensive evaluation objective function drops to its minimum point, and this parameter value will be used as the benchmark parameter for simulation verification.

[0081] The above scheme breaks through the limitations of single-dimensional parameter selection by establishing a quantitative evaluation system that takes into account both engineering investment costs and power grid stability and security; it obtains theoretically optimal hydraulic parameters through rigorous mathematical extreme value solving, replacing the traditional experience-based estimation method in the industry, making parameter values ​​more scientific; and it simultaneously reduces engineering costs and broadens the unit's disturbance stability domain by using optimal parameters, thereby enhancing the practical value of the model project.

[0082] In one embodiment, the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method may further include: The final electromechanical transient coupling model was simulated and tested under various typical test conditions. This process specifically included: First, a simulation test environment was established by setting up various typical test conditions, including steady-state operation of the unit, switching between multiple operating conditions, and power step disturbances.

[0083] In this step, typical test conditions refer to three basic operating scenarios: steady-state power generation, steady-state pumping, and rapid switching between power generation and pumping conditions; power step disturbances refer to external disturbance signals such as short-term sudden changes in active and reactive power and voltage drops in the grid; and the simulation test environment refers to a numerical simulation platform equipped with complete hydraulic, motor, and converter solution algorithms.

[0084] Then, the final electromechanical transient coupling model is imported into the simulation test environment, and simulation calculations are performed sequentially under various typical test conditions and disturbance scenarios to obtain simulation results.

[0085] In this step, the simulation results refer to the time-domain waveforms and numerical sequences of the simulation output, including voltage, current, power, rotational speed, pipe head, and flow rate.

[0086] Finally, based on the simulation results, the dynamic performance, stability and power regulation capability of the final electromechanical transient coupling model are verified, and the test results are output.

[0087] In this step, the test result refers to the conclusion on the effectiveness of the model obtained by comprehensively considering the waveform convergence characteristics, adjusting the response speed, and the oscillation amplitude.

[0088] To verify the effectiveness of the established final electromechanical transient coupling model and PCH stability analysis method for the doubly-fed variable-speed pumped-storage unit, this embodiment uses MATLAB / Simulink to establish a single-unit infinite bus system simulation model, and performs calculation examples to verify the model from four aspects: water flow inertia time constant, dynamic response of power generation and pumping, operating condition switching, and power point tracking performance.

[0089] To verify the correctness of the variable speed pumped storage unit model, a simulation model of a single 100MW variable speed pumped storage unit was built in MATLAB / Simulink, using a single-unit infinite bus system. The parameters were designed to be 2.47 s. The simulation parameters are shown in Tables 1 and 2.

[0090] Table 1 Simulation parameters of the electrical system of the doubly-fed variable-speed pumped-storage unit

[0091] Table 2 Simulation parameters of the hydraulic system of the doubly-fed variable-speed pumped-storage unit

[0092] Based on the theoretical analysis of the Hamiltonian energy dissipation characteristics of the water diversion system, the inertial time constant of the water flow is changed. The dynamic evolution of the system under large disturbances is compared and analyzed in the simulation. (Setting...) The tracking performance of mechanical torque under two operating conditions—power generation and water pumping—was observed at time intervals of 0.5 s, 2.47 s, and 5 s, respectively.

[0093] Under power generation conditions, the mechanical torque response curves of the system under different water flow inertia time constants are as follows: Figure 6 As shown. By Figure 6 It can be seen that, At 0.5 s, the system converges fastest, but it also experiences the largest instantaneous overshoot during startup, with a peak torque fluctuation approaching 1.02 pu, posing a potential threat to the mechanical strength of the unit's shaft system. At 5 s, due to excessive hydraulic inertia, the torque increase is extremely slow, and there is a micro-oscillation process lasting up to 8 s near steady state, resulting in severe lag in the system's regulation performance. At 2.47 s, after crossing the transient fluctuation region, the mechanical torque can approach the rated value with the smoothest trajectory, basically eliminating the large-scale overshoot phenomenon. At the same time, compared with the large inertia system, its time to enter steady state is significantly shortened, and the mechanical torque can be accurately locked at about 4 s.

[0094] Under pumping conditions, the mechanical torque response curves of the system with different water flow inertia time constants are as follows: Figure 7 As shown. By Figure 7 It can be seen that when At 0.5 s, the system exhibits high adjustment sensitivity; the mechanical torque rises sharply at startup and rapidly approaches the rated value in less than 1 second. However, this extremely rapid torque jump causes significant transient mechanical shock to the pump and motor shaft system. At 5 s, the system exhibits significant sluggishness. The torque rise slope is extremely gentle, and it has not yet fully converged to 1 pu at the end of the 20 s simulation interval. This indicates that an excessively large water flow inertia time constant severely hinders the system's dynamic adjustment process, resulting in an excessively long pumping start-up time. Meanwhile... At 2.47 s, in the initial stage of startup, the torque rises with a smooth envelope, effectively reducing the mechanical stress impact under small inertia. In the later stage of transition, its steady-state convergence speed is significantly better than that of the large inertia system, indicating that the inertial time constant of the water flow at 2.47 s can provide a better damping ratio for the electromechanical transient coupling process, ensuring the safe, stable, rapid and efficient startup of the pumping operation.

[0095] Figure 8 The waveform diagrams under power generation conditions are shown, displaying the stator voltage and current, active and reactive power input to the grid, guide vane opening, and rotor speed waveforms, with the power input to the grid defined as negative. During the initial startup phase of power generation, the hydraulic machinery-side guide vane servo system rapidly adjusts the guide vane opening from its initial state to the optimal position of 0.975 pu within approximately 0.2 seconds, without overshoot or oscillation, providing a stable and constant mechanical torque input to the unit. The generator rotor, driven by an external prime mover, experiences a brief acceleration before smoothly rising to the rated speed of 0.99 pu, placing the unit in the sub-synchronous region. Correspondingly, the electromagnetic torque, after initial adjustment fluctuations, quickly reaches a constant state, achieving dynamic balance with the mechanical torque provided by the prime mover, ensuring stable operation on the mechanical side. As the system enters steady state, a magnified view of the three-phase stator voltage and current from 5 s to 5.06 s shows that the voltage and current waveforms in steady state maintain three-phase symmetry with a phase difference of 180 degrees. This ensures that the reactive power is controlled near 0 var and the active power is maintained at -1 pu, indicating that the power flow direction is the direction of power input to the grid.

[0096] Figure 9The dynamic response waveforms of the pumped-storage unit under pumping conditions are shown. Simulation results show that during the initial startup phase at t=0, the stator current experiences brief electromechanical transient oscillations, leading to significant fluctuations in the active and reactive power waveforms. Due to the system's damping characteristics, these high-frequency fluctuations rapidly decay and converge after approximately 0.5 s. Upon entering steady state, a magnified view of the stator voltage and current waveforms from 10 s to 10.03 s reveals that the voltage and current waveforms maintain three-phase symmetry with a phase difference of 0 degrees. Reactive power is controlled near 0 var, while active power is maintained at 1 pu, with power flow directed from the grid input to the unit. After startup in pumping mode, the guide vane opening opens linearly and smoothly according to predetermined commands, reaching the optimal guide vane opening of 0.85 pu at approximately 8 s and remaining constant, achieving continuous pump load output. Simultaneously, the rotor speed is controlled at the rated speed of 1.06 pu, ensuring operation in the supersynchronous region. After reaching steady state, a small high-frequency pulsation is superimposed on the speed curve. This pulsation mainly originates from the time harmonics introduced by the PWM switching action of the rotor-side converter and the high-frequency pulsating electromagnetic torque generated by the combined effect of spatial harmonics within the motor. This torque pulsation is converted into a very small amplitude high-frequency speed ripple, but the synchronous speed remains generally stable at [value missing]. The incident did not affect the stable operation of the unit.

[0097] Figure 10 The simulation demonstrates the dynamic response waveforms of a doubly-fed pumped storage unit (DFSP) during continuous switching between different operating conditions. Within a 70-second simulation period, the entire process of switching between shutdown, power generation, shutdown, pumping, and shutdown was included. The waveforms recorded the dynamic changes in stator current, active power, reactive power, and head height. For the first 5 seconds of the simulation, the system was in standby mode, with the rotor speed maintained at approximately 0.92 pu (PU) during idling. After 5 seconds, the unit switched to power generation mode. The head height waveform shows that the per-unit head value linearly decreased from 1 pu to 0.9 pu, indicating that the unit was generating electricity using water released from the upper reservoir. During this period, the system's active power was approximately -1 pu, and the per-unit rotor speed remained stable at 0.99 pu, indicating that the unit was operating in a subsynchronous power generation state. Furthermore, the reactive power command was set to 0 pu, and the actual reactive power output closely followed the reference value, achieving complete decoupling of active and reactive power and ensuring unity power factor operation at the grid connection point.

[0098] At 25 seconds, the unit received a command to switch operating conditions and entered shutdown mode. During this stage, the reservoir stopped filling and discharging water, and the water head remained constant at approximately 0.9 pu. The current amplitude decreased significantly to near zero, causing the system's active power to drop to 0. However, the unit speed did not return to zero but remained near the synchronous speed of 1.0 pu, reflecting the idling characteristics of a large inertia system before mechanical braking. After the mechanical torque was removed and the system entered unpowered inertial operation, the enormous rotational kinetic energy was braked by applying mechanical damping, and the speed decreased slowly in a short period of time. At 45 seconds, the system switched from shutdown mode to pumping mode. The water head began to rise from 0.9 pu, indicating that the pumps were overcoming the head and pumping water up the reservoir. At this time, the active power jumped from 0 pu and quickly tracked the positive rated value of 1 pu. The unit switched to motor mode, absorbing active power from the grid to drive the pumps. Simultaneously, under the excitation control of the rotor-side frequency converter, the speed rapidly crossed the synchronization point and stabilized at around 1.06 pu, and the unit entered the supersynchronous pumping state. At 65 seconds, after completing pumping, the system re-entered the shutdown unloading state, with active power returning to zero and the speed remaining at idle. During the aforementioned continuous multi-condition switching process, reactive power was consistently clamped near 0 pu; at the instants of crossing synchronous speed and mode reversal, the stator current and active power underwent transient adjustments, preventing system instability. Simulation results verify the excellent four-quadrant operation capability of the doubly-fed generator unit. This control strategy can improve the rapid tracking performance under complex operating condition switching and maintain stable system operation.

[0099] To verify the system's dynamic adjustment and tracking capabilities under conditions of severe fluctuations in the input source, three consecutive step disturbances ranging from 1 pu to 0.75 pu and 0.5 pu were applied to the pumped storage unit during steady-state operation from 2 s to 7 s in power generation mode and from 8 s to 12 s in pumping mode. Figure 11 The waveforms of mechanical power, stator current, stator-side active power, and reactive power under power generation conditions are displayed. When the input mechanical power experiences a step drop within the 2-7 s interval, the system can quickly sense and respond. At the instant of the sudden change in mechanical torque command, the active power converges rapidly after only a very short transient transition process, closely tracking the steady-state power values ​​to -0.75 pu and -0.5 pu. The power tracking process exhibits small overshoot and short settling time, indicating that the system has good power tracking performance. Meanwhile, the reactive power waveform on the lower right shows that during the period of large fluctuations in active power from 2 to 7 s, the system's reactive power remains stable near 0 pu, indicating that the system can maintain good active and reactive power decoupling control while performing rapid active power tracking.

[0100] Figure 12The power point tracking waveform of the doubly-fed pumped storage unit (DFFP) under pumping conditions is shown. In pumping mode, the unit acts as a motor driving the pump, overcoming significant static head and pipe friction resistance to transport water from bottom to top. Establishing this reverse, stable water flow requires overcoming considerable hydraulic inertia, and the physical process itself is relatively slow, resulting in a relatively long transition time for the DFFP pumped storage system to reach steady state under pumping conditions. A step disturbance is applied when the input mechanical power is at 0.9 pu, with a disturbance time of 8-12 s. Similar to the power generation mode, the DFFP pumped storage system also exhibits good power point tracking performance under pumping conditions, and the reactive power remains near 0 pu, enabling stable unity power factor operation.

[0101] This embodiment, by setting up test scenarios covering all operating conditions of the unit and common disturbances in the power grid, can effectively test the model performance, verify the high credibility of the conclusions, and intuitively verify the transient dynamics, stability margin, and power tracking capability of the final coupled model after parameter optimization. Based on simulation data, it can fully prove that the constructed final electromechanical transient coupled model can truly reproduce the actual transient operating characteristics of the variable speed pumped storage unit.

[0102] In summary, this embodiment addresses the transient stability challenges of doubly-fed variable-speed pumped storage units under complex operating condition switching and large disturbances. It comprehensively considers the water hammer effect in long water intake pipes, the characteristic curves of the pump-turbine system, and the AC excitation dynamics of the doubly-fed motor. A multi-physics coupled nonlinear model of electromechanical transients under typical operating conditions is constructed. Furthermore, based on port-controlled Hamiltonian theory, the energy dissipation mechanism and global stability of the system are analyzed. The main conclusions are as follows: First, the hydraulic nonlinear subsystem is reconstructed into the PCH canonical form, revealing the inherent energy dissipation nature of water hammer effect and pipe wall friction. Furthermore, by introducing Bregman divergence to construct a shifted Lyapunov function, the large-scale asymptotic stability of the system at non-zero objective equilibrium points is demonstrated from a mathematical theoretical perspective.

[0103] Second, it reveals the constraint law of the inertial time constant of water flow on the closed-loop stability domain and dynamic response speed of the system, and proposes a multi-objective optimization parameter selection method that comprehensively considers the economic efficiency of civil engineering and the stability risk of system operation, providing a reliable basis for system design and parameter tuning.

[0104] Third, simulation tests were conducted on the dynamic tracking capability of the unit under complex operating conditions. The results show that the unit exhibits excellent four-quadrant operation capability when dealing with mechanical power step disturbances and continuous switching between multiple operating conditions such as power generation, shutdown and pumping. It achieves rapid independent decoupling of active and reactive power, verifying the effectiveness of theoretical analysis and the transient stability performance of the system.

[0105] Corresponding to the above method embodiments, this specification also provides an embodiment of a dynamic modeling device for doubly-fed variable-speed pumped-storage units. Figure 13 A schematic diagram of a dynamic modeling device for a doubly-fed variable-speed pumped-storage unit, according to one embodiment of this specification, is shown. Figure 13 As shown, the device includes: Modeling module 310 is used to obtain the global basic parameters of the doubly-fed variable speed pumped storage unit, and to perform dynamic modeling of the doubly-fed variable speed pumped storage unit under typical operating conditions based on the global basic parameters, so as to obtain the initial electromechanical transient coupling model.

[0106] Analysis module 320 is used to obtain the hydraulic operating parameters of the hydraulic system where the doubly fed variable speed pumped storage unit is located. Based on the hydraulic operating parameters and combined with the initial electromechanical transient coupling model, the hydraulic system is reconstructed and its stability is analyzed by port-controlled Hamiltonian canonical form to obtain hydraulic system characteristic data.

[0107] The solver module 330 is used to establish the comprehensive cost objective function and solve the comprehensive cost objective function based on the hydraulic system characteristic data to obtain the optimal flow inertia time constant.

[0108] Output module 340 is used to load the optimal water flow inertia time constant into the initial electromechanical transient coupling model to obtain the final electromechanical transient coupling model of the doubly fed variable speed pumped storage unit.

[0109] The above is a schematic scheme of a dynamic modeling device for a doubly-fed variable-speed pumped-storage unit according to this embodiment. It should be noted that the technical solution of this dynamic modeling device for a doubly-fed variable-speed pumped-storage unit belongs to the same concept as the technical solution of the dynamic modeling method for a doubly-fed variable-speed pumped-storage unit described above. For details not described in detail in the technical solution of the dynamic modeling device for a doubly-fed variable-speed pumped-storage unit, please refer to the description of the technical solution of the dynamic modeling method for a doubly-fed variable-speed pumped-storage unit described above.

[0110] Figure 14 A structural block diagram of an electronic device 400 according to one embodiment of this specification is shown. The components of the electronic device 400 include, but are not limited to, a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and a database 450 is used to store data.

[0111] Electronic device 400 also includes access device 440, which enables electronic device 400 to communicate via one or more networks 460. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. Access device 440 may include one or more of any type of wired or wireless network interface (e.g., network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, Wi-MAX (Worldwide Interoperability for Microwave Access) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, and Near Field Communication (NFC).

[0112] In one embodiment of this specification, the above-described components of the electronic device 400 and Figure 14 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 14 The block diagram of the electronic device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0113] Electronic device 400 can be any type of stationary or mobile electronic device, including mobile computers or mobile electronic devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable electronic devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary electronic devices such as desktop computers or personal computers (PCs). Electronic device 400 can also be a mobile or stationary server.

[0114] The processor 420 executes computer-executable instructions, which, when executed by the processor, implement the steps of the aforementioned dynamic modeling method for doubly-fed variable-speed pumped-storage units. The above is an illustrative scheme of an electronic device according to this embodiment. It should be noted that the technical solution of this electronic device and the technical solution of the aforementioned dynamic modeling method for doubly-fed variable-speed pumped-storage units belong to the same concept. Details not described in detail in the technical solution of the electronic device can be found in the description of the technical solution of the aforementioned dynamic modeling method for doubly-fed variable-speed pumped-storage units.

[0115] An embodiment of this specification also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method.

[0116] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solution of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method.

[0117] An embodiment of this specification also provides a computer program, wherein when the computer program is executed in a computer, it causes the computer to perform the steps of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method.

[0118] The above is an illustrative scheme of a computer program according to this embodiment. It should be noted that the technical solution of this computer program and the technical solution of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method belong to the same concept. For details not described in detail in the technical solution of the computer program, please refer to the description of the technical solution of the above-described doubly-fed variable-speed pumped-storage unit dynamic modeling method.

[0119] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0120] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0121] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.

[0122] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0123] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A dynamic modeling method for a doubly-fed variable-speed pumped-storage unit, characterized in that, include: The full-domain basic parameters of the doubly-fed variable-speed pumped-storage unit are obtained, and the doubly-fed variable-speed pumped-storage unit is dynamically modeled under typical operating conditions based on the full-domain basic parameters to obtain the initial electromechanical transient coupling model. The hydraulic operating parameters of the hydraulic system in which the doubly fed variable speed pumped storage unit is located are obtained. Based on the hydraulic operating parameters and the initial electromechanical transient coupling model, the port-controlled Hamiltonian canonical form reconstruction and stability analysis of the hydraulic system are performed to obtain the hydraulic system characteristic data. A comprehensive cost objective function is established, and the comprehensive cost objective function is solved based on the characteristic data of the hydraulic system to obtain the optimal flow inertia time constant; The optimal water flow inertia time constant is loaded into the initial electromechanical transient coupling model to obtain the final electromechanical transient coupling model of the doubly fed variable speed pumped storage unit.

2. The method according to claim 1, characterized in that, Based on the aforementioned global fundamental parameters, a typical operating condition dynamic model of the doubly-fed variable-speed pumped-storage unit is performed to obtain an initial electromechanical transient coupling model, including: Based on the hydraulic parameters in the global basic parameters, a turbine system model and a pump system model are built respectively. The turbine system model is used to characterize the joint dynamic characteristics of the water intake system and the turbine body, and the pump system model is used to characterize the hydraulic coupling relationship and operating efficiency under pumping conditions. Based on the electrical parameters of the doubly-fed motor in the global basic parameters, a transient model of the doubly-fed motor is built. The transient model of the doubly-fed motor is used to characterize the correlation between the active power, reactive power and rotor current components of the AC excitation doubly-fed motor. Based on the global basic parameters of the converter in the global basic parameters, a transient and decoupling control model of the converter is built. The transient and decoupling control model of the converter is used to characterize the electrical transient response process and decoupling control strategy of the generator-side and grid-side converters. The turbine system model, pump system model, doubly fed generator transient model, and converter transient and decoupled control model are integrated to form an initial electromechanical transient coupling model.

3. The method according to claim 2, characterized in that, The converter transient and decoupling control model includes: The transient model of the machine-side converter is used to characterize the instantaneous changes and electrical response characteristics of various electrical quantities under dynamic operating conditions during the interaction between the machine-side converter and the rotor winding of the doubly fed motor. A decoupled control model for the generator side is used for the decoupled control of the generator's active power, reactive power, and operating speed. The transient model of the grid-side converter is used to characterize the instantaneous dynamic changes of the port electrical parameters and the transient energy transfer process of the grid-side converter when energy flows bidirectionally. A grid-side decoupling control model is used to decompose the grid-side current component based on voltage-oriented vector control.

4. The method according to claim 1, characterized in that, Based on the hydraulic operating parameters and the initial electromechanical transient coupling model, the hydraulic system is reconstructed in a port-controlled Hamiltonian canonical form and its stability is analyzed to obtain hydraulic system characteristic data, including: Based on the hydraulic operating parameters, the mathematical equations of the hydraulic subsystem are extracted from the initial electromechanical transient coupling model; Combining the pre-obtained nonlinear characteristics of rigid water hammer, flow characteristics, and pipe friction resistance characteristics, the mathematical equations of the hydraulic subsystem are reconstructed into a port-controlled Hamiltonian canonical form model. Using the hydraulic momentum of the water column in the water intake pipe as a state variable, a shifted Lyapunov function is constructed. Based on the shifted Lyapunov function, an asymptotic stability analysis of the hydraulic system at a non-zero equilibrium point is performed to obtain the stability analysis results. Determine the correlation between the inertial time constant of the water flow and the energy decay coefficient of the system, analyze the influence of the inertial time constant of the water flow on the system's steady domain and dynamic response, and output parameter influence information; The port-controlled Hamiltonian canonical form model, stability analysis results, and parameter influence information are used as characteristic data of the hydraulic system.

5. The method according to claim 1, characterized in that, A comprehensive cost objective function is established, and the comprehensive cost objective function is solved based on the characteristic data of the hydraulic system to obtain the optimal flow inertia time constant, including: Using the inertial time constant of water flow as the independent variable and the comprehensive operating cost, which includes the economic cost of engineering construction and the cost of operational stability risk, as the dependent variable, a comprehensive cost objective function is constructed. Based on the hydraulic system characteristic data, the first derivative of the comprehensive cost objective function is solved with the flow inertia time constant as the variable. The first derivative value is set to zero to obtain the optimal expression for the flow inertia time constant. The optimal water flow inertia time constant expression is obtained by solving the expression.

6. The method according to claim 1, characterized in that, The method further includes: The final electromechanical transient coupling model was simulated and tested under various typical test conditions.

7. The method according to claim 6, characterized in that, The final electromechanical transient coupling model was simulated and tested under various typical test conditions, including: A simulation test environment was established by setting up various typical test conditions, including steady-state operation of the unit, switching between multiple operating conditions, and power step disturbances. The final electromechanical transient coupling model is imported into the simulation test environment, and simulation calculations are performed sequentially under various typical test conditions and disturbance scenarios to obtain simulation results. Based on the simulation results, the dynamic performance, stability, and power regulation capability of the final electromechanical transient coupling model are verified, and the test results are output.

8. A dynamic modeling device for a doubly-fed variable-speed pumped-storage unit, characterized in that, include: The modeling module is used to obtain the global basic parameters of the doubly-fed variable speed pumped storage unit, and to perform dynamic modeling of the doubly-fed variable speed pumped storage unit under typical operating conditions based on the global basic parameters, so as to obtain the initial electromechanical transient coupling model. The analysis module is used to obtain the hydraulic operating parameters of the hydraulic system in which the doubly fed variable speed pumped storage unit is located. Based on the hydraulic operating parameters and combined with the initial electromechanical transient coupling model, the hydraulic system is reconstructed and its stability is analyzed by port-controlled Hamiltonian canonical form to obtain hydraulic system characteristic data. The solution module is used to establish a comprehensive cost objective function and solve the comprehensive cost objective function based on the hydraulic system characteristic data to obtain the optimal flow inertia time constant; The output module is used to load the optimal water flow inertia time constant into the initial electromechanical transient coupling model to obtain the final electromechanical transient coupling model of the doubly fed variable speed pumped storage unit.

9. An electronic device, characterized in that, include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, they implement the steps of the dynamic modeling method for doubly-fed variable-speed pumped-storage units according to any one of claims 1 to 7.

10. A computer-readable storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed by the processor, they implement the steps of the dynamic modeling method for doubly-fed variable-speed pumped-storage units according to any one of claims 1 to 7.