CN-121727025-B - Single-thread and multi-thread power flow method for comprehensive power transmission and distribution network
Abstract
The invention relates to a single-thread and multi-thread power flow method for a comprehensive power transmission and distribution network, which comprises the following steps of S1, establishing a mathematical model of controllable energy sources to obtain an internal current source of an electronic interface distributed energy generator, S2, constructing a backward scanning subprogram based on the internal current source and constructing a forward scanning subprogram, and S3, calling the backward scanning subprogram and the forward scanning subprogram to carry out the single-thread or multi-thread power flow calculation method for the comprehensive power transmission and distribution network until convergence conditions are met. Compared with the prior art, the method has the advantages of reducing the single-thread iteration times and the like.
Inventors
- ZHU HAIFENG
- YANG ENLONG
- LAN QIAOQIAN
- ZHANG XUEYUAN
Assignees
- 国网上海市电力公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260225
Claims (1)
- 1. A method for synthesizing single-threaded and multi-threaded power flows of a power transmission and distribution network, the method comprising the steps of: Establishing a mathematical model of controllable energy to obtain an internal current source of the distributed energy generator with an electronic interface; Constructing a backward scanning subprogram based on the internal current source, and constructing a forward scanning subprogram; calling a backward scanning subprogram and a forward scanning subprogram to perform single-thread or multi-thread power flow calculation of the comprehensive power transmission and distribution network until convergence conditions are met; the forward scanning subroutine is specifically: obtaining the q-phase current of the branch l of the h+1th iteration Calculating the voltage of the p-phase at node j of the h+1th iteration based on the current of the p-phase of branch l of the h+1th iteration ; The specific steps of calling the backward scanning subprogram and the forward scanning subprogram to calculate the single-thread power flow of the comprehensive transmission and distribution network are as follows: the initialization sequence number y is 1, and the iteration number h is 0; The method comprises the steps of adopting a backward scanning subprogram for a (y) th user side network to obtain current of p phases of a branch circuit l of the (h+1) th iteration user side network, multiplying the current of p phases of the branch circuit l of the (h+1) th iteration user side network by voltage of q phases at a node j of the (h) th iteration user side network to obtain multiphase complex power of the user side network, and injecting the multiphase complex power of the user side network into a corresponding transmission bus; Then, a backward scanning subprogram is adopted for the (y) th power distribution network to obtain the current of the p phase of the branch circuit l of the (h+1) th iteration power distribution network, the current of the p phase of the branch circuit l of the (h+1) th iteration power distribution network is multiplied by the voltage of the q phase at the node j of the (h) th iteration power distribution network to obtain the multiphase complex power of the power distribution network, and the multiphase complex power of the power distribution network is injected into a corresponding transmission bus; obtaining a user positive sequence, a negative sequence and a zero sequence network state vector, and carrying out iterative solution to obtain an updated value of a positive sequence vector correction quantity and a correction result of a negative sequence and zero sequence state quantity, thereby obtaining a new user positive sequence, a new user negative sequence and a new user zero sequence network state vector; Taking the approximate transmission bus voltage of the power distribution network as a local power distribution network root; adopting a forward scanning subprogram for the (y) th power distribution network to obtain the voltage of the p phase at the node j of the (h+1) th iteration power distribution network, and calculating a local user network root based on the voltage of the p phase at the node j of the (h+1) th iteration power distribution network; Adopting a forward scanning subprogram for the (y) th user side network to obtain the voltage of p phase at the node j of the (h+1) th iteration user side network; and if yes, repeating the steps until y reaches the upper limit of the number of the networks, otherwise, updating h to h+1, and repeating the steps, wherein the specific steps of calling a backward scanning subprogram and a forward scanning subprogram to perform multi-thread power flow calculation of the comprehensive power transmission and distribution network are as follows: Initializing sequence number y to be 1, iterating number h to be 0, and simultaneously performing the following steps for y=1, 2,3. The method comprises the steps of adopting a backward scanning subprogram for a (y) th user side network to obtain current of p phases of a branch circuit l of the (h+1) th iteration user side network, multiplying the current of p phases of the branch circuit l of the (h+1) th iteration user side network by voltage of q phases at a node j of the (h) th iteration user side network to obtain multiphase complex power of the user side network, and injecting the multiphase complex power of the user side network into a corresponding transmission bus; Then, a backward scanning subprogram is adopted for the (y) th power distribution network to obtain the current of the p phase of the branch circuit l of the (h+1) th iteration power distribution network, the current of the p phase of the branch circuit l of the (h+1) th iteration power distribution network is multiplied by the voltage of the q phase at the node j of the (h) th iteration power distribution network to obtain the multiphase complex power of the power distribution network, and the multiphase complex power of the power distribution network is injected into a corresponding transmission bus; obtaining a user positive sequence, a negative sequence and a zero sequence network state vector, and carrying out iterative solution to obtain an updated value of a positive sequence vector correction quantity and a correction result of a negative sequence and zero sequence state quantity, thereby obtaining a new user positive sequence, a new user negative sequence and a new user zero sequence network state vector; Taking the approximate transmission bus voltage of the power distribution network as a local power distribution network root; adopting a forward scanning subprogram for the (y) th power distribution network to obtain the voltage of the p phase at the node j of the (h+1) th iteration power distribution network, and calculating a local user network root based on the voltage of the p phase at the node j of the (h+1) th iteration power distribution network; Adopting a forward scanning subprogram for the (y) th user side network to obtain the voltage of p phase at the node j of the (h+1) th iteration user side network; And judging whether the convergence condition is met, if so, ending the power flow calculation of the sequence number y, otherwise, updating h to h+1, and repeating the steps.
Description
Single-thread and multi-thread power flow method for comprehensive power transmission and distribution network Technical Field The invention relates to the field of power flow calculation of distribution networks, in particular to a single-thread and multi-thread power flow method for a comprehensive transmission and distribution network. Background Under the background of the acceleration construction of a novel power system, the comprehensive power transmission and distribution network is used as a core carrier for energy transmission and distribution, the operation complexity of the comprehensive power transmission and distribution network is obviously improved along with the high-proportion access of a distributed power supply and the multi-load interaction enhancement, and higher requirements are provided for the accuracy and the high efficiency of tide calculation. The power flow calculation is used as a basic tool for planning, designing, running scheduling and safety analysis of the power grid, and the calculation performance of the power flow calculation directly influences the scientificity and timeliness of power grid decision. In the aspect of calculation efficiency, the traditional power flow method needs to solve equations according to sequence in a single-path serial mode, and when a large-scale power grid is processed, the calculation speed increases in geometric stages along with the increase of the power distribution network scale. In the aspect of convergence capability, the system is sensitive to the power grid topology, a large number of nonlinear elements cause the deterioration of the matrix condition number, the parameters are required to be adjusted repeatedly, and the convergence stability is poor. In terms of resource utilization, the single-threaded mode cannot exert the advantages of multi-core hardware, and calculation power is wasted. In the aspect of scene adaptation, full-system recalculation is needed when the power grid topology changes, the local increment updating capability is lacked, and the real-time response requirement of a dynamic power grid is difficult to meet. Disclosure of Invention The invention aims to adapt to a differentiation scene, not only can fully exert the precision advantage of a single-thread method in a medium-and-small-scale power grid, but also can break through the calculation bottleneck of a large-scale power grid by means of a multi-thread method, and provides a powerful technical support for the safe and stable operation, the optimal scheduling decision and the rapid fault diagnosis of a comprehensive power transmission and distribution network. The aim of the invention can be achieved by the following technical scheme: A method for synthesizing single-thread and multi-thread power flow of a power transmission and distribution network comprises the following steps: Establishing a mathematical model of controllable energy to obtain an internal current source of the distributed energy generator with an electronic interface; Constructing a backward scanning subprogram based on the internal current source, and constructing a forward scanning subprogram; And calling a backward scanning subprogram and a forward scanning subprogram to carry out a single-thread or multi-thread power flow calculation method of the comprehensive power transmission and distribution network until convergence conditions are met. Further, the internal current source of the electronic interface distributed energy generator is: ; Wherein, the Representing the internal current source of an electronic interface distributed energy generator,For the three-phase total complex power at node i,In order to be a phase of the light,Respectively representing the phase positions of a, b and c,Representing the phase at node iThe complex number of the conjugates of the voltages,、AndRepresenting the complex conjugate of the voltages of phases a, b and c at node i respectively,Representing the p-phase self admittance of the electronic interface distributed energy generator at node i,Representing the capacitively coupled current source between the p-phase and the remaining phases at node i,Representing the twiddle factor in the symmetrical component transformation. Further, the backward scanning subroutine is specifically: obtaining a user positive sequence, a negative sequence and a zero sequence network state vector, and carrying out iterative solution to obtain an updated value of a positive sequence vector correction quantity and a correction result of a negative sequence and zero sequence state quantity, thereby obtaining a new user positive sequence, a new user negative sequence and a new user zero sequence network state vector; acquiring the q-phase voltage at node j of the h-th iteration Calculating the p-phase current of branch l of the h+1th iteration based on the q-phase voltage at node j of the h iteration and the internal current source of the electronic interface distributed e