Harmonic power compensation method and system for multi-source load DC microgrid

By acquiring and processing the voltage and current signals of the DC bus in real time, calculating and generating harmonic current compensation commands, and controlling the switching action of the active power filter, the problem of bus voltage harmonic fluctuations in DC microgrids is solved, and power quality is improved.

CN118889358APending Publication Date: 2024-11-01HUIZHOU POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410928236.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In existing DC microgrid systems, DC active filters obtain harmonic compensation current through harmonic voltage fluctuations. However, their compensation bandwidth and dynamic performance are easily limited, making it difficult to effectively eliminate bus voltage harmonic fluctuations, resulting in poor power quality.

Method used

By acquiring the AC load-side voltage and current signals of the DC bus in real time, calculating the total load power, extracting harmonic power components, generating harmonic current compensation commands using a dynamic tracking algorithm, and controlling the switching action of the active power filter, DC-side harmonic compensation is achieved.

Benefits of technology

It effectively eliminates bus voltage harmonic fluctuations in DC microgrid architecture, improves power quality, and enables rapid generation and dynamic tracking of DC side harmonic compensation commands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118889358A_ABST
    Figure CN118889358A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of microgrid adjustment, and discloses a harmonic power compensation method and system for a multi-source load DC microgrid, and the method comprises the steps: obtaining the total load power of a plurality of AC load sides of a DC bus in real time, extracting a harmonic power component of the total load power, and determining a harmonic current compensation instruction; after a harmonic current compensation instruction is compensated through a given harmonic compensation current instruction, a direct current side harmonic compensation instruction obtained through compensation is tracked through a dynamic tracking algorithm, so that the direct current side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and a PWM instruction is output. According to the invention, the control of the switching action of the active power filter is realized, so that the rapid generation of the DC side harmonic compensation instruction is realized, the dynamic tracking compensation of the DC side harmonic compensation instruction is realized, the bus voltage harmonic fluctuation under the DC micro-grid architecture can be more effectively eliminated, and the power quality of the DC micro-grid is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of microgrid regulation technology, and in particular to a harmonic power compensation method and system for a multi-source-load DC microgrid. Background Art

[0002] The shared DC bus microgrid can more efficiently and reliably accommodate distributed power sources, energy storage units, electric vehicles, and DC power loads. In the future intelligent power distribution system, the shared DC bus microgrid is a key link in achieving energy conservation and emission reduction and improving energy utilization.

[0003] The system architecture of the DC microgrid system is as follows: Figure 1 As shown, Figure 1 The architecture of a single DC bus is taken as an example, and the line architecture of DC power supply is not involved. In this architecture, the source side of the microgrid of the DC bus includes a voltage source control energy storage unit and a current source control unit. Among them, the voltage source control energy storage unit is composed of multiple DC / DC converters. After detecting the common DC bus voltage, the closed-loop control stabilizes the DC bus voltage; other current source control units are divided into DC / DC converters and DC / AC converters. The output power of the current source control unit changes according to the control strategy of the power generation on the source side.

[0004] Under the existing system architecture of a DC microgrid constructed with multiple sources and loads, the power conversion equipment of each power source and each load is connected to the busbar network through a DC line to achieve power distribution and convergence. Most of the loads are AC loads, and a three-phase inverter is required to convert DC to AC to supply power to the load side. However, unbalanced loads, single-phase loads or nonlinear loads on the AC side will generate harmonic power, causing harmonic fluctuations in the DC bus voltage and DC power supply lines. The existing method for controlling DC voltage harmonic fluctuations, namely the general idea of ​​the DC active power filter (DC-APF), is to eliminate harmonic fluctuations in a closed loop through the signal feedback of the DC bus voltage. The DC-APF method obtains the harmonic compensation current that needs to be injected into the DC system through the fluctuation of the harmonic voltage. However, the compensation bandwidth and dynamic performance are easily limited, which affects the compensation effect. It is difficult to effectively eliminate the bus voltage harmonic fluctuations under the DC microgrid architecture, and the power quality of the DC microgrid is poor. Summary of the invention

[0005] The present invention provides a harmonic power compensation method and system for a multi-source DC microgrid, which solves the technical problems that the DC-APF method obtains the harmonic compensation current that needs to be injected into the DC system through the fluctuation of the harmonic voltage, the compensation bandwidth and dynamic performance are easily limited, which affects the compensation effect, and it is difficult to effectively eliminate the bus voltage harmonic fluctuation under the DC microgrid architecture, and the DC microgrid power quality is poor.

