Unified Control Strategy for Grid-Connected Solar Inverters with Active Power Filtering Functionality

The increasing integration of distributed generation, particularly from photovoltaic (PV) sources, presents both opportunities and challenges for modern power grids. While solar energy offers a clean alternative, the point of interconnection for these distributed solar inverter systems is often at the low-voltage distribution level. This network segment is inherently complex and susceptible to power quality issues, primarily due to the proliferation of nonlinear loads and power electronic devices acting as harmonic sources. These harmonics can propagate, polluting the main grid and degrading overall power quality. Addressing this practical problem is crucial for the reliable and efficient operation of the grid.

Traditionally, dedicated equipment like Shunt Active Power Filters (SAPFs) are employed to mitigate harmonics. However, a closer examination reveals significant similarities between a grid-connected solar inverter and a SAPF in terms of hardware topology, control structure, and fundamental operational principles. This paper explores a unified control strategy that enables a single power electronic converter to perform the dual functions of photovoltaic grid-interface and active power filtering, thereby offering a cost-effective and integrated solution for distributed generation systems.

System Architecture and Operational Principles

The foundation of the unified control strategy lies in the analogous structures of the two systems. A standard non-isolated, single-phase grid-connected solar inverter and a single-phase Shunt Active Power Filter share a common power circuit core.

Solar Inverter Topology

A typical two-stage solar inverter system consists of a front-end DC-DC boost converter and a rear-end DC-AC inverter. The boost stage performs Maximum Power Point Tracking (MPPT) and elevates the variable PV array voltage to a stable DC bus voltage higher than the grid peak voltage. The inverter stage, typically using an LCL filter for improved harmonic attenuation, interfaces with the grid. Its primary control objective is to inject sinusoidal current in phase (or at a controlled phase angle) with the grid voltage. The core power circuit of the inverter stage is a voltage-source converter.

The vector relationship between the grid voltage and the inverter output is governed by:
$$ \vec{v}_{inv} = \vec{e} + j\omega L \vec{i}_L + R \vec{i}_L $$
where $\vec{e}$ is the grid voltage vector, $\vec{i}_L$ is the output current vector, $\vec{v}_{inv}$ is the voltage at the AC side of the inverter bridge, $L$ and $R$ are the equivalent filter inductance and resistance, and $\omega$ is the grid angular frequency. The solar inverter, controlled as a current source, manages power flow by regulating the magnitude and phase of $\vec{i}_L$ relative to $\vec{e}$.

Shunt Active Power Filter (SAPF) Topology

A single-phase voltage-source SAPF has an identical main circuit topology to the inverter stage of the solar inverter. It is connected in parallel with the nonlinear load. Its operation involves detecting the harmonic and/or reactive current components drawn by the load and injecting compensating currents that are equal in magnitude but opposite in phase. This cancels the unwanted current components, forcing the grid current to become sinusoidal and in phase with the grid voltage. The SAPF’s DC-link capacitor voltage is maintained by drawing a small amount of fundamental active power from the grid to cover losses.

Unified Hardware Platform

The convergence is evident. Both systems utilize a voltage-source inverter bridge, a DC-link capacitor for energy storage, and an output filter. The DC-link voltage must be controlled to a stable value in both cases. This commonality forms the basis for the unified control approach, where a single solar inverter hardware platform is repurposed through advanced control algorithms to perform active filtering concurrently with its primary function of injecting real power.

The table below summarizes the key similarities and the added functionality.

Feature Grid-Connected Solar Inverter Shunt Active Power Filter (SAPF) Unified System
Main Circuit Voltage-Source Inverter (VSI) Voltage-Source Inverter (VSI) Single VSI Platform
Primary Function Inject real power (P) Inject compensating currents (-i_h, -i_q) Inject P and compensating currents
DC-Link Control Regulated via P from PV Regulated via small P from grid Regulated via net P (PV ± grid)
Grid Current Reference Sinusoidal, in-phase with grid voltage Sinusoidal, in-phase with grid voltage Sinusoidal, can include compensation
Control Core Current-controlled source Current-controlled source Multi-objective current control

Core Control Strategy for the Unified System

The control system for the unified solar inverter must seamlessly integrate three primary objectives: 1) Extracting maximum power from the PV array (MPPT), 2) Regulating the DC-link voltage, and 3) Generating and injecting compensation currents for harmonics and reactive power. The strategy is built upon a synchronous reference frame (d-q) approach and instantaneous power theory.

Grid Synchronization and Power Decoupling

Accurate grid synchronization is paramount. A Phase-Locked Loop (PLL) is used to extract the grid voltage phase angle $\theta$. This angle transforms the system into a rotating reference frame where the fundamental grid voltage vector is aligned with the d-axis. In this frame, the active and reactive components of current become DC quantities, simplifying their control.

For a single-phase system, an orthogonal signal generation method (e.g., using a second-order generalized integrator) is required to create a virtual two-phase system ($\alpha-\beta$) before transforming to the d-q frame. The PLL ensures that the estimated grid angle $\theta$ tracks the actual phase, enabling precise orientation.

Reference Current Generation

