Harmonic voltage determination method and device, computer equipment, readable storage medium and program product
By using impulse response method and filter coefficient correction technology in the power grid, the problem of low measurement accuracy of transformers under harmonic conditions is solved, and the accurate determination of the harmonic voltage of the power grid is achieved, reducing costs.
Patent Information
- Application Number
- CN202411432462.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-07
AI Technical Summary
Under harmonic conditions, the measurement accuracy of the transformer is affected, resulting in the inability to accurately determine the harmonic voltage of the power grid. The existing technology requires the transformation of the transformer, which is relatively expensive.
Before the target transformer is connected to the target power grid, the preset pulse voltage is input to the primary side of the transformer based on the impulse response method, and the voltage data is obtained, and the target filter coefficient is determined based on these data. After the transformer is connected to the power grid, the target filter coefficient is determined based on the The filter coefficient corrects the voltage data to determine the harmonic voltage of the power grid.
The harmonic voltage of the power grid is determined without the need to modify the transformer, reducing costs and improving measurement accuracy.
Smart Images

Figure CN119401454A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power grid technology, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for determining harmonic voltage. Background Art
[0002] With the increasing proportion of new energy equipment and electronic equipment in the power grid, the harmonic problem in the power grid is becoming more and more serious. The transformer can be used to measure the grid voltage, but under harmonic conditions, the measurement accuracy of the transformer is affected, making it impossible to accurately determine the harmonic voltage of the grid to solve the grid harmonic problem.
[0003] In the prior art, the transformer is mostly directly modified to determine the harmonic voltage of the power grid through the modified transformer.
[0004] However, this method requires modification of the transformer, making the cost of determining the grid harmonic voltage high. Summary of the invention
[0005] Based on this, it is necessary to provide a low-cost harmonic voltage determination method, device, computer equipment, computer-readable storage medium and computer program product to address the above technical problems.
[0006] In a first aspect, the present application provides a method for determining harmonic voltage, comprising:
[0007] Before the target transformer is connected to the target power grid, a preset pulse voltage is input to the primary side of the target transformer based on the pulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained;
[0008] determining a target filter coefficient based on the first voltage data and the second voltage data;
[0009] After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is acquired, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0010] In one of the embodiments, the target filter coefficient is determined based on the first voltage data and the second voltage data, including: filtering the first voltage data and the second voltage data, and determining the unit pulse response of the target transformer based on the filtered first voltage data and the second voltage data; determining the target filter coefficient based on the unit pulse response of the target transformer.
[0011] In one of the embodiments, the target filter coefficient is determined according to the unit impulse response of the target transformer, including: determining the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and determining the target filter coefficient according to the unit impulse response of the target transformer inverse system.
[0012] In one of the embodiments, the unit pulse response of the target transformer is determined based on the first voltage data and the second voltage data after filtering, including: determining the unit pulse response of the target transformer based on the least squares method, the first voltage data and the second voltage data after filtering.
[0013] In one of the embodiments, the unit pulse response of the target transformer inverse system is determined based on the unit pulse response of the target transformer, including: changing the unit pulse response of the target transformer based on a Z-transformation algorithm and an inverse transformation algorithm to obtain the unit pulse response of the target transformer inverse system.
[0014] In one embodiment, the harmonic voltage of the target power grid is a digital signal, and the method further includes: converting the harmonic voltage of the target power grid into an analog signal, and displaying the harmonic voltage of the target power grid converted into the analog signal.
[0015] In a second aspect, the present application further provides a harmonic voltage determination device, comprising:
[0016] An acquisition module, used for inputting a preset pulse voltage to the primary side of the target transformer based on the pulse response method before the target transformer is connected to the target power grid, and acquiring first voltage data of the primary side and second voltage data of the secondary side of the target transformer;
[0017] A determination module, configured to determine a target filter coefficient based on the first voltage data and the second voltage data;
[0018] The execution module is used to obtain the third voltage data of the secondary side of the target transformer after the target transformer is connected to the target power grid, and to correct the third voltage data based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0019] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in any embodiment of the first aspect when executing the computer program.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any one of the embodiments of the first aspect above.
[0021] In a fifth aspect, the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in any embodiment of the first aspect above.
[0022] The above-mentioned harmonic voltage determination method, device, computer equipment, computer-readable storage medium and computer program product, before the target transformer is connected to the target power grid, inputs a preset pulse voltage to the primary side of the target transformer based on the impulse response method, and obtains the first voltage data of the primary side of the target transformer and the second voltage data of the secondary side; determines the target filter coefficient based on the first voltage data and the second voltage data; after the target transformer is connected to the target power grid, obtains the third voltage data of the secondary side of the target transformer, and corrects the third voltage data based on the target filter coefficient to determine the harmonic voltage of the target power grid. The harmonic voltage determination method provided by the present application determines the target filter coefficient based on the impulse response method before the target transformer is connected to the target power grid. After the target transformer is connected to the target power grid, the harmonic voltage of the target power grid can be determined by correcting the voltage data on the secondary side of the target transformer based on the target filter coefficient. The harmonic voltage can be determined without modifying the transformer, thereby reducing the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A diagram showing an application environment of a method for determining harmonic voltage in an embodiment;
[0025] Figure 2 A schematic flow chart of a method for determining a target filter coefficient based on the first voltage data and the second voltage data in one embodiment;
[0026] Figure 3 is a flow chart of a method for determining harmonic voltage in another embodiment;
[0027] Figure 4 is a structural block diagram of a harmonic voltage determination device in one embodiment;
[0028] Figure 5 is an internal structure diagram of a computer device in one embodiment;
[0029] Figure 6 is a schematic diagram of a target filter in one embodiment;
[0030] Figure 7 is a schematic diagram of an equivalent circuit model of a target mutual inductor in an embodiment;
[0031] Figure 8 A schematic diagram of a verification result in one embodiment;
[0032] Fig. 9 It is a schematic diagram of verification results in another embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] With the increasing proportion of new energy equipment and electronic equipment in the power grid, the harmonic problem in the power grid is becoming more and more serious. The transformer can be used to measure the grid voltage, but under harmonic conditions, the measurement accuracy of the transformer is affected, making it impossible to accurately determine the harmonic voltage of the grid to solve the grid harmonic problem.
[0035] In the prior art, the transformer is mostly directly modified to determine the harmonic voltage of the power grid through the modified transformer.
[0036] However, this method requires modification of the transformer, making the cost of determining the grid harmonic voltage high.
[0037] In view of this, the present application provides a method for determining harmonic voltage, which can determine the harmonic voltage of the power grid without modifying the transformer, thereby effectively reducing the cost.
[0038] The harmonic voltage determination method provided in the present application may be executed by a computer device, which may be a terminal.
[0039] In an exemplary embodiment, Figure 1 As shown, a method for determining harmonic voltage is provided, the method comprising the following steps:
[0040] Step 101: Before a target transformer is connected to a target power grid, a preset pulse voltage is input to a primary side of the target transformer based on an impulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained.
[0041] Optionally, the target transformer may be a capacitive voltage transformer. The capacitive voltage transformer may measure and monitor voltage data in a power grid. The primary side of the target transformer may be understood as a power supply side, and the secondary side of the target transformer may be understood as a load side.
[0042] The target power grid may be a power grid to be subjected to harmonic voltage monitoring. The preset pulse voltage may be a short-duration unit pulse for exciting the target transformer.
[0043] In some exemplary embodiments, before the target transformer is connected to the target power grid, for example, after the target transformer leaves the factory, a preset pulse voltage is input to the primary side of the target transformer based on a pulse response method. Specifically, a pulse generator can be used to input a preset pulse voltage to the primary side of the target transformer.
[0044] Furthermore, after inputting a preset pulse voltage to the primary side of the target transformer, the first voltage data of the primary side and the second voltage data of the secondary side of the target transformer can be obtained based on an oscilloscope. Specifically, the first voltage data can be used to characterize the reaction of the target transformer to the preset pulse voltage, and the second voltage data can be used to analyze the output characteristics of the target transformer.
[0045] Step 102: Determine a target filter coefficient based on the first voltage data and the second voltage data.
[0046] Optionally, the target filter may be a FIR (Finite Impulse Response) filter.
[0047] In one possible implementation, the first voltage data and the second voltage data may be input into a pre-trained target filter coefficient determination model to obtain the target filter coefficient output by the target filter coefficient determination model.
[0048] In another possible implementation method, the first voltage data and the second voltage data may be filtered first, and the unit pulse response of the target transformer may be determined based on the filtered first voltage data and the second voltage data, and then the target filter coefficient may be determined based on the unit pulse response of the target transformer.
[0049] Step 103: After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is obtained, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0050] In some exemplary embodiments, after the target transformer is connected to the target power grid, the third voltage data on the secondary side of the target transformer can be obtained in real time, and the third voltage data includes harmonic components. The third voltage data is corrected based on the target filter coefficients of a pre-constructed target filter to obtain the harmonic voltage corresponding to the harmonic components in the third voltage data.
[0051] Specifically, Figure 6 As shown, Figure 6 shows the process of the target filter correcting the third voltage data, Figure 6 The input signal is the third voltage data, the filter coefficient is the target filter coefficient, and the output information is the harmonic voltage.
[0052] The above-mentioned harmonic voltage determination method, before the target transformer is connected to the target power grid, inputs a preset pulse voltage to the primary side of the target transformer based on the impulse response method, and obtains the first voltage data of the primary side of the target transformer and the second voltage data of the secondary side; determines the target filter coefficient based on the first voltage data and the second voltage data; after the target transformer is connected to the target power grid, obtains the third voltage data of the secondary side of the target transformer, and corrects the third voltage data based on the target filter coefficient to determine the harmonic voltage of the target power grid. The harmonic voltage determination method provided by the present application determines the target filter coefficient based on the impulse response method before the target transformer is connected to the target power grid. After the target transformer is connected to the target power grid, the harmonic voltage of the target power grid can be determined by correcting the voltage data on the secondary side of the target transformer based on the target filter coefficient. The harmonic voltage can be determined without modifying the transformer, thereby reducing the cost.
[0053] In an exemplary embodiment, Figure 2 As shown, the target filter coefficient is determined based on the first voltage data and the second voltage data, comprising the following steps:
[0054] Step 201: filter the first voltage data and the second voltage data, and determine the unit impulse response of the target transformer according to the filtered first voltage data and the second voltage data.
[0055] Optionally, the filtering process is used to filter out noise, such as Gaussian white noise, in the first voltage data and the second voltage data.
[0056] In some exemplary embodiments, the first voltage data and the second voltage data can be filtered first, and then the filtered first voltage data and the second voltage data can be input into a pre-trained unit pulse response determination model to obtain the unit pulse response of the target transformer output by the unit pulse response determination model.
[0057] In other exemplary embodiments, the first voltage data and the second voltage data may be filtered first, and then the unit pulse response of the target transformer may be determined based on the least squares method and the filtered first voltage data and the second voltage data.
[0058] Step 202: Determine the target filter coefficient according to the unit impulse response of the target transformer.
[0059] In some exemplary embodiments, the unit impulse response of the target mutual inductor may be input into a pre-trained target filter coefficient determination model to obtain the target filter coefficient output by the target filter coefficient determination model.
[0060] In some other exemplary embodiments, the unit impulse response of the target transformer inverse system may be determined according to the unit impulse response of the target transformer, and the target filter coefficient may be determined according to the unit impulse response of the target transformer inverse system.
[0061] In an exemplary embodiment, the unit pulse response of the target transformer is determined based on the first voltage data and the second voltage data after filtering, including: determining the unit pulse response of the target transformer based on the least squares method, the first voltage data and the second voltage data after filtering.
[0062] In some exemplary embodiments, the unit pulse response of the target transformer can be determined based on the least squares method, the first voltage data after filtering and the second voltage data. Specifically, the first voltage data after filtering and the second voltage data can be input into Among them, is the first voltage data and the second voltage data after filtering, is the preset pulse voltage, is the unit impulse response of the target transformer.
[0063] Furthermore, the unit impulse response of the target transformer can be determined by the least square method. For the linear equation system: ,in, yes matrix, is a column vector with n elements, is a column vector with m elements. ,when and When orthogonal, the corresponding least squares solution is: , express the above formula in matrix form, and use the input Construct parameter matrix , output Corresponding vector , solve the equation for the unknown vector Corresponding unit impulse response ,as follows:
[0064] ;
[0065] ;
[0066] .
[0067] In an exemplary embodiment, the target filter coefficient is determined according to the unit impulse response of the target transformer, including: determining the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and determining the target filter coefficient according to the unit impulse response of the target transformer inverse system.
[0068] In some exemplary embodiments, after obtaining the unit pulse response of the target transformer, the unit pulse response of the target transformer can be input into a pre-trained unit pulse response determination model of the target transformer inverse system to obtain the unit pulse response of the target transformer inverse system output by the unit pulse response determination model of the target transformer inverse system.
[0069] Furthermore, the target filter coefficient is determined according to the unit impulse response of the target transformer inverse system.
[0070] In other exemplary embodiments, after obtaining the unit pulse response of the target transformer, the unit pulse response of the target transformer may be transformed based on a Z-transformation algorithm and an inverse transformation algorithm to obtain the unit pulse response of the inverse system of the target transformer.
[0071] Furthermore, the target filter coefficient is determined according to the unit impulse response of the target transformer inverse system.
[0072] In an exemplary embodiment, the unit pulse response of the target transformer inverse system is determined based on the unit pulse response of the target transformer, including: changing the unit pulse response of the target transformer based on a Z-transformation algorithm and an inverse transformation algorithm to obtain the unit pulse response of the target transformer inverse system.
[0073] In some exemplary embodiments, the unit pulse response of the target transformer may be transformed based on a Z-transformation algorithm and an inverse transformation algorithm to obtain the unit pulse response of the target transformer inverse system. Specifically, the unit pulse response of the target transformer may be Z-transformed first. ,in, yes The function after Z transformation.
[0074] Further, Take the reciprocal to obtain the Z transform of the target transformer inverse system unit impulse response, that is, ,in, is the Z transform of the inverse system unit impulse response of the target transformer.
[0075] Further, The unit impulse response of the target transformer inverse system can be obtained by performing the inverse transformation, that is, ,in, is the unit impulse response of the target transformer inverse system.
[0076] Furthermore, the target filter coefficients are constructed according to the unit impulse response of the target transformer inverse system, that is, .
[0077] In an exemplary embodiment, the harmonic voltage of the target power grid is a digital signal, and the method further includes: converting the harmonic voltage of the target power grid into an analog signal, and displaying the harmonic voltage of the target power grid converted into the analog signal.
[0078] In some exemplary embodiments, the harmonic voltage of the determined target power grid is data information, and the harmonic voltage of the target power grid can be first converted into an analog signal, and then the harmonic voltage converted into the analog signal is displayed to facilitate observation and analysis by technicians.
[0079] In an exemplary embodiment, Figure 3 As shown, another method for determining harmonic voltage is provided, the method comprising the following steps:
[0080] Step 301: before a target transformer is connected to a target power grid, a preset pulse voltage is input to a primary side of the target transformer based on an impulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained;
[0081] Step 302: filtering the first voltage data and the second voltage data, and determining the unit impulse response of the target transformer based on the least squares method and the filtered first voltage data and the second voltage data;
[0082] Step 303: determining the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and performing a change process on the unit impulse response of the target transformer based on a Z-transformation algorithm and an inverse transformation algorithm to obtain the unit impulse response of the target transformer inverse system;
[0083] Step 304: After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is obtained, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0084] Step 305: convert the harmonic voltage of the target power grid into an analog signal, and display the harmonic voltage of the target power grid converted into the analog signal.
[0085] It should be noted that the inventor of the present application conducted relevant experiments on the harmonic voltage determination method provided in the present application to verify its effectiveness.
[0086] Specifically, first build the structure on PSCAD software such as Figure 7 The target transformer equivalent circuit model shown in the figure injects a square wave pulse with a pulse width of 0.01ms, an amplitude of 10kV and a period of 100s on the primary side of the target transformer. An oscilloscope is used to simultaneously record the voltage signals on the primary and secondary sides of the target transformer. The sampling time of the oscilloscope is 0.5×10^-5s. The obtained data is imported into MATLAB for data processing.
[0087] Furthermore, the unit pulse response sequence of the target transformer and the unit pulse response sequence of the target transformer inverse system are obtained based on the voltage signals of the primary side and the secondary side of the target transformer, and the coefficients of the FIR filter are constructed according to the unit pulse response sequence of the target transformer inverse system, so as to correct the harmonic voltage of the primary side of the target transformer in real time.
[0088] Figure 8 is a comparison diagram of the target transformer primary side steady-state harmonic voltage restored by the harmonic voltage determination method provided by the present application and the original primary side harmonic voltage, Fig. 9 This is a comparison diagram of the target transformer primary side transient harmonic voltage restored by the harmonic voltage determination method provided by the present application and the original primary side harmonic voltage. The solid line and the dotted line represent the true value and the restored value, respectively. It can be clearly seen that the estimated value solid line perfectly coincides with the true value dotted line, which verifies the practicality and effectiveness of the present application method.
[0089] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0090] Based on the same inventive concept, the embodiment of the present application also provides a harmonic voltage determination device for implementing the harmonic voltage determination method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more harmonic voltage determination device embodiments provided below can refer to the limitations of the harmonic voltage determination method above, and will not be repeated here.
[0091] In an exemplary embodiment, Figure 4 As shown, a harmonic voltage determination device 400 is provided, comprising: an acquisition module 401, a determination module 402 and an execution module 403, wherein:
[0092] The acquisition module 401 is used to input a preset pulse voltage to the primary side of the target transformer based on the pulse response method before the target transformer is connected to the target power grid, and to obtain the first voltage data of the primary side and the second voltage data of the secondary side of the target transformer;
[0093] A determination module 402, configured to determine a target filter coefficient based on the first voltage data and the second voltage data;
[0094] The execution module 403 is used to obtain the third voltage data of the secondary side of the target transformer after the target transformer is connected to the target power grid, and perform correction processing on the third voltage data based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0095] In one embodiment, the determination module 402 is specifically used to filter the first voltage data and the second voltage data, and determine the unit pulse response of the target transformer based on the first voltage data and the second voltage data after filtering; and determine the target filter coefficient based on the unit pulse response of the target transformer.
[0096] In one embodiment, the determination module 402 is specifically configured to determine the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and determine the target filter coefficient according to the unit impulse response of the target transformer inverse system.
[0097] In one embodiment, the determination module 402 is specifically configured to determine the unit impulse response of the target transformer based on the least square method, the first voltage data after filtering, and the second voltage data.
[0098] In one embodiment, the determination module 402 is specifically configured to perform a change process on the unit impulse response of the target transformer based on a Z-transformation algorithm and an inverse transformation algorithm to obtain a unit impulse response of an inverse system of the target transformer.
[0099] In one embodiment, the harmonic voltage of the target power grid is a digital signal, and the execution module 403 is further used to convert the harmonic voltage of the target power grid into an analog signal, and display the harmonic voltage of the target power grid converted into the analog signal.
[0100] Each module in the above harmonic voltage determination device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0101] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a harmonic voltage determination method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0102] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0103] In an optional embodiment, the terminal may be a target transformer correction device, which may be arranged on the secondary side of the target transformer, and may include a step-down module, an AD sampling module, a correction module and a DA digital-to-analog conversion module.
[0104] The step-down module adopts a resistive voltage-dividing structure to step down the target transformer secondary voltage, which is convenient for the AD sampling module to sample. The AD sampling module collects the target transformer secondary voltage signal after the step-down, and converts the analog voltage into a digital voltage, which is convenient for the subsequent correction module to perform correction. The correction module constructs an FIR filter in the FPGA chip, in which the filter coefficient uses the unit impulse response of the target transformer inverse system. The correction module processes the signal after AD sampling to obtain the harmonic voltage of the target transformer primary side, that is, the harmonic voltage of the power grid. The DA digital-to-analog conversion module uses a digital-to-analog conversion chip to convert the corrected digital signal into an analog signal, which is output to a display device for observation and analysis.
[0105] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0106] Before the target transformer is connected to the target power grid, a preset pulse voltage is input to the primary side of the target transformer based on the pulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained;
[0107] determining a target filter coefficient based on the first voltage data and the second voltage data;
[0108] After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is acquired, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0109] In one embodiment, when the processor executes the computer program, the following steps are also implemented: filtering the first voltage data and the second voltage data, and determining the unit pulse response of the target transformer based on the first voltage data and the second voltage data after filtering; determining the target filter coefficient based on the unit pulse response of the target transformer.
[0110] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and determining the target filter coefficient according to the unit impulse response of the target transformer inverse system.
[0111] In one embodiment, when the processor executes the computer program, the following steps are further implemented: based on the least square method, the first voltage data after filtering and the second voltage data, a unit impulse response of the target transformer is determined.
[0112] In one embodiment, when the processor executes the computer program, the following steps are further implemented: based on the Z-transformation algorithm and the inverse transformation algorithm, the unit impulse response of the target transformer is transformed to obtain the unit impulse response of the inverse system of the target transformer.
[0113] In one embodiment, when the processor executes the computer program, the following steps are further implemented: converting the harmonic voltage of the target power grid into an analog signal, and displaying the harmonic voltage of the target power grid converted into the analog signal.
[0114] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0115] Before the target transformer is connected to the target power grid, a preset pulse voltage is input to the primary side of the target transformer based on the pulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained;
[0116] determining a target filter coefficient based on the first voltage data and the second voltage data;
[0117] After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is acquired, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0118] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: filtering the first voltage data and the second voltage data, and determining the unit pulse response of the target transformer based on the filtered first voltage data and the second voltage data; determining the target filter coefficient based on the unit pulse response of the target transformer.
[0119] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and determining the target filter coefficient according to the unit impulse response of the target transformer inverse system.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: based on the least square method, the first voltage data after filtering and the second voltage data, the unit impulse response of the target transformer is determined.
[0121] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: based on the Z-transformation algorithm and the inverse transformation algorithm, the unit impulse response of the target transformer is transformed to obtain the unit impulse response of the inverse system of the target transformer.
[0122] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: converting the harmonic voltage of the target power grid into an analog signal, and displaying the harmonic voltage of the target power grid converted into the analog signal.
[0123] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0124] Before the target transformer is connected to the target power grid, a preset pulse voltage is input to the primary side of the target transformer based on the pulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained;
[0125] determining a target filter coefficient based on the first voltage data and the second voltage data;
[0126] After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is acquired, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
[0127] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: filtering the first voltage data and the second voltage data, and determining the unit pulse response of the target transformer based on the filtered first voltage data and the second voltage data; determining the target filter coefficient based on the unit pulse response of the target transformer.
[0128] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the unit impulse response of the target transformer inverse system according to the unit impulse response of the target transformer, and determining the target filter coefficient according to the unit impulse response of the target transformer inverse system.
[0129] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: based on the least square method, the first voltage data after filtering and the second voltage data, the unit impulse response of the target transformer is determined.
[0130] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: based on the Z-transformation algorithm and the inverse transformation algorithm, the unit impulse response of the target transformer is transformed to obtain the unit impulse response of the inverse system of the target transformer.
[0131] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: converting the harmonic voltage of the target power grid into an analog signal, and displaying the harmonic voltage of the target power grid converted into the analog signal.
[0132] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0134] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for determining harmonic voltage, characterized in that: The method comprises: Before the target transformer is connected to the target power grid, a preset pulse voltage is input to the primary side of the target transformer based on the pulse response method, and first voltage data of the primary side and second voltage data of the secondary side of the target transformer are obtained; determining a target filter coefficient based on the first voltage data and the second voltage data; After the target transformer is connected to the target power grid, third voltage data of the secondary side of the target transformer is acquired, and the third voltage data is corrected based on the target filter coefficient to determine the harmonic voltage of the target power grid.
2. The method according to claim 1, characterized in that The determining a target filter coefficient based on the first voltage data and the second voltage data comprises: Performing filtering processing on the first voltage data and the second voltage data, and determining a unit pulse response of the target transformer according to the first voltage data and the second voltage data after the filtering processing; The target filter coefficient is determined according to the unit impulse response of the target transformer.
3. The method according to claim 2, characterized in that The determining the target filter coefficient according to the unit impulse response of the target mutual inductor comprises: The unit impulse response of the target transformer inverse system is determined according to the unit impulse response of the target transformer, and the target filter coefficient is determined according to the unit impulse response of the target transformer inverse system.
4. The method according to claim 2, characterized in that: The determining the unit pulse response of the target transformer according to the first voltage data and the second voltage data after filtering includes: The unit impulse response of the target transformer is determined based on the least square method, the first voltage data and the second voltage data after filtering.
5. The method according to claim 3, characterized in that: The determining the unit pulse response of the target transformer inverse system according to the unit pulse response of the target transformer comprises: The unit impulse response of the target transformer is changed based on a Z-transformation algorithm and an inverse transformation algorithm to obtain a unit impulse response of an inverse system of the target transformer.
6. The method according to claim 1, characterized in that The harmonic voltage of the target power grid is a digital signal, and the method further includes: The harmonic voltage of the target power grid is converted into an analog signal, and the harmonic voltage of the target power grid converted into the analog signal is displayed.
7. A harmonic voltage determination device, characterized in that: The device comprises: An acquisition module, used for inputting a preset pulse voltage to the primary side of the target transformer based on an impulse response method before the target transformer is connected to the target power grid, and acquiring first voltage data of the primary side and second voltage data of the secondary side of the target transformer; A determination module, configured to determine a target filter coefficient based on the first voltage data and the second voltage data; An execution module is used to obtain third voltage data of the secondary side of the target transformer after the target transformer is connected to the target power grid, and to correct the third voltage data based on the target filter coefficient to determine the harmonic voltage of the target power grid.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.