[0006] In view of this, a first aspect of the present invention provides a harmonic power compensation method for a multi-source DC microgrid, wherein the DC microgrid includes a DC bus, and an active power filter is connected to the microgrid source side of the DC bus, and the method includes:

[0007] Acquire voltage and current input signals of multiple AC load sides of the DC bus in real time, and calculate the total load power of the multiple AC load sides according to the voltage and current input signals;

[0008] Extracting the harmonic power component of the total load power, and determining the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage;

[0009] Compensating the harmonic current compensation instruction according to a given harmonic compensation current instruction to obtain a DC side harmonic compensation instruction;

[0010] The DC side harmonic compensation instruction is tracked based on a dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and a PWM instruction is output and sent to the active power filter, and the PWM instruction is used to control the switching action of the active power filter.

[0011] Preferably, the step of calculating the total load power of the plurality of AC load sides according to the voltage and current input signals comprises:

[0012] Converting the voltage and current input signals into voltage input signal components and current input signal components in a stationary coordinate system respectively;

[0013] The total load power of the plurality of AC load sides is determined according to the voltage input signal component and the current input signal component.

[0014] Preferably, the step of extracting the harmonic power component of the total load power and determining the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage specifically includes:

[0015] After subtracting the total load power from the fundamental power component, the power difference result is divided into two power outputs, wherein one power output is inputting the power difference result into a multi-channel trap filter, and the other power output is inputting an estimated value of the input signal frequency obtained by integrating the power difference result into the multi-channel trap filter;

[0016] Extracting the harmonic power of the total power of the load through the multi-channel notch filter according to the difference result of the input power and the estimated value of the input signal frequency;

[0017] The harmonic current compensation instruction is obtained by performing ratio calculation on the harmonic powers and the DC bus voltage.

[0018] Preferably, the state space of the multi-channel notch filter is:

[0019]

[0020] In the formula, is the differential value of the i-th harmonic component detected by the sub-notch filter, n is the total number of harmonic components, b is the frequency multiple between the harmonic and the fundamental wave, x i is the i-th harmonic component detected by the sub-notch filter, θ is the estimated value of the input signal frequency, x is the harmonic component detected by the sub-notch filter, ζ is the steady-state accuracy, e(t) is the power difference time function, is the differential value of the fundamental angular frequency detected by the sub-notch filter, γ is the dynamic convergence speed, P load Indicates the power extracted from the load side.

[0021] Preferably, the given harmonic compensation current instruction is generated by subtracting a given reference value of capacitor voltage from an actual value of capacitor voltage fed back by the active power filter, and inputting the difference result into a PI controller for fuzzy control.

[0022] Preferably, the step of tracking the DC side harmonic compensation instruction based on a dynamic tracking algorithm and outputting a PWM instruction to the active power filter, wherein the PWM instruction is used to control the switching action of the active power filter, specifically includes:

[0023] A model differential equation is established according to the circuit topology of the active power filter, and the model differential equation is:

[0024]

[0025] In the formula, i L is the inductor current, t is the time, L is the output inductance of the active power filter, r is the output resistance of the active power filter, U bus is the DC bus voltage, S(i) is the switching action function of the active power filter, U dc is the capacitor voltage of the active power filter, where

[0026]

[0027] In the formula, & represents the symbol of and, 1,4 on represents a switch action combination in which the first switch tube and the fourth switch tube in the active power filter are both in the on state, 2,3 off represents a switch action combination in which the second switch tube and the third switch tube in the active power filter are both in the off state, 1,2 on represents a switch action combination in which the first switch tube and the second switch tube in the active power filter are both in the on state, 3,4 off represents a switch action combination in which the third switch tube and the fourth switch tube in the active power filter are both in the off state, 2,3 on represents a switch action combination in which the second switch tube and the third switch tube in the active power filter are both in the on state, 1,4 off represents a switch action combination in which the first switch tube and the fourth switch tube in the active power filter are both in the off state, wherein the active power filter comprises four switch tubes, the first switch tube and the second switch tube are connected in series to form a switch tube branch, the third switch tube and the fourth switch tube are connected in series to form another switch tube branch, and the two ends of the two switch tube branches are connected in parallel;