The total reference current for the unified solar inverter is a composite signal. It consists of:
1. Active Current Component ($i_{p,ref}$): This has two parts. The primary part is derived from the MPPT algorithm and DC-link voltage regulator, representing the real power to be injected from the PV array. A secondary, smaller part may be drawn from the grid to maintain the DC-link voltage if PV power is insufficient or to cover system losses, similar to SAPF operation.
2. Compensation Current Component ($i_{comp,ref}$): This is generated based on the detected harmonic and reactive load currents. The load current $i_L$ is measured, transformed to the d-q frame, and processed through Low-Pass Filters (LPFs). The filtered d and q components ($i_{d,fund}$, $i_{q,fund}$) represent the fundamental active and reactive load current. The compensation references are then:
$$ i_{d,comp,ref} = 0 – i_{d,harm} $$
$$ i_{q,comp,ref} = Q_{ref} – i_{q,fund} $$
where $i_{d,harm}$ is the harmonic content in the d-axis (obtained by subtracting $i_{d,fund}$ from the total $i_d$), and $Q_{ref}$ is the desired reactive power setpoint (often zero for unity power factor).

The total current references in the d-q frame are:
$$ i_{d,ref} = i_{p,ref} + i_{d,comp,ref} $$
$$ i_{q,ref} = i_{q,comp,ref} $$
These DC references are then transformed back to the stationary frame to obtain the instantaneous sinusoidal reference current $i_{ref}(t)$ for the inner current loop.

Current Tracking and Modulation

A fast inner current loop is essential for accurately tracking the composite reference current. A Proportional-Integral (PI) controller in the synchronous frame or a Proportional-Resonant (PR) controller in the stationary frame can be employed. The output of the current controller is the modulation signal for the Pulse Width Modulation (PWM) scheme. For a single-phase unified solar inverter, unipolar or bipolar PWM can be used. A recurring integral PI control, which performs integration over each sampling point within a fundamental period, offers excellent tracking performance with low steady-state error. Its discrete form for the k-th sample in a period is:
$$ u(k) = K_p e(k) + K_i \sum_{m=0}^{N-1} e((k-m) \mod N) $$
where $u(k)$ is the controller output, $e(k)$ is the current error, $K_p$ and $K_i$ are gains, and $N$ is the number of samples per fundamental cycle.

Filter Design for Harmonic Detection

The performance of the active filtering function heavily depends on the accurate extraction of harmonic components. This requires careful design of the filters used in the reference current generation path.

Digital Low-Pass Filter (LPF): Used in the d-q frame to extract the fundamental (DC) components. A Butterworth-type LPF is preferred for its flat passband. For a digital implementation with a sampling frequency $f_s = 20 kHz$ and a cutoff frequency $f_c = 5 Hz$, the difference equation can be derived. The general form is:
$$ y(n) = b_0 x(n) + b_1 x(n-1) + b_2 x(n-2) – a_1 y(n-1) – a_2 y(n-2) $$
With designed coefficients, for example:
$$ b_0 = b_2 = 6.1678 \times 10^{-9}, \quad b_1 = 1.2336 \times 10^{-8} $$
$$ a_1 = -1.99978, \quad a_2 = 0.99978 $$

Analog High-Pass Filter (HPF): While not always necessary in the control algorithm itself, a passive high-pass filter may be used at the output of the unified solar inverter to attenuate high-frequency switching ripple from the PWM process, preventing it from interfering with the current measurement sensors. Its design depends on the switching frequency and system impedances.

Simulation and Analysis of the Unified Control

To validate the proposed strategy, a simulation model of a distributed grid system was developed. The model includes a PV array, the unified solar inverter, a nonlinear load (a diode rectifier with an RL load), and the grid.

System Parameters:
– PV Array: Open-circuit voltage 337 V, short-circuit current 13.17 A, MPP at 270 V, 11.85 A.
– DC-Link Capacitor: 2200 µF.
– Inverter Output Filter: LCL type with $L_1=3 mH$, $C_f=2 \mu F$, $L_2=3 mH$.
– Grid: 310 V (peak), 50 Hz.
– Switching Frequency: 20 kHz (Bipolar PWM).
– Control Sampling: 20 kHz.

Operational Modes and Results

The unified solar inverter was tested in different scenarios.

Mode 1: Pure PV Injection (No Local Load): The solar inverter performs MPPT and injects pure active power. The grid current is sinusoidal and in-phase with the grid voltage. The Total Harmonic Distortion (THD) of the inverter output current was measured below 3%, demonstrating good current tracking performance.

Mode 2: PV Injection with Local Nonlinear Load: This is the critical test for the unified functionality. With the rectifier load connected, the grid current before compensation is highly distorted. Upon activating the active filtering function of the unified solar inverter, the results are striking.

Parameter Without Compensation With Unified Control
Grid Current THD ~25% (High distortion) < 5% (Within limits)
Grid Current Waveform Non-sinusoidal, peaked Sinusoidal
Power Factor at PCC Lagging (e.g., 0.75) ~1.00 (Controlled)
PV Power Injection Not applicable (Inverter off) Continuous at MPPT

