Inverter compensation circuit, inverter compensation method, storage medium and computer equipment

By designing an inverter compensation circuit, the reactive power of the inverter in the photovoltaic system is compensated, which solves the problem of high reactive power of the inverter, improves the efficiency of the transmission system and reduces power loss.

CN119628451APending Publication Date: 2025-03-14浙江华昱欣科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411546775.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In photovoltaic systems, the reactive power of the inverter is high, resulting in reduced efficiency of the transmission system and increased power loss.

Method used

An inverter compensation circuit is designed, including a sampling module, a carrier generator and a control module. By sampling and processing the DC voltage, AC voltage, output current and load current of the inverter, the duty cycle of the carrier is determined, and the carrier outputs the carrier through the carrier generator for reactive compensation.

Benefits of technology

By reactive compensation of the inverter, the reactive power of the inverter is reduced, the efficiency of the transmission system is improved, and the power loss of the transmission line is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119628451A_ABST
    Figure CN119628451A_ABST
Patent Text Reader

Abstract

The invention provides an inversion compensation circuit, an inversion compensation method, a storage medium and computer equipment, which can perform reactive compensation on an inverter to reduce the reactive power of the inverter, thereby improving the efficiency of a power transmission system and reducing the electric energy loss of a power transmission line. Comprising a sampling module, a carrier generator and a control module, the sampling module is used for sampling data of an inverter, and the control module is used for processing the sampled data, finally determining a carrier, controlling the carrier generator to generate the carrier and outputting the carrier to the inverter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of photovoltaic grid-connected inverters, and in particular to an inverter compensation circuit, an inverter compensation method, a storage medium, and a computer device. Background Art

[0002] In a photovoltaic system, after the solar panels convert solar energy into electrical energy, the electrical energy will be transmitted to loads in different locations as needed. The output power of the electrical energy includes not only the active power that actually does work in the circuit, but also the reactive power that is lost in the circuit. Reactive power will reduce the efficiency of the transmission system and increase line losses. Summary of the invention

[0003] One advantage of the present application is that it provides an inverter compensation circuit, an inverter compensation method, a storage medium and a computer device, which can perform reactive power compensation on the inverter to reduce the reactive power of the inverter, thereby improving the efficiency of the power transmission system and reducing the power loss of the transmission line.

[0004] Another advantage of the present application is to provide an inverter compensation circuit, an inverter compensation method, a storage medium and a computer device, wherein in order to achieve the above advantages, no expensive materials or complex structures are required in the present application. Therefore, the present application provides a successful and effective solution, not only providing a simple inverter compensation circuit, an inverter compensation method, a storage medium and a computer device, but also increasing the practicality and reliability of the inverter compensation circuit, the inverter compensation method, the storage medium and the computer device.

[0005] Based on this, in order to achieve at least one of the above advantages or other advantages and purposes of the present application, the present application provides an inverter compensation circuit for compensating an inverter, the inverter compensation circuit comprising:

[0006] Sampling module, carrier generator and control module, wherein,

[0007] The sampling module has a first input end, a second input end and a third input end. The first input end of the sampling module is connected to the first output end of the power module of the inverter, and is used to collect the DC voltage Udc of the inverter. The second input end of the sampling module is connected to the first output end of the filter module of the inverter, and is used to collect the AC voltage Uac and the output current Iout of the inverter. The third input end of the sampling module is connected to the first output end of the load module of the inverter, and is used to collect the load current If of the inverter. The second output end of the power module is connected to the input end of the inverter module of the inverter, the output end of the inverter module is connected to the input end of the filter module, and the second output end of the filter module is connected to the input end of the load module.

[0008] The output end of the carrier generator is connected to the input end of the power module, and the input end of the carrier generator is connected to the output end of the control module, and is used to generate a carrier according to the instruction of the control module and output it to the power module for compensation.

[0009] The input end of the control module is connected to the output end of the sampling module, and is used to determine the duty cycle of the carrier according to the DC voltage Udc, the AC voltage Uac, the output current Iout and the load current If, and control the carrier generator to generate a carrier corresponding to the duty cycle, and output it to the power supply module.