[0028] The model differential equation is discretized to obtain a discrete parameter equation, which is:

[0029]

[0030] In the formula, i L (k+1) represents the predicted current at the k+1th switching moment, T s represents the discrete sampling period, k represents the kth switching moment, i L (k) represents the inductor current at the kth switching moment, U dc (k) represents the capacitor voltage of the active power filter at the kth switching moment, U bus (k) represents the DC bus voltage at the kth switching moment;

[0031] By introducing the harmonic current compensation instruction, the objective function is constructed by minimizing the absolute difference between the predicted current at the k+1th switching moment and the reference current at the k+1th switching moment. The objective function is:

[0032]

[0033] In the formula, g is the absolute difference, is the reference current at the k+1th switching moment, I fd (k+1) is the harmonic current compensation instruction at the k+1th switching moment;

[0034] The objective function is optimized and solved by the switch action function of the active power filter to determine the switch action combination corresponding to the minimum absolute difference;

[0035] A PWM instruction is generated according to the switch action combination corresponding to the minimum absolute difference and sent to the active power filter.

[0036] In a second aspect, the present invention further provides a harmonic power compensation system for a multi-source DC microgrid, wherein the DC microgrid comprises a DC bus, and an active power filter is connected to the microgrid source side of the DC bus, and the system comprises:

[0037] A load-side power extraction module, used to obtain voltage and current input signals of multiple AC load sides of the DC bus in real time, and calculate the total load power of the multiple AC load sides according to the voltage and current input signals;

[0038] A compensation instruction extraction module, used for extracting the harmonic power component of the total load power, and determining the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage;

[0039] A harmonic compensation module, used to compensate the harmonic current compensation instruction according to a given harmonic compensation current instruction to obtain a DC side harmonic compensation instruction;

[0040] A dynamic tracking module is used to track and process the DC side harmonic compensation instruction based on a dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and outputs a PWM instruction to the active power filter, and the PWM instruction is used to control the switching action of the active power filter.

[0041] In a third aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the harmonic power compensation method for the multi-source-load DC microgrid as described above.

[0042] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the steps of the harmonic power compensation method for a multi-source-load DC microgrid as described above.

[0043] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the harmonic power compensation method for a multi-source-load DC microgrid as described above.

[0044] It can be seen from the above technical solutions that the present invention has the following advantages:

[0045] The present invention obtains the total load power of multiple AC load sides of a DC bus in real time, extracts the harmonic power component of the total load power, and determines a harmonic current compensation instruction. After compensating the harmonic current compensation instruction with a given harmonic compensation current instruction, a dynamic tracking algorithm is used to track and process the compensated DC side harmonic compensation instruction, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and outputs a PWM instruction to control the switching action of the active power filter, thereby realizing the rapid generation of the DC side harmonic compensation instruction, and dynamically tracking and compensating the DC side harmonic compensation instruction, so that the bus voltage harmonic fluctuation under the DC microgrid architecture can be more effectively eliminated, and the power quality of the DC microgrid can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 System architecture diagram of a DC microgrid built for existing multi-source loads;

[0047] Figure 2 A system architecture diagram of a DC microgrid constructed with multiple sources and loads provided in an embodiment of the present invention;

[0048] Figure 3 A flowchart of a harmonic power compensation method for a multi-source-load DC microgrid provided by an embodiment of the present invention;

[0049] Figure 4 A control block diagram of a harmonic power compensation method for a multi-source-load DC microgrid provided by an embodiment of the present invention;

[0050] Figure 5 A control block diagram for extracting harmonic current compensation instructions provided by an embodiment of the present invention;

[0051] Figure 6 A control block diagram of a multi-channel notch filter provided by an embodiment of the present invention;

[0052] Figure 7 A control block diagram of a sub-notch filter provided in an embodiment of the present invention;

[0053] Figure 8 A schematic structural diagram of a harmonic power compensation system for a multi-source-load DC microgrid provided in an embodiment of the present invention;

