Power grid fault recording inversion method and device and electronic equipment
By superimposing, modulating, and splicing data segments of fault recording data, a complete waveform data segment is generated as the excitation source of the simulation system. This solves the problem of deviation between the inversion results and the actual situation in traditional power grid fault analysis, and realizes more accurate power grid fault inversion and evaluation of the action behavior of protection devices.
Patent Information
- Application Number
- CN202611279807.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional power grid fault analysis and relay protection performance evaluation methods cannot accurately reflect the coordination relationship between protection devices and other secondary equipment, and pure digital simulation is difficult to accurately reproduce the actual fault process, resulting in deviations between the analysis conclusions and the actual operating conditions.
By acquiring fault waveform data, data segments are superimposed, amplitude and phase modulated, and spliced to generate complete waveform data segments, which serve as the excitation source for the simulation system, driving the simulation system to perform power grid fault inversion and ensuring the consistency between the inversion results and the actual fault process.
It improves the consistency and confidence between the power grid fault inversion results and the actual fault process, and can accurately evaluate the action behavior of protection devices and the reproduction accuracy of simulation models.
Smart Images

Figure CN123136274A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fault handling, and more specifically, to a method, apparatus, and electronic equipment for recording and inverting power grid faults. Background Technology
[0002] Traditional power grid fault analysis and relay protection performance evaluation mainly rely on standard waveform playback tests and single digital model simulation calculations. Conventional waveform playback can only directly input waveforms into a single protection device to verify its operating logic, but it cannot reflect the coordinated relationship between the protection device and other secondary equipment such as the primary system, stability control devices, and circuit breakers. While pure digital simulation has system-level modeling capabilities, its fault parameters (such as fault location, transition resistance, and fault time) are all subjectively set by humans, making it difficult to accurately reproduce the real fault process that occurs in the actual power grid. The simulation results lack effective verification with field data. Especially in scenarios such as actual fault inversion, protection action behavior evaluation, and complex fault evolution analysis, existing methods often fail to reproduce the real fault transient process, leading to deviations between the analysis conclusions and actual operating conditions.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a method, apparatus, and electronic device for recording and inverting power grid faults, in order to at least solve the technical problem in related technologies where the results of power grid faults deviate significantly from the actual situation.
[0005] According to one aspect of the present invention, a method for recording and inverting power grid faults is provided, comprising: acquiring fault recording data corresponding to a protection device, wherein the fault recording data includes a normal state data segment of a predetermined period before the fault, an actual fault state data segment, amplitude transformation coefficients, and time transformation coefficients; copying the normal state data segment into multiple copies, performing a superposition operation on the overlapping intervals of two adjacent copies to generate a superimposed data segment; applying an amplitude-phase modulation operation to the superimposed data segment to obtain a modulated data segment, wherein the amplitude-phase modulation operation is used to eliminate non-physical periodic characteristics introduced by repetitive waveforms; splicing the modulated data segment and the actual fault state data segment to obtain a complete waveform data segment; and determining an excitation source for accessing the power grid simulation model run by the simulation system based on the complete waveform data segment, so as to run the simulation and obtain a power grid fault inversion result driven by the actual fault waveform.
[0006] Optionally, after determining the excitation source in the power grid simulation model used to access the simulation system based on the complete waveform data segment, and running the simulation to obtain the power grid fault inversion result driven by the actual fault waveform, the method further includes: if the power grid fault inversion result includes the action output sequence generated based on the voltage time series data and current time series data of each node in the power grid simulation model, obtaining a preset theoretically correct action sequence and the actual action sequence of the protection device included in the fault waveform data; comparing the action output sequence with the theoretically correct action sequence to determine whether the protection device should operate in this fault and whether the action type matches, obtaining a first comparison result; comparing the action output sequence with the actual action sequence of the protection device to determine whether the protection action behavior reproduced in the simulation is consistent with the action behavior actually recorded on site, obtaining a second comparison result; and determining the protection action behavior evaluation result based on the first comparison result and the second comparison result.
[0007] Optionally, based on the complete waveform data segment, an excitation source is determined for accessing the power grid simulation model running in the simulation system to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform. This includes: acquiring the amplitude transformation coefficient and the time transformation coefficient corresponding to the fault waveform data; converting the complete waveform data segment into a waveform data file readable by the simulation system based on the amplitude transformation coefficient and the time transformation coefficient; mapping the waveform data file as an excitation source in the simulation system to access the excitation source in the power grid simulation model running in the simulation system to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform.
[0008] Optionally, the normal state data segment is copied into multiple copies, and an overlay operation is performed on the overlapping intervals of two adjacent copies to generate an overlay data segment. The overlay operation includes: copying the normal state data segment into a predetermined number of copies, wherein the predetermined number of copies ensures that the total duration of the data segments arranged sequentially reaches a preset duration threshold, which is the duration required for the protection device to reach the target state; for any two adjacent normal state data segments, the starting portion of the latter normal state data segment overlaps with the ending portion of the former normal state data segment on the time axis by a predetermined proportion; within the overlapping interval, the ending portion of the former normal state data segment is multiplied by a monotonically decreasing window function to obtain a first window-operated data segment, and the starting portion of the latter normal state data segment is multiplied by a monotonically increasing window function to obtain a second window-operated data segment; the first window-operated data segment and the second window-operated data segment are added to obtain the overlay waveform data within the overlapping interval; the predetermined number of normal state data segments are sequentially spliced together so that adjacent copies complete the overlay transition within the overlapping interval to obtain the overlay data segment.
[0009] Optionally, a complete waveform data segment is obtained by splicing the modulation data segment and the actual fault state data segment, including: applying a phase alignment operation to the modulation data segment and the actual fault state data segment to obtain an aligned data segment, wherein the phase alignment operation is used to avoid non-physical waveform abrupt changes due to phase discontinuity; and performing a smooth transition processing on the aligned data segment and the modulation data segment at the splicing point to obtain the complete waveform data segment.
[0010] Optionally, a phase alignment operation is applied based on the modulated data segment and the actual fault state data segment to obtain an aligned data segment, including: extracting the instantaneous phase of the sampling point at the end of the modulated data segment as the end phase, extracting the instantaneous phase of the sampling point at the beginning of the actual fault state data segment as the start phase, and aligning the end phase with the start phase to obtain the aligned data segment.
[0011] Optionally, before determining the excitation source in the power grid simulation model used to access the simulation system based on the complete waveform data segment, and running the simulation to obtain the power grid fault inversion result driven by the actual fault waveform, the method further includes: obtaining a predetermined network structure model, wherein the protection device is configured at predetermined nodes in the predetermined network structure model; dividing the predetermined network structure model into a modeling region, boundary nodes, and an equivalent simplified region, wherein the boundary nodes are the connection nodes between the modeling region and the equivalent simplified region; connecting boundary branches in series on the connection line between the modeling region and the equivalent simplified region to obtain a simplified network structure model with boundary branches; performing Gaussian elimination on the equivalent simplified region in the simplified network structure model to eliminate internal nodes and obtain the node parameters at the boundary nodes; and obtaining the simplified power grid simulation model based on the node parameters, the boundary nodes, and the modeling region.
[0012] According to one aspect of the present invention, a power grid fault waveform inversion device is provided, comprising: an acquisition module for acquiring fault waveform data corresponding to a protection device, wherein the fault waveform data includes a normal state data segment of a predetermined period before the fault, an actual fault state data segment, an amplitude transformation coefficient, and a time transformation coefficient; an overlay module for copying the normal state data segment into multiple copies and performing an overlay operation on the overlapping intervals of two adjacent copies to generate an overlay data segment; a modulation module for applying an amplitude-phase modulation operation to the overlay data segment to obtain a modulation data segment, wherein the amplitude-phase modulation operation is used to eliminate non-physical periodic characteristics introduced by repetitive waveforms; a splicing module for splicing the modulation data segment and the actual fault state data segment to obtain a complete waveform data segment; and an inversion module for determining an excitation source in a power grid simulation model running in a simulation system based on the complete waveform data segment, so as to run the simulation and obtain a power grid fault inversion result driven by the actual fault waveform.
[0013] According to one aspect of the present invention, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the power grid fault recording inversion method described in any of the preceding claims.
[0014] According to one aspect of the present invention, a computer-readable storage medium is provided, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the power grid fault recording inversion method described in any of the preceding claims.
[0015] In this embodiment of the invention, fault waveform data corresponding to the protection device is acquired. The fault waveform data includes a normal state data segment and an actual fault state data segment with a predetermined period of time before the fault. The normal state data segment is copied into multiple copies, and a superposition operation is performed on the overlapping intervals of two adjacent copies to generate a superimposed data segment. An amplitude-phase modulation operation is applied to the superimposed data segment to obtain a modulated data segment, wherein the amplitude-phase modulation operation is used to eliminate the non-physical periodic characteristics introduced by the repetitive waveform. Based on the modulated data segment and the actual fault state data segment, a complete waveform data segment is obtained by splicing them together. Based on the complete waveform data segment, an excitation source is determined for accessing the power grid simulation model run by the simulation system to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform. By employing waveform re-editing and waveform conversion, short-time normal state data segments in fault waveform data are expanded into long-time normal state data segments and then concatenated with actual fault state data segments to form complete waveform data segments. These complete waveform data segments are then converted into excitation sources for the simulation system to drive the simulation operation. This achieves the goal of using actual fault waveforms to drive the simulation system for power grid fault inversion, thereby improving the consistency and confidence level between power grid fault inversion results and actual fault processes. This also solves the technical problem of significant deviations between power grid fault results and actual conditions in related technologies. Attached Figure Description
[0016] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0017] Figure 1 This is a flowchart of a power grid fault recording inversion method according to an embodiment of the present invention;
[0018] Figure 2 This is a schematic diagram of the topology provided by an optional embodiment of the present invention;
[0019] Figure 3This is an overall flowchart of the power grid fault recording inversion analysis method based on the ADPSS simulation system provided by the optional embodiment of the present invention;
[0020] Figure 4 This is a structural block diagram of a power grid fault recording and inversion device according to an embodiment of the present invention. Detailed Implementation
[0021] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0023] Example 1
[0024] According to an embodiment of the present invention, an embodiment of a waveform inversion method for power grid faults is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0025] Figure 1 This is a flowchart of a power grid fault recording inversion method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0026] Step S102: Obtain fault recording data corresponding to the protection device, wherein the fault recording data includes normal state data segments and actual fault state data segments with a predetermined period of time before the fault.
[0027] Among them, protection devices refer to equipment installed in the power grid to detect faults and perform tripping or closing operations according to predetermined logic. They can determine the power grid status based on the input voltage and current signals and output action commands, such as relay protection devices or safety automatic devices.
[0028] Among them, fault recording data refers to the digital sampling data sequence recorded by fault recording device, which reflects the changes in electrical quantities before and after a power grid fault. It can provide original data basis for fault analysis, such as recording files in COMTRADE format.
[0029] The normal state data segment refers to the sampled data segment recorded in the fault waveform data when the power grid is in a steady-state operation without faults. It can serve as the basic data for generating long-term excitation required by the simulation system, such as voltage and current sampling data of several cycles before the fault.
[0030] The actual fault state data segment refers to the sampled data segment of the power grid recorded in the fault waveform data from the time of the fault occurrence to the end of the fault transient process. It can reflect the real waveform characteristics of the actual fault, such as voltage and current sampling data for several cycles after the fault occurs.
[0031] In this step, fault waveform data corresponding to the protection device is acquired. This fault waveform data includes normal state data segments of a predetermined period before the fault and actual fault state data segments, providing the original data basis for subsequent waveform expansion and splicing. This step determines the original data source for the inversion analysis, providing a data foundation for introducing the actual fault waveform into the simulation system.
[0032] Step S104: Copy the normal data segment into multiple copies, and perform an overlay operation on the overlapping intervals of two adjacent copies to generate an overlay data segment;
[0033] Among them, the superimposed data segment refers to the data segment obtained by copying the normal data segment into multiple copies and then superimposing the overlapping intervals of adjacent copies, which can increase the duration of the waveform data while maintaining the original waveform characteristics.
[0034] In this step, the normal-state data segment is copied multiple times, and an overlay operation is performed on the overlapping intervals of adjacent copies to generate an overlay data segment. Since the normal-state data segment contained in the fault waveform data only contains data of a short period before the fault, while the protection device requires long-term normal-state excitation to complete state preparation or function activation, the copying and overlay operations can extend the data duration while preserving the original waveform characteristics, avoiding the waveform discontinuity problem caused by direct splicing. This step generates an overlay data segment with extended duration, providing a data foundation for subsequently generating long-term normal-state waveforms that meet simulation requirements.
[0035] Step S106: Apply amplitude-phase modulation operation to the superimposed data segment to obtain the modulated data segment, wherein the amplitude-phase modulation operation is used to eliminate the non-physical periodicity characteristics introduced by the repetitive waveform;
[0036] Among them, amplitude and phase modulation operation refers to the signal processing operation that applies low-frequency modulation to the amplitude and phase of the superimposed data segment. It can eliminate the non-physical periodicity characteristics introduced by waveform repetition and make the extended waveform closer to the slow fluctuation characteristics of the actual power grid. For example, low-frequency modulation with a depth of 1% to 5% is applied to the amplitude, and low-frequency micro-perturbation with a depth of 0.5° to 2° is applied to the phase.
[0037] Among them, the modulated data segment refers to the data segment obtained after applying amplitude and phase modulation operation to the superimposed data segment, which can be used as a long-term normal state waveform to be spliced with the actual fault state data segment.
[0038] In this step, amplitude-phase modulation is applied to the superimposed data segment to obtain a modulated data segment. The amplitude-phase modulation operation is used to eliminate the non-physical periodic characteristics introduced by the repetitive waveform. Since the superimposed data segment is formed by copying and superimposing normal-state data segments of finite length, it introduces non-physical periodic components. Direct use in simulation may lead to misjudgments by protection devices or distortion of simulation results. Amplitude-phase modulation can simulate the physical characteristics of electrical quantities slowly changing over time in the actual power grid. Through this step, a modulated data segment with more realistic physical characteristics and closer to the actual operating conditions of the power grid is obtained.
[0039] Step S108: Based on the modulated data segment and the actual fault state data segment, a complete waveform data segment is obtained by splicing them together;
[0040] The splicing operation refers to the process of connecting the modulated data segment and the actual fault state data segment at the connection point on the time axis, which can combine the long-term normal state waveform and the actual fault waveform into a complete data sequence.
[0041] Among them, the complete waveform data segment refers to the complete data sequence that is spliced together from the modulation data segment and the actual fault state data segment, and contains both the long-term normal state waveform and the actual fault waveform. It can be used as the input data of the excitation source of the simulation system.
[0042] In this step, a complete waveform data segment is obtained by splicing the modulated data segment and the actual fault state data segment. Since the modulated data segment provides the long-term normal-state waveform required for the protection device to complete its state preparation, while the actual fault state data segment records the actual fault transient waveform, splicing the two together creates complete time-series data from normal operation to fault occurrence. This allows the simulation system to sequentially experience the normal and fault states according to the actual time sequence. Through this step, a complete waveform data segment is obtained that simultaneously satisfies the long-term excitation requirements of the protection device and the requirement for reproducing the actual fault waveform.
[0043] Step S110: Based on the complete waveform data segment, determine the excitation source in the power grid simulation model used to connect to the simulation system, so as to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform.
[0044] Among them, the excitation source refers to the port element in the simulation system used to inject external voltage or current waveform signals into the power grid simulation model. It can convert complete waveform data segments into input quantities that drive the simulation model to run, such as voltage sources or current sources.
[0045] Among them, the simulation system refers to the software platform used to run the power grid simulation model and calculate the dynamic response of the power grid. It can receive the excitation source input and output the electrical quantity calculation results of each node, such as the ADPSS simulation system.
[0046] Among them, the power grid simulation model refers to the digital model of the power grid established in the simulation system, which includes line and component parameters, and is used to simulate the dynamic response of the power grid under various input conditions.
[0047] Among them, the grid fault inversion result refers to the simulation output data obtained after the simulation system runs under the drive of the excitation source, which reflects the grid response and the action behavior of the protection device under the fault scenario.
[0048] In this step, based on the complete waveform data segment, the excitation source in the power grid simulation model used to connect to the simulation system is determined to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform. Since the simulation system requires physical quantities as input, while the waveform data stored in the fault recording data is digital, it needs to be converted into an excitation source format recognizable by the simulation system and injected into the power grid simulation model to drive the simulation system to reproduce the complete transient process from the normal state to the occurrence of the fault. Through this step, the simulation system is driven by the actual fault recording waveform to perform power grid fault inversion, ensuring that the inversion results are based on real fault data rather than manually set parameters, thereby improving the consistency between the inversion results and the actual fault process.
[0049] Through the above steps S102-S110, fault waveform data corresponding to the protection device is obtained. The fault waveform data includes a normal state data segment and an actual fault state data segment with a predetermined period of time before the fault. The normal state data segment is copied into multiple copies, and an overlay operation is performed on the overlapping intervals of two adjacent copies to generate an overlay data segment. An amplitude-phase modulation operation is applied to the overlay data segment to obtain a modulated data segment. The amplitude-phase modulation operation is used to eliminate the non-physical periodic characteristics introduced by the repetitive waveform. Based on the modulated data segment and the actual fault state data segment, a complete waveform data segment is obtained by splicing them together. Based on the complete waveform data segment, the excitation source in the power grid simulation model used to connect to the simulation system is determined to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform. By employing waveform re-editing and waveform conversion, short-time normal state data segments in fault waveform data are expanded into long-time normal state data segments and then concatenated with actual fault state data segments to form complete waveform data segments. These complete waveform data segments are then converted into excitation sources for the simulation system to drive the simulation operation. This achieves the goal of using actual fault waveforms to drive the simulation system for power grid fault inversion, thereby improving the consistency and confidence level between power grid fault inversion results and actual fault processes. This also solves the technical problem of significant deviations between power grid fault results and actual conditions in related technologies.
[0050] As an optional embodiment, after determining the excitation source in the power grid simulation model used to access the simulation system based on the complete waveform data segment, and running the simulation to obtain the power grid fault inversion result driven by the actual fault waveform, the method further includes: if the power grid fault inversion result includes the action output sequence generated based on the voltage time series data and current time series data of each node in the power grid simulation model, obtaining the preset theoretically correct action sequence and the actual action sequence of the protection device included in the fault waveform data; comparing the action output sequence with the theoretically correct action sequence to determine whether the protection device should operate in this fault and whether the action type matches, obtaining a first comparison result; comparing the action output sequence with the actual action sequence of the protection device to determine whether the protection action behavior reproduced in the simulation is consistent with the action behavior actually recorded on site, obtaining a second comparison result; and determining the protection action behavior evaluation result based on the first comparison result and the second comparison result.
[0051] Among them, the action output sequence refers to the time sequence set of action commands output by the protection device configured in the power grid simulation model during the simulation operation, based on the input voltage timing data and current timing data. It can reflect the actual response behavior of the protection device in the simulated fault process, such as the time sequence composed of trip command, reclosing command and their corresponding action times.
[0052] Among them, the theoretically correct action sequence refers to the set of standard action command timings predetermined according to the fault type, protection configuration scheme and setting value, which can serve as a reference standard for judging whether the action behavior of the protection device is correct.
[0053] Among them, the actual action sequence of the protection device refers to the set of action commands output by the protection device at the actual fault site recorded in the original fault waveform data, which can be used as a reference for judging whether the simulation reproduction results are consistent with the actual on-site records.
[0054] The first comparison result refers to the comparison conclusion obtained by comparing the action output sequence with the theoretical correct action sequence, which can reflect whether the action behavior of the protection device is correct during the simulated fault process.
[0055] The second comparison result refers to the comparison conclusion obtained by comparing the action output sequence with the actual action sequence of the protection device, which can reflect the accuracy of the simulation model in reproducing the actual fault process.
[0056] Among them, the evaluation result of the protective action behavior refers to the final evaluation conclusion obtained by combining the first comparison result and the second comparison result, which can comprehensively reflect the correctness of the protective device's action and the inversion confidence of the simulation model.
[0057] In this embodiment, after obtaining the power grid fault inversion results, a preset theoretically correct action sequence and the actual action sequence of the protection device included in the fault recording data are obtained. The action output sequence in the inversion results is compared with the theoretically correct action sequence and the actual action sequence of the protection device, respectively, to obtain the first comparison result and the second comparison result. The protection action behavior evaluation result is determined based on the two comparison results. This approach offers several advantages. First, since waveform data only records the final action result of the protection device and cannot reveal its internal logic processing, simulation inversion can obtain the action output sequence of the protection device throughout the entire fault process, providing a data foundation for subsequent comparisons. Second, comparing the action output sequence with the theoretically correct action sequence allows for the judgment of whether the protection device's action behavior is correct from two dimensions: "should it have acted?" and "is the action type correct?" This overcomes the limitation of relying solely on waveform data to determine the correctness of protection actions. Third, comparing the action output sequence with the actual action sequence of the protection device verifies the accuracy of the simulation model's reproduction of the actual fault process. If they match, the simulation model is reliable; if they do not match, the simulation model has deviations that need correction. Finally, combining the two comparison results allows for the evaluation of both the correctness of the protection device's action behavior and the confidence level of the simulation model's inversion, making the final evaluation result of the protection action behavior more comprehensive and reliable.
[0058] As an optional embodiment, based on the complete waveform data segment, an excitation source is determined for use in the power grid simulation model running in the simulation system to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform. This includes: obtaining the amplitude transformation coefficient and time transformation coefficient corresponding to the fault waveform data; converting the complete waveform data segment into a waveform data file readable by the simulation system based on the amplitude transformation coefficient and time transformation coefficient; and mapping the waveform data file to an excitation source in the simulation system to connect the excitation source to the power grid simulation model running in the simulation system to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform.
[0059] Among them, the amplitude conversion coefficient refers to the proportional coefficient used to convert the digital quantity in the fault recording data into the actual physical amplitude quantity. It can realize the conversion between digital quantity and physical quantity, such as voltage conversion coefficient or current conversion coefficient.
[0060] The time transformation coefficient refers to the proportional coefficient used to convert the sampling point number in the fault recording data into the actual time value. It can realize the conversion between the sampling point number and the actual time, such as the sampling interval time determined by the sampling frequency.
[0061] Among them, waveform data files refer to files compiled from complete waveform data segments according to the data format requirements of the simulation system, which can be recognized and read by the simulation system. For example, data files containing waveform digital quantities and time axis calibration.
[0062] In this embodiment, the amplitude transformation coefficient and time transformation coefficient corresponding to the fault recording data are obtained. Based on the amplitude transformation coefficient and time transformation coefficient, the complete waveform data segment is converted into a waveform data file that can be read by the simulation system. In the simulation system, the waveform data file is mapped as an excitation source so that the excitation source can be connected to the power grid simulation model running in the simulation system to run the simulation and obtain the power grid fault inversion result. This approach offers several advantages. First, since the waveform data stored in the fault recording is digital (A / D converted) while the simulation system requires physical values as input, amplitude conversion coefficients can convert the digital values into actual voltage and current amplitudes, enabling the simulation system to correctly identify and calculate them. Second, time conversion coefficients can convert the sampling point numbers into actual time values, ensuring that the waveform's position on the time axis accurately corresponds to the actual fault timing. Third, compiling the converted data into a waveform data file readable by the simulation system enables standardized conversion from recorded data to the simulation excitation source, allowing any recorded data file conforming to the COMTRADE format to be accessed by the simulation system. Finally, after the converted excitation source is accessed by the simulation model, the simulation system can use the actual fault waveform as input for simulation calculations, ensuring that the inversion results are based on real fault data rather than manually set parameters, thus improving the consistency between the inversion results and the actual fault.
[0063] As an optional embodiment, the normal state data segment is copied into multiple copies, and an overlay operation is performed on the overlapping interval of two adjacent copies to generate an overlay data segment. The overlay operation includes: copying the normal state data segment into a predetermined number of copies, wherein the predetermined number of copies ensures that the total duration of the data segments arranged end to end reaches a preset duration threshold, which is the duration required for the protection device to reach the target state; for any two adjacent normal state data segments, the starting portion of the latter normal state data segment overlaps with the ending portion of the former normal state data segment on the time axis by a predetermined proportion; within the overlapping interval, the ending portion of the former normal state data segment is multiplied by a monotonically decreasing window function to obtain a first window-operated data segment, and the starting portion of the latter normal state data segment is multiplied by a monotonically increasing window function to obtain a second window-operated data segment; the first window-operated data segment and the second window-operated data segment are added to obtain the overlay waveform data within the overlapping interval; and the predetermined number of normal state data segments are sequentially spliced together to complete the overlay transition between adjacent copies within the overlapping interval, resulting in an overlay data segment.
[0064] The predetermined number of copies refers to the number of copies obtained by copying the normal data segment, such that the total duration after arranging the data segments end to end reaches the preset duration threshold.
[0065] Among them, the preset duration threshold refers to the minimum duration of normal state excitation required for the protection device to reach the target state, which is used to determine the value of a predetermined number of parts, such as the 15-second duration required for the automatic reclosing device to complete charging.
[0066] The target state refers to the ready state after the protection device has completed state preparation or function activation. In this state, the protection device can make a complete response to the fault.
[0067] The overlap ratio refers to the proportion of the overlap interval length between two adjacent normal data segments on the time axis to the total length of a single normal data segment. It is used to control the width of the splicing transition area, for example, one-quarter.
[0068] Among them, the monotonically decreasing window function refers to a window function whose value monotonically decreases from 1 to 0 within the overlapping interval. It is used to perform weighted processing on the end part of the previous data segment, such as the falling edge of the Hanning window.
[0069] Among them, the monotonically increasing window function refers to a window function whose value monotonically increases from 0 to 1 within the overlapping interval. It is used to perform weighted processing on the beginning part of the next data segment, such as the rising edge of the Hanning window.
[0070] The first window-operated data segment refers to the data segment obtained by multiplying the end of the previous normal data segment by a monotonically decreasing window function.
[0071] The second window-operated data segment refers to the data segment obtained by multiplying the beginning part of the next normal state data segment by a monotonically increasing window function.
[0072] Among them, superimposed waveform data refers to the waveform data within the overlapping interval obtained by adding the data segments of the first window and the data segments of the second window.
[0073] In this embodiment, the normal state data segment is copied into a predetermined number of copies, such that the total duration of the data segments arranged end to end reaches a preset duration threshold required for the protection device to reach the target state. For any two adjacent copies, the starting part of the latter copy overlaps with the ending part of the former copy by a predetermined proportion. Within the overlap interval, the ending part of the former copy is multiplied by a monotonically decreasing window function to obtain the first window-operated data segment, and the starting part of the latter copy is multiplied by a monotonically increasing window function to obtain the second window-operated data segment. The two are added together to obtain the superimposed waveform data within the overlap interval. The data segments are then sequentially spliced together so that adjacent copies complete the superimposed transition within the overlap interval to obtain the superimposed data segment. This approach achieves several advantages. First, since the normal-state data segment in the original waveform recording is only a few cycles long before the fault, far shorter than the time required for the protection device to complete its state preparation, copying it into a predetermined number of segments ensures the total duration reaches a preset threshold, thus resolving the problem of insufficient normal-state excitation time. Second, the overlapping intervals of adjacent segments are weighted using monotonically decreasing and monotonically increasing windows. Compared to direct end-to-end splicing, this avoids abrupt changes at the splicing point due to waveform parameter discontinuities, ensuring waveform amplitude continuity at the connection point. Third, through smooth transition processing using window functions, the expanded superimposed data segment retains the waveform characteristics of the original normal-state data segment, without introducing non-physical high-frequency components. Finally, the generation of long-duration normal-state data segments provides the necessary excitation conditions for the protection device to complete its state preparation in subsequent simulations, enabling the simulation system to simulate the true response after the protection device is fully functional, avoiding simulation distortion caused by insufficient excitation time leading to the protection device not being functional.
[0074] As an optional embodiment, a complete waveform data segment is obtained by splicing the modulation data segment and the actual fault state data segment, including: applying a phase alignment operation to the modulation data segment and the actual fault state data segment to obtain an aligned data segment, wherein the phase alignment operation is used to avoid non-physical waveform abrupt changes caused by phase discontinuity; and performing a smooth transition processing on the aligned data segment and the modulation data segment at the splicing point to obtain a complete waveform data segment.
[0075] Among them, the phase alignment operation refers to the operation performed to make the starting phase of the actual fault state data segment and the ending phase of the modulated data segment tend to be consistent. This can avoid waveform jumps caused by phase discontinuity at the splicing point, such as applying phase rotation to the actual fault state data segment.
[0076] The aligned data segment refers to the data segment obtained after applying a phase alignment operation to the actual fault-state data segment, whose starting phase is consistent with the ending phase of the modulated data segment.
[0077] Among them, smooth transition processing refers to the processing method of weighted transition of two waveforms within a predetermined range before and after the splicing point, which can further ensure the continuity of amplitude and smoothness of waveform at the splicing point. For example, a predetermined number of sampling points are taken before and after the splicing point for weighted averaging.
[0078] In this embodiment, a phase alignment operation is applied to the modulated data segment and the actual fault state data segment to obtain an aligned data segment. The aligned data segment and the modulated data segment are then smoothly transitioned at the splicing point to obtain a complete waveform data segment. This method achieves several advantages. First, since the end phase of the modulated data segment and the start phase of the actual fault state data segment are independent, a significant phase difference may exist between them at the splicing point. Without phase alignment, the waveform will abruptly change at the splicing point, artificially introducing a non-physical transient component that could lead to numerical oscillations in the simulation system or malfunctions of the protection device. Phase alignment ensures that the start phase of the actual fault state data segment matches the end phase of the modulated data segment, guaranteeing phase continuity of the waveform at the splicing point. Second, a smooth transition is further performed based on the alignment, weighting the two waveform segments within a predetermined range before and after the splicing point to ensure amplitude and derivative continuity at the splicing point. Finally, a waveform with continuous phase and amplitude serves as the simulation excitation source, preventing the introduction of non-physical transient components and ensuring that the simulation results accurately reflect the response behavior of the protection device under actual fault waveforms.
[0079] As an optional embodiment, a phase alignment operation is applied based on the modulated data segment and the actual fault state data segment to obtain an aligned data segment, including: extracting the instantaneous phase of the sampling point at the end of the modulated data segment as the end phase, extracting the instantaneous phase of the sampling point at the beginning of the actual fault state data segment as the start phase, and aligning the end phase with the start phase to obtain the aligned data segment.
[0080] The end phase refers to the instantaneous phase value corresponding to the sampling point at the end of the modulated data segment, which is used as a reference phase for phase alignment.
[0081] The initial phase refers to the instantaneous phase value corresponding to the initial sampling point of the actual fault-state data segment, which is used as the phase to be adjusted for phase alignment.
[0082] In this embodiment, the instantaneous phase of the sampling point at the end of the modulated data segment is extracted as the ending phase, and the instantaneous phase of the sampling point at the beginning of the actual fault-state data segment is extracted as the starting phase. The ending phase and the starting phase are then phase-aligned to obtain an aligned data segment. This method firstly uses the ending phase of the modulated data segment as a reference standard to adjust the starting phase of the actual fault-state data segment, ensuring that the adjusted starting phase equals the ending phase, thus clarifying the operation object and reference basis for phase alignment. Secondly, the accuracy of phase alignment depends on the accuracy of the instantaneous phase extraction. Through phase extraction and adjustment at the sampling point level, it can be ensured that the instantaneous phases on both sides of the splicing point are numerically consistent. Finally, the phase alignment of the actual fault-state data segment and the modulated data segment at the splicing point is achieved, providing a prerequisite for subsequent smooth transition processing and ensuring that the resulting complete waveform data segment is physically continuous and reliable.
[0083] As an optional embodiment, before determining the excitation source in the power grid simulation model used to access the simulation system based on the complete waveform data segment, and running the simulation to obtain the power grid fault inversion result driven by the actual fault waveform, the method further includes: obtaining a predetermined network model, wherein protection devices are configured at predetermined nodes in the predetermined network model; dividing the predetermined network model into a modeling region, boundary nodes, and equivalent simplified regions, wherein the boundary nodes are the connection nodes between the modeling region and the equivalent simplified regions; connecting boundary branches in series on the tie lines between the modeling region and the equivalent simplified regions to obtain a simplified network model with boundary branches; performing Gaussian elimination on the equivalent simplified regions in the simplified network model to eliminate internal nodes and obtain the node parameters at the boundary nodes; and obtaining the simplified power grid simulation model based on the node parameters, the boundary nodes, and the modeling region.
[0084] The predetermined grid model refers to the original grid model that includes line parameters and component parameters, which is used as the basic framework of the grid simulation model that the simulation system runs on, such as a grid model with a voltage level of 110kV and above.
[0085] The modeling area refers to the area in the predetermined grid model that needs to retain a detailed model and be accurately simulated, in order to ensure the simulation accuracy of key areas for fault analysis, such as the test substation and its surrounding area.
[0086] Boundary nodes refer to the connection nodes between the modeling region and the equivalent simplified region, and are used as interfaces for transmitting electrical influences from the equivalent simplified external region to the modeling region.
[0087] The equivalent simplification region refers to the area in the predetermined grid model that is far from the test substation and has little impact on protection analysis. It is used to reduce the amount of simulation calculations through equivalent simplification.
[0088] Among them, boundary branches refer to branches with extremely low impedance connected in series on the connection line between the modeling region and the equivalent simplification region. They are used to isolate the influence of internal region parameters on the equivalent results, such as branches with an impedance value of 10^(-6) per unit.
[0089] Among them, the node parameters refer to the equivalent admittance matrix and equivalent injection current at the boundary nodes obtained after Gaussian elimination of the equivalent simplified region, which are used to characterize the electrical influence of the equivalent simplified external region on the modeling region.
[0090] In this embodiment, before determining the excitation source, a predetermined grid model is obtained, and the predetermined grid model is divided into a modeling region, boundary nodes, and an equivalent simplified region. Boundary branches are connected in series on the connecting lines between the modeling region and the equivalent simplified region to obtain a simplified grid model with boundary branches. Gaussian elimination is performed on the equivalent simplified region to eliminate internal nodes, and node parameters at the boundary nodes are obtained. Based on the node parameters, the boundary nodes are spliced with the modeling region to obtain a simplified power grid simulation model. This approach offers several advantages. First, a complete power grid model contains numerous nodes and branches, which would lead to excessive computational load if used directly for real-time simulation. By defining areas far from the test substation as equivalent simplified regions and performing Gaussian elimination, the number of nodes in the model can be significantly reduced, lowering the computational load and improving the feasibility of real-time simulation. Second, by connecting boundary branches in series on tie lines, the influence of internal region parameters on the equivalent results can be effectively isolated, ensuring that the external region after equivalent simulation will not experience error propagation due to changes in internal region parameters. Third, the node parameters at the boundary nodes obtained after equivalent simplification can accurately characterize the electrical influence of the external region on the internal region, ensuring both simulation accuracy and efficiency around the test substation. Finally, the simplified power grid simulation model serves as the model for the simulation system, providing a computational platform for the access of excitation sources and fault inversion.
[0091] Based on the above embodiments and optional embodiments, an optional implementation method is provided, which is described in detail below.
[0092] An optional embodiment of the present invention provides a power grid fault recording inversion analysis method based on an ADPSS simulation system. This method uses fault recording data re-editing technology to expand short-time normal-state data in actual recording files into long-time normal-state waveforms that satisfy the functional opening of protection devices, and then splices them with actual fault waveforms. Waveform data conversion technology transforms the edited waveforms into excitation sources recognizable by ADPSS. The method simplifies the large-scale network model using the Ward equivalent technique for boundary branches. Finally, it achieves closed-loop inversion analysis driven by actual faults on a hybrid numerical simulation platform.
[0093] The technical solution of the present invention is as follows:
[0094] A method for inverting and analyzing power grid fault recordings based on an ADPSS simulation system includes the following steps:
[0095] Step 1: Re-edit the fault waveform data;
[0096] This step is the core of the simulation data inversion process. Its task is to convert the actual fault waveform files (.cfg format) within the substation into long-time waveform data that the simulation system can understand. The actual waveform files typically only contain data for the four cycles before the fault (T1=80ms) and the eight cycles after the fault (T2=160ms). However, functions such as reclosing of protection devices and PT disconnection reset usually require seconds of normal operating conditions (e.g., reclosing charging typically requires 15 seconds) to complete charging or enable the function. Therefore, the normal-state data needs to be expanded to meet the normal operating conditions of the protection devices. This includes:
[0097] Step 1.1 Normal-state data expansion, windowing and overlay method and modulation to generate long-term variations;
[0098] Let x[n] be the normal state data segment in the original waveform recording, with a length of N0 sampling points (corresponding to 4 cycles). The goal is to generate long-duration normal state data y[n] of length Nlong (corresponding to more than 15 seconds), satisfying: Nlong = M × N0, M 1. Where M is the expansion factor.
[0099] (1) Windowed overlapping method;
[0100] The original normal data segment x[n] is copied M times. Adjacent segments are overlapped using a Hanning window to avoid waveform discontinuities at the splicing points. The window function is defined as follows:
[0101] ,
[0102] : The weighting coefficient value of the window function at the k-th sampling point. It is a real number between 0 and 1, which determines the "weight" or "proportion" of the original waveform data when merging in the overlapping area.
[0103] L: The total length of sampling points in the overlapping region, i.e., the number of sampling points in the overlapping region, usually taken as... L = N 0 / 4.
[0104] two adjacent segments x i [n] and x i+1 The weighted summation of [n] in the overlapping region is:
[0105] ,
[0106] The final amplitude of the new waveform output after splicing at the nth sampling point within the overlapping area.
[0107] X i [n]: The amplitude of the i-th segment (previous segment) waveform data at the n-th point in the overlapping region.
[0108] X i [n+1]: The amplitude of the waveform data of the (i+1)th segment (the next segment) at the nth point in the overlapping region.
[0109] W[n]: The weighting coefficient of a waveform segment at the nth sampling point;
[0110] (2) Modulation generates long-term variations;
[0111] To avoid introducing non-physical periodic characteristics into the long-repetitive waveform, low-frequency amplitude modulation and phase perturbation are applied to the extended waveform. The modulation function is defined as follows:
[0112]
[0113]
[0114] in:
[0115] A θ(t) is the instantaneous amplitude modulation coefficient that varies with time, and θ(t) is the instantaneous phase offset that varies with time.
[0116] A 0 represents the original normal amplitude;
[0117] ε A This is the amplitude modulation depth (usually taken as 0.01~0.05, i.e. 1%~5%).
[0118] ε θ The amplitude of the phase perturbation (usually taken as 0.5°~2°);
[0119] f m , f ' m The modulation frequency is set to 0.01~0.1Hz, which is much lower than the power frequency.
[0120] A , 0 represents the initial phase;
[0121] The extended long-term normal waveform is then:
[0122] Where f0 = 50Hz, t n =n·Ts, where Ts is the sampling period. y mod [n] is the instantaneous value of the modulated long-time normal state waveform at the nth sampling point.
[0123] This method can both preserve the key features of the original waveform (amplitude, phase, harmonic content) and generate physically reasonable long-term data.
[0124] Step 1.2 Fault waveform splicing, phase alignment and smooth transition of overlap;
[0125] The extended long-term normal waveform y mod [n] is the waveform of the fault segment in the actual recorded waveform. z [n] is concatenated. Let the end time of the normal state be... t end Its instantaneous phase is end The start time of the fault segment is t start Its instantaneous phase is start .
[0126] (1) Phase alignment;
[0127] Calculate the phase difference:
[0128] Apply phase rotation to the waveform of the fault segment: (Expressed in complex form, with the real part taken).
[0129] (2) Smooth transition of overlapping layers;
[0130] Take L before and after the splicing point. trans Each sampling point (usually 1-2 cycles) is used with a weighted transition:
[0131] ,
[0132] ω trans [n] Weighting coefficient of the nth sampling point in the overlapping transition region, L trans This represents the total length of sampling points in the overlapping transition region.
[0133] The complete waveform s[n] after splicing is:
[0134]
[0135] Where N trans =N long -Ltrans This splicing method ensures that the amplitude and phase of the waveform are continuously differentiable at the connection point, without any transient components introduced by abrupt changes.
[0136] Step 2: Convert the fault waveform data in the substation into excitations that can be recognized by the ADPSS system;
[0137] Step 2.1 File format conversion;
[0138] Using the file editing function of the waveform recording software, the original waveform recording file was processed as follows:
[0139] Save as CSV format: This facilitates manual inspection and data editing;
[0140] Save as COMTRADE format: Preserves standard format information, including .cfg (configuration file) and .dat (data file);
[0141] Step 2.2 Waveform editing and reconstruction;
[0142] The long-term normal waveform generated in stage one and the actual fault waveform are recombined according to the format requirements of step 2.1 to form a new waveform data sequence.
[0143] Step 2.3 Waveform coefficient extraction and .dat file compilation;
[0144] Extract waveform coefficients (amplitude transformation coefficients and time transformation coefficients) from the .cfg configuration file of the original COMTRADE file. Definition:
[0145] Amplitude transformation coefficient:
[0146] Time transformation coefficient:
[0147] Let the digital quantity of the recorded waveform be D[i], then the corresponding physical quantity value is: X phy [ i ]= K A · D [ i ];
[0148] The edited waveform data is then converted back to its digital value according to the above transformation relationship and written to a .dat file:
[0149] The timeline is arranged according to t [ i ]= i · K T Perform calibration.
[0150] Dnew [i] represents the digital value corresponding to the i-th sampling point of the edited waveform, which is an integer value that needs to be written into the new .dat file for the ADPSS simulation system to read; X edit [i] represents the physical value of the i-th sampling point of the edited waveform.
[0151] Step 2.4: Read the ADPSS file for configuration;
[0152] In the ADPSS simulation system, a vars.txt configuration file is first created to define the names, data types, and dimensions of the variables to be read in.
[0153] Step 2.5: Assigning values to the stimulus source;
[0154] Using ADPSS's file import function, the .dat file generated in step 2.3 is mapped to the vars.txt variables in step 2.4, and these variables are then assigned to the excitation sources (voltage sources or current sources) in the simulation system. The mathematical expression for the excitation source is:
[0155]
[0156] Where interp(·) is a linear interpolation function used to perform interpolation calculations when the simulation step size and the waveform recording sampling rate do not match. datafile(t) is the original sampled value corresponding to time t in the waveform recording data file.
[0157] Step 3: Establishment of the hybrid real-time simulation model and fault inversion;
[0158] Step 3.1 Obtain the basic space frame model;
[0159] Based on the company's simulation center's digital simulation platform and system parameters, obtain a grid model for voltage levels of 110kV and above, including parameters of components such as lines, transformers, generators, loads, and new energy power plants.
[0160] Step 3.2 External system simplification based on the Ward equivalent method for boundary branches;
[0161] To ensure simulation efficiency while maintaining accuracy around the test substation, the Ward equivalent method based on boundary branches is used to simplify the external system. The core steps are as follows:
[0162] (1) System partitioning;
[0163] The entire power grid is divided into three parts:
[0164] Internal System L: The test substation and its surrounding area requiring detailed modeling. Y LL I is the admittance submatrix between internal system nodes; LThis is the column vector of injected currents for the internal nodes.
[0165] Boundary system B: The connection node between the internal system and the external system. BB Y is the admittance submatrix between boundary nodes; LB Y BL I is the mutual admittance submatrix between the internal system and the boundary nodes; B This is the column vector of injected currents at the boundary nodes.
[0166] External system ε: The region requiring equivalent simplification. Y εε Y is a submatrix of the external system node admittance matrix; Bε Y εB I is the mutual admittance submatrix between the boundary nodes and the external nodes; ε This is the column vector of zero-injection currents for external nodes.
[0167] The nodal admittance matrix can be written in block form:
[0168]
[0169] (2) Add boundary branch roads;
[0170] A boundary branch with extremely low impedance (with impedance taken as...) is inserted in series on the connection line between the internal and external systems. Z buffer =10 - 6 (pu) is used to isolate the influence of internal system parameters on the equivalent results.
[0171] (3) Ward equivalence simplification;
[0172] Gaussian elimination is performed on the external system to eliminate external nodes E, yielding the equivalent admittance matrix at the boundary nodes:
[0173]
[0174] Y Bε Y εB : The mutual admittance submatrix between boundary nodes and external nodes;
[0175] Y εε : A submatrix of the external system node admittance matrix;
[0176] The equivalent injection current is:
[0177]
[0178] (4) Equivalent model splicing;
[0179] The equivalent boundary admittance matrix Y BB,eqIt is integrated with the internal system to form a complete simplified simulation model.
[0180] Step 3.3 System power flow adjustment;
[0181] An external adjustable excitation source is set up. The long-term normal-state waveform generated in Stage 1 is read into the ADPSS simulation system and assigned to the excitation source according to the method in Stage 2. The amplitude and phase of the excitation source are adjusted to make the power flow distribution of the entire simulation system similar to the actual normal operating conditions of the power grid. The power flow matching error is defined as:
[0182]
[0183] in P sim,k The active power at the boundary nodes obtained from simulation calculations, P meas,k These are actual waveform measurement values. P base This is the reference power. Requirements: ε power <2%.
[0184] Step 3.4 Construction of the hybrid simulation system;
[0185] The voltage, current, and other output quantities of key components in the ADPSS simulation system are mapped to the analog input ports of the actual external protection device through power amplifiers or analog output interfaces. Simultaneously, the action contact signals of the protection device are fed back to the ADPSS simulation system, forming a closed loop. The topology is as follows:
[0186] The ADPSS simulation system outputs voltage / current to the power amplifier, analog signals to the actual protection device, and action signals to the ADPSS simulation system.
[0187] For the above topology, closed-loop testing was conducted using the power grid fault recording inversion analysis method based on the ADPSS simulation system proposed in this paper. Figure 2 This is a schematic diagram of the topology provided by an optional embodiment of the present invention, such as... Figure 2 As shown, the system consists of four parts: a digital simulation section, a signal interface section, a physical component section, and a monitoring and recording section.
[0188] The Digital Simulation System (ADPSS) runs a simplified digital model of the power grid derived from Ward's equivalent model, with input provided by fault waveform excitation sources (voltage / current sources). The voltage and current outputs from the simulation calculations are transmitted to the physical component via the signal interface; simultaneously, it receives action signal feedback from the physical component, forming a closed-loop control.
[0189] Signal interface section: includes D / A converter (converts digital output from digital simulation to analog output), power amplifier (amplifies analog output to power level that meets the input requirements of protection device), A / D converter and level adapter (converts the action contact signal of protection device into digital output that can be recognized by digital simulation).
[0190] The physical component is the actual protection device under test. Its analog input port receives voltage and current signals amplified by a power amplifier; its action contacts output trip, reclosing, and other output signals, which are fed back to the digital simulation component after A / D conversion and level adaptation.
[0191] The monitoring and recording section includes a fault waveform recorder (which records the analog input and output signals of the protection device) and a data acquisition system (which simultaneously acquires the calculation results from the digital simulation section). The data from these two parts can be compared and analyzed to verify the accuracy of the simulation model and evaluate the behavior of the protection device.
[0192] The system as a whole forms a closed-loop link of "digital simulation, signal interface, physical protection, signal feedback, and digital simulation", realizing closed-loop testing of real protection devices driven by actual fault waveforms.
[0193] Step 3.5 Rapid Fault Simulation and Inversion;
[0194] Simulation parameters are set based on actual fault conditions (fault type, fault time, transition resistance, fault location, etc.) to conduct rapid simulation and inversion of power grid faults. Specifically, this includes:
[0195] Single fault inversion: Input the edited complete waveform into the system, trigger the simulation run, and record the action time, action logic, output signal, etc. of the protection device.
[0196] Chain fault propagation analysis: Based on a single fault inversion, the network topology is automatically modified according to the consequences of protection actions (such as line tripping, automatic transfer switch action, etc.) to simulate the fault evolution process.
[0197] Inter-regional coordination analysis: Protection devices are configured simultaneously in multiple substations to test the coordination selectivity of upstream and downstream protection during faults.
[0198] Step 3.6 Result Evaluation and Verification;
[0199] The accuracy of the simulation model is verified using actual fault waveforms, and the actual effectiveness of relay protection and safety automatic devices is evaluated. The evaluation indicators mainly include:
[0200] (1) Evaluation of “correct operation” of relay protection: If the relay protection device associated with the digital-analog system clears the fault in one relay protection event, and the operation of each device meets the design requirements, it should be evaluated as “correct operation”.
[0201] Example 1: In a double busbar connection, a busbar fault occurs, and the busbar protection operates. The line longitudinal protection, overvoltage protection, and remote trip protection are used to trip the circuit breaker on the opposite side, thus clearing the fault. In addition to the busbar protection being evaluated as "correct operation", the line longitudinal protection, overvoltage protection, and remote trip protection are all evaluated as "correct operation".
[0202] Example 2: When high-voltage reactor protection, failure protection, dead zone protection, etc. operate, the line longitudinal protection, overvoltage and remote trip protection are used to cause the circuit breaker on the opposite side to trip and clear the fault. In addition to the protection being evaluated as "correct operation", the line longitudinal protection, overvoltage and remote trip protection are also evaluated as "correct operation".
[0203] (2) Evaluation of line reclosing: Based on the network structure of the simulation system, the evaluation mainly considers lines with single-sided reclosing or lines with double-sided reclosing. For lines with single-sided reclosing, if the reclosing is successful on one side, it is evaluated as "successful reclosing" once; for lines with double-sided (or multiple-sided) reclosing, if the reclosing is successful on both sides (or multiple sides), it is evaluated as "successful reclosing" once; if either side fails to close (or the reclosing is unsuccessful), it is evaluated as "unsuccessful reclosing" once.
[0204] (3) Evaluation of operating time: Under specified conditions, the duration from the moment when the input excitation of a relay protection device in its initial state changes in a way that would enable it to operate until the moment it operates.
[0205] Example 1: For 220kV and above voltage level systems, for lines with full-line fast-acting protection, the operating time of the main protection device should meet the following requirements: less than 20ms for near-end faults; less than 30ms for far-end faults.
[0206] Example 2: For systems with voltage levels of 110kV and below, refer to the corresponding testing specifications, and the ms should not exceed ±40ms at twice the setting value.
[0207] (4) Consistency of action logic: Whether the simulation action results are consistent with the output signals of the actual power grid fault waveform recording:
[0208] Figure 3 This is an overall flowchart of the power grid fault recording inversion analysis method based on the ADPSS simulation system provided by an optional embodiment of the present invention, as shown below. Figure 3 As shown.
[0209] This method comprises three steps: Step 1 involves re-editing the original fault waveform file, generating complete long-time waveform data through normal-state data expansion and fault waveform splicing; Step 2 involves format conversion and waveform coefficient extraction of the waveform data, assigning excitation source values, and converting it into a voltage or current source recognizable by ADPSS; Step 3 involves simplifying the external system based on the basic network model, constructing a hybrid numerical simulation system, conducting fault inversion and result evaluation, and finally outputting a protection action behavior evaluation report. These three steps are sequentially linked, forming a complete fault inversion analysis chain.
[0210] I. Fault waveform recording data re-editing: This stage is the core of preprocessing for simulation data inversion, which resolves the contradiction that the actual waveform recording file has insufficient normal state data (only the first 4 cycles before the fault) while some functions of the protection device require long-term normal state data excitation.
[0211] 1. Obtain the original fault waveform file: Obtain the waveform file in COMTRADE format from the substation fault waveform recording device. This file contains a .cfg configuration file (defining the sampling rate, number of channels, waveform coefficients, etc.) and a .dat data file (recording the actual sampled values). The original waveform file typically only contains waveform data for the four cycles before the fault and the eight cycles after the fault.
[0212] 2. Normal-state data expansion: A windowed overlapping method is used to expand the normal-state data of the four cycles prior to the fault into a long-term normal-state waveform of more than 15 seconds. Specifically, this involves: copying the original normal-state data segment multiple times, using a Hanning window to weightedly superimpose adjacent segments, and applying low-frequency amplitude modulation and phase perturbation to the expanded waveform to avoid introducing non-physical periodic characteristics through long-term repetition, while retaining the key characteristics of the original waveform (amplitude, phase, and harmonic content).
[0213] 3. Fault Waveform Stitching: The extended long-term normal-state waveform is stitched together with the actual recorded fault segment waveform. First, the phase difference between the end of the normal state and the beginning of the fault segment is calculated, and phase rotation is applied to the fault segment waveform to achieve phase alignment. Then, overlapping smooth transition zones are set before and after the stitching point, and a linear weighting function is used for transition processing to ensure that the waveform amplitude and phase at the stitching point are continuous and differentiable, without any transient components introduced by abrupt changes.
[0214] 4. Generate complete long-term waveform data: Output complete waveform data including long-term normal state (≥15 seconds) and actual fault segment (8 cycles after the fault), as input for stage two.
[0215] II. Waveform Data Conversion to ADPSS Excitation: This stage converts the edited waveform data into an excitation source that can be recognized by the ADPSS simulation system, realizing the conversion of the actual fault waveform into the simulation system input.
[0216] 1. Format Conversion and Waveform Coefficient Extraction: The complete waveform data generated in Stage 1 is converted to CSV format (for easy data editing) and COMTRADE format (preserving standard format information). Waveform coefficients are extracted from the .cfg configuration file of the original waveform file, including amplitude transformation coefficients (the ratio of the actual physical quantity to the recorded digital quantity) and time transformation coefficients (the ratio of the actual time to the number of sampling points). Based on the extracted waveform coefficients, the edited waveform data is converted back into digital quantities, and a new .dat waveform file is created.
[0217] 2. Excitation Source Assignment: Create a vars.txt configuration file in the ADPSS simulation system, defining the variable names, data types, and dimensions to be read in. Using ADPSS's file import function, map the compiled .dat file to the variables in vars.txt, and assign these variables to the excitation sources (voltage or current sources) in the simulation system. When the simulation step size and the waveform sampling rate do not match, a linear interpolation function is used for interpolation calculation to ensure the continuity of the excitation signal.
[0218] III. Establishment of Hybrid Simulation Model and Fault Inversion: In this stage, a hybrid real-time simulation system is built to realize closed-loop inversion analysis driven by actual faults.
[0219] 1. Obtain the basic network structure model: Based on the company's simulation center digital simulation platform and system parameters, obtain the network structure model for voltage levels of 110kV and above, including detailed parameters of components such as lines, transformers, generators, loads, and new energy power plants.
[0220] 2. External System Equivalent Simplification: To ensure simulation efficiency while maintaining accuracy around the test substation, an improved Ward equivalent method based on boundary branches is used to simplify the external system. Specific steps include: dividing the entire power grid into an internal system (test substation and surrounding area), boundary nodes, and an external system (the area requiring equivalent simplification); inserting boundary branches with minimal impedance in series on the connection lines between the internal and external systems to isolate the influence of internal system parameters on the equivalent results; performing Gaussian elimination on the external system to calculate the equivalent admittance matrix and equivalent injection current of the boundary nodes; and concatenating the equivalent external system with the internal system to form a simplified simulation model.
[0221] 3. Hybrid Simulation Construction: The voltage, current, and other output quantities of key components in the ADPSS simulation system are mapped to the analog input ports of the external actual protection device via D / A converters and power amplifiers. Simultaneously, the action contact signals of the protection device are fed back to the ADPSS simulation system after A / D converters and level adapters, forming a closed loop. The excitation source generated in Phase 2 is connected to the system, and the amplitude and phase of the excitation source are adjusted to make the power flow distribution of the entire simulation system similar to the normal operating conditions of the actual power grid, requiring a power flow matching error of less than 2%.
[0222] 4. Fault Inversion and Result Evaluation: Simulation parameters are set based on actual fault conditions to conduct rapid simulation inversion of power grid faults. Three inversion modes are supported: single fault inversion (the edited complete waveform is input into the system, and the action time, action logic, output signals, etc. of the protection device are recorded), cascading fault propagation analysis (based on a single fault inversion, the network topology is automatically modified according to the consequences of protection actions to simulate the fault evolution process), and inter-regional coordination analysis (protection devices are configured simultaneously in multiple substations to verify the coordination selectivity of upstream and downstream protection during a fault). Evaluation indicators include relay protection correct operation evaluation, reclosing evaluation, action time evaluation, and action logic consistency evaluation.
[0223] The above optional implementation methods can achieve at least the following beneficial effects:
[0224] (1) The first realization of hybrid analog-digital closed-loop inversion driven by actual fault recording;
[0225] Existing fault inversion methods are limited by their inability to combine actual power grid faults with digital simulation systems. This invention injects actual fault waveforms as excitation sources into a hybrid digital-analog simulation system, achieving a complete closed loop of "actual fault, simulation reproduction, protection response, and evaluation feedback," which can realistically reflect the action behavior of protection devices in actual power grids.
[0226] (2) An innovative method for extending long-term normal-state waveforms;
[0227] To address the contradiction that actual waveform recording data in normal state is insufficient (usually 4 cycles) while some functions of the protection device need to operate normally for a long time before they can be charged or reset (such as reclosing, which generally requires more than 15 seconds of charging), the windowing, overlapping, and modulation method for generating long-term variations proposed in this invention not only ensures a smooth transition of the waveform at the splicing point (continuous phase and continuous amplitude), but also avoids the non-physical periodicity introduced by long-term repetition through low-frequency modulation, thus preserving the waveform fault characteristics required for fault inversion;
[0228] (3) Precise waveform-to-excitation source conversion technology;
[0229] Through steps such as waveform coefficient extraction and linear interpolation reading, a standardized conversion from arbitrary waveform recording files to ADPSS-identifiable excitation sources is achieved, which has good versatility and scalability.
[0230] (4) An efficient method for simplifying space frame models;
[0231] An improved Ward equivalent method based on boundary branches was adopted, which greatly simplified the external system model, reduced the amount of simulation calculation, and improved the feasibility of real-time simulation while ensuring the accuracy of the external equivalent simulation of the test substation.
[0232] (5) System-level analysis capabilities covering complex fault scenarios;
[0233] This invention not only supports single-fault inversion, but also extends the analysis to complex scenarios such as cascading faults and inter-regional coordination. It can reveal the interactive influence of protection and control and stability control devices during the fault evolution process, which is of great value for improving the reliability of the three lines of defense.
[0234] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0235] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0236] Example 2
[0237] According to embodiments of the present invention, an apparatus for implementing the above-described power grid fault recording inversion method is also provided. Figure 4 This is a structural block diagram of a power grid fault recording and inversion device according to an embodiment of the present invention, as shown below. Figure 4 As shown, the device includes: an acquisition module 402, a superposition module 404, a modulation module 406, a splicing module 408, and an inversion module 410. The device will be described in detail below.
[0238] The acquisition module 402 is used to acquire fault waveform data corresponding to the protection device, wherein the fault waveform data includes a normal state data segment of a predetermined period before the fault, an actual fault state data segment, an amplitude transformation coefficient, and a time transformation coefficient; the superposition module 404, connected to the acquisition module 402, is used to copy the normal state data segment into multiple copies, perform a superposition operation on the overlapping intervals of two adjacent copies, and generate a superimposed data segment; the modulation module 406, connected to the superposition module 404, is used to apply an amplitude-phase modulation operation to the superimposed data segment to obtain a modulated data segment, wherein the amplitude-phase modulation operation is used to eliminate the non-physical periodic characteristics introduced by the repetitive waveform; the splicing module 408, connected to the modulation module 406, is used to splice the modulated data segment and the actual fault state data segment to obtain a complete waveform data segment; the inversion module 410, connected to the splicing module 408, is used to determine the excitation source in the power grid simulation model to be connected to the simulation system based on the complete waveform data segment, so as to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform.
[0239] It should be noted that the acquisition module 402, superposition module 404, modulation module 406, splicing module 408 and inversion module 410 mentioned above correspond to steps S102 to S110 in the waveform inversion method for implementing power grid faults. The instances and application scenarios implemented by multiple modules and their corresponding steps are the same, but are not limited to the content disclosed in the above embodiment 1.
[0240] Example 3
[0241] According to another aspect of the present invention, an electronic device is also provided, comprising: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the power grid fault recording inversion method of any of the above embodiments.
[0242] Example 4
[0243] According to another aspect of the present invention, a computer-readable storage medium is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the waveform inversion method for any of the above-described power grid faults.
[0244] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0245] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0246] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0247] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0248] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0249] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0250] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for recording and inverting power grid faults, characterized in that, include: Acquire fault waveform data corresponding to the protection device, wherein the fault waveform data includes a normal state data segment of a predetermined period before the fault, an actual fault state data segment, an amplitude transformation coefficient, and a time transformation coefficient. The normal data segment is copied into multiple copies, and an overlay operation is performed on the overlapping intervals of two adjacent copies to generate an overlay data segment; An amplitude-phase modulation operation is applied to the superimposed data segment to obtain a modulated data segment, wherein the amplitude-phase modulation operation is used to eliminate the non-physical periodicity characteristics introduced by the repetitive waveform; Based on the modulated data segment and the actual fault state data segment, a complete waveform data segment is obtained by splicing them together; Based on the complete waveform data segment, the excitation source in the power grid simulation model used to access the simulation system is determined, so as to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform.
2. The method according to claim 1, characterized in that, Based on the complete waveform data segment, after determining the excitation source in the power grid simulation model used to access the simulation system for running the simulation and obtaining the power grid fault inversion result driven by the actual fault waveform, the process further includes: When the power grid fault inversion result includes the action output sequence generated based on the voltage time series data and current time series data of each node in the power grid simulation model, the preset theoretically correct action sequence and the actual action sequence of the protection device included in the fault recording data are obtained. The action output sequence is compared with the theoretically correct action sequence to determine whether the protection device should operate in this fault and whether the action type matches, thus obtaining the first comparison result; The action output sequence is compared with the actual action sequence of the protection device to determine whether the simulated protection action behavior is consistent with the actual action behavior recorded on site, and a second comparison result is obtained. Based on the first comparison result and the second comparison result, the evaluation result of the protective action behavior is determined.
3. The method according to claim 1, characterized in that, Based on the complete waveform data segment, the excitation source in the power grid simulation model used to connect to the simulation system is determined to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform, including: Obtain the amplitude transformation coefficient and the time transformation coefficient corresponding to the fault recording data; Based on the amplitude transformation coefficient and the time transformation coefficient, the complete waveform data segment is converted into a waveform data file that can be read by the simulation system; In the simulation system, the waveform data file is mapped as an excitation source, and the excitation source is connected to the power grid simulation model running in the simulation system to run the simulation, so as to obtain the power grid fault inversion result driven by the actual fault waveform.
4. The method according to claim 1, characterized in that, The normal data segment is copied into multiple copies, and an overlay operation is performed on the overlapping intervals of adjacent copies to generate an overlay data segment. The overlay operation includes: The normal state data segment is copied into a predetermined number of copies, wherein the predetermined number of copies ensures that the total duration of the data segment after being arranged end to end reaches a preset duration threshold, and the preset duration threshold is the duration required for the protection device to reach the target state. For any two adjacent normal state data segments, the starting portion of the latter normal state data segment overlaps with the ending portion of the former normal state data segment on the time axis by a predetermined proportion. Within the overlapping interval, the end portion of the previous normal state data segment is multiplied by a monotonically decreasing window function to obtain the first window-operated data segment, and the beginning portion of the next normal state data segment is multiplied by a monotonically increasing window function to obtain the second window-operated data segment. Add the first window data segment to the second window data segment to obtain the superimposed waveform data within the overlapping interval; The predetermined number of normal data segments are sequentially spliced together so that adjacent segments are superimposed and transitioned within the overlapping interval to obtain the superimposed data segment.
5. The method according to claim 1, characterized in that, Based on the modulated data segment and the actual fault state data segment, a complete waveform data segment is obtained by splicing together, including: Based on the modulated data segment and the actual fault state data segment, a phase alignment operation is applied to obtain an aligned data segment, wherein the phase alignment operation is used to avoid non-physical waveform abrupt changes caused by phase discontinuity; The aligned data segment and the modulated data segment are smoothly transitioned at the splicing point to obtain the complete waveform data segment.
6. The method according to claim 5, characterized in that, Based on the modulated data segment and the actual fault state data segment, a phase alignment operation is applied to obtain an aligned data segment, including: The instantaneous phase of the sampling point at the end of the modulation data segment is extracted as the end phase, and the instantaneous phase of the sampling point at the beginning of the actual fault state data segment is extracted as the start phase. The end phase and the start phase are then phase-aligned to obtain the aligned data segment.
7. The method according to any one of claims 1 to 6, characterized in that, Before determining the excitation source in the power grid simulation model used to access the simulation system based on the complete waveform data segment, and running the simulation to obtain the power grid fault inversion result driven by the actual fault waveform, the process also includes: Obtain a predetermined space frame model, wherein the protective device is configured at predetermined nodes in the predetermined space frame model; The predetermined space frame model is divided into a modeling region, boundary nodes, and an equivalent simplified region, wherein the boundary nodes are the connection nodes between the modeling region and the equivalent simplified region; By connecting boundary branches in series on the connection line between the modeling region and the equivalent simplified region, a simplified grid model with boundary branches is obtained; Gaussian elimination is performed on the equivalent simplified region in the simplified grid model to eliminate internal nodes and obtain the node parameters at the boundary nodes; Based on the node parameters, the boundary nodes, and the modeling region, a simplified power grid simulation model is obtained.
8. A waveform recording and inversion device for power grid faults, characterized in that, include: The acquisition module is used to acquire fault waveform data corresponding to the protection device, wherein the fault waveform data includes a normal state data segment of a predetermined period before the fault, an actual fault state data segment, an amplitude transformation coefficient, and a time transformation coefficient. The overlay module is used to copy the normal data segment into multiple copies, perform an overlay operation on the overlapping intervals of two adjacent copies, and generate an overlay data segment. A modulation module is used to apply amplitude-phase modulation operation to the superimposed data segment to obtain a modulated data segment, wherein the amplitude-phase modulation operation is used to eliminate the non-physical periodicity characteristics introduced by the repetitive waveform; The splicing module is used to splice the modulated data segment and the actual fault state data segment to obtain a complete waveform data segment; The inversion module is used to determine the excitation source in the power grid simulation model used to access the simulation system based on the complete waveform data segment, so as to run the simulation and obtain the power grid fault inversion result driven by the actual fault waveform.
9. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the waveform inversion method for power grid faults as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the waveform inversion method for power grid faults as described in any one of claims 1 to 7.
