Power grid operation control method, device and equipment and storage medium
By determining the number of sampling points based on the signal frequency and sampling frequency, the DC components of the grid voltage and current signals are obtained. The phase characteristics and extreme point data are determined using a preset curve function and fitting coefficients. The power direction is calculated by combining the inverse trigonometric function, which solves the problem of calculation delay in traditional methods and improves the safety and efficiency of grid operation.
Patent Information
- Application Number
- CN202511058342.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-10-31
AI Technical Summary
Traditional power direction identification methods suffer from computational delays in the power grid, affecting system response speed and the accuracy of power metering. In particular, when distributed energy resources are integrated, the identification results may not match the actual power changes, affecting the efficiency and security of power grid operation.
By determining the number of sampling points based on the signal frequency and sampling frequency, the DC components of the grid voltage and current signals are obtained. The phase characteristics and extreme point data are determined using a preset curve function and fitting coefficients. The power direction is calculated by combining the inverse trigonometric function, thus achieving fast and accurate power direction identification.
It improves the efficiency of power direction identification during power grid operation control, enhances the safety and efficiency of power grid operation, and reduces power metering errors.
Smart Images

Figure CN120879660A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system monitoring and control technology, and in particular to a power grid operation control method, device, equipment and storage medium. Background Technology
[0002] Currently, with the advancement of new power system construction, a large proportion of renewable energy and power electronic equipment are being integrated into the grid, leading to increasingly complex grid operation. During the integration of distributed renewable energy into the grid, frequent interactions occur between the source, grid, load, and storage systems, potentially causing complex power ride-throughs within the existing grid architecture. Therefore, quickly and accurately identifying changes in power direction is crucial for grid stability and the accuracy of electricity metering, and the accuracy and speed of power direction identification directly affect the accuracy of power ride-through assessment.
[0003] Conventional power direction identification methods are usually based on the principle of digital filters. The instantaneous power signal is obtained by multiplying the sampled voltage and current signals, and then the DC component of the power is obtained by using a low-pass digital filter. The power factor is obtained by calculating the active power and reactive power, and finally the direction of the power is obtained.
[0004] However, these conventional power direction identification methods often suffer from significant lag. Because digital filters are calculated based on steady-state signals, they require several cycles to stabilize when the power direction changes. This results in an unavoidable delay in the power identification process of conventional methods. This delay not only affects the system's real-time response capability but may also lead to power metering errors, negatively impacting the stable operation of the power grid and the accuracy of energy metering.
[0005] In summary, the main problem with existing technologies is that traditional power direction identification methods suffer from computational delays when power direction changes rapidly. This delay leads to insufficient system response speed, thus affecting the accuracy of electricity metering. During the integration of distributed energy resources into the grid, this delay may cause the identification results to differ from the actual power changes, thereby impacting the grid's operational efficiency and security.
[0006] As can be seen from the above, improving the efficiency of determining the direction of signal power during power grid operation and control is an urgent problem to be solved. Summary of the Invention
[0007] In view of this, the purpose of this invention is to provide a power grid operation control method, apparatus, device, and storage medium, which can improve the efficiency of determining the power direction of signals during power grid operation control, thereby improving the efficiency of power grid operation control. The specific solution is as follows:
[0008] In a first aspect, this application provides a power grid operation control method, including:
[0009] The number of sampling points is determined based on the signal frequency and the sampling frequency, and the voltage and current signals of the power grid are obtained based on the number of sampling points. The DC components corresponding to the voltage and current signals are determined based on the preset number of accumulation points and the preset number of cycles.
[0010] Based on each sampled value in the voltage signal and the current signal and the corresponding DC component, the corresponding voltage signal and current signal to be processed are determined respectively, and based on the voltage signal to be processed and the current signal to be processed, the voltage square result, current square result and signal product result corresponding to each sampling time are determined;
[0011] Based on the squared voltage result, the squared current result, and the product of the signals, the phase characteristics corresponding to the voltage signal and the current signal are determined. Then, the extreme point data and extreme point time are determined using a preset curve function and based on the phase characteristics.
[0012] The formula for determining the fitting coefficient is used by using a preset fitting coefficient and the fitting coefficient is determined based on the sampling frequency, the extreme point time and the preset number of extreme points. The curve to be processed is determined based on the fitting coefficient, and the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal are determined based on the extreme point data and the curve to be processed, respectively.
[0013] The power direction corresponding to the voltage signal and the current signal is determined by using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result and the signal product result, and the power grid is operated and controlled based on the power direction.
[0014] Optionally, the step of determining the number of sampling points based on the signal frequency and the sampling frequency, acquiring the voltage and current signals of the power grid based on the number of sampling points, and determining the DC components corresponding to the voltage and current signals respectively based on a preset number of accumulation points and a preset number of cycles includes:
[0015] The sampling frequency is determined based on the Nyquist sampling theorem and the signal frequency corresponding to the power grid, and the number of sampling points is determined based on the sampling frequency and the signal frequency.
[0016] Based on the number of sampling points, the voltage signal of the voltage channel and the current signal of the current channel in the power grid are sampled to obtain voltage signals and current signals. The voltage signals and the current signals are accumulated using a preset number of cycles to obtain the corresponding voltage signal accumulation result and current signal accumulation result.
[0017] A preset number of accumulation points is determined based on the preset number of cycles and the preset number of accumulated cycles. The DC component of voltage corresponding to the voltage signal is determined based on the preset number of accumulation points and the voltage sampling value corresponding to the voltage signal. The DC component of current corresponding to the current signal is determined based on the preset number of accumulation points and the current sampling value corresponding to the current signal.
[0018] Optionally, the step of determining the corresponding voltage signal and current signal to be processed based on each sampled value in the voltage signal and the current signal and the corresponding DC component, and determining the voltage square result, current square result, and signal product result corresponding to each sampling time based on the voltage signal to be processed and the current signal to be processed, includes:
[0019] The first difference between the first sampled value corresponding to the voltage signal and the DC component of the voltage is set as the voltage signal to be processed, and the second difference between the second sampled value corresponding to the current signal and the DC component of the current is set as the current signal to be processed.
[0020] Based on the voltage signal to be processed, determine the voltage square result corresponding to the voltage signal to be processed, and based on the current signal to be processed, determine the current square result corresponding to the current signal to be processed. Then, set the product calculation result between the voltage signal to be processed and the current signal to be processed as the product result.
[0021] Optionally, the step of determining the phase characteristics corresponding to the voltage signal and the current signal based on the product of the voltage squared result, the current squared result, and the signal, and then determining the extreme point data and extreme point time using a preset curve function and based on the phase characteristics, includes:
[0022] Determine the voltage signal amplitude and initial phase corresponding to the voltage signal, and determine the current signal amplitude and initial phase corresponding to the current signal;
[0023] Phase characteristics are determined by using preset sinusoidal signal double angle relationships and sum-to-product relationships, and based on the voltage signal amplitude, the voltage signal initial phase, the current signal amplitude, and the current signal initial phase.
[0024] Based on preset requirements, a preset range of save points is determined, and based on the preset range of save points, a preset number of save points is determined. Then, using a preset curve function and based on the phase characteristics and the preset number of save points, the preset number of extreme point data and the corresponding extreme point time are determined.
[0025] Optionally, the step of determining the fitting coefficient using a preset fitting coefficient formula and determining the fitting coefficient based on the sampling frequency, the extreme point time, and the preset number of extreme points, determining the curve to be processed based on the fitting coefficient, and determining the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal respectively based on the extreme point data and the curve to be processed, includes:
[0026] The formula is determined by using a preset matrix equation, and the first matrix equation and the second matrix equation are determined based on the sampling frequency, the extreme point time and the preset number of extreme points. The coefficient matrices corresponding to the first matrix equation and the second matrix equation are transposed using the formula for determining the preset fitting coefficients to obtain the first coefficient matrix and the second coefficient matrix.
[0027] Solve the first coefficient matrix and the second coefficient matrix to obtain the fitting coefficients, determine the quadratic curve equation based on the fitting coefficients, and differentiate the quadratic curve equation based on the extreme point data to obtain the corresponding first derivative result and second derivative result;
[0028] The first absolute value corresponding to the first derivative result is set as the voltage channel amplitude corresponding to the voltage signal, and the second absolute value corresponding to the second derivative result is set as the current channel amplitude corresponding to the current signal.
[0029] Optionally, determining the power direction corresponding to the voltage signal and the current signal using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage squared result, the current squared result, and the signal product result includes:
[0030] The phase difference between the voltage signal and the current signal is determined based on the amplitude of the voltage channel and the amplitude of the current channel.
[0031] The phase difference cosine value is determined by using a preset equation and based on the phase difference, the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result, and the signal product result. The phase difference cosine value is then processed using a preset inverse trigonometric function to obtain the target phase difference between the voltage channel and the current channel. The target phase difference is then set as the power direction corresponding to the voltage signal and the current signal.
[0032] Secondly, this application provides a power grid operation control device, comprising:
[0033] A DC component determination module is used to determine the number of sampling points based on the signal frequency and the sampling frequency, so as to obtain the voltage signal and current signal of the power grid based on the number of sampling points, and to determine the DC component corresponding to the voltage signal and the current signal respectively based on a preset number of accumulation points and a preset number of cycles.
[0034] The signal processing module is used to determine the corresponding voltage signal to be processed and the current signal to be processed based on each sampled value in the voltage signal and the current signal and the corresponding DC component, and to determine the voltage squared result, current squared result and signal product result corresponding to each sampling time based on the voltage signal to be processed and the current signal to be processed.
[0035] The extreme value data acquisition module is used to determine the phase characteristics corresponding to the voltage signal and the current signal based on the voltage square result, the current square result and the signal product result, and then use a preset curve function and the phase characteristics to determine the extreme value point data and the extreme value point time;
[0036] The channel amplitude determination module is used to determine the fitting coefficients based on the preset fitting coefficient determination formula and the sampling frequency, the extreme point time and the preset number of extreme points, to determine the curve to be processed based on the fitting coefficients, and to determine the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal respectively based on the extreme point data and the curve to be processed.
[0037] The power direction determination module is used to determine the power direction corresponding to the voltage signal and the current signal by using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result and the signal product result, and to perform operation control of the power grid based on the power direction.
[0038] Optionally, the DC component determination module includes:
[0039] The sampling point number determination unit is used to determine the sampling frequency based on the Nyquist sampling theorem and the signal frequency corresponding to the power grid, and to determine the number of sampling points based on the sampling frequency and the signal frequency.
[0040] The accumulation result determination unit is used to sample the voltage signal of the voltage channel and the current signal of the current channel in the power grid based on the number of sampling points, to obtain voltage signals and current signals, and to accumulate the voltage signals and the current signals using a preset number of cycles to obtain the corresponding voltage signal accumulation result and current signal accumulation result.
[0041] The DC component determination subunit is used to determine a preset number of accumulation points based on the preset number of cycles and the preset number of accumulated cycles, to determine the DC voltage component corresponding to the voltage signal based on the preset number of accumulation points and the voltage sampling value corresponding to the voltage signal, and to determine the DC current component corresponding to the current signal based on the preset number of accumulation points and the current sampling value corresponding to the current signal.
[0042] Thirdly, this application provides an electronic device, comprising:
[0043] Memory, used to store computer programs;
[0044] A processor is used to execute the computer program to implement the aforementioned power grid operation control method.
[0045] Fourthly, this application provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned power grid operation control method.
[0046] As can be seen from the above, before performing power grid operation control, this application needs to determine the number of sampling points based on the signal frequency and sampling frequency, so as to obtain the voltage and current signals of the power grid based on the number of sampling points, and determine the DC components corresponding to the voltage and current signals respectively based on the preset number of accumulation points and preset number of cycles; determine the corresponding voltage and current signals to be processed based on each sampled value in the voltage and current signals and the corresponding DC components, and determine the voltage square result, current square result, and signal product result corresponding to each sampling time based on the voltage and current signals to be processed; and determine the voltage square result, current square result, and signal product result based on the voltage square result, current square result, and signal product. The results determine the phase characteristics corresponding to the voltage and current signals. Then, using a preset curve function and based on the phase characteristics, the extreme point data and extreme point time are determined. The formula is determined using a preset fitting coefficient, and the fitting coefficient is determined based on the sampling frequency, extreme point time, and preset number of extreme points. The curve to be processed is determined based on the fitting coefficient, and the voltage channel amplitude and current channel amplitude corresponding to the voltage and current signals are determined based on the extreme point data and the curve to be processed. The power direction corresponding to the voltage and current signals is determined using a preset inverse trigonometric function and based on the voltage channel amplitude, current channel amplitude, voltage square result, current square result, and signal product result.
[0047] Therefore, this application first needs to determine the number of sampling points based on the signal frequency and sampling frequency, so as to obtain the voltage and current signals of the power grid based on the number of sampling points, and determine the DC components corresponding to the voltage and current signals respectively based on the preset number of accumulation points and preset number of cycles; then, based on each sample value in the voltage and current signals and the corresponding DC components, determine the corresponding voltage and current signals to be processed respectively, and determine the voltage square result, current square result, and signal product result corresponding to each sampling time based on the voltage and current signals to be processed; subsequently, based on the voltage square result, current square result, and signal product result, determine the... The process involves defining the phase characteristics corresponding to voltage and current signals, then using a preset curve function and the phase characteristics to determine extreme point data and times. Preset fitting coefficients are used to determine the formula and, based on the sampling frequency, extreme point times, and the preset number of extreme points, the fitting coefficients are used to determine the curve to be processed. Based on the extreme point data and the curve to be processed, the voltage channel amplitude and current channel amplitude corresponding to the voltage and current signals are determined respectively. Finally, a preset inverse trigonometric function is used, and based on the voltage channel amplitude, current channel amplitude, voltage squared result, current squared result, and signal product result, the power direction corresponding to the voltage and current signals is determined. This improves the efficiency of determining the power direction of signals during power grid operation control, thereby enhancing the safety and efficiency of the production process. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0049] Figure 1 This is a flowchart of a power grid operation control method disclosed in this application;
[0050] Figure 2 This application discloses a specific power grid operation control method flowchart;
[0051] Figure 3 This is a schematic diagram of the structure of a power grid operation control device disclosed in this application;
[0052] Figure 4 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 are within the scope of protection of the present invention.
[0054] Currently, with the advancement of new power system construction, a large proportion of renewable energy and power electronic equipment are being integrated, leading to increasingly complex grid operation. Conventional power direction identification methods are typically based on digital filter principles. They obtain the instantaneous power signal by multiplying the sampled voltage and current signals, then use a low-pass digital filter to obtain the DC component of the power. The power factor is then calculated by determining the active and reactive power, ultimately determining the power direction. However, these conventional power direction identification methods often suffer from significant lag. Because digital filters are based on steady-state signals, they require several cycles to reach stability when the power direction changes. This results in an unavoidable delay in the power identification process. Therefore, this application provides a grid operation control method that improves the efficiency of determining the power direction of signals during grid operation control, thereby enhancing the efficiency of grid operation control.
[0055] See Figure 1 As shown in the figure, an embodiment of the present invention discloses a power grid operation control method, including:
[0056] Step S11: Determine the number of sampling points based on the signal frequency and the sampling frequency, and obtain the voltage and current signals of the power grid based on the number of sampling points. Then, determine the DC components corresponding to the voltage and current signals respectively based on the preset number of accumulated points and the preset number of cycles.
[0057] In this embodiment, the flowchart for power grid operation control is as follows: Figure 2 As shown, this embodiment of the application requires continuous sampling of voltage and current signals to obtain multiple sets of voltage and current signals, which are then saved to a buffer, and the DC component is removed. It is worth noting that during signal sampling, this embodiment of the application requires setting the sampling frequency to be greater than twice the highest cutoff frequency of the signal according to the Nyquist sampling theorem, or, based on empirical values, setting the sampling frequency to more than 10 times the signal frequency. In one specific implementation, for a 50Hz power frequency signal, a sampling frequency of 6.4kHz or 12.8kHz can be considered.
[0058] Specifically, the process for acquiring the voltage and current signals of the power grid is as follows: First, this embodiment of the application needs to calculate the number of sampling points per cycle based on the sampling frequency. In one specific implementation, this embodiment of the application chooses to set the signal frequency to... The sampling frequency is Then the number of sampling points per wave The formula for determining it is as follows:
[0059] ;
[0060] Subsequently, in this embodiment of the application, the sampled data of the voltage channel and the current channel are accumulated with integer multiples of the frequency, and the DC component is calculated. The formula for calculating the DC component is as follows:
[0061] ;
[0062] ;
[0063] ;
[0064] in, This represents the DC component of the voltage path. Represents the DC component of the current path. Indicates the first Voltage sample value at each moment, Indicates the first Current sampling value at each moment, This indicates the number of points that need to be accumulated to calculate the DC component. This represents the cumulative integer number of cycles. This indicates the floor function.
[0065] Specifically, the number of sampling points is determined based on the signal frequency and the sampling frequency. The voltage and current signals of the power grid are obtained based on the number of sampling points. The DC components corresponding to the voltage and current signals are determined based on a preset number of accumulation points and a preset number of cycles. This process can include: determining the sampling frequency based on the Nyquist sampling theorem and the signal frequency corresponding to the power grid; determining the number of sampling points based on the sampling frequency and the signal frequency; sampling the voltage signal in the voltage channel and the current signal in the current channel of the power grid based on the number of sampling points to obtain voltage and current signals; accumulating the voltage and current signals using a preset number of cycles to obtain the corresponding voltage signal accumulation result and current signal accumulation result; determining a preset number of accumulation points based on the preset number of cycles and the preset number of accumulation cycles; determining the DC component of the voltage corresponding to the voltage signal based on the preset number of accumulation points and the voltage sample value corresponding to the voltage signal; and determining the DC component of the current corresponding to the current signal based on the preset number of accumulation points and the current sample value corresponding to the current signal.
[0066] Step S12: Based on each sampled value in the voltage signal and the current signal and the corresponding DC component, determine the corresponding voltage signal to be processed and the current signal to be processed, and based on the voltage signal to be processed and the current signal to be processed, determine the voltage square result, current square result and signal product result corresponding to each sampling time.
[0067] In this embodiment, after obtaining the DC components corresponding to the voltage and current signals respectively, this application embodiment needs to subtract the corresponding DC component from each sampling point of the voltage and current channels to obtain the corresponding voltage and current signals to be processed, and the expressions are as follows:
[0068] ;
[0069] ;
[0070] Subsequently, after obtaining the voltage signal and the current signal to be processed, this embodiment of the application needs to calculate the square of the voltage signal, the sum of the squares of the current signal, and the product between the voltage signal and the current signal, respectively. In one specific embodiment, using... Indicates the first The square of the voltage signal at each moment, Indicates the first The square of the current signal at each moment Indicates the first The product of the voltage signal and the current signal at each moment is:
[0071] ;
[0072] Subsequently, the DC component was removed. The expressions for the voltage and current signals at any given time are as follows:
[0073] ;
[0074] in, Indicates the angular frequency of the signal. Indicates the amplitude of the voltage signal. Indicates the amplitude of the current signal. Indicates the initial phase of the voltage signal. This indicates the initial phase of the current signal.
[0075] Specifically, the process involves determining the corresponding voltage and current signals to be processed based on the sampled values and corresponding DC components of the voltage and current signals, and determining the voltage squared result, current squared result, and signal product result at each sampling time based on the voltage and current signals to be processed. This process can include: setting the first difference between the first sampled value corresponding to the voltage signal and the voltage DC component as the voltage signal to be processed, and setting the second difference between the second sampled value corresponding to the current signal and the current DC component as the current signal to be processed; determining the voltage squared result corresponding to the voltage signal to be processed based on the voltage signal to be processed, and determining the current squared result corresponding to the current signal to be processed based on the current signal to be processed; and then setting the product calculation result between the voltage signal to be processed and the current signal to be processed as the product result.
[0076] Step S13: Based on the squared voltage result, the squared current result, and the product of the signals, determine the phase characteristics corresponding to the voltage signal and the current signal, and then use a preset curve function and the phase characteristics to determine the extreme point data and extreme point time.
[0077] In this embodiment, the phase characteristics of sine and quadratic curves near their peak values can be used to estimate the amplitude of voltage and current signals. The specific process is as follows: First, an extreme point search is performed on the voltage and current signals to be processed. That is, a maximum or minimum point is searched in the voltage and current signals to be processed, and the m points before and after the extreme point are saved, for a total of 2m+1 points, and denoted as:
[0078] ;
[0079] It is worth mentioning that, in this embodiment, the maximum or minimum point is searched based on the characteristics of the sinusoidal signal. Since the DC component has been removed from the signal, the extreme points greater than 0 are maxima, and the extreme points less than 0 are minima. The search stops once an extreme point is found. and This indicates the moment when the voltage and current signals reach their extreme values.
[0080] Specifically, the phase characteristics corresponding to the voltage and current signals are determined based on the squared voltage result, squared current result, and signal product result. Then, extreme point data and extreme point times are determined using a preset curve function and based on the phase characteristics. This can include: determining the voltage signal amplitude and initial phase corresponding to the voltage signal, and determining the current signal amplitude and initial phase corresponding to the current signal; using preset sine signal double angle relationships and sum-to-product relationships, and determining the phase characteristics based on the voltage signal amplitude, initial phase of the voltage signal, current signal amplitude, and initial phase of the current signal; determining a preset range of storage points based on preset requirements, and determining the number of preset storage points based on the preset range of storage points, so as to determine the preset number of extreme point data and corresponding extreme point times using a preset curve function and based on the phase characteristics and the preset number of storage points.
[0081] Step S14: Determine the formula using the preset fitting coefficient and determine the fitting coefficient based on the sampling frequency, the extreme point time and the preset number of extreme points, determine the curve to be processed based on the fitting coefficient, and determine the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal respectively based on the extreme point data and the curve to be processed.
[0082] In this embodiment, after obtaining the extreme point data, the present application embodiment can establish a fitting equation based on the saved extreme point data. Here, for the sake of simplicity, the present application embodiment only describes the data fitting process of the voltage channel. The method of processing the current signal in the current channel is the same as the method of processing the voltage signal in the voltage channel, and the obtained fitting equation is as follows:
[0083] ;
[0084] in, , , This represents the fitting coefficient of the quadratic curve. The sampling interval is represented by the formula shown below:
[0085] ;
[0086] It is worth mentioning that the above fitting equation can be simplified in matrix form, and the expression is as follows:
[0087] ;
[0088] in, , , ;
[0089] Subsequently, the fitting coefficients can be obtained by solving the above system of equations in the embodiments of this application. , , And the formula is as follows:
[0090] ;
[0091] in, This represents the matrix transpose operation. This represents the matrix inversion operation.
[0092] Furthermore, after obtaining the fitting coefficients, embodiments of this application can solve for the extreme values of the quadratic curve based on the fitting coefficients, and the expression for the quadratic curve is as follows:
[0093] ;
[0094] Subsequently, in this embodiment of the application, the derivative of the curve needs to be calculated, and by setting the derivative equal to 0, the following can be obtained:
[0095] ;
[0096] ;
[0097] Furthermore, when the extreme point is obtained Then, the extreme points can be substituted into the equation to obtain the extreme values. :
[0098] ;
[0099] It is worth mentioning that the absolute value of the extreme value obtained in the embodiments of this application is the voltage channel amplitude. , that is, It is worth mentioning that the current channel amplitude can be obtained based on the above steps in the embodiments of this application. .
[0100] Specifically, the process involves using a preset fitting coefficient formula and determining the fitting coefficients based on the sampling frequency, extreme point time, and preset number of extreme points. The process then uses these fitting coefficients to determine the curve to be processed, and uses the extreme point data and the curve to be processed to determine the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and current signal, respectively. This can include: using a preset matrix equation formula and determining a first matrix equation and a second matrix equation based on the sampling frequency, extreme point time, and preset number of extreme points; transposing the coefficient matrices corresponding to the first and second matrix equations using the preset fitting coefficient formula to obtain the first and second coefficient matrices; solving the first and second coefficient matrices to obtain the fitting coefficients; determining the quadratic curve equation based on the fitting coefficients; and differentiating the quadratic curve equation based on the extreme point data to obtain the corresponding first and second derivative results; setting the first absolute value corresponding to the first derivative result as the voltage channel amplitude corresponding to the voltage signal, and setting the second absolute value corresponding to the second derivative result as the current channel amplitude corresponding to the current signal.
[0101] Step S15: Using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage squared result, the current squared result, and the signal product result, determine the power direction corresponding to the voltage signal and the current signal, and perform operation control on the power grid based on the power direction.
[0102] In this embodiment, after obtaining the voltage channel amplitude and the current channel amplitude, this application embodiment needs to calculate the cosine value of the phase difference between the voltage and current channels. In one specific implementation, after obtaining the voltage square result corresponding to the voltage signal and the current signal to be processed... Current square result The result of the product of the signal and the signal as well as and Subsequently, the following formula is used for calculation in the embodiments of this application:
[0103] Then, the above formula is solved:
[0104] ;
[0105] Finally, the solution was obtained. The expression is as follows:
[0106] ;
[0107] It is worth mentioning that, after obtaining the phase difference cosine value, the embodiments of this application need to... By performing inverse trigonometric function calculations, the phase difference between the voltage and current paths, i.e., the power direction, can be obtained.
[0108] Specifically, determining the power direction of the voltage and current signals using a preset inverse trigonometric function and based on the voltage channel amplitude, current channel amplitude, voltage squared result, current squared result, and signal product result can include: determining the phase difference between the voltage and current signals based on the voltage channel amplitude and current channel amplitude; determining the phase difference cosine value using a preset equation and based on the phase difference, voltage channel amplitude, current channel amplitude, voltage squared result, current squared result, and signal product result; processing the phase difference cosine value using a preset inverse trigonometric function to obtain the target phase difference between the voltage channel and current channel; and setting the target phase difference as the power direction corresponding to the voltage and current signals.
[0109] As can be seen from the above, before performing power grid operation control, this embodiment of the application first needs to determine the number of sampling points based on the signal frequency and sampling frequency, so as to obtain the voltage and current signals of the power grid based on the number of sampling points, and determine the DC components corresponding to the voltage and current signals respectively based on the preset number of accumulation points and preset number of cycles; then, based on each sampled value in the voltage and current signals and the corresponding DC components, determine the corresponding voltage and current signals to be processed respectively, and determine the voltage square result, current square result, and signal product result corresponding to each sampling time based on the voltage and current signals to be processed; subsequently, based on the voltage square result and current square result... The phase characteristics corresponding to the voltage and current signals are determined by multiplying the signals. Then, extreme point data and times are determined using a preset curve function based on the phase characteristics. Preset fitting coefficients are used to determine the formula and, based on the sampling frequency, extreme point times, and the preset number of extreme points, the fitting coefficients are determined. The curve to be processed is determined based on the fitting coefficients, and the voltage and current channel amplitudes corresponding to the voltage and current signals are determined based on the extreme point data and the curve to be processed. Finally, a preset inverse trigonometric function is used to determine the power direction corresponding to the voltage and current signals based on the voltage channel amplitude, current channel amplitude, voltage squared result, current squared result, and signal product result. This improves the efficiency of determining the power direction of signals during power grid operation control, thereby enhancing the efficiency of power grid operation control.
[0110] Accordingly, see Figure 3 As shown, this application also provides a power grid operation control device, comprising:
[0111] The DC component determination module 11 is used to determine the number of sampling points based on the signal frequency and the sampling frequency, so as to obtain the voltage signal and current signal of the power grid based on the number of sampling points, and to determine the DC component corresponding to the voltage signal and the current signal respectively based on the preset number of accumulation points and the preset number of cycles.
[0112] The signal processing module 12 is used to determine the corresponding voltage signal to be processed and the current signal to be processed based on each sampled value in the voltage signal and the current signal and the corresponding DC component, and to determine the voltage squared result, current squared result and signal product result corresponding to each sampling time based on the voltage signal to be processed and the current signal to be processed.
[0113] The extreme value data acquisition module 13 is used to determine the phase characteristics corresponding to the voltage signal and the current signal based on the voltage square result, the current square result and the signal product result, and then use a preset curve function and the phase characteristics to determine the extreme value point data and the extreme value point time;
[0114] The channel amplitude determination module 14 is used to determine the fitting coefficients based on the preset fitting coefficient determination formula and the sampling frequency, the extreme point time and the preset number of extreme points, to determine the curve to be processed based on the fitting coefficients, and to determine the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal respectively based on the extreme point data and the curve to be processed.
[0115] The power direction determination module 15 is used to determine the power direction corresponding to the voltage signal and the current signal by using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result and the signal product result, and to perform operation control of the power grid based on the power direction.
[0116] As can be seen from the above, before performing power grid operation control, this embodiment of the application first needs to determine the number of sampling points based on the signal frequency and sampling frequency, so as to obtain the voltage and current signals of the power grid based on the number of sampling points, and determine the DC components corresponding to the voltage and current signals respectively based on the preset number of accumulation points and preset number of cycles; then, based on each sampled value in the voltage and current signals and the corresponding DC components, determine the corresponding voltage and current signals to be processed respectively, and determine the voltage square result, current square result, and signal product result corresponding to each sampling time based on the voltage and current signals to be processed; subsequently, based on the voltage square result and current square result... The phase characteristics corresponding to the voltage and current signals are determined by multiplying the signals. Then, extreme point data and times are determined using a preset curve function based on the phase characteristics. Preset fitting coefficients are used to determine the formula and, based on the sampling frequency, extreme point times, and the preset number of extreme points, the fitting coefficients are determined. The curve to be processed is determined based on the fitting coefficients, and the voltage and current channel amplitudes corresponding to the voltage and current signals are determined based on the extreme point data and the curve to be processed. Finally, a preset inverse trigonometric function is used to determine the power direction corresponding to the voltage and current signals based on the voltage channel amplitude, current channel amplitude, voltage squared result, current squared result, and signal product result. This improves the efficiency of determining the power direction of signals during power grid operation control, thereby enhancing the efficiency of power grid operation control.
[0117] In some specific embodiments, the DC component determination module 11 may specifically include:
[0118] The sampling point number determination unit is used to determine the sampling frequency based on the Nyquist sampling theorem and the signal frequency corresponding to the power grid, and to determine the number of sampling points based on the sampling frequency and the signal frequency.
[0119] The accumulation result determination unit is used to sample the voltage signal of the voltage channel and the current signal of the current channel in the power grid based on the number of sampling points, to obtain voltage signals and current signals, and to accumulate the voltage signals and the current signals using a preset number of cycles to obtain the corresponding voltage signal accumulation result and current signal accumulation result.
[0120] The DC component determination subunit is used to determine a preset number of accumulation points based on the preset number of cycles and the preset number of accumulated cycles, to determine the DC voltage component corresponding to the voltage signal based on the preset number of accumulation points and the voltage sampling value corresponding to the voltage signal, and to determine the DC current component corresponding to the current signal based on the preset number of accumulation points and the current sampling value corresponding to the current signal.
[0121] In some specific embodiments, the signal processing module 12 may specifically include:
[0122] The signal to be processed determination unit is used to set the first difference between the first sampled value corresponding to the voltage signal and the DC component of the voltage as the voltage signal to be processed, and to set the second difference between the second sampled value corresponding to the current signal and the DC component of the current as the current signal to be processed;
[0123] The product result determination unit is used to determine the voltage square result corresponding to the voltage signal to be processed based on the voltage signal to be processed, and to determine the current square result corresponding to the current signal to be processed based on the current signal to be processed, and then set the product calculation result between the voltage signal to be processed and the current signal to be processed as the product result.
[0124] In some specific embodiments, the extreme value data acquisition module 13 may specifically include:
[0125] A signal amplitude determination unit is used to determine the voltage signal amplitude and initial phase corresponding to the voltage signal, and to determine the current signal amplitude and initial phase corresponding to the current signal.
[0126] The phase characteristic determination unit is used to determine the phase characteristics based on the voltage signal amplitude, the voltage signal initial phase, the current signal amplitude, and the current signal initial phase by utilizing a preset sinusoidal signal double angle relationship and a sum-to-product relationship.
[0127] The extreme point data determination unit is used to determine a preset range of storage points based on preset requirements, and to determine a preset number of storage points based on the preset range of storage points, so as to use a preset curve function and based on the phase characteristics and the preset number of storage points to determine the preset number of extreme point data and the corresponding extreme point time.
[0128] In some specific embodiments, the channel amplitude determination module 14 may specifically include:
[0129] The matrix equation determination unit is used to determine the first matrix equation and the second matrix equation using a preset matrix equation determination formula and based on the sampling frequency, the extreme point time and the preset number of extreme points. The unit then uses a preset fitting coefficient determination formula to transpose the coefficient matrices corresponding to the first matrix equation and the second matrix equation to obtain the first coefficient matrix and the second coefficient matrix.
[0130] The derivative result determination unit is used to solve the first coefficient matrix and the second coefficient matrix to obtain the fitting coefficients, determine the quadratic curve equation based on the fitting coefficients, and differentiate the quadratic curve equation based on the extreme point data to obtain the corresponding first derivative result and second derivative result.
[0131] The channel amplitude determination subunit is used to set the first absolute value corresponding to the first derivative result as the voltage channel amplitude corresponding to the voltage signal, and to set the second absolute value corresponding to the second derivative result as the current channel amplitude corresponding to the current signal.
[0132] In some specific embodiments, the power direction determination module 15 may specifically include:
[0133] A phase difference determination unit is used to determine the phase difference between the voltage signal and the current signal based on the voltage channel amplitude and the current channel amplitude;
[0134] The power direction determination unit is used to determine the phase difference cosine value using a preset equation and based on the phase difference, the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result, and the signal product result. The phase difference cosine value is then processed using a preset inverse trigonometric function to obtain the target phase difference between the voltage channel and the current channel. The target phase difference is then set as the power direction corresponding to the voltage signal and the current signal.
[0135] Furthermore, embodiments of this application also disclose an electronic device, Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the power grid operation control method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0136] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0137] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0138] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the power grid operation control method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.
[0139] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned power grid operation control method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0140] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0141] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0142] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0143] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0144] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A power grid operation control method, characterized in that, include: The number of sampling points is determined based on the signal frequency and the sampling frequency, and the voltage and current signals of the power grid are obtained based on the number of sampling points. The DC components corresponding to the voltage and current signals are determined based on the preset number of accumulation points and the preset number of cycles. Based on each sampled value in the voltage signal and the current signal and the corresponding DC component, the corresponding voltage signal and current signal to be processed are determined respectively, and based on the voltage signal to be processed and the current signal to be processed, the voltage square result, current square result and signal product result corresponding to each sampling time are determined; Based on the squared voltage result, the squared current result, and the product of the signals, the phase characteristics corresponding to the voltage signal and the current signal are determined. Then, the extreme point data and extreme point time are determined using a preset curve function and based on the phase characteristics. The formula for determining the fitting coefficient is used by using a preset fitting coefficient and the fitting coefficient is determined based on the sampling frequency, the extreme point time and the preset number of extreme points. The curve to be processed is determined based on the fitting coefficient, and the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal are determined based on the extreme point data and the curve to be processed, respectively. The power direction corresponding to the voltage signal and the current signal is determined by using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result and the signal product result, and the power grid is operated and controlled based on the power direction.
2. The power grid operation control method according to claim 1, characterized in that, The process of determining the number of sampling points based on the signal frequency and sampling frequency, acquiring the voltage and current signals of the power grid based on the number of sampling points, and determining the DC components corresponding to the voltage and current signals respectively based on a preset number of accumulation points and a preset number of cycles includes: The sampling frequency is determined based on the Nyquist sampling theorem and the signal frequency corresponding to the power grid, and the number of sampling points is determined based on the sampling frequency and the signal frequency. Based on the number of sampling points, the voltage signal of the voltage channel and the current signal of the current channel in the power grid are sampled to obtain voltage signals and current signals. The voltage signals and the current signals are accumulated using a preset number of cycles to obtain the corresponding voltage signal accumulation result and current signal accumulation result. A preset number of accumulation points is determined based on the preset number of cycles and the preset number of accumulated cycles. The DC component of voltage corresponding to the voltage signal is determined based on the preset number of accumulation points and the voltage sampling value corresponding to the voltage signal. The DC component of current corresponding to the current signal is determined based on the preset number of accumulation points and the current sampling value corresponding to the current signal.
3. The power grid operation control method according to claim 2, characterized in that, The process of determining the corresponding voltage signal and current signal to be processed based on each sampled value in the voltage signal and the current signal and the corresponding DC component, and determining the voltage square result, current square result, and signal product result at each sampling time based on the voltage signal to be processed and the current signal to be processed, includes: The first difference between the first sampled value corresponding to the voltage signal and the DC component of the voltage is set as the voltage signal to be processed, and the second difference between the second sampled value corresponding to the current signal and the DC component of the current is set as the current signal to be processed. Based on the voltage signal to be processed, determine the voltage square result corresponding to the voltage signal to be processed, and based on the current signal to be processed, determine the current square result corresponding to the current signal to be processed. Then, set the product calculation result between the voltage signal to be processed and the current signal to be processed as the product result.
4. The power grid operation control method according to claim 1, characterized in that, The process of determining the phase characteristics corresponding to the voltage signal and the current signal based on the product of the voltage squared result, the current squared result, and the signal, and then determining the extreme point data and extreme point time using a preset curve function and based on the phase characteristics, includes: Determine the voltage signal amplitude and initial phase corresponding to the voltage signal, and determine the current signal amplitude and initial phase corresponding to the current signal; Phase characteristics are determined by using preset sinusoidal signal double angle relationships and sum-to-product relationships, and based on the voltage signal amplitude, the voltage signal initial phase, the current signal amplitude, and the current signal initial phase. Based on preset requirements, a preset range of save points is determined, and based on the preset range of save points, a preset number of save points is determined. Then, using a preset curve function and based on the phase characteristics and the preset number of save points, the preset number of extreme point data and the corresponding extreme point time are determined.
5. The power grid operation control method according to claim 1, characterized in that, The process of determining the fitting coefficient using a preset fitting coefficient formula and based on the sampling frequency, the extreme point time, and the preset number of extreme points, to determine the curve to be processed based on the fitting coefficient, and to determine the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal respectively based on the extreme point data and the curve to be processed, includes: The formula is determined by using a preset matrix equation, and the first matrix equation and the second matrix equation are determined based on the sampling frequency, the extreme point time and the preset number of extreme points. The coefficient matrices corresponding to the first matrix equation and the second matrix equation are transposed using the formula for determining the preset fitting coefficients to obtain the first coefficient matrix and the second coefficient matrix. Solve the first coefficient matrix and the second coefficient matrix to obtain the fitting coefficients, determine the quadratic curve equation based on the fitting coefficients, and differentiate the quadratic curve equation based on the extreme point data to obtain the corresponding first derivative result and second derivative result; The first absolute value corresponding to the first derivative result is set as the voltage channel amplitude corresponding to the voltage signal, and the second absolute value corresponding to the second derivative result is set as the current channel amplitude corresponding to the current signal.
6. The power grid operation control method according to claim 1, characterized in that, The step of determining the power direction corresponding to the voltage signal and the current signal by using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage squared result, the current squared result, and the signal product result includes: The phase difference between the voltage signal and the current signal is determined based on the amplitude of the voltage channel and the amplitude of the current channel. The phase difference cosine value is determined by using a preset equation and based on the phase difference, the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result, and the signal product result. The phase difference cosine value is then processed using a preset inverse trigonometric function to obtain the target phase difference between the voltage channel and the current channel. The target phase difference is then set as the power direction corresponding to the voltage signal and the current signal.
7. A power grid operation control device, characterized in that, include: A DC component determination module is used to determine the number of sampling points based on the signal frequency and the sampling frequency, so as to obtain the voltage signal and current signal of the power grid based on the number of sampling points, and to determine the DC component corresponding to the voltage signal and the current signal respectively based on a preset number of accumulation points and a preset number of cycles. The signal processing module is used to determine the corresponding voltage signal to be processed and the current signal to be processed based on each sampled value in the voltage signal and the current signal and the corresponding DC component, and to determine the voltage squared result, current squared result and signal product result corresponding to each sampling time based on the voltage signal to be processed and the current signal to be processed. The extreme value data acquisition module is used to determine the phase characteristics corresponding to the voltage signal and the current signal based on the voltage square result, the current square result and the signal product result, and then use a preset curve function and the phase characteristics to determine the extreme value point data and the extreme value point time; The channel amplitude determination module is used to determine the fitting coefficients based on the preset fitting coefficient determination formula and the sampling frequency, the extreme point time and the preset number of extreme points, to determine the curve to be processed based on the fitting coefficients, and to determine the voltage channel amplitude and current channel amplitude corresponding to the voltage signal and the current signal respectively based on the extreme point data and the curve to be processed. The power direction determination module is used to determine the power direction corresponding to the voltage signal and the current signal by using a preset inverse trigonometric function and based on the voltage channel amplitude, the current channel amplitude, the voltage square result, the current square result and the signal product result, and to perform operation control of the power grid based on the power direction.
8. The power grid operation control device according to claim 7, characterized in that, The DC component determination module includes: The sampling point number determination unit is used to determine the sampling frequency based on the Nyquist sampling theorem and the signal frequency corresponding to the power grid, and to determine the number of sampling points based on the sampling frequency and the signal frequency. The accumulation result determination unit is used to sample the voltage signal of the voltage channel and the current signal of the current channel in the power grid based on the number of sampling points, to obtain voltage signals and current signals, and to accumulate the voltage signals and the current signals using a preset number of cycles to obtain the corresponding voltage signal accumulation result and current signal accumulation result. The DC component determination subunit is used to determine a preset number of accumulation points based on the preset number of cycles and the preset number of accumulated cycles, to determine the DC voltage component corresponding to the voltage signal based on the preset number of accumulation points and the voltage sampling value corresponding to the voltage signal, and to determine the DC current component corresponding to the current signal based on the preset number of accumulation points and the current sampling value corresponding to the current signal.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the power grid operation control method as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, Used to store a computer program, wherein the computer program, when executed by a processor, implements the power grid operation control method as described in any one of claims 1 to 6.