[0054] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0057] In such Figure 1 In the system architecture of the existing multi-source-load constructed DC microgrid shown in the figure, the power conversion equipment of each power source and each load is connected to the busbar through a DC line to realize power distribution and convergence. Among them, the public DC busbar includes a microgrid source side and a microgrid load side, wherein the microgrid source side includes current source control and voltage source control, and the microgrid load side includes multiple AC loads and multiple DC loads, and multiple AC loads are connected to the public DC busbar through AC-DC converters, and multiple DC loads are connected to the public DC busbar through DC-DC converters.

[0058] Most loads are AC loads, which require a three-phase inverter to convert DC to AC to supply power to the load side. However, unbalanced loads, single-phase loads or nonlinear loads on the AC side will generate harmonic power, causing harmonic fluctuations in the DC bus voltage and DC power supply lines. The existing method for controlling DC voltage harmonic fluctuations, namely the general idea of ​​the DC active power filter (DC-APF), is to eliminate harmonic fluctuations in a closed loop through signal feedback of the DC bus voltage. The DC-APF method obtains the harmonic compensation current that needs to be injected into the DC system through the fluctuation of the harmonic voltage. However, the compensation bandwidth and dynamic performance are easily limited, which affects the compensation effect. It is difficult to effectively eliminate the bus voltage harmonic fluctuations under the DC microgrid architecture, and the power quality of the DC microgrid is poor.

[0059] In view of this, an embodiment of the present invention provides a harmonic power compensation method for a multi-source DC microgrid. The embodiment of the present invention can be applicable to the case of harmonic power compensation for a multi-source DC microgrid. The method can be executed by a harmonic power compensation device for a multi-source DC microgrid. The harmonic power compensation device for a multi-source DC microgrid can be implemented in the form of hardware and / or software. The harmonic power compensation device for a multi-source DC microgrid can be configured in a computer device.

[0060] like Figure 2 As shown, in a harmonic power compensation method for a multi-source DC microgrid provided by an embodiment of the present invention, a DC active filter is connected to the microgrid source side of the DC bus, and the bus voltage harmonic fluctuations under the DC microgrid architecture are controlled by the DC active filter.

[0061] like Figures 3-4 As shown, Figure 3 The present invention illustrates a process of a harmonic power compensation method for a multi-source-load DC microgrid provided in an embodiment of the present invention. Figure 4 A control block diagram of a harmonic power compensation method for a multi-source-load DC microgrid provided in an embodiment of the present invention is illustrated.

[0062] An embodiment of the present invention provides a harmonic power compensation method for a multi-source-load DC microgrid, comprising:

[0063] Step S1, obtaining voltage and current input signals of multiple AC load sides of a DC bus in real time, and calculating the total load power of the multiple AC load sides according to the voltage and current input signals.

[0064] Among them, Figure 4 As shown, this step S1 can be integrated into the load side power extraction module to work. In some examples, the voltage and current input signals of the power conversion units on the multiple AC load sides of the DC bus are obtained, and the total load power on the multiple AC load sides is calculated in real time.

[0065] Specifically, the step of calculating the total load power of multiple AC load sides according to the voltage and current input signals includes:

[0066] Step S101 : converting the voltage and current input signals into voltage input signal components and current input signal components in a stationary coordinate system respectively.

[0067] Among them, the voltage input signal U abc And the current input signal I abc The mathematical expression converted into the stationary coordinate system is:

[0068]

[0069] Where U α , Uβ The voltage input signal U abc The α-axis component and the β-axis component in the stationary coordinate system, I α ,I β They are the current input signal I abc The α-axis component and the β-axis component in the stationary coordinate system, U a , U b , U c The voltage input signal U abc The A phase voltage, B phase voltage and C phase voltage, I a ,I b ,I c They are the current input signal I abc The A phase current, B phase current and C phase current.

[0070] Step S102: determining the total load power of multiple AC load sides according to the voltage input signal component and the current input signal component.

[0071] The total load power on the AC load side is:

[0072] P=U α I α +U β I β

[0073] Wherein, P is the total load power on the AC load side, and the total load power on the AC load side can be used to obtain the total real-time active power of the load including the harmonic power.

[0074] It should be noted that when a three-phase inverter is running with an unbalanced load, it is often necessary to control and maintain the sinusoidal balance of its three-phase output voltage to provide high-quality power supply to the load. a , U b , U c Sine balance, which contains only positive sequence components, is shown in the following equation:

[0075]

[0076] Where U is the effective value of the positive sequence component of the output voltage; Ф is the initial phase of the output voltage; ω is the fundamental angular frequency.