[0010] In this way, the inverter compensation circuit samples the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter through the sampling module, and the control module processes the sampled data to finally determine the duty cycle Dac of the carrier, and controls the carrier generator to generate a carrier corresponding to the duty cycle Dac, and outputs it to the inverter. Compared with the scheme of not performing reactive power compensation on the inverter, this scheme outputs a carrier to the inverter, thereby adding reactive current to the current of the inverter, and then compensating for the reactive power of the load module of the inverter, thereby finally improving the efficiency of the power transmission system and reducing the power loss of the transmission line.

[0011] According to one embodiment of the present application, the inverter is a single-phase inverter.

[0012] With this arrangement, compared with the reactive power compensation scheme applicable to all inverters, this scheme is designed according to the type of applicable inverter, is targeted, and can better improve the efficiency of the transmission system using this type of inverter and reduce the power loss of the transmission line to a greater extent.

[0013] According to another aspect of the present application, the present application further provides an inverter compensation method for compensating an inverter, comprising the following steps:

[0014] Sampling the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter;

[0015] Calculating a voltage difference between the DC voltage Udc and a preset DC target voltage Udcf, and performing PI modulation on the voltage difference to obtain an active current Id;

[0016] Processing the AC voltage Uac to obtain a current voltage angle θ;

[0017] According to the current voltage angle θ, the load current If is processed to obtain a reactive current Iq;

[0018] Obtaining a target output current Iflag according to the active current Id, the current voltage angle θ and the reactive current Iq;

[0019] Obtaining an actual output current Isys according to the transient output current Iout;

[0020] Calculating a first current difference between the actual output current Isys and the target output current Iflag, and determining a carrier duty cycle Dac according to the first current difference, the AC voltage Uac, and the DC voltage Udc;

[0021] A corresponding carrier wave is generated according to the carrier wave duty cycle Dac, and the carrier wave is output to the inverter.

[0022] With such configuration, relative to a solution in which no reactive power compensation is performed on the inverter, the present solution determines the duty cycle Dac of the carrier according to the DC voltage Udc, the AC voltage Uac, the transient output current Iout and the load current If of the inverter, generates a carrier, and outputs the carrier to perform reactive power compensation on the inverter, thereby improving the output efficiency of the inverter and reducing the loss of electric energy.

[0023] According to an embodiment of the present application, the AC voltage Uac is processed to obtain the current voltage angle θ, specifically:

[0024] Decomposing the AC voltage Uac into two mutually perpendicular first voltage vectors Uα and second voltage vectors Uβ by using a SOGI algorithm;

[0025] The first voltage vector Uα and the second voltage vector Uβ are converted into an active voltage component Ud and a reactive voltage component Uq, and Uq is PI modulated with 0 as the target value to obtain the current voltage angle θ.

[0026] According to an embodiment of the present application, the load current If is processed according to the current voltage angle θ to obtain the reactive current Iq, specifically:

[0027] Decomposing the load current If into two mutually perpendicular first current vectors Iα and second current vectors Iβ by using a SOGI algorithm;

[0028] The first current vector Iα and the second current vector Iβ are converted into an active current component Id and a reactive current component Iq, and the reactive current Iq is obtained according to the current voltage angle θ.

[0029] According to an embodiment of the present application, the calculation process of obtaining the target output current Iflag is: target output current Iflag=Id×sinθ+Iq×cosθ.

[0030] According to one embodiment of the present application, the calculating a first current difference between the actual output current Isys and the target output current Iflag, and determining a carrier duty cycle Dac according to the first current difference, the AC voltage Uac, and the DC voltage Udc, comprises the following steps:

[0031] Calculating a second current difference between the actual output current Isys and the target output current Iflag, and performing PI modulation on the second current difference to obtain a modulated current Ipi_out;

[0032] The carrier duty cycle Dac is determined according to the modulation current Ipi_out, the AC voltage Uac and the DC voltage Udc.