The simulation waveforms show that the unified solar inverter’s output current $i_{inv}(t)$ is no longer a pure sinusoid. It contains the fundamental active power component from the PV plus the harmonic and reactive components required to cancel the load’s distorting currents. The net grid current $i_{grid}(t)$ becomes a clean sinusoid. The DC-link voltage remains stable throughout the operation, regulated by the outer loop controller that balances the active power from the PV, the small power for compensation, and the system losses.

The dynamic performance was also tested under a step change in solar irradiance. When the PV power suddenly increased, the DC-link voltage experienced a minor dip (e.g., 20 V) but was restored to its reference value within 0.2 seconds by the voltage regulator, and the grid current transitioned smoothly without sustained oscillation.

Reactive Power Control Capability

Beyond harmonic compensation, the unified control strategy inherently provides reactive power support. By setting the $Q_{ref}$ in the compensation algorithm, the solar inverter can inject or absorb reactive power. The control waveforms demonstrate that whether leading or lagging the grid voltage, the inverter output current maintains a smooth transition around the zero-crossing points of the grid voltage when using bipolar modulation, with no noticeable distortion.

Mathematical Formulation of Power Flow

The power balance in the unified system is fundamental to its operation. Let $p_{pv}(t)$ be the instantaneous power from the PV array, $p_{loss}(t)$ the converter losses, $p_{grid}(t)$ the instantaneous real power exchanged with the grid, and $p_{comp}(t)$ the real power component associated with the compensation action (typically very small). Ignoring the energy in the filters, the power balance on the DC side is:
$$ p_{pv}(t) = p_{loss}(t) + p_{inv,ac}(t) $$
where $p_{inv,ac}(t)$ is the instantaneous power at the AC terminals of the inverter. This AC power has two components related to the grid and the local load:
$$ p_{inv,ac}(t) = p_{grid}(t) + p_{load,comp}(t) $$
Here, $p_{load,comp}(t)$ is effectively the negative of the real power drawn by the harmonic components of the load. The DC-link capacitor $C_{dc}$ handles the instantaneous difference:
$$ p_{pv}(t) – p_{inv,ac}(t) = v_{dc} i_{c} = C_{dc} v_{dc} \frac{dv_{dc}}{dt} $$
The primary role of the DC-link voltage controller is to adjust $p_{grid,ref}$ (the fundamental active current reference $i_{p,ref}$) to ensure the average value of $v_{dc}$ is maintained constant, implying long-term energy balance:
$$ \overline{p_{pv}(t)} = \overline{p_{loss}(t)} + \overline{p_{grid}(t)} + \overline{p_{load,comp}(t)} $$
Since $\overline{p_{load,comp}(t)} \approx 0$ for harmonic currents, the primary balance is between PV power, losses, and the fundamental real power to the grid.

Advantages and Implementation Considerations

The unified control strategy for a solar inverter offers several compelling advantages:

1. Cost Reduction: Eliminates the need for a separate, dedicated APF unit, saving on hardware, installation, and maintenance costs.
2. Improved Utilization: The solar inverter’s capacity is used more effectively. During periods of low solar generation (e.g., night, cloudy days), the inverter can still operate as a full-capacity APF, providing continuous power quality service.
3. Grid Support: Provides ancillary services like reactive power support and harmonic mitigation, enhancing grid stability and power quality at the distribution level.
4. Simplified Integration: Reduces the footprint and complexity of distributed energy systems.

Key Implementation Considerations:
Current Rating: The power semiconductor devices and magnetic components must be rated for the sum of the PV injection current and the maximum compensating current.
Control Bandwidth: The current control loop must have a sufficiently high bandwidth to accurately track both the fundamental reference and the higher-order harmonic references (typically up to the 25th or 50th harmonic).
Harmonic Detection Speed: The algorithm for extracting harmonic references must be fast and accurate to ensure dynamic compensation performance for varying loads.
DC-Link Capacitor Sizing: The capacitor must be sized to handle the power fluctuations during transients in both PV generation and load compensation.

Conclusion

This study has presented a comprehensive analysis and a viable control strategy for unifying the functions of a grid-connected solar inverter and an active power filter. By leveraging the inherent topological and control similarities between the two systems, a single power electronic converter can be controlled to inject clean real power from a PV source while simultaneously compensating for local harmonic distortion and reactive power demand. The strategy, based on synchronous reference frame control and instantaneous power theory, utilizes a dual-loop structure with an outer DC-link voltage regulator and an inner current tracking loop. The design of appropriate digital and analog filters is crucial for accurate harmonic extraction and system performance.

Simulation and experimental results confirm the feasibility and effectiveness of this approach. The unified solar inverter successfully maintains maximum power point tracking, regulates its DC-link voltage, and significantly improves the grid current quality by reducing Total Harmonic Distortion and controlling the power factor at the point of common coupling. This integrated solution represents a cost-effective and intelligent enhancement for distributed photovoltaic systems, contributing not only to renewable energy generation but also to the active improvement of power quality in the evolving smart grid landscape. The solar inverter thus evolves from a simple power injection device into a multi-functional grid-supporting asset.

Scroll to Top