[0077] When the load is unbalanced, the three-phase output current I a ,I b ,I c It will consist of positive and negative sequence current components, as shown in the following equation:

[0078]

[0079] Where k represents the angular frequency multiple of the negative sequence current component relative to the fundamental angular frequency ω, I+ and I- are the effective values ​​of the positive sequence and negative sequence components of the output current, respectively; Фi+ and Фi- are the initial phases of the positive sequence and negative sequence components of the output current, respectively.

[0080] The three-phase output voltage U a , U b , U c And the three-phase output current I a ,I b ,I c Transformed into the dq coordinate system, output U a Aligned with the d-axis, the expressions for voltage and current are as follows:

[0081]

[0082] At this time, the calculation expression of the instantaneous power output by the three-phase inverter to the load is:

[0083] v d i d +v q i q =p1+p2

[0084] In the formula, p1 is the average value component of the load power, which is constant; p2 is the multiple pulsation component of the load power, which is zero when the load is balanced. p1 and p2 can be expressed as:

[0085]

[0086] From the power expression p2, we can see that since the output current contains harmonic components and negative sequence components, the output power also contains multiple pulsation components. According to the converter mathematical model expression, the actual value of the capacitor voltage of the active power filter is U dc It also contains multiple harmonics.

[0087] Step S2: extract the harmonic power component of the total load power, and determine the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage.

[0088] Among them, Figure 4 As shown, this step S2 can be integrated into the compensation instruction extraction module to work. For the low-frequency pulsation in the extracted instantaneous power, in the embodiment of the present invention, the control block diagram of extracting the harmonic current compensation instruction is as follows Figure 5 shown.

[0089] Specifically, step S2 includes:

[0090] Step S201, after subtracting the total load power from the fundamental power component, the power subtraction result is divided into two power outputs, wherein one power output is to input the power subtraction result into a multi-channel notch filter, and the other power output is to obtain an estimated value of the input signal frequency by integrating the power subtraction result and input it into the multi-channel notch filter.

[0091] Among them, Figure 5 The control block diagram of the multi-channel notch filter is shown in Figure 6 As shown in the figure, the multi-channel notch filter includes multiple sub-notch filters connected in parallel. Figure 5 In the method, after the total load power P is subtracted from the power fundamental component P1, the power difference result is divided into two power outputs, wherein one power output is to directly use the power difference result as the input quantity e required by the multi-channel notch filter, and the other power output is to obtain the estimated value θ of the input signal frequency by integrating the power difference result 1 / s and input it into the multi-channel notch filter. At the same time, the input quantity e and the estimated value θ of the input signal frequency can be respectively input into multiple sub-notch filters for processing.

[0092] like Figure 7 As shown, Figure 7 The control block diagram of the sub-notch filter is shown in FIG. The amount obtained by shifting the phase by 90° is is the differential value of the i-th harmonic component detected by the sub-notch filter. The state space of the multi-channel notch filter corresponding to the control block diagram of the sub-notch filter is:

[0093]

[0094] In the formula, is the differential value of the i-th harmonic component detected by the sub-notch filter, n is the total number of harmonic components, b is the frequency multiple between the harmonic and the fundamental wave, x i is the i-th harmonic component detected by the sub-notch filter, θ is the estimated value of the input signal frequency, x is the harmonic component detected by the sub-notch filter, ζ is the steady-state accuracy, e(t) is the power difference time function, is the differential value of the fundamental angular frequency detected by the sub-notch filter, γ is the dynamic convergence speed, P load Indicates the power extracted from the load side.

[0095] Among them, the specific converged root locus of the sub-notch filter is:

[0096]

[0097] Where o is the specific convergence root of the sub-notch filter, ω1 is the fundamental angular frequency detected by the sub-notch filter, is the phase detected by the sub-notch filter.

[0098] in,

[0099] Step S202: extracting harmonic powers of the total load power through a multi-channel notch filter according to the difference result of the input power and the estimated value of the input signal frequency.

[0100] Step S203: obtain a harmonic current compensation instruction by performing ratio calculation on each harmonic power and the DC bus voltage.

[0101] Among them, Figure 5 As shown, through each harmonic power With DC bus voltage U bus Perform ratio calculation to obtain the harmonic current compensation instruction I fd .