[0033] According to an embodiment of the present application, the calculation method of the carrier duty cycle Dac is specifically: carrier duty cycle Dac=(AC voltage Uac+modulation current Ipi_out) / DC voltage Udc.

[0034] According to another aspect of the present application, the present application further provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned inverter compensation method.

[0035] With such a configuration, the program stored in the storage medium can automatically perform complex tasks, reduce human intervention, thereby improving overall efficiency and ensuring the reliability and trustworthiness of operations. In addition, the program is repeatable and extensible, so that the same program can be repeatedly executed in different environments and at different times, and is easy to expand to meet new needs, thereby enhancing the adaptability and flexibility of the program. In addition, running the program can greatly optimize resource utilization and reduce manpower and error costs by automatically processing large amounts of data and tasks. Finally, the program is also traceable and secure, and can ensure the auditability and security of operations by recording and tracking each step of program execution, thereby reducing the risks brought by human operations.

[0036] According to another aspect of the present application, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned inverter compensation method when executing the computer program.

[0037] With such a configuration, the computer program has flexibility and adaptability, so that the execution steps can be adjusted according to different inputs and conditions, thereby adapting to the ever-changing needs and technical environment, and maintaining the advancement and practicality of the computer program. In addition, the architecture of the computer device allows the realization of multiple functions, so that the program in the memory can contain multiple functional modules, and the computer program can be executed by the processor to meet different application needs, thereby improving the function of the computer program and enhancing the integration of the computer device.

[0038] Beneficial effect: This scheme uses the sampling module to sample the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter, laying a foundation for the subsequent control module to process the sampled data, and then the control module processes the AC voltage Uac to obtain the current voltage angle θ, and according to the current voltage angle θ, the load current If is processed to obtain the reactive current Iq, and the voltage difference between the DC voltage Udc and the preset DC target voltage Udcf is PI modulated to obtain the active current Id, and then according to the obtained The target output current Iflag is obtained by the active current Id, the current voltage angle θ and the reactive current Iq, and the actual output current Isys is obtained according to the transient output current Iout. Finally, the carrier duty cycle Dac is determined according to the first current difference between the actual output current Isys and the target output current Iflag, the AC voltage Uac and the DC voltage Udc, and the carrier generator is controlled to generate a carrier output to the inverter, thereby performing reactive compensation on the inverter to reduce the reactive power of the power transmission system where the inverter is located, thereby increasing the overall efficiency of the power transmission system and reducing the loss of electric energy. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 A schematic diagram of the connection between the inverter compensation circuit and each module of the inverter provided in one embodiment of the present application;

[0041] Figure 2 A circuit diagram of some modules in the inverter according to the above embodiment of the present application is shown;

[0042] Figure 3A circuit diagram of a load module in the inverter according to the above embodiment of the present application is shown;

[0043] Figure 4 A schematic flow chart of an inverter compensation method provided in another embodiment of the present application;

[0044] Figure 5 A schematic diagram of a process for obtaining the active current Id in the inverter compensation method according to the above embodiment of the present application is shown;

[0045] Figure 6 A schematic diagram of a process of obtaining the current voltage angle θ in the inverter compensation method according to the above embodiment of the present application is shown;

[0046] Figure 7 A schematic diagram of a process for obtaining reactive current Iq in the inverter compensation method according to the above embodiment of the present application is shown.

[0047] Figure numerals: 10, inverter; 11, power module; 12, inverter module; 13, filter module; 14, load module; 20, inverter compensation circuit; 21, sampling module; 22, control module; 23, carrier generator. DETAILED DESCRIPTION

[0048] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0049] Considering that there is still room for reducing the reactive power in the existing inverter circuit, the present application provides an inverter compensation circuit, an inverter compensation method, a storage medium and a computer device, which can perform reactive power compensation on the inverter, thereby reducing the reactive power of the inverter, thereby improving the efficiency of the inverter transmission system and reducing the power loss of the transmission line.

[0050] For details, please refer to the attached Figures 1 to 3 An embodiment of the present application provides an inverter compensation circuit 20 , which may include: a sampling module 21 , a carrier generator 23 and a control module 22 .

