Simulation curve comparison method, device and equipment
Through a simulation curve comparison method, by calculating the average of similarity in the fault period, recovery period and later stage, the problem of curve similarity comparison in power grid simulation is solved, and the accuracy of the stable boundaries of the power grid is improved.
Patent Information
- Application Number
- CN202210932342.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-08-04
AI Technical Summary
In the process of power grid simulation, how to effectively compare the similarity between the two simulation curves, especially when dealing with serious or multiple failures, the determination of the stability and instability boundaries of the curve is a difficult problem.
A simulation curve comparison method is proposed. By obtaining the first simulation curve set and the second simulation curve set to be compared, the mean reflecting the similarity of the simulation curves of the same source during the failure period, the recovery period and the later stage is determined, and the two are calculated to reflect the The mean of the curve of the similarity of the simulation curve.
Effectively determine the similarity of the two simulation curves, improve the reliability and accuracy of simulation curve comparison, and accurately determine the stable boundary of the power grid in the case of multiple faults.
Smart Images

Figure CN115099069B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power grid simulation, and more specifically, to a simulation curve comparison method, device and equipment. Background Art
[0002] In order to ensure the safe and stable operation of the power system, it is necessary to analyze and judge the adverse consequences after the failure of the power grid. However, due to safety reasons, it is impossible to conduct experimental verification in the actual power grid, so simulation is generally required. In the simulation process, for serious faults or multiple faults, there may be a stable or unstable boundary. At this time, the boundary can be determined by comparing the simulation curves of the components in the power grid before and after the fault; in addition, in the process of studying the power system, in order to verify the rigor of the conclusion, the data of the simulated power grid can be fine-tuned and processed with the same tool. Subsequently, the simulation curves of the components in the power grid before and after the data fine-tuning can be compared to determine whether the conclusion is correct or not. However, the comparison of curves has always been a difficult problem in the industry. How to determine whether two curves are relatively similar or have a large difference is the focus of researchers. Summary of the invention
[0003] In view of this, the present application provides a simulation curve comparison method, device and equipment for determining whether two curves are relatively similar or have a large difference.
[0004] In order to achieve the above objectives, the proposed solution is as follows:
[0005] A simulation curve comparison method, comprising:
[0006] Obtaining a first simulation curve set and a second simulation curve set to be compared;
[0007] Among them, the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is restored, and the period from before the fault to a period of time after the fault is restored includes before the fault, during the fault, during the fault recovery and after the fault;
[0008] Determine a first mean value reflecting the similarity of two simulation curves from the same source during a fault, a second mean value reflecting the similarity during a fault recovery, and a third mean value reflecting the similarity after the fault recovery;
[0009] A curve mean reflecting the similarity between two simulation curves from the same source is calculated based on a first mean value during a fault period, a second mean value during a fault recovery period, and a third mean value after the fault recovery period;
[0010] Determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source;
[0011] According to the set mean and the curve mean corresponding to each source, a comparison result of the first simulation curve set and the second simulation curve set is obtained.
[0012] Optionally, obtaining a first simulation curve set and a second simulation curve set to be compared includes:
[0013] Obtain and create electromechanical transient simulation models on two different power simulation software based on the data corresponding to the power system;
[0014] In response to the user's operation of setting a fault, the same fault is set at the same position of the two electromechanical transient simulation models at the same time to obtain two electromechanical transient simulation models after the fault;
[0015] Taking the fault location where the fault occurs as the starting point, select the AC line, DC line, transformer, converter station and / or substation in the electromechanical transient simulation model;
[0016] Acquire simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and after the fault is restored for a period of time;
[0017] The simulation curves of the same electromechanical transient simulation model are combined into a simulation curve set to obtain two simulation curve sets.
[0018] Optionally, obtaining a first simulation curve set and a second simulation curve set to be compared includes:
[0019] Obtain data corresponding to two different power systems, and create two electromechanical transient simulation models on more than one but less than two power simulation software;
[0020] In response to the user's operation of setting a fault, the same fault is set at the same position of the two electromechanical transient simulation models at the same time to obtain two electromechanical transient simulation models after the fault;
[0021] Taking the fault location where the fault occurs as the starting point, select the AC line, DC line, transformer, converter station and / or substation in the electromechanical transient simulation model;
[0022] Acquire simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and after the fault is restored for a period of time;
[0023] The simulation curves of the same electromechanical transient simulation model are combined into a simulation curve set to obtain two simulation curve sets.
[0024] Optionally, determining a first mean value reflecting the similarity of two simulation curves from the same source during a fault, a second mean value reflecting the similarity during a fault recovery, and a third mean value reflecting the similarity after the fault recovery comprises:
[0025] Determine the target abscissa starting point and target abscissa end point before the fault, the first abscissa starting point and the first abscissa end point during the fault, the second abscissa starting point and the second abscissa end point during the fault recovery, and the third abscissa starting point and the third abscissa end point after the fault recovery on each simulation curve, wherein each simulation curve has the same target abscissa starting point, target abscissa end point, first abscissa starting point, first abscissa end point, second abscissa starting point, second abscissa end point, third abscissa starting point and third abscissa end point;
[0026] Determine the cumulative sum of the target ordinates between the target abscissa starting point and the target abscissa end point on each simulation curve, and the number of target sampling points between the target abscissa end point and the target abscissa starting point, and calculate a target mean, wherein the target mean is equal to the ratio between the cumulative sum of the target ordinates and the number of target sampling points;
[0027] Determine the cumulative sum of the first ordinates between the first abscissa starting point and the first abscissa end point on each simulation curve, and the number of first sampling points between the first abscissa end point and the first abscissa starting point;
[0028] Determine the cumulative sum of the second ordinates between the second abscissa starting point and the second abscissa end point on each simulation curve, and the number of second sampling points between the second abscissa end point and the second abscissa starting point;
[0029] Determine the cumulative sum of the third ordinates between the third abscissa starting point and the third abscissa end point on each simulation curve, and the number of third sampling points between the third abscissa end point and the third abscissa starting point;
[0030] According to the target mean, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum and the third sampling point number, determine a first mean reflecting the degree of similarity between two simulation curves from the same source during a fault, a second mean reflecting the degree of similarity during a fault recovery and a third mean reflecting the degree of similarity after a fault recovery.
[0031] Optionally, determining a first mean value reflecting the similarity of two simulation curves from the same source during a fault period, a second mean value reflecting the similarity during a fault recovery period, and a third mean value reflecting the similarity after a fault recovery according to the target mean value, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum, and the third sampling point number includes:
[0032] Calculate the target difference between the target means of each simulation curve from the same source;
[0033] Subtract the target difference corresponding to the source from the difference between the cumulative sums of the first ordinates of the simulation curves from the same source to obtain a first similarity difference, and calculate the ratio between the first similarity difference and the first number of sampling points as a first mean;
[0034] Subtract the target difference corresponding to the source from the difference between the second ordinate cumulative sums of the simulation curves with the same source to obtain a second similarity difference, and calculate the ratio between the second similarity difference and the second number of sampling points as a second mean;
[0035] The target difference corresponding to the source is subtracted from the difference between the cumulative sums of the third ordinates of the simulation curves from the same source to obtain a third similarity difference, and the ratio between the third similarity difference and the third number of sampling points is calculated as the third mean.
[0036] Optionally, a curve mean reflecting the similarity between two simulation curves from the same source is calculated based on the first mean during the fault period, the second mean during the fault recovery period, and the third mean after the fault recovery, including:
[0037] Determine a first weighted value corresponding to the first mean value by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset first mean value;
[0038] Determine a second weighted value corresponding to the second mean by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset second mean;
[0039] Determine a third weighted value corresponding to the third mean by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset third mean;
[0040] The sum of the first weighted value, the second weighted value and the third weighted value is calculated to obtain a curve mean.
[0041] Optionally, determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source includes:
[0042] Add the curve means corresponding to each source to obtain the sum of the curve means;
[0043] Determine the quantity of each source;
[0044] The ratio between the sum of the curve means and the quantity is calculated to obtain the ensemble mean.
[0045] Optionally, obtaining a comparison result of the first simulation curve set and the second simulation curve set according to the set mean and the curve mean corresponding to each source includes:
[0046] Comparing the set mean with a preset first threshold and a second threshold to obtain a set comparison result;
[0047] According to the set comparison result, evaluating the similarity between the two simulation curve sets;
[0048] Compare each curve mean with a preset first threshold and a second threshold to obtain a curve comparison result;
[0049] According to the curve comparison result, the similarity between the simulation curves from the same source is evaluated.
[0050] A simulation curve comparison device, comprising:
[0051] An acquisition unit is used to acquire a first simulation curve set and a second simulation curve set to be compared, wherein the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one simulation curve, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is recovered, and the period from before the fault to a period of time after the fault is recovered includes before the fault, during the fault, during the fault recovery and after the fault;
[0052] A determination unit, used to determine a first mean value of similarity between two simulation curves from the same source during a fault period, a second mean value of similarity between two simulation curves during a fault recovery period, and a third mean value of similarity after a fault recovery period;
[0053] A calculation unit, used for calculating a curve mean reflecting the similarity between two simulation curves from the same source according to a first mean during a fault period, a second mean during a fault recovery period, and a third mean after the fault recovery;
[0054] A utilizing unit, configured to determine a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source;
[0055] An evaluation unit is used to obtain a comparison result of the first simulation curve set and the second simulation curve set according to the set mean and the curve mean corresponding to each source.
[0056] A simulation curve comparison device, comprising a memory and a processor;
[0057] The memory is used to store programs;
[0058] The processor is used to execute the program to implement each step of the above-mentioned simulation curve comparison method.
[0059] A readable storage medium stores a computer program, and when the computer program is executed by a processor, each step of the simulation curve comparison method as described above is implemented.
[0060] It can be seen from the above technical solution that the simulation curve comparison method provided by the present application needs to obtain a first simulation curve set and a second simulation curve set to be compared, wherein the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is restored, and the period from before the fault to a period of time after the fault is restored includes before the fault, during the fault, during the fault recovery and after the fault, therefore, in the comparison process, the simulation curves from the same source have the same horizontal coordinate, and what is compared is the difference in the vertical coordinate under the same horizontal coordinate, which avoids the influence of the horizontal coordinate, i.e., time, in the comparison process, so that the comparison result is credible, and the source set composed of each simulation curve in each simulation curve set is the same, so that in the comparison of simulation curves When comparing the similarity between line sets, the variables are further reduced, making the comparison results between sets credible; the first mean value reflecting the similarity of two simulation curves from the same source during the fault period, the second mean value reflecting the similarity during the fault recovery period, and the third mean value reflecting the similarity after the fault recovery can be determined. Therefore, the present application focuses on the similarity of curves from the same source before, during, and after the fault, and can further focus on the similarity of simulation curves from the same source under different circumstances, rather than just focusing on the error values between simulation curves from the same source; and on this basis, the curve mean between two simulation curves from the same source in different simulation curve sets can be calculated based on the first mean value during the fault period, the second mean value during the fault recovery period, and the third mean value after the fault recovery. Therefore, the similarity of simulation curves from the same source under different circumstances can be comprehensively considered to determine the mean between simulation curves from the same source; the set mean between two simulation curve sets can be determined based on the curve mean corresponding to each source; the similarity between two simulation curve sets and each simulation curve from the same source can be evaluated based on the set mean and the curve mean corresponding to each source. Therefore, the present application evaluates the similarity between simulation curve sets based on multiple simulation curves, which can further improve the reliability and accuracy of curve comparison. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0062] Figure 1 A flow chart of a simulation curve comparison method disclosed in an embodiment of the present application;
[0063] Figure 2 A schematic diagram of a simulation curve for an example of this application;
[0064] Figure 3 A schematic diagram of the structure of a simulation curve comparison device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] The simulation curve comparison method provided in the present application can be applied to the field of power grid technology. With the help of the present application, the correctness of the conclusions of power grid research can be verified, and the feasibility of power grid optimization methods and the correctness of power grid parameter adjustment can be studied.
[0067] Furthermore, some power system parameters may have thresholds. Once the thresholds are exceeded, it is difficult to maintain safe and stable operation of the power system after a fault occurs. The present application can be used to determine the thresholds of various circuit system parameters.
[0068] Next, combine Figure 1 The simulation curve comparison method of the present application is introduced in detail, including the following steps:
[0069] Step S1, obtaining a first simulation curve set and a second simulation curve set to be compared.
[0070] Specifically, the first simulation curve set and the second simulation curve set to be compared can be obtained in a variety of ways. In a variety of different scenarios, the present application can be used. For example, in the process of studying how to optimize the power system, the power system parameters with some parameters modified and the power system parameters that have not been modified can be obtained. At this time, it is necessary to determine the impact of the power system after the power system parameters with some parameters modified are affected. Two simulated power systems can be constructed based on the power system parameters with some parameters modified and the power system parameters that have not been modified. The similarity of the power system components such as each simulation node, each simulation line, each simulation transformer and each station in the two simulated power systems when they suffer a fault can be compared, and the impact of the power system after the power system parameters with some parameters modified are determined. The similarity of the power system components such as each simulation node, each simulation line, each simulation transformer and each station in the two simulated power systems when they suffer a fault can be achieved by comparing the simulation curves of the power system components such as each simulation node, each simulation line, each simulation transformer and each station in the two simulated power systems. The simulation curves of the same simulated power system form a simulation curve set. Based on this, by comparing the similarity of two simulation curve sets, the impact of the power system parameters after some parameters are modified can be determined.
[0071] Among them, the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is recovered, and the period from before the fault to a period of time after the fault is recovered includes before the fault, during the fault, during the fault recovery and after the fault.
[0072] Each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is recovered. The period from before the fault to a period of time after the fault is recovered includes before the fault, during the fault, during the fault recovery and after the fault.
[0073] The source may be composed of various simulation nodes, various simulation lines, various simulation transformers, various stations and other power systems.
[0074] Electromechanical transient simulation technology can be used to simulate the power system.
[0075] See also Figure 2 , which is a schematic diagram of a simulation curve of an example of this application.
[0076] Two simulation curves from the same source are plotted on the graph, and the horizontal axis represents a period of time from before the fault starts to a period of time after the fault is restored.
[0077] Group A and group B represent the first simulation curve set and the second simulation curve set respectively, and k represents the source is k.
[0078] T1 is the time when the fault occurs, T2 is the time when the fault ends, T3 is the time when the fault recovery period ends, and T4 is the time when the simulation curve ends.
[0079] Sampling can be performed at intervals of 0.02s or 0.01s, corresponding to one cycle or half a cycle of the power system at a frequency of 50Hz.
[0080] It can be seen that the similarity of the two simulation curves during the fault recovery period and a period of time after the fault ends is lower than the similarity during the fault period and before the fault. However, in some cases, the similarity during the fault recovery period and a period of time after the fault ends is not as important as the similarity during the fault period and before the fault. Therefore, the judgment result obtained by directly determining the overlap between the two simulation curves is not highly reliable. Based on this, when determining the similarity between the two simulation curves, the present application can use the similarity of each time period of the simulation curve to determine the similarity between the two simulation curves, which is more reliable.
[0081] Step S2, determining a first mean value of the similarity between two simulation curves from the same source during a fault period, a second mean value of the similarity between two simulation curves during a fault recovery period, and a third mean value of the similarity between two simulation curves after a fault recovery period.
[0082] Specifically, the similarity of two simulation curves from the same source may be compared, while simulation curves from different sources are not compared.
[0083] In the process of comparing the similarity of two simulation curves from the same source, it is considered that maintaining the safe and stable operation of the power system is of utmost importance. Based on this, in the process of comparing the similarity, the focus should be on comparing the similarity from the occurrence of the fault to the fault recovery. Therefore, the similarity during the fault period, the fault recovery period and the fault recovery period can be compared.
[0084] Among them, the first mean value can be determined according to the mean square error of the two simulation curves at each collection point during the fault period; the second mean value can be determined according to the mean square error of the two simulation curves at each collection point during the fault recovery period; and the third mean value can be determined according to the mean square error of the two simulation curves at each collection point after the fault recovery.
[0085] The fault period may be a period of time from the time when the fault occurs T1 to the time when the fault ends T2.
[0086] The fault recovery period can be a period of time from T2 to T3 when the fault ends. The length of the fault recovery period can be set according to the severity of the fault, that is, T3 can be set according to the severity of the fault. For example, when the fault is not serious, the length of the fault recovery period can be set to 2s, then T3 is equal to T2+2s.
[0087] After the fault is restored, it can be a period of time from T3 to the end time T4 of the simulation curve. The duration from the fault occurrence time T1 to the end time T4 of the simulation curve can be determined according to the possible consequences of the fault. For example, if the power system may experience transient voltage instability or power angle instability after the fault occurs, the duration can be 4s. If the power system may oscillate after the fault occurs, the duration can be [10s, 20s]. Generally speaking, the duration from the fault occurrence time T1 to the end time T4 of the simulation curve can be [4s, 20s].
[0088] Step S3, calculating a curve mean reflecting the similarity between two simulation curves from the same source based on the first mean during the fault period, the second mean during the fault recovery period, and the third mean after the fault recovery.
[0089] Specifically, the first mean, the second mean and the third mean can be weighted, and the value obtained after the weighted operation can be used as the curve mean. Alternatively, the first mean, the second mean and the third mean can be directly added together, and the sum of the first mean, the second mean and the third mean can be used as the curve mean.
[0090] The horizontal axes of the two simulation curves from the same source are the period from before the power grid fault to the fault recovery. Therefore, the first mean, second mean and third mean of the two simulation curves during the fault period, the fault recovery period and after the fault are calculated, and the calculated value is the error between the two simulation curves, which can reflect the similarity between the two simulation curves.
[0091] Step S4: Determine a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve mean corresponding to each source.
[0092] Specifically, the mean value corresponding to each source can be calculated by using the mean value of the curve corresponding to each source, and the mean value corresponding to each source can be used as the set mean value.
[0093] By calculating the mean of each source, the mean of each source is the average error between two simulation curves of each source in the first simulation curve set and the second simulation curve set. The average error can reflect the similarity between the first simulation curve set and the second simulation curve set.
[0094] Step S5: Obtain a comparison result of the first simulation curve set and the second simulation curve set according to the set mean and the curve mean corresponding to each source.
[0095] Specifically, the similarity between two simulation curves of each source may be determined according to the mean value of the curve corresponding to the source, and the determination result may be used as the comparison result.
[0096] According to the set mean, the similarity between the first simulation curve set and the second simulation curve set can be determined, and the determination result is used as the comparison result.
[0097] It can be seen from the above technical solution that the simulation curve comparison method provided in the embodiment of the present application can determine the comparison results between two simulation curves under the same source, thereby determining the similarity between the two simulation curves under the same source. It is also possible to comprehensively refer to the comparison results between two simulation curve sets under different sources, thereby determining the similarity between the two simulation curve sets to determine the similarity between the two electromagnetic transient simulation power systems corresponding to the two simulation curve sets. Subsequently, the similarity between the two electromechanical transient simulation power systems can be used to formulate a plan to maintain the safe and stable operation of the real power system. And after formulating a plan to maintain the safe and stable operation of the real power system, this application can also be used for verification to improve the reliability and feasibility of the plan.
[0098] In addition, when judging the similarity between two electromechanical transient simulation power systems, the present application comprehensively refers to simulation curves from multiple sources, thereby further improving the correctness and reliability of the conclusion of the similarity judgment.
[0099] In some embodiments of the present application, considering that the methods of implementing step S1 and obtaining the first simulation curve set and the second simulation curve set to be compared are different in different situations, this embodiment provides two optional methods. Next, these two optional methods are described in detail as follows:
[0100] The first one,
[0101] S10, obtaining and creating an electromechanical transient simulation model on two different power simulation software according to data corresponding to the power system.
[0102] Specifically, electromechanical transient simulation can be performed using a variety of power simulation software or a variety of power simulation tools. Under the same power system parameters, different power simulation software or power simulation tools may produce opposite results under the same fault, leading to opposite conclusions. Therefore, this application can be used to compare whether the simulations of the same power parameters by two power simulation software or two power simulation tools are consistent.
[0103] The parameters of the power system can be obtained, and the power system can be simulated on two power simulation software or two power simulation tools using the parameters of the power system to obtain two electromechanical transient simulation models.
[0104] S11 , in response to the user's operation of setting a fault, setting the same fault at the same position of two electromechanical transient simulation models at the same time to obtain two electromechanical transient simulation models after the fault.
[0105] Specifically, the same fault may be set on two electromechanical transient simulation models to generate simulation curves, and the similarity of the two electromechanical transient simulation models may be determined by comparing the similarity of the simulation curves.
[0106] In order to reduce independent variables and improve the correctness of the conclusion of similarity between two electromechanical transient simulation models, the locations of the faults set on the two electromechanical transient simulation models need to be the same, and the same faults need to be set at the same time.
[0107] S12. Taking the fault location where the fault occurs as a starting point, select an AC line, a DC line, a transformer, a converter station and / or a substation in the electromechanical transient simulation model.
[0108] Specifically, the degree of impact of each power system component after the fault occurs can be determined, and based on the degree of impact, the source type that needs to be selected and the number of each source type can be determined.
[0109] Each source type may be an AC line, a DC line, a transformer, a converter station and / or a substation.
[0110] The number of source types can be consistent or inconsistent.
[0111] When selecting sources based on the types and numbers of each source, the principle is to select the nearest source first and the farthest source later. Try to select the power system components that are close to the fault location and have the fewest branches to reach the fault location as the source. When the branches to reach the fault location are the same, randomly select the power system components that match the source type as the source. For example, the source types can be determined to be DC lines and AC lines, and the number of each is 3. In the electromechanical transient simulation model, the DC line and AC line in the same branch as the fault location are determined. If the number of DC lines and AC lines in the same branch as the fault location is 3, the DC line and AC line in the same branch as the fault location are all used as sources; if the number of DC lines and AC lines in the same branch as the fault location exceeds 3, 3 DC lines and 3 AC lines in the same branch as the fault location are randomly selected as sources; if the number of DC lines and AC lines in the same branch as the fault location is 2, the DC line and AC line in the same branch as the fault location are all used as sources, and a DC line and an AC line are randomly selected as sources from the branch one branch away from the fault location.
[0112] It should be noted that the sources selected for the two electromechanical transient simulation models are the same. The same type of source does not necessarily mean the same source. The same source refers to the same location, the same branch, and the same type of power system composition in the two electromechanical transient simulation models.
[0113] S13. Obtain simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on the two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and a period of time after the fault is recovered.
[0114] Specifically, after determining the source, the simulation curves of each source on the two electromechanical transient simulation models are obtained. The horizontal coordinates of the simulation curves are consistent, and are all from before the fault to a period of time after the fault is restored. The vertical coordinates of the two simulation curves from the same source are of the same type, and can also be output quantities such as voltage, frequency, power and power angle. For example, the vertical coordinates of the two simulation curves corresponding to the same DC line can also be power. The types of the vertical coordinates of each simulation curve in the same simulation curve set may be inconsistent. For example, in the first simulation curve set, the vertical coordinates of some simulation curves are voltage, and the vertical coordinates of other simulation curves can be power angle.
[0115] S14. Combining simulation curves of the same electromechanical transient simulation model into a simulation curve set to obtain two simulation curve sets.
[0116] Specifically, the simulation curves obtained by using the same electromechanical transient simulation model can constitute a first simulation curve set, and the simulation curves obtained by using another electromechanical transient simulation model can constitute a second simulation curve set.
[0117] The second type
[0118] S15. Obtain data corresponding to two different power systems, and create two electromechanical transient simulation models on more than one and less than two power simulation software.
[0119] Specifically, different power system data correspond to different power systems. Under the same fault, the operating states of different power systems may be the same or different. Therefore, it is possible to verify whether the power systems corresponding to different power system parameters are similar, so as to verify whether the power system corresponding to the power system can still maintain safe and stable operation after the power system parameters are modified.
[0120] The data corresponding to two different power systems may be obtained, wherein the data corresponding to the two different power systems may have only a few parameters that are different, or even only one parameter that is different, and the rest of the parameters are the same.
[0121] After obtaining two sets of data corresponding to the power system, that is, power system parameters, simulation can be performed using the same power simulation software to obtain two electromechanical transient simulation models, or simulation can be performed using two different power simulation software to obtain two electromechanical transient simulation models.
[0122] S16, in response to the user's operation of setting a fault, setting the same fault at the same position of the two electromechanical transient simulation models at the same time, and obtaining two electromechanical transient simulation models after the fault.
[0123] Specifically, the same fault can be set on two electromechanical transient simulation models to reduce independent variables.
[0124] S17. Taking the fault location where the fault occurs as a starting point, select an AC line, a DC line, a transformer, a converter station and / or a substation in the electromechanical transient simulation model.
[0125] Specifically, the source of each simulation curve can be selected on two electromechanical transient simulation models. The same source of the simulation model means that the two simulation curves can be the same except for the corresponding electromechanical transient simulation model and the vertical coordinate.
[0126] S18. Obtain simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on the two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and a period of time after the fault is recovered.
[0127] S19. Combining simulation curves of the same electromechanical transient simulation model into a simulation curve set to obtain two simulation curve sets.
[0128] Specifically, various simulation curves obtained by using the same electromechanical transient simulation model may be combined into a simulation curve set.
[0129] It can be seen from the above technical scheme that compared with the previous embodiment, this embodiment provides two optional methods for obtaining the first simulation curve set and the second simulation curve set to be compared for different application scenarios. Through the above scheme, different methods correspond to different scenarios, which makes the application process of this embodiment more reliable and more adaptable to different application scenarios.
[0130] In some embodiments of the present application, step S2, determining a first mean value of the similarity between two simulation curves from the same source during a fault, a second mean value of the similarity during a fault recovery, and a third mean value of the similarity after the fault recovery, is described in detail, and the steps are as follows:
[0131] S20, determining the target horizontal coordinate starting point and target horizontal coordinate end point before the fault, the first horizontal coordinate starting point and the first horizontal coordinate end point during the fault, the second horizontal coordinate starting point and the second horizontal coordinate end point during the fault recovery, and the third horizontal coordinate starting point and the third horizontal coordinate end point after the fault recovery on each simulation curve.
[0132] Specifically, since the horizontal coordinates of each simulation curve are the same, each simulation curve has the same target horizontal coordinate starting point, target horizontal coordinate end point, first horizontal coordinate starting point, first horizontal coordinate end point, second horizontal coordinate starting point, second horizontal coordinate end point, third horizontal coordinate starting point and third horizontal coordinate end point.
[0133] The target horizontal axis starting point is the start time of the simulation curve, the target horizontal axis terminal is the fault occurrence time T1, the first horizontal axis starting point is the fault occurrence time T1, the first horizontal axis terminal is the fault end time T2, the second horizontal axis starting point is the fault end time T2, the second horizontal axis terminal is T3, the third horizontal axis starting point is T3, and the third horizontal axis terminal is the simulation curve end time T4.
[0134] S21. Determine the cumulative sum of the target ordinates between the target abscissa starting point and the target abscissa end point on each simulation curve, and the number of target sampling points between the target abscissa end point and the target abscissa starting point, and calculate a target mean, where the target mean is equal to the ratio of the cumulative sum of the target ordinates to the number of target sampling points.
[0135] Specifically, the ordinates corresponding to the sampling points before the fault of each simulation curve can be determined, the ordinates corresponding to the sampling points before the fault are added, and the sum of the ordinates corresponding to the sampling points before the fault is used as the cumulative sum of the target ordinates between the starting point and the end point of the target ordinate on the simulation curve.
[0136] The number of sampling points between the target horizontal coordinate starting point and the target horizontal coordinate end point may be counted as the target sampling point number.
[0137] The ratio between the target ordinate cumulative sum and the target number of sampling points may be calculated as the target mean.
[0138] The target mean is the average value of the vertical coordinates of each sampling point before the fault.
[0139] S22: Determine the cumulative sum of the first ordinates between the first abscissa starting point and the first abscissa end point on each simulation curve, and the number of first sampling points between the first abscissa end point and the first abscissa starting point.
[0140] Specifically, the ordinate corresponding to each sampling point during the fault period of each simulation curve can be determined, the ordinates corresponding to each sampling point during the fault period are added, and the sum of the ordinates corresponding to each sampling point during the fault period is used as the first ordinate cumulative sum between the first horizontal coordinate starting point and the first horizontal coordinate end point on the simulation curve.
[0141] The number of sampling points between the first horizontal coordinate starting point and the first horizontal coordinate end point may be counted as the first sampling point number.
[0142] S23, determining the cumulative sum of the second ordinates between the second abscissa starting point and the second abscissa end point on each simulation curve, and the number of second sampling points between the second abscissa end point and the second abscissa starting point.
[0143] Specifically, the vertical coordinate corresponding to each sampling point during the fault recovery period of each simulation curve can be determined, the vertical coordinate corresponding to each sampling point during the fault recovery period can be added, and the sum of the vertical coordinates corresponding to each sampling point during the fault recovery period can be used as the cumulative sum of the second vertical coordinates between the starting point of the second horizontal coordinate and the end point of the second horizontal coordinate on the simulation curve.
[0144] The number of sampling points between the second horizontal coordinate starting point and the second horizontal coordinate end point may be counted as the second sampling point number.
[0145] S24, determining the cumulative sum of the third ordinates between the third abscissa starting point and the third abscissa end point on each simulation curve, and the number of third sampling points between the third abscissa end point and the third abscissa starting point.
[0146] Specifically, the vertical coordinates corresponding to each sampling point after the fault recovery of each simulation curve can be determined, the vertical coordinates corresponding to each sampling point after the fault recovery are added, and the sum of the vertical coordinates corresponding to each sampling point after the fault recovery is used as the cumulative sum of the third vertical coordinates between the starting point of the third horizontal coordinate and the end point of the third horizontal coordinate on the simulation curve.
[0147] The number of sampling points between the starting point of the third horizontal coordinate and the end point of the third horizontal coordinate may be counted as the third sampling point number.
[0148] S25. Determine, based on the target mean, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum and the third sampling point number, a first mean reflecting the degree of similarity between two simulation curves from the same source during the fault period, a second mean reflecting the degree of similarity during the fault recovery period and a third mean reflecting the degree of similarity after the fault recovery.
[0149] Specifically, the first mean, the second mean and the third mean may be calculated using the target mean, the first ordinate cumulative sum, the first number of sampling points, the second ordinate cumulative sum, the second number of sampling points, the third ordinate cumulative sum and the third number of sampling points.
[0150] It can be seen from the above technical solution that this embodiment provides an optional method for determining a first mean value of the similarity between two simulation curves from the same source during a fault, a second mean value of the similarity between two simulation curves during fault recovery, and a third mean value of the similarity after fault recovery. Through the above method, the average values of the acquisition points before the fault, the vertical coordinates during the fault, during the fault recovery, and after the fault recovery can be comprehensively referenced to obtain the first mean value of the similarity between two simulation curves from the same source during the fault, the second mean value of the similarity between two simulation curves during the fault recovery, and the third mean value of the similarity after the fault recovery, thereby avoiding the influence of the output before the fault on the first mean, the second mean, and the third mean, making the comparison result more accurate and reliable.
[0151] In some embodiments of the present application, step S25, according to the target mean, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum and the third sampling point number, determines the first mean of the similarity between two simulation curves from the same source during the fault period, the second mean of the similarity during the fault recovery period and the third mean of the similarity after the fault recovery, and the steps are described in detail as follows:
[0152] S250, calculating the target difference between the target mean values of the simulation curves with the same source.
[0153] Specifically, the target mean difference between the two simulation curves corresponding to each source is calculated to obtain the target difference corresponding to each source. Each target difference is the average difference between the two simulation curves of the same source at each sampling point before the fault, corresponding to the target difference.
[0154] S251, subtracting a target difference corresponding to the source from a difference between the cumulative sums of the first ordinates of the simulation curves from the same source to obtain a first similarity difference, and calculating a ratio between the first similarity difference and the first number of sampling points as a first mean.
[0155] Specifically, the difference between the cumulative sums of the first ordinates of two simulation curves from the same source can be calculated. In order to avoid the influence of the difference between the two simulation curves from the same source before the fault on the similarity comparison during the fault, the target difference corresponding to the source can be subtracted from the difference between the cumulative sums of the first ordinates, and the obtained value can be used as the first similarity difference. At this time, the first similarity difference can reflect the total change amplitude difference of the two simulation curves at each sampling point during the fault period.
[0156] The ratio of the first similarity difference to the first number of sampling points can be calculated and used as the first mean. The first mean is the average change amplitude difference of each sampling point of two simulation curves from the same source during the fault period. The average change amplitude difference of each sampling point can indicate the similarity of the changes between the two simulation curves during the fault period, and can reflect the average difference in the drop depth between the two simulation curves during the fault period.
[0157] In order to prevent the positive and negative comparison of the first mean from affecting the result, the first mean may be updated by squaring the first mean and then taking the square root to obtain a non-negative first mean.
[0158] Furthermore, if the similarity between the two simulation curves before the fault is high, the target difference can be directly set to 0, or the difference between the cumulative sum of the first ordinates of the two simulation curves from the same source can be directly used as the first similarity difference.
[0159] S252, subtracting the target difference corresponding to the source from the difference between the second ordinate cumulative sums of the simulation curves with the same source to obtain a second similarity difference, and calculating a ratio between the second similarity difference and the second number of sampling points as a second mean.
[0160] Specifically, the difference between the cumulative sums of the second ordinates of two simulation curves from the same source can be calculated. In order to avoid the influence of the difference between the two simulation curves from the same source before the fault on the similarity comparison during the fault, the target difference corresponding to the source can be subtracted from the difference between the cumulative sums of the second ordinates, and the obtained value can be used as the second similarity difference. At this time, the second similarity difference can reflect the total change amplitude difference of the two simulation curves at each sampling point during the fault recovery period.
[0161] The ratio of the second similarity difference to the second number of sampling points can be calculated and used as the second mean. The second mean is the average change amplitude difference of each sampling point of two simulation curves from the same source during fault recovery. The average change amplitude difference of each sampling point can indicate the similarity of changes between the two simulation curves during fault recovery, and can reflect the average difference in drop depth between the two simulation curves during fault recovery.
[0162] In order to prevent the positive and negative comparison of the first mean from affecting the result, the first mean may be updated to obtain a second mean that is a non-negative number.
[0163] Furthermore, if the similarity between the two simulation curves before the fault is high, the target difference can be directly set to 0, or the difference between the cumulative sum of the second ordinates of the two simulation curves from the same source can be directly used as the second similarity difference.
[0164] S253, subtracting the target difference corresponding to the source from the difference between the cumulative sums of the third ordinates of the simulation curves with the same source to obtain a third similarity difference, and calculating a ratio between the third similarity difference and the third number of sampling points as a third mean.
[0165] Specifically, the difference between the cumulative sums of the third ordinates of two simulation curves from the same source can be calculated, the target difference corresponding to the source can be subtracted from the difference between the cumulative sums of the third ordinates, and the obtained value can be used as the third similarity difference. At this time, the third similarity difference can reflect the total change amplitude difference of the two simulation curves at each sampling point after fault recovery.
[0166] The ratio of the third similarity difference to the third number of sampling points can be calculated and used as the third mean. The third mean is the average change amplitude difference of each sampling point of two simulation curves from the same source after fault recovery. The average change amplitude difference of each sampling point can indicate the similarity of changes between the two simulation curves after fault recovery, and can reflect the average difference in drop depth between the two simulation curves during the fault period.
[0167] In order to avoid the influence of the positive and negative comparison of the third mean on the result, the first mean may be squared and then squared to obtain a non-negative third mean.
[0168] Furthermore, if the similarity between the two simulation curves before the fault is high, the target difference can be directly set to 0, or the difference between the cumulative sum of the third ordinates of the two simulation curves from the same source can be directly used as the third similarity difference.
[0169] It can be seen from the above technical solution that this embodiment provides an optional technical solution for calculating the first mean, the second mean and the third mean. Through the above technical solution, in the process of calculating the first mean, the second mean and the third mean, the average change amplitude difference of each sampling point during the fault period can be used as the first mean, the average change amplitude difference of each sampling point during the fault recovery period can be used as the second mean, and the average change amplitude difference of each sampling point after the fault recovery can be used as the third mean, which can avoid the influence before the fault, so as to improve the accuracy of the first mean, the second mean and the third mean, thereby improving the reliability and accuracy of the comparison result of the present application.
[0170] In some embodiments of the present application, step S3, a process of calculating a curve mean reflecting the similarity between two simulation curves from the same source according to the first mean during the fault period, the second mean during the fault recovery period, and the third mean after the fault recovery, is described in detail, and the steps are as follows:
[0171] S30 , referring to the performance weight of the similarity degree of the simulation curves with the same source for the preset first mean value, and determining a first weighted value corresponding to the first mean value.
[0172] Specifically, the importance during the fault period, the importance during the fault recovery period, and the importance after the fault recovery can be determined in advance in the process of judging whether two electromechanical transient simulation models are similar by utilizing the changes in the composition of each power system of the electromechanical transient simulation model. Based on the importance during the fault period, the importance during the fault recovery period, and the importance after the fault recovery, the performance weights of the similarity of simulation curves from the same source during the fault period, the performance weights of the similarity of simulation curves from the same source during the fault recovery period, and the performance weights of the similarity of simulation curves from the same source after the fault recovery are determined.
[0173] Generally, the performance weight of the similarity of simulation curves with the same source during a fault may be 0.7, the performance weight of the similarity of simulation curves with the same source during fault recovery may be 0.2, and the performance weight of the similarity of simulation curves with the same source after fault recovery may be 0.1.
[0174] The first mean value is multiplied by the performance weight of the similarity degree of the simulation curves with the same source during the fault period, and the obtained product is used as the first weighted value corresponding to the first mean value.
[0175] S31 . Determine a second weighted value corresponding to the second mean by referring to the performance weight of the similarity degree of the simulation curves with the same source.
[0176] Specifically, the second mean value is multiplied by the performance weight of the similarity degree of the simulation curves with the same source during the fault period, and the obtained product is used as the second weighted value corresponding to the second mean value.
[0177] S32. Determine a third weighted value corresponding to the third mean by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset third mean.
[0178] Specifically, the third mean value is multiplied by the performance weight of the similarity degree of the simulation curves with the same source during the fault period, and the obtained product is used as the third weighted value corresponding to the third mean value.
[0179] S33: Calculate the sum of the first weighted value, the second weighted value and the third weighted value to obtain a curve mean.
[0180] Specifically, the first weighted value, the second weighted value and the third weighted value of the same source are directly added together to obtain a curve mean of two simulation curves corresponding to the source, and the curve mean indicates the error between the two simulation curves under the source.
[0181] It can be seen from the above technical solution that this embodiment provides an optional way to calculate the curve mean. Through the above solution, the curve mean can be further determined according to the importance of the simulation curve comparison result during the fault period, during the fault recovery period and after the fault recovery, so that the comparison result is more reliable.
[0182] In some embodiments of the present application, the process of determining the set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve mean corresponding to each source in step S4 is described in detail, and the steps are as follows:
[0183] S40, adding the curve means corresponding to each source to obtain the sum of the curve means.
[0184] Specifically, the sum of the mean values of the curves corresponding to each source may be calculated.
[0185] S41. Determine the quantity of each source.
[0186] Specifically, the number of simulation curves in the first simulation curve set or the second simulation curve set may be counted. The number of simulation curves in the first simulation curve set or the second simulation curve set is equal to the number of sources.
[0187] S42. Calculate the ratio between the sum of the curve means and the quantity to obtain a set mean.
[0188] Specifically, a ratio of the sum of the curve means to the number is calculated, and the ratio is the set mean, which indicates the similarity between the first simulation curve set and the second simulation curve set.
[0189] It can be seen from the above technical solution that this embodiment provides an optional method for calculating the set mean. Through the above method, the similarity between the two simulation curves from each source in the first simulation curve set and the second simulation curve set can be comprehensively considered, and finally the set mean reflecting the similarity between the first simulation curve set and the second simulation curve set can be determined, so as to better compare the similarity between the first simulation curve set and the second simulation curve set.
[0190] In some embodiments of the present application, step S5, the process of obtaining the comparison result of the first simulation curve set and the second simulation curve set according to the set mean and the curve mean corresponding to each source is described in detail, and the steps are as follows:
[0191] S50: Compare the set mean with a preset first threshold and a preset second threshold to obtain a set comparison result.
[0192] Specifically, the tolerance level for the average variation amplitude difference may be predetermined, and the first threshold and the second threshold may be determined according to the tolerance level, wherein the tolerance level may be different in different scenarios.
[0193] Generally, the first threshold may be 0.005, and the second threshold may be 0.01.
[0194] The first threshold is smaller than the second threshold.
[0195] The size of the set mean value may be compared with the first threshold value, and the size of the set mean value may be compared with the second threshold value.
[0196] S51. Evaluate the similarity between two simulation curve sets according to the set comparison result.
[0197] Specifically, if the set mean is not greater than the first threshold, it indicates that the first simulation curve set and the second simulation curve set are highly similar.
[0198] If the set mean is not greater than the second threshold value and greater than the first threshold value, it indicates that the similarity between the first simulation curve set and the second simulation curve set is poor.
[0199] If the set mean is greater than the second threshold, it indicates that the similarity between the first simulation curve set and the second simulation curve set is very poor.
[0200] S52: Compare each curve mean with a preset first threshold and a preset second threshold to obtain a curve comparison result.
[0201] Specifically, the size of each curve mean value may be compared with the first threshold, and the size of each curve mean value may be compared with the second threshold.
[0202] S53: Evaluate the similarity between the simulation curves from the same source according to the curve comparison result.
[0203] Specifically, if the curve mean is not greater than the first threshold, it indicates that the two simulation curves corresponding to the curve mean are highly similar.
[0204] If the curve mean is not greater than the second threshold value and greater than the first threshold value, it indicates that the similarity between the two simulation curves corresponding to the curve mean value is poor.
[0205] If the curve mean is greater than the second threshold, it indicates that the similarity between the two simulation curves corresponding to the curve mean is very poor.
[0206] It can be seen from the above technical solution that this embodiment provides an optional method for determining the similarity between the first simulation curve set and the second simulation curve set by the set mean and determining the similarity between two simulation curves from the same source by the curve mean. Through the above method, the first threshold and the second threshold can be used as the basis for judgment, so that the comparison results are more unified, and the similarity between each source and each simulation curve set can be better judged.
[0207] Next, the simulation curve comparison device provided in the present application is described. The simulation curve comparison device described below and the simulation curve comparison method described above can be referenced to each other.
[0208] See also Figure 3 , Figure 3 A schematic diagram of the structure of a simulation curve comparison device disclosed in an embodiment of the present application.
[0209] Will combine Figure 3 The simulation curve comparison device provided in this application is introduced in detail.
[0210] See also Figure 3 , the simulation curve comparison device may include:
[0211] An acquisition unit 1 is used to acquire a first simulation curve set and a second simulation curve set to be compared, wherein the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one simulation curve, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is recovered, and the period from before the fault to a period of time after the fault is recovered includes before the fault, during the fault, during the fault recovery and after the fault;
[0212] Determining unit 2, used to determine a first mean value of similarity between two simulation curves from the same source during a fault period, a second mean value of similarity between two simulation curves during a fault recovery period, and a third mean value of similarity after a fault recovery period;
[0213] A calculation unit 3, used for calculating a curve mean reflecting the similarity between two simulation curves from the same source according to a first mean during a fault period, a second mean during a fault recovery period, and a third mean after the fault recovery;
[0214] Utilizing unit 4, for determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source;
[0215] The evaluation unit 5 is used to obtain a comparison result between the first simulation curve set and the second simulation curve set according to the set mean and the curve mean corresponding to each source.
[0216] Furthermore, the acquisition unit may include:
[0217] A data acquisition unit, used to acquire and create an electromechanical transient simulation model on two different power simulation software according to data corresponding to the power system;
[0218] A fault setting unit, used to respond to a user's operation of setting a fault, and to simultaneously set the same fault at the same position of two electromechanical transient simulation models to obtain two electromechanical transient simulation models after the fault;
[0219] A source selection unit is used to select an AC line, a DC line, a transformer, a converter station and / or a substation in the electromechanical transient simulation model, taking the fault location where the fault occurs as a starting point;
[0220] A curve acquisition unit, used to acquire simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and after the fault is restored for a period of time;
[0221] The set acquisition unit is used to group the simulation curves of the same electromechanical transient simulation model into a simulation curve set to obtain two simulation curve sets.
[0222] Furthermore, the acquisition unit may also include:
[0223] A model building unit, used for acquiring data corresponding to two different power systems, and creating two electromechanical transient simulation models on more than one and less than two power simulation software;
[0224] A fault model acquisition unit is used to respond to a user's operation of setting a fault, and to simultaneously set the same fault at the same position of two electromechanical transient simulation models to obtain two electromechanical transient simulation models after the fault;
[0225] A line selection unit is used to select an AC line, a DC line, a transformer, a converter station and / or a substation in the electromechanical transient simulation model, taking the fault location where the fault occurs as a starting point;
[0226] An output quantity acquisition unit, used for acquiring simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on two electromechanical transient simulation models, wherein the simulation curves record the output quantity change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and after the fault is restored for a period of time;
[0227] The curve combination unit is used to combine the simulation curves of the same electromechanical transient simulation model into a simulation curve set to obtain two simulation curve sets.
[0228] Furthermore, the determining unit may include:
[0229] a horizontal coordinate determination unit, used to determine a target horizontal coordinate starting point and a target horizontal coordinate end point before the fault, a first horizontal coordinate starting point and a first horizontal coordinate end point during the fault, a second horizontal coordinate starting point and a second horizontal coordinate end point during the fault recovery, and a third horizontal coordinate starting point and a third horizontal coordinate end point after the fault recovery on each simulation curve, wherein each simulation curve has the same target horizontal coordinate starting point, target horizontal coordinate end point, first horizontal coordinate starting point, first horizontal coordinate end point, second horizontal coordinate starting point, second horizontal coordinate end point, third horizontal coordinate starting point and third horizontal coordinate end point;
[0230] a ratio calculation unit, used to determine the cumulative sum of the target ordinates between the target abscissa starting point and the target abscissa end point on each simulation curve, and the number of target sampling points between the target abscissa end point and the target abscissa starting point, and calculate a target mean, wherein the target mean is equal to the ratio between the cumulative sum of the target ordinates and the number of target sampling points;
[0231] A quantity determination unit, used for determining the cumulative sum of the first ordinates between the first abscissa starting point and the first abscissa end point on each simulation curve, and the number of first sampling points between the first abscissa end point and the first abscissa starting point;
[0232] A cumulative sum determination unit, used to determine the cumulative sum of the second ordinate between the second abscissa starting point and the second abscissa end point on each simulation curve, and the number of second sampling points between the second abscissa end point and the second abscissa starting point;
[0233] A sampling point determination unit, used to determine the cumulative sum of the third ordinate between the third abscissa starting point and the third abscissa end point on each simulation curve, and the number of third sampling points between the third abscissa end point and the third abscissa starting point;
[0234] The accumulation and utilization unit is used to determine a first mean value reflecting the similarity of two simulation curves from the same source during a fault period, a second mean value reflecting the similarity during a fault recovery period, and a third mean value reflecting the similarity after a fault recovery based on the target mean value, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum, and the third sampling point number.
[0235] Further, the accumulation and utilization unit may include:
[0236] A first accumulation and utilization unit is used to calculate a target difference between target means of simulation curves from the same source;
[0237] A second accumulation and utilization unit is used for subtracting a target difference corresponding to the source from a difference between first ordinate accumulations of simulation curves of the same source to obtain a first similarity difference, and calculating a ratio between the first similarity difference and the first number of sampling points as a first mean value;
[0238] A third accumulation and utilization unit is used for subtracting a target difference corresponding to the source from a difference between second ordinate accumulations of simulation curves of the same source to obtain a second similarity difference, and calculating a ratio between the second similarity difference and the second number of sampling points as a second mean;
[0239] The fourth cumulative sum utilizing unit is used to subtract the target difference corresponding to the source from the difference between the third ordinate cumulative sums of the simulation curves with the same source to obtain a third similarity difference, and calculate the ratio between the third similarity difference and the third number of sampling points as a third mean.
[0240] Furthermore, the calculation unit may include:
[0241] A first calculation unit, configured to determine a first weighted value corresponding to the first mean value by referring to the performance weight of the similarity degree of the simulation curves from the same source.
[0242] A second calculation unit, for determining a second weighted value corresponding to the second mean value by referring to the performance weight of the similarity degree of the simulation curves from the same source as the preset second mean value;
[0243] A third first calculation unit, used to determine a third weighted value corresponding to the third mean by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset third mean;
[0244] The fourth first calculation unit is used to calculate the sum of the first weighted value, the second weighted value and the third weighted value to obtain a curve mean.
[0245] Furthermore, the utilization unit may include:
[0246] A first utilization unit is used to add the curve means corresponding to each source to obtain the sum of the curve means;
[0247] A second utilization unit is used to determine the quantity of each source;
[0248] The third utilization unit is used to calculate the ratio between the sum of the curve means and the quantity to obtain the set mean.
[0249] Furthermore, the evaluation unit may include:
[0250] A first evaluation unit, used for comparing the set mean with a preset first threshold and a second threshold to obtain a set comparison result;
[0251] A second evaluation unit, used for evaluating the similarity between two simulation curve sets according to the set comparison result;
[0252] A third evaluation unit, used for comparing the mean value of each curve with a preset first threshold value and a preset second threshold value to obtain a curve comparison result;
[0253] The fourth evaluation unit is used to evaluate the similarity between the simulation curves with the same source according to the curve comparison result.
[0254] The simulation curve comparison device provided in the embodiment of the present application can be applied to a simulation curve comparison device. Optionally, the hardware structure of the simulation curve comparison device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
[0255] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;
[0256] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;
[0257] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;
[0258] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:
[0259] Obtaining a first simulation curve set and a second simulation curve set to be compared;
[0260] Among them, the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is restored, and the period from before the fault to a period of time after the fault is restored includes before the fault, during the fault, during the fault recovery and after the fault;
[0261] Determine a first mean value reflecting the similarity of two simulation curves from the same source during a fault, a second mean value reflecting the similarity during a fault recovery, and a third mean value reflecting the similarity after the fault recovery;
[0262] A curve mean reflecting the similarity between two simulation curves from the same source is calculated based on a first mean value during a fault period, a second mean value during a fault recovery period, and a third mean value after the fault recovery period;
[0263] Determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source;
[0264] According to the set mean and the curve mean corresponding to each source, a comparison result of the first simulation curve set and the second simulation curve set is obtained.
[0265] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, multi-processor devices, distributed computing environments including any of the above devices or equipment, etc.
[0266] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0267] The embodiment of the present application further provides a readable storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0268] Obtaining a first simulation curve set and a second simulation curve set to be compared;
[0269] Among them, the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is restored, and the period from before the fault to a period of time after the fault is restored includes before the fault, during the fault, during the fault recovery and after the fault;
[0270] Determine a first mean value reflecting the similarity of two simulation curves from the same source during a fault, a second mean value reflecting the similarity during a fault recovery, and a third mean value reflecting the similarity after the fault recovery;
[0271] A curve mean reflecting the similarity between two simulation curves from the same source is calculated based on a first mean value during a fault period, a second mean value during a fault recovery period, and a third mean value after the fault recovery period;
[0272] Determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source;
[0273] According to the set mean and the curve mean corresponding to each source, a comparison result of the first simulation curve set and the second simulation curve set is obtained.
[0274] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0275] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0276] The above description of the disclosed embodiments enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. The various embodiments of the present application can be combined with each other. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A simulation curve comparison method, characterized in that: include: Obtaining a first simulation curve set and a second simulation curve set to be compared; Among them, the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is restored, and the period from before the fault to a period of time after the fault is restored includes before the fault, during the fault, during the fault recovery and after the fault; Determine a first mean value reflecting the similarity of two simulation curves from the same source during a fault, a second mean value reflecting the similarity during a fault recovery, and a third mean value reflecting the similarity after the fault recovery; A curve mean reflecting the similarity between two simulation curves from the same source is calculated based on a first mean value during a fault period, a second mean value during a fault recovery period, and a third mean value after the fault recovery period; Determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source; According to the set mean and the curve mean corresponding to each source, a comparison result of the first simulation curve set and the second simulation curve set is obtained.
2. The method according to claim 1, characterized in that The obtaining of the first simulation curve set and the second simulation curve set to be compared comprises: Obtain and create electromechanical transient simulation models on two different power simulation software based on the data corresponding to the power system; In response to the user's operation of setting a fault, the same fault is set at the same position of the two electromechanical transient simulation models at the same time to obtain two electromechanical transient simulation models after the fault; Taking the fault location where the fault occurs as the starting point, select the AC line, DC line, transformer, converter station and / or substation in the electromechanical transient simulation model; Acquire simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and after the fault is restored for a period of time; The simulation curves of the same electromechanical transient simulation model are combined into a simulation curve set to obtain two simulation curve sets.
3. The method according to claim 1, characterized in that The obtaining of the first simulation curve set and the second simulation curve set to be compared comprises: Obtain data corresponding to two different power systems, and create two electromechanical transient simulation models on more than one but less than two power simulation software; In response to the user's operation of setting a fault, the same fault is set at the same position of the two electromechanical transient simulation models at the same time to obtain two electromechanical transient simulation models after the fault; Taking the fault location where the fault occurs as the starting point, select the AC line, DC line, transformer, converter station and / or substation in the electromechanical transient simulation model; Acquire simulation curves corresponding to the AC line, the DC line, the transformer, the converter station and / or the substation on two electromechanical transient simulation models, wherein the simulation curves record the output change process of the AC line, the DC line, the transformer, the converter station and / or the substation before the power grid fault and after the fault is restored for a period of time; The simulation curves of the same electromechanical transient simulation model are combined into a simulation curve set to obtain two simulation curve sets.
4. The method according to claim 1, characterized in that: The determining of a first mean value of similarity between two simulation curves from the same source during a fault, a second mean value of similarity between two simulation curves during a fault recovery, and a third mean value of similarity after a fault recovery comprises: Determine the target abscissa starting point and target abscissa end point before the fault, the first abscissa starting point and the first abscissa end point during the fault, the second abscissa starting point and the second abscissa end point during the fault recovery, and the third abscissa starting point and the third abscissa end point after the fault recovery on each simulation curve, wherein each simulation curve has the same target abscissa starting point, target abscissa end point, first abscissa starting point, first abscissa end point, second abscissa starting point, second abscissa end point, third abscissa starting point and third abscissa end point; Determine the cumulative sum of the target ordinates between the target abscissa starting point and the target abscissa end point on each simulation curve, and the number of target sampling points between the target abscissa end point and the target abscissa starting point, and calculate a target mean, wherein the target mean is equal to the ratio between the cumulative sum of the target ordinates and the number of target sampling points; Determine the cumulative sum of the first ordinates between the first abscissa starting point and the first abscissa end point on each simulation curve, and the number of first sampling points between the first abscissa end point and the first abscissa starting point; Determine the cumulative sum of the second ordinates between the second abscissa starting point and the second abscissa end point on each simulation curve, and the number of second sampling points between the second abscissa end point and the second abscissa starting point; Determine the cumulative sum of the third ordinates between the third abscissa starting point and the third abscissa end point on each simulation curve, and the number of third sampling points between the third abscissa end point and the third abscissa starting point; According to the target mean, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum and the third sampling point number, determine a first mean reflecting the degree of similarity between two simulation curves from the same source during a fault, a second mean reflecting the degree of similarity during a fault recovery and a third mean reflecting the degree of similarity after a fault recovery.
5. The method according to claim 4, characterized in that Determining, according to the target mean, the first ordinate cumulative sum, the first sampling point number, the second ordinate cumulative sum, the second sampling point number, the third ordinate cumulative sum and the third sampling point number, a first mean reflecting the similarity of two simulation curves from the same source during a fault period, a second mean reflecting the similarity during a fault recovery period and a third mean reflecting the similarity after a fault recovery, including: Calculate the target difference between the target means of each simulation curve from the same source; Subtract the target difference corresponding to the source from the difference between the cumulative sums of the first ordinates of the simulation curves from the same source to obtain a first similarity difference, and calculate the ratio between the first similarity difference and the first number of sampling points as a first mean; Subtract the target difference corresponding to the source from the difference between the second ordinate cumulative sums of the simulation curves with the same source to obtain a second similarity difference, and calculate the ratio between the second similarity difference and the second number of sampling points as a second mean; The target difference corresponding to the source is subtracted from the difference between the cumulative sums of the third ordinates of the simulation curves from the same source to obtain a third similarity difference, and the ratio between the third similarity difference and the third number of sampling points is calculated as the third mean.
6. The method according to claim 1, characterized in that According to the first mean value during the fault period, the second mean value during the fault recovery period, and the third mean value after the fault recovery, the curve mean value reflecting the similarity between two simulation curves from the same source is calculated, including: Determine a first weighted value corresponding to the first mean value by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset first mean value; Determine a second weighted value corresponding to the second mean by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset second mean; Determine a third weighted value corresponding to the third mean by referring to the performance weight of the similarity degree of the simulation curves with the same source as the preset third mean; The sum of the first weighted value, the second weighted value and the third weighted value is calculated to obtain a curve mean.
7. The method according to claim 1, characterized in that The step of determining a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve mean values corresponding to each source includes: Add the curve means corresponding to each source to obtain the sum of the curve means; Determine the quantity of each source; The ratio between the sum of the curve means and the quantity is calculated to obtain the ensemble mean.
8. The method according to claim 1, characterized in that According to the set mean and the curve mean corresponding to each source, a comparison result of the first simulation curve set and the second simulation curve set is obtained, including: Comparing the set mean with a preset first threshold and a second threshold to obtain a set comparison result; According to the set comparison result, evaluating the similarity between the two simulation curve sets; Compare each curve mean with a preset first threshold and a second threshold to obtain a curve comparison result; According to the curve comparison result, the similarity between the simulation curves from the same source is evaluated.
9. A simulation curve comparison device, characterized in that: include: An acquisition unit is used to acquire a first simulation curve set and a second simulation curve set to be compared, wherein the number of simulation curves in the first simulation curve set is the same as the number of simulation curves in the second simulation curve set, the source set composed of the sources of each simulation curve in the first simulation curve set is the same as the source set composed of the sources of each simulation curve in the second simulation curve set, the number of simulation curves from the same source in the first simulation curve set and the second simulation curve set is the same and there is only one simulation curve, there is a corresponding relationship between the simulation curves from the same source in the first simulation curve set and the second simulation curve set, and each simulation curve in the first simulation curve set and the second simulation curve set records the output change process of each source from before the power grid fault to a period of time after the fault is recovered, and the period from before the fault to a period of time after the fault is recovered includes before the fault, during the fault, during the fault recovery and after the fault; A determination unit, used to determine a first mean value of similarity between two simulation curves from the same source during a fault period, a second mean value of similarity between two simulation curves during a fault recovery period, and a third mean value of similarity after a fault recovery period; A calculation unit, used for calculating a curve mean reflecting the similarity between two simulation curves from the same source according to a first mean during a fault period, a second mean during a fault recovery period, and a third mean after the fault recovery; A utilizing unit, configured to determine a set mean reflecting the similarity between the first simulation curve set and the second simulation curve set according to the curve means corresponding to each source; An evaluation unit is used to obtain a comparison result of the first simulation curve set and the second simulation curve set according to the set mean and the curve mean corresponding to each source.
10. A simulation curve comparison device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the simulation curve comparison method as described in any one of claims 1-8.
Citation Information
Patent Citations
Measurement injection-based generator model parameter checking method
CN102013703A
Dynamic equivalence and modeling methods and systems for double-fed wind power plant
CN105447255A