[0102] Step S3: Compensate the harmonic current compensation instruction according to the given harmonic compensation current instruction to obtain a DC side harmonic compensation instruction.

[0103] Among them, the given harmonic compensation current command i * L The reference value U is given by the capacitor voltage * dc The actual value of the capacitor voltage U fed back by the active power filter dc After the difference is made, the difference result is input into the PI controller for fuzzy control.

[0104] Step S4: Tracking the DC side harmonic compensation instruction based on a dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and outputting a PWM instruction to the active power filter, where the PWM instruction is used to control the switching action of the active power filter.

[0105] Specifically, step S4 includes:

[0106] Step S401: Establish a model differential equation according to the circuit topology of the active power filter. The model differential equation is:

[0107]

[0108] In the formula, i L is the inductor current, t is the time, L is the output inductance of the active power filter, r is the output resistance of the active power filter, U bus is the DC bus voltage, S(i) is the switching action function of the active power filter, U dc is the capacitor voltage of the active power filter, where

[0109]

[0110] In the formula, & represents the symbol of sum, 1,4 on represents a switch action combination in which the first switch tube and the fourth switch tube in the active power filter are both in the on state, 2,3 off represents a switch action combination in which the second switch tube and the third switch tube in the active power filter are both in the off state, 1,2 on represents a switch action combination in which the first switch tube and the second switch tube in the active power filter are both in the on state, 3,4 off represents a switch action combination in which the third switch tube and the fourth switch tube in the active power filter are both in the off state, 2,3 on represents a switch action combination in which the second switch tube and the third switch tube in the active power filter are both in the on state, and 1,4 off represents a switch action combination in which the first switch tube and the fourth switch tube in the active power filter are both in the off state.

[0111] The active power filter includes four switch tubes, the first switch tube and the second switch tube are connected in series to form a switch tube branch, the third switch tube and the fourth switch tube are connected in series to form another switch tube branch, and the two ends of the two switch tube branches are connected in parallel. In each switch action combination, there will be a different predicted current at the next switching moment.

[0112] Step S402: discretize the model differential equation to obtain a discrete parameter equation. The discrete parameter equation is:

[0113]

[0114] In the formula, i L (k+1) represents the predicted current at the k+1th switching moment, T s represents the discrete sampling period, k represents the kth switching moment, i L (k) represents the inductor current at the kth switching moment, U dc (k) represents the capacitor voltage of the active power filter at the kth switching moment, U bus (k) represents the DC bus voltage at the kth switching moment.

[0115] Step S403: By introducing the harmonic current compensation instruction, the objective function is constructed by minimizing the absolute difference between the predicted current at the k+1th switching moment and the reference current at the k+1th switching moment. The objective function is:

[0116]

[0117] In the formula, g is the absolute difference, is the reference current at the k+1th switching moment, I fd (k+1) is the harmonic current compensation instruction at the k+1th switching moment;

[0118] Step S404, optimizing and solving the objective function through the switch action function of the active power filter, and determining the switch action combination corresponding to the minimum absolute difference;

[0119] Among them, the output inductor current is predicted according to different switch action combinations, and the output inductor current is closest to the output inductor current reference value and I fd The switch action combination of the sum of the two and minimizes the absolute difference.

[0120] Among them, the optimization and solution process can be solved by a solver.

[0121] Step S405: Generate a PWM command according to the switch action combination corresponding to the minimum absolute difference and send it to the active power filter.

[0122] It can be understood that after determining the switching action combination at the next switching moment, the DC-APF can use this switching action combination to complete the control of the switching action of the switch tube of the system at the next moment.

[0123] It should be noted that the present invention obtains the total load power of multiple AC load sides of the DC bus in real time, extracts the harmonic power component of the total load power, and determines the harmonic current compensation instruction. After compensating the harmonic current compensation instruction with a given harmonic compensation current instruction, the compensated DC side harmonic compensation instruction is tracked and processed using a dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and outputs a PWM instruction to control the switching action of the active power filter, thereby realizing the rapid generation of the DC side harmonic compensation instruction, and dynamically tracking and compensating the DC side harmonic compensation instruction, so as to more effectively eliminate the bus voltage harmonic fluctuations under the DC microgrid architecture and improve the power quality of the DC microgrid.