[0051] More specifically, if Figures 1 to 3As shown, the sampling module 21 has a first input end, a second input end and a third input end. The first input end of the sampling module 21 is connected to the first output end of the power module 11 of the inverter 10, and is used to collect the DC voltage Udc of the inverter 10. The second input end of the sampling module 21 is connected to the first output end of the filter module 13 of the inverter 10, and is used to collect the AC voltage Uac and the output current Iout of the inverter 10. The third input end of the sampling module 21 is connected to the first output end of the load module 14 of the inverter 10, and is used to collect the load current If of the inverter 10. The second output end of the power module 11 is connected to the input end of the inverter module 12 of the inverter 10, the output end of the inverter module 12 is connected to the input end of the filter module 13, and the second output end of the filter module 13 is connected to the input end of the load module 14.

[0052] The output end of the carrier generator 23 is connected to the input end of the power module 11, and the input end of the carrier generator 23 is connected to the output end of the control module 22, and is used to generate a carrier according to the instruction of the control module 22 and output it to the power module 11 for compensation.

[0053] The input end of the control module 22 is connected to the output end of the sampling module 21, and is used to determine the duty cycle of the carrier according to the DC voltage Udc, the AC voltage Uac, the output current Iout and the load current If, and control the carrier generator 23 to generate a carrier corresponding to the duty cycle, and output it to the power module 11.

[0054] It is worth noting that the inverter compensation circuit 20 samples the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter 10 through the sampling module 21, and the control module 22 processes the sampled data to finally determine the duty cycle Dac of the carrier, and controls the carrier generator 23 to generate a carrier corresponding to the duty cycle Dac, and outputs it to the inverter 10. Compared with the scheme of not performing reactive power compensation on the inverter 10, this scheme performs reactive power compensation on the inverter 10 by outputting a carrier to the inverter, thereby improving the efficiency of the power transmission system and reducing the power loss of the transmission line.

[0055] In particular, the above-mentioned inverter 10 is a single-phase inverter 10. Compared with the reactive power compensation scheme applicable to all inverters 10, this scheme is designed according to the type of applicable inverter 10, is targeted, and can better improve the efficiency of the power transmission system using this type of inverter 10 and reduce the power loss of the transmission line to a greater extent.

[0056] In particular, the process of the sampling module 21 sampling the DC voltage Udc, the AC voltage Uac, the output current Iout and the load current If of the inverter 10 is: converting the sampled data into actual values.

[0057] Another embodiment of the present application provides an inverter compensation method, such as Figures 4 to 7 As shown, the method for compensating the inverter 10 includes the following steps:

[0058] Sampling the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter 10;

[0059] Calculating a voltage difference between the DC voltage Udc and a preset DC target voltage Udcf, and performing PI modulation on the voltage difference to obtain an active current Id;

[0060] Processing the AC voltage Uac to obtain a current voltage angle θ;

[0061] According to the current voltage angle θ, the load current If is processed to obtain a reactive current Iq;

[0062] Obtaining a target output current Iflag according to the active current Id, the current voltage angle θ and the reactive current Iq;

[0063] Obtaining an actual output current Isys according to the transient output current Iout;

[0064] Calculating a first current difference between the actual output current Isys and the target output current Iflag, and determining a carrier duty cycle Dac according to the first current difference, the AC voltage Uac, and the DC voltage Udc;

[0065] A corresponding carrier wave is generated according to the carrier wave duty cycle Dac, and the carrier wave is output to the inverter 10 .

[0066] It is worth noting that, compared with a solution that does not perform reactive power compensation on the inverter 10, this solution determines the duty cycle Dac of the carrier according to the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter 10, generates a carrier, and outputs it to the inverter 10, thereby performing reactive power compensation on the inverter 10, thereby improving the output efficiency of the inverter 10 and reducing the loss of electric energy.

[0067] It should be noted that if Figures 1 to 7 As shown, the process of using the above-mentioned inverter compensation circuit 20 and the inverter compensation method is specifically as follows:

[0068] The sampling module 21 is used to sample the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter 10, and then the AC voltage Uac is processed by the control module 22 to obtain the current voltage angle θ, and according to the current voltage angle θ, the load current If is processed to obtain the reactive current Iq, and the voltage difference between the DC voltage Udc and the preset DC target voltage Udcf is PI modulated to obtain the active current Id, and then the target output current Iflag is obtained according to the obtained active current Id, the current voltage angle θ and the reactive current Iq, and the actual output current Isys is obtained according to the transient output current Iout, and finally the carrier duty cycle Dac is determined according to the first current difference between the actual output current Isys and the target output current Iflag, the AC voltage Uac and the DC voltage Udc, and the carrier generator 23 is controlled to generate a carrier output to the capacitor C1 of the power module 11 of the inverter 10 for reactive compensation.

[0069] It should be noted that the specific hardware structure of the sampling module 21 includes but is not limited to a voltage sensor and a current sensor, an electric energy measurement chip and a multi-function ADC module, and the carrier generator 23 includes but is not limited to circuit components such as a microcontroller and a signal generator.

[0070] In particular, the principle of outputting a carrier wave to the inverter 10 for reactive power compensation is based on pulse width modulation, which is a technology for controlling an electrical signal by adjusting the pulse width. The basic feature of a PWM wave is to keep the frequency constant and control the effective value of the output signal by changing the duty cycle of the pulse (i.e., the ratio of the pulse high level time to the period), thereby achieving power regulation.

[0071] In particular, if Figure 2 As shown, the DC voltage Udc is the DC voltage of the inverter 10, specifically Figure 2 The voltage across the capacitor C1 in the inverter 10 is the voltage across the capacitor C1, the AC voltage Uac is the output AC constant voltage of the inverter 10, the transient output current Iout is the transient value of the current output by the inverter 10, and the load current If is the current value at the load of the inverter 10.

[0072] In particular, if Figure 6 As shown, the AC voltage Uac is processed to obtain the current voltage angle θ, which is specifically:

[0073] Decomposing the AC voltage Uac into two mutually perpendicular first voltage vectors Uα and second voltage vectors Uβ by using a SOGI algorithm;

[0074] The first voltage vector Uα and the second voltage vector Uβ are converted into an active voltage component Ud and a reactive voltage component Uq, and Uq is PI modulated with 0 as the target value to obtain the current voltage angle θ.

[0075] In particular, the SOGI (Second-Order Generalized Integrator) algorithm is often used in filter structures in power electronics and signal processing, especially in environments such as power grid synchronization, harmonic analysis and active filtering, and converts the input quantity of the SOGI algorithm into two mutually perpendicular vectors, namely, a sine component and a cosine component.

[0076] In particular, a phase-locked loop (PLL) is a feedback control system that is mainly used to synchronize frequency and phase and is widely used in communications, signal processing, audio and video equipment, etc. The basic goal of a PLL is to lock the frequency and phase of the output signal to the frequency and phase of the input signal.

[0077] In particular, PI (proportional integral) modulation is a common control strategy that is widely used in various control systems, such as motor control, temperature control, voltage regulation, etc. PI modulation combines the two control functions of proportional (P) and integral (I), which can effectively reduce the steady-state error and improve the response speed of the system. Specifically, proportional control (P): adjust according to the current deviation (the difference between the target value and the actual value) to provide a control amount proportional to the deviation, and integral control (I): accumulate past deviations to eliminate steady-state errors, and adjust the output by integrating historical deviations to ensure that the system is stable near the set point.

[0078] Alternatively, if Figure 7 As shown, according to the current voltage angle θ, the load current If is processed to obtain the reactive current Iq, specifically:

[0079] Decomposing the load current If into two mutually perpendicular first current vectors Iα and second current vectors Iβ by using a SOGI algorithm;

[0080] The first current vector Iα and the second current vector Iβ are converted into an active current component Id and a reactive current component Iq, and the reactive current Iq is obtained according to the current voltage angle θ.

[0081] In particular, the first current vector Iα and the second current vector Iβ are sine components and cosine components on the α axis and the β axis, and then the first current vector Iα and the second current vector Iβ are converted into active current components Id and reactive current components Iq, that is, the first current vector Iα and the second current vector Iβ are converted into sine components and cosine components on the reactive (q) axis and the active (b) axis, which are expressed in the form of sine amplitude × sinθ or cosine amplitude × cosθ, the reactive current is the cosine amplitude, and the reactive current Iq is determined according to the current voltage angle θ, and the reactive current Iq is the reactive current at the load.

[0082] Optionally, the calculation process of obtaining the target output current Iflag is specifically as follows:

[0083] The target output current Iflag=Id×sinθ+Iq×cosθ.

[0084] Optionally, the calculating a first current difference between the actual output current Isys and the target output current Iflag, and determining a carrier duty cycle Dac according to the first current difference, the AC voltage Uac, and the DC voltage Udc, comprises the following steps:

[0085] Calculating a second current difference between the actual output current Isys and the target output current Iflag, and performing PI modulation on the second current difference to obtain a modulated current Ipi_out;

[0086] The carrier duty cycle Dac is determined according to the modulation current Ipi_out, the AC voltage Uac and the DC voltage Udc.

[0087] In particular, the calculation method of the carrier duty cycle Dac is specifically: carrier duty cycle Dac=(AC voltage Uac+modulation current Ipi_out) / DC voltage Udc.

[0088] In other embodiments of the present application, a computer program is provided, and running the computer program can execute the above-mentioned inverter compensation method.

[0089] Other embodiments of the present application further provide a storage device, wherein the storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above-mentioned inverter compensation method.

[0090] It is worth noting that the program stored in the storage medium can automatically perform complex tasks, reduce human intervention, thereby improving overall efficiency and ensuring the reliability and trustworthiness of operations. In addition, the program is repeatable and extensible, so that the same program can be repeatedly executed in different environments and times, and is easy to expand to meet new needs, enhancing the adaptability and flexibility of the program. In addition, running the program can greatly optimize resource utilization and reduce manpower and error costs by automating the processing of large amounts of data and tasks. Finally, the program is also traceable and secure, and can ensure the auditability and security of operations by recording and tracking every step of the program execution, reducing the risks brought by human operations.

[0091] In other embodiments of the present application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned inverter compensation method when executing the computer program.

[0092] It is worth noting that the computer program is flexible and adaptable, so that the execution steps can be adjusted according to different inputs and conditions, so as to adapt to the ever-changing needs and technical environment, and maintain the advancement and practicality of the computer program. In addition, the architecture of the computer device allows the realization of multiple functions, so that the program in the memory can contain multiple functional modules, and the computer program can be executed by the processor to meet different application needs, thereby improving the function of the computer program and enhancing the integration of the computer device.

[0093] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it may be directly on the other component or there may also be a central component. When a component is considered to be "connected to" another component, it may be directly connected to the other component or there may be a central component at the same time. The terms "vertical", "horizontal", "upper", "lower", "left", "right" and similar expressions used in the specification of this application are for illustrative purposes only and do not represent the only implementation method.

[0094] In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or equipment.

[0095] In the present application, unless otherwise clearly specified and limited, a first feature being “above” or “below” a second feature may mean that the first feature is directly in contact with the second feature, or the first feature and the second feature are indirectly in contact through an intermediate medium. Moreover, a first feature being “above”, “above” or “above” a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being “below”, “below” or “below” a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0096] Unless otherwise defined, all technical and scientific terms used in the specification of this application have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in the specification of this application includes any and all combinations of one or more related listed items.

[0097] The technical features of the above embodiments can be combined without changing the basic principles of the present application. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of patent protection of the present application shall be subject to the attached claims.

Claims

