CN-121997540-A - Electromagnetic transient simulation method, system, equipment and medium based on error compensation variation algorithm
Abstract
The invention discloses an electromagnetic transient simulation method, a system, equipment and a medium based on an error compensation variation algorithm, which belong to the technical field of electromagnetic transient simulation and comprise the steps of obtaining electrical parameters of discretized nodes of an electric power system, establishing an electromagnetic transient equivalent model based on the parameters, constructing a loss function, preparing a quantum state representing node voltage through a parameter-containing sub-line, calculating a function value of the loss function by utilizing a measurement result of the prepared quantum state, iteratively updating the variation parameter of the parameter-containing sub-line by utilizing the function value, obtaining a measurement result of the quantum state enabling the loss function to be converged, obtaining solved voltage, utilizing a target equivalent admittance matrix, injection current of the nodes and the solved voltage, calculating residual errors for error compensation, and correcting the solved voltage by utilizing the residual errors, and obtaining the corrected voltage as an electromagnetic transient simulation result at the current moment. The invention relieves the calculation error brought by the current noisy quantum computer and realizes the high-precision solution of the linear equation set.
Inventors
- XIAO YANHONG
- WU XIN
- Deng Yuedan
- LI XINZHUO
- ZHANG LI
- XU KUI
Assignees
- 贵州电网有限责任公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251218
Claims (10)
- 1. The electromagnetic transient simulation method based on the error compensation variation algorithm is characterized by comprising the following steps of, Acquiring electrical parameters of a discretization node of an electric power system, establishing an electromagnetic transient equivalent model based on the parameters, and constructing a loss function for measuring the deviation degree between the result of the node voltage passing through the target equivalent admittance matrix and the injection current of the node; Preparing a quantum state representing node voltage through the parameter-containing sub-line, calculating a function value of a loss function by using a measurement result of the prepared quantum state, and iteratively updating a variation parameter in the parameter-containing sub-line by using the function value; Obtaining a quantum state measurement result which enables the loss function to converge, and obtaining a solved voltage; Calculating residual errors for error compensation by using the target equivalent admittance matrix, the injection current of the node and the solved voltage, and correcting the solved voltage by using the residual errors to obtain corrected voltage as an electromagnetic transient simulation result at the current moment.
- 2. The method for electromagnetic transient simulation based on the error compensation variation algorithm of claim 1, wherein the step of obtaining electrical parameters of a discretized node of the power system, the step of establishing an electromagnetic transient equivalent model based on the parameters, and the step of constructing a loss function for measuring the degree of deviation between the result of the node voltage passing through the target equivalent admittance matrix and the injection current of the node, Determining an electrical relationship between nodes according to discretized node electrical parameters of the power system; establishing a node admittance matrix of an electromagnetic transient equivalent model based on the electrical relation; And forming a linear equation set according to the relation between the node admittance matrix and the node injection current, and constructing a loss function for measuring the deviation degree between the node voltage and the node injection current after passing through the target equivalent admittance matrix.
- 3. The method for electromagnetic transient simulation based on an error compensation variation algorithm of claim 2, wherein the target equivalent admittance matrix is obtained by normalizing and dimension expanding the equivalent admittance matrix.
- 4. The method for electromagnetic transient simulation based on the error compensation variation algorithm of claim 3, wherein the calculating the residual error for error compensation using the target equivalent admittance matrix, the injection current of the node and the solved voltage comprises, Calculating the product of the target equivalent admittance matrix and the solved voltage; The difference between the injection current of the node and the calculated product is taken as a residual for error compensation.
- 5. The electromagnetic transient simulation method based on the error compensation variation algorithm of claim 4, wherein the correcting the solved voltage by using the residual error to obtain the corrected voltage as the electromagnetic transient simulation result at the current moment comprises, Calculating correction quantity of the solved voltage by utilizing the residual error, the error correction step length and the solved voltage component, wherein the calculated injection current is the product of the target equivalent admittance matrix and the solved voltage; And correcting the solved voltage through the calculated correction quantity to obtain the corrected voltage as an electromagnetic transient simulation result at the current moment.
- 6. The electromagnetic transient simulation method based on the error compensation variation algorithm of claim 5, wherein the correcting the solved voltage by the calculated correction amount to obtain the corrected voltage as the electromagnetic transient simulation result at the current time comprises, Correcting the solved voltage by the calculated correction quantity; and when the current corrected voltage is not smaller than the preset threshold value, taking the current corrected voltage as the solved voltage, and continuing to correct until the current corrected voltage is smaller than the preset threshold value, and taking the current corrected voltage as an electromagnetic transient simulation result at the current moment.
- 7. The electromagnetic transient simulation method based on the error compensation variation algorithm of claim 6, wherein the error correction step size is based on A value selected within the determined range, wherein, Is the error correction step size and, Is the eigenvalue of the target admittance matrix.
- 8. An electromagnetic transient simulation system based on an error compensation variation algorithm, which applies the electromagnetic transient simulation method based on the error compensation variation algorithm according to any one of claims 1-7, is characterized by comprising a loss function construction module, an iteration update module, a solving module and a simulation result acquisition module; the loss function construction module is used for acquiring electrical parameters of discretized nodes of the power system, establishing an electromagnetic transient equivalent model based on the parameters, and constructing a loss function for measuring the deviation degree between the result of node voltage passing through the target equivalent admittance matrix and the injection current of the node; The iteration updating module is used for preparing a quantum state representing node voltage through the parameter-containing sub-line, calculating a function value of a loss function by using a measurement result of the prepared quantum state, and iteratively updating a variation parameter in the parameter-containing sub-line by using the function value; the solving module is used for obtaining a quantum state measurement result which enables the loss function to be converged and obtaining solved voltage; the simulation result acquisition module is used for calculating residual errors for error compensation by using the target equivalent admittance matrix, the injection current of the node and the solved voltage, correcting the solved voltage by using the residual errors, and obtaining the corrected voltage as an electromagnetic transient simulation result at the current moment.
- 9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the electromagnetic transient simulation method based on the error compensation variation algorithm of any one of claims 1 to 7 when the computer program is executed.
- 10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the electromagnetic transient simulation method based on the error compensation variation algorithm of any one of claims 1 to 7.
Description
Electromagnetic transient simulation method, system, equipment and medium based on error compensation variation algorithm Technical Field The invention relates to the technical field of electromagnetic transient simulation, in particular to an electromagnetic transient simulation method, an electromagnetic transient simulation system, electromagnetic transient simulation equipment and an electromagnetic transient simulation medium based on an error compensation variation algorithm. Background In recent years, the proliferation of renewable energy sources in power converter interfaces in power systems has led to so-called low inertia power systems, so electromagnetic transient (electromagnetic transient, EMT) simulation and analysis has become increasingly important for understanding how power electronics-based power systems operate, explaining equipment faults, and testing protection devices. However, even for powerful commercial simulators equipped with multi-core processors, full EMT simulation of large-scale power systems remains a significant challenge. Electromagnetic transient simulation (Electromagnetic Transient Simulation, abbreviated as EMT simulation) is a core tool for analyzing a rapid electromagnetic transient process (the time scale is usually microsecond to millisecond) in a power system, and by establishing a transient mathematical model of elements of the power system, an electromagnetic transient equation is solved numerically, and voltage and current dynamic changes in the scenes of faults (such as short circuit and lightning stroke), operations (such as switching action and load switching) and the like are reproduced, so that a basis is provided for system design, fault analysis and protection configuration. Along with the expansion of the power grid scale and the increase of the uncertainty of the renewable energy source output, the model scale of the power system is exponentially increased, so that the electromagnetic transient simulation faces the problems of huge calculated amount, limited simulation speed and the like. Disclosure of Invention In view of the above-mentioned problems, the present invention provides an electromagnetic transient simulation method, system, device and medium based on an error compensation variation algorithm. Therefore, the invention solves the technical problems of huge calculation amount, limited simulation speed and the like of electromagnetic transient simulation due to the exponential increase of the model scale of the power system along with the expansion of the power grid scale and the increase of the uncertainty of the renewable energy output. The invention provides a technical scheme for solving the technical problems, which comprises the steps of obtaining discretized node electrical parameters of an electric power system, establishing an electromagnetic transient equivalent model based on the parameters, constructing a loss function for measuring the deviation degree between a result of node voltage passing through a target equivalent admittance matrix and injection current of the node, preparing a quantum state representing the node voltage through a parameter-containing sub-line, calculating a function value of the loss function by utilizing a prepared measuring result of the quantum state, iteratively updating variation parameters in the parameter-containing sub-line by utilizing the function value, obtaining a measuring result of the quantum state which enables the loss function to converge, obtaining solved voltage, utilizing the target equivalent admittance matrix, the injection current of the node and the solved voltage, calculating a residual error for error compensation, and correcting the solved voltage by utilizing the residual error, so as to obtain the corrected voltage as an electromagnetic transient simulation result at the current moment. The method comprises the steps of obtaining discretization node electrical parameters of an electric power system, establishing an electromagnetic transient equivalent model based on the parameters, constructing a loss function for measuring the deviation degree between a result of node voltage passing through a target equivalent admittance matrix and injection current of a node, determining an electrical relation between nodes according to the discretization node electrical parameters of the electric power system, establishing a node admittance matrix of the electromagnetic transient equivalent model based on the electrical relation, forming a linear equation set according to the node admittance matrix and the node injection current relation, and constructing the loss function for measuring the deviation degree between the node voltage passing through the target equivalent admittance matrix and the injection current of the node. As a preferable scheme of the electromagnetic transient simulation method based on the error compensation variation algorithm, the target equivalent admittance matrix