[0124] The above is a detailed description of an embodiment of a harmonic power compensation method for a multi-source load DC microgrid provided by an embodiment of the present invention. The following is a detailed description of an embodiment of a harmonic power compensation system for a multi-source load DC microgrid provided by an embodiment of the present invention.

[0125] like Figure 8 As shown, an embodiment of the present invention further provides a harmonic power compensation system for a multi-source DC microgrid, wherein the DC microgrid includes a DC bus, and an active power filter is connected to the microgrid source side of the DC bus, and the system includes:

[0126] The load side power extraction module 100 is used to obtain the voltage and current input signals of multiple AC load sides of the DC bus in real time, and calculate the total load power of the multiple AC load sides according to the voltage and current input signals;

[0127] The compensation instruction extraction module 200 is used to extract the harmonic power component of the total load power and determine the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage;

[0128] The harmonic compensation module 300 is used to compensate the harmonic current compensation instruction according to the given harmonic compensation current instruction to obtain the DC side harmonic compensation instruction;

[0129] The dynamic tracking module 400 is used to track the DC side harmonic compensation instruction based on the dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and outputs a PWM instruction to the active power filter, and the PWM instruction is used to control the switching action of the active power filter.

[0130] like Fig. 9 As shown, an embodiment of the present invention further provides an electronic device, the electronic device 10 includes a memory 20 and a processor 30, the memory 20 stores a computer program, and when the computer program is executed by the processor 30, the processor 30 executes the steps of the harmonic power compensation method of the multi-source-load DC microgrid in any of the above embodiments.

[0131] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed, the steps of the harmonic power compensation method for a multi-source-load DC microgrid in any of the above embodiments are implemented.

[0132] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the steps of the harmonic power compensation method for a multi-source-load DC microgrid in any of the above embodiments.

[0133] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, electronic devices, computer storage media and computer program products can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0134] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0135] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices, computer storage media, computer program products and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0137] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present invention through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0139] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A harmonic power compensation method for a multi-source DC microgrid, wherein the DC microgrid comprises a DC bus, It is characterized in that An active power filter is connected to the microgrid source side of the DC bus, and the method comprises: Acquire voltage and current input signals of multiple AC load sides of the DC bus in real time, and calculate the total load power of the multiple AC load sides according to the voltage and current input signals; Extracting the harmonic power component of the total load power, and determining the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage; Compensating the harmonic current compensation instruction according to a given harmonic compensation current instruction to obtain a DC side harmonic compensation instruction; The DC side harmonic compensation instruction is tracked based on a dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and a PWM instruction is output and sent to the active power filter, and the PWM instruction is used to control the switching action of the active power filter.

2. The harmonic power compensation method of a multi-source load DC microgrid according to claim 1, It is characterized in that The step of calculating the total load power of the plurality of AC load sides according to the voltage and current input signals comprises: Converting the voltage and current input signals into voltage input signal components and current input signal components in a stationary coordinate system respectively; The total load power of the plurality of AC load sides is determined according to the voltage input signal component and the current input signal component.

3. The harmonic power compensation method of a multi-source DC microgrid according to claim 1, It is characterized in that The step of extracting the harmonic power component of the total load power and determining the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage specifically includes: After subtracting the total load power from the fundamental power component, the power difference result is divided into two power outputs, wherein one power output is inputting the power difference result into a multi-channel trap filter, and the other power output is inputting an estimated value of the input signal frequency obtained by integrating the power difference result into the multi-channel trap filter; Extracting the harmonic power of the total power of the load through the multi-channel notch filter according to the difference result of the input power and the estimated value of the input signal frequency; The harmonic current compensation instruction is obtained by performing ratio calculation on the harmonic powers and the DC bus voltage.

4. The harmonic power compensation method of a multi-source DC microgrid according to claim 3, It is characterized in that The state space of the multi-channel notch filter is: In the formula, is the differential value of the i-th harmonic component detected by the sub-notch filter, n is the total number of harmonic components, b is the frequency multiple between the harmonic and the fundamental wave, x i is the i-th harmonic component detected by the sub-notch filter, θ is the estimated value of the input signal frequency, x is the harmonic component detected by the sub-notch filter, ζ is the steady-state accuracy, e(t) is the power difference time function, is the differential value of the fundamental angular frequency detected by the sub-notch filter, γ is the dynamic convergence speed, P load Indicates the power extracted from the load side.

5. The harmonic power compensation method of a multi-source DC microgrid according to claim 1, It is characterized in that The given harmonic compensation current command is generated by subtracting a given reference value of capacitor voltage from an actual value of capacitor voltage fed back by the active power filter, and inputting the difference result into a PI controller for fuzzy control.

6. The harmonic power compensation method of a multi-source DC microgrid according to claim 1, It is characterized in that The step of tracking and processing the DC side harmonic compensation instruction based on a dynamic tracking algorithm, and outputting a PWM instruction to the active power filter, wherein the PWM instruction is used to control the switching action of the active power filter, specifically includes: A model differential equation is established according to the circuit topology of the active power filter, and the model differential equation is: In the formula, i L is the inductor current, t is the time, L is the output inductance of the active power filter, r is the output resistance of the active power filter, U bus is the DC bus voltage, S(i) is the switching action function of the active power filter, U dc is the capacitor voltage of the active power filter, where In the formula, & represents the symbol of and, 1,4 on represents a switch action combination in which the first switch tube and the fourth switch tube in the active power filter are both in the on state, 2,3 off represents a switch action combination in which the second switch tube and the third switch tube in the active power filter are both in the off state, 1,2 on represents a switch action combination in which the first switch tube and the second switch tube in the active power filter are both in the on state, 3,4 off represents a switch action combination in which the third switch tube and the fourth switch tube in the active power filter are both in the off state, 2,3 on represents a switch action combination in which the second switch tube and the third switch tube in the active power filter are both in the on state, 1,4 off represents a switch action combination in which the first switch tube and the fourth switch tube in the active power filter are both in the off state, wherein the active power filter comprises four switch tubes, the first switch tube and the second switch tube are connected in series to form a switch tube branch, the third switch tube and the fourth switch tube are connected in series to form another switch tube branch, and the two ends of the two switch tube branches are connected in parallel; The model differential equation is discretized to obtain a discrete parameter equation, which is: In the formula, i L (k+1) represents the predicted current at the k+1th switching moment, T s represents the discrete sampling period, k represents the kth switching moment, i L (k) represents the inductor current at the kth switching moment, U dc (k) represents the capacitor voltage of the active power filter at the kth switching moment, U bus (k) represents the DC bus voltage at the kth switching moment; By introducing the harmonic current compensation instruction, the objective function is constructed by minimizing the absolute difference between the predicted current at the k+1th switching moment and the reference current at the k+1th switching moment. The objective function is: In the formula, g is the absolute difference, is the reference current at the k+1th switching moment, I fd (k+1) is the harmonic current compensation instruction at the k+1th switching moment; The objective function is optimized and solved by the switch action function of the active power filter to determine the switch action combination corresponding to the minimum absolute difference; A PWM instruction is generated according to the switch action combination corresponding to the minimum absolute difference and sent to the active power filter.

7. A harmonic power compensation system for a multi-source DC microgrid, the DC microgrid comprising a DC bus, It is characterized in that The microgrid source side of the DC bus is connected to an active power filter, and the system includes: A load-side power extraction module, used to obtain voltage and current input signals of multiple AC load sides of the DC bus in real time, and calculate the total load power of the multiple AC load sides according to the voltage and current input signals; A compensation instruction extraction module, used for extracting the harmonic power component of the total load power, and determining the harmonic current compensation instruction according to the harmonic power component and the DC bus voltage; A harmonic compensation module, used to compensate the harmonic current compensation instruction according to a given harmonic compensation current instruction to obtain a DC side harmonic compensation instruction; A dynamic tracking module is used to track and process the DC side harmonic compensation instruction based on a dynamic tracking algorithm, so that the DC side harmonic compensation instruction dynamically follows the change of the harmonic current compensation instruction, and outputs a PWM instruction to the active power filter, and the PWM instruction is used to control the switching action of the active power filter.

8. An electronic device, It is characterized in that The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the harmonic power compensation method for a multi-source-load DC microgrid as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the steps of the harmonic power compensation method for a multi-source-load DC microgrid as described in any one of claims 1 to 6 are implemented.

10. A computer program product, It is characterized in that The computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer is caused to perform the steps of the harmonic power compensation method for a multi-source-load DC microgrid as described in any one of claims 1 to 6.