1. An inverter compensation circuit for compensating an inverter, characterized in that: The inverter compensation circuit comprises: Sampling module, carrier generator and control module, wherein, The sampling module has a first input end, a second input end and a third input end. The first input end of the sampling module is connected to the first output end of the power module of the inverter, and is used to collect the DC voltage Udc of the inverter. The second input end of the sampling module is connected to the first output end of the filter module of the inverter, and is used to collect the AC voltage Uac and the output current Iout of the inverter. The third input end of the sampling module is connected to the first output end of the load module of the inverter, and is used to collect the load current If of the inverter. The second output end of the power module is connected to the input end of the inverter module of the inverter, the output end of the inverter module is connected to the input end of the filter module, and the second output end of the filter module is connected to the input end of the load module. The output end of the carrier generator is connected to the input end of the power module, and the input end of the carrier generator is connected to the output end of the control module, and is used to generate a carrier according to the instruction of the control module and output it to the power module for compensation. The input end of the control module is connected to the output end of the sampling module, and is used to determine the duty cycle of the carrier according to the DC voltage Udc, the AC voltage Uac, the output current Iout and the load current If, and control the carrier generator to generate a carrier corresponding to the duty cycle, and output it to the power supply module.

2. The inverter compensation circuit according to claim 1, characterized in that: The inverter is a single-phase inverter.

3. An inverter compensation method for performing reactive power compensation on a load module of the inverter, characterized in that: The following steps are involved: Sampling the DC voltage Udc, AC voltage Uac, transient output current Iout and load current If of the inverter; Calculating a voltage difference between the DC voltage Udc and a preset DC target voltage Udcf, and performing PI modulation on the voltage difference to obtain an active current Id; Processing the AC voltage Uac to obtain a current voltage angle θ; According to the current voltage angle θ, the load current If is processed to obtain a reactive current Iq; Obtaining a target output current Iflag according to the active current Id, the current voltage angle θ and the reactive current Iq; Obtaining an actual output current Isys according to the transient output current Iout; Calculating a first current difference between the actual output current Isys and the target output current Iflag, and determining a carrier duty cycle Dac according to the first current difference, the AC voltage Uac, and the DC voltage Udc; A corresponding carrier wave is generated according to the carrier wave duty cycle Dac, and the carrier wave is output to the inverter.

4. The inverter compensation method according to claim 3, characterized in that: The current voltage angle θ is obtained by processing the AC voltage Uac, specifically: Decomposing the AC voltage Uac into two mutually perpendicular first voltage vectors Uα and second voltage vectors Uβ by using a SOGI algorithm; The first voltage vector Uα and the second voltage vector Uβ are converted into an active voltage component Ud and a reactive voltage component Uq, and Uq is PI modulated with 0 as the target value to obtain the current voltage angle θ.

5. The inverter compensation method according to claim 3, characterized in that: According to the current voltage angle θ, the load current If is processed to obtain the reactive current Iq, which is specifically: Decomposing the load current If into two mutually perpendicular first current vectors Iα and second current vectors Iβ by using a SOGI algorithm; The first current vector Iα and the second current vector Iβ are converted into an active current component Id and a reactive current component Iq, and the reactive current Iq is obtained according to the current voltage angle θ.

6. The inverter compensation method according to claim 3, characterized in that: The calculation process of obtaining the target output current Iflag is: target output current Iflag=Id×sinθ+Iq×cosθ.

7. The inverter compensation method according to claim 3, characterized in that: The calculating a first current difference between the actual output current Isys and the target output current Iflag, and determining a carrier duty cycle Dac according to the first current difference, the AC voltage Uac, and the DC voltage Udc, comprises the following steps: Calculating a second current difference between the actual output current Isys and the target output current Iflag, and performing PI modulation on the second current difference to obtain a modulated current Ipi_out; The carrier duty cycle Dac is determined according to the modulation current Ipi_out, the AC voltage Uac and the DC voltage Udc.

8. The inverter compensation method according to claim 7, characterized in that: The calculation method of the carrier duty cycle Dac is specifically as follows: carrier duty cycle Dac=(AC voltage Uac+modulation current Ipi_out) / DC voltage Udc.

9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the inverter compensation method according to any one of claims 3 to 8.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the inverter compensation method described in any one of claims 3 to 8 is implemented.