Introduction

The rising integration of photovoltaic (PV) systems into power distribution networks presents significant challenges in maintaining grid stability and power quality1. While PV energy is a sustainable solution, its intermittent nature, combined with non-linear and unbalanced loads, causes harmonic distortions, reactive power imbalances, and voltage fluctuations at the point of common coupling (PCC)1,2,3,4. These issues contribute to increased power losses, equipment malfunctions, and potential non-compliance with regulatory standards5,6. In three-phase four-wire power distribution networks, unbalanced loading and harmonic currents further intensify these challenges, causing excessive heating of neutral conductor7,8,9,10,11. Effective mitigation strategies are a requisite to ensure reliable grid operation. A PV-based distribution static compensator (PV-DSTATCOM) presents a promising solution by facilitating seamless PV integration while enhancing power quality12. However, real-time performance of PV-DSTATCOM under practical grid conditions requires thorough evaluation. Factors such as balanced and unbalanced PCC voltages, fluctuating solar irradiance level, and sudden non-linear load variations can significantly impact its effectiveness13.

Background research

The integration of PV systems into power distribution networks has led to extensive research on power quality improvement techniques. A variety of solutions, such as distribution static compensators (DSTATCOMs), active power filters (APFs), and other custom power devices, have been widely investigated to mitigate issues like harmonic distortions, reactive power imbalances, and voltage fluctuations at the PCC14,15,16. Among these, voltage-source converter (VSC)-based DSTATCOMs have gained significant attention due to their ability to provide dynamic compensation under varying grid/PCC voltage conditions17,18,19,20,21. Table 1 presents an overview of PV grid-integrated systems, summarizing the key focus areas, and key findings of various studies.

Table 1 Overview of PV grid integration systems: key focus areas and findings.

The effectiveness of a DSTATCOM depends largely on the adopted control strategy, with direct and indirect current control methods being the two primary approaches18,28. In the direct current control strategy, both the load current and VSC current are sensed to determine the required compensating current. The controller actively forces the VSC to inject this compensating current so that the grid/source current remains sinusoidal and balanced. This method provides a fast dynamic response but has certain drawbacks, including variable switching frequency, increased power losses, and higher stress on power electronic switches9,30,31. Additionally, maintaining DC-link voltage stability under unbalanced and nonlinear load conditions can be challenging22,32,33. Conversely, the indirect current control strategy relies only on source/grid current sensing, eliminating the need for load and VSC current measurement. Instead of directly controlling the output current, the controller derives the required compensating reference indirectly by processing the grid current data. This approach improves DC-link voltage stability23,34, reduces THD, minimizes switching losses, and ensures effective compensation of power quality disturbances. Its computational efficiency and robust performance under dynamic load variations make it particularly well-suited for PV-DSTATCOM applications35,36.

Parallel to these developments, extensive research has been reported on grid-connected PV systems, with a strong focus on maximum power point tracking (MPPT), power injection, and grid synchronization40,41. While conventional PV systems using VSCs primarily focus on active power injection, recent advancements in PV-DSTATCOM technology enable VSCs to concurrently inject active power and enhance power quality through reactive power compensation and harmonic mitigation23,24. Unlike traditional systems, PV-DSTATCOMs can compensate for reactive power, mitigate harmonics, and stabilize PCC voltage, offering enhanced grid support beyond simple power generation25,37,38,42.

Several studies have explored PV-DSTATCOM operation under various grid conditions, demonstrating effective harmonic mitigation, reactive power compensation, and DC-link voltage regulation26. However, many existing studies are limited to steady-state analysis or simplified simulation models, with less emphasis on comprehensive real-time validation under practical conditions24,27,28.Various control strategies and MPPT methods for PV grid integration, along with their reported THD values and key findings, are summarized in Table 2.

Table 2 Control strategies for PV grid integration: summary of reported THD and key findings.

Research gaps, objectives and contributions

Despite notable advancements in PV-DSTATCOM technology, much of the existing research remains focused on steady-state analysis and offline simulations, providing limited insights into real-time performance under practical grid conditions. Unbalanced PCC voltages, fluctuating solar irradiance, and sudden nonlinear load variations etc. present challenges that require further exploration in existing studies. While various harmonic mitigation strategies have been explored, further investigation is needed to comprehensively assess their ability to ensure consistent compliance with IEEE-519 standards across diverse operating scenarios. Addressing these research gaps is crucial for enhancing the reliability and effectiveness of the PV-DSTATCOM systems in power distribution networks.

This paper formulates following research objectives to bridge these research gaps:

  • Investigating the dynamic transition between pure DSTATCOM mode (operating during night-time or when PV generation is unavailable) and PV-DSTATCOM mode, where the system simultaneously performs harmonic mitigation, reactive power compensation, and active power injection under varying solar irradiance conditions.

  • Evaluating the impact of grid/PCC voltage unbalance on the effectiveness of harmonic suppression, reactive power compensation, and neutral current regulation in a three-phase four-wire power distribution network.

  • Analyzing the real-time response of PV-DSTATCOM to sudden nonlinear load variations and its ability to maintain power quality under both balanced and unbalanced PCC voltage conditions.

  • Assessing the ability of the system to maintain a stable DC-link voltage and balanced source/grid currents under varying solar irradiance levels, sudden non-linear load variations, and varying grid/PCC voltage conditions.

  • Conducting a comprehensive assessment of the effectiveness of the system in achieving consistent compliance with IEEE-519 harmonic standards across different operating scenarios, including variations in solar irradiance, sudden non-linear load variations, and varying grid/PCC voltage conditions.

To address the identified research gaps, this paper makes the following contributions:

  • Development of a high-fidelity real-time simulation model of PV-DSTATCOM system using Typhoon HIL 604, enabling precise evaluation of system performance under practical grid conditions, including both balanced and unbalanced PCC voltages.

  • Implementation of an indirect current control strategy that requires only source/grid current sensing, eliminating the need for load and/or VSC current measurements. This improves control efficiency while ensuring precise neutral current regulation and stable DC-link voltage.

  • Comprehensive real-time validation of PV-DSTATCOM system operation, demonstrating its ability to seamlessly transition between pure DSTATCOM mode (for reactive power support and harmonic mitigation) and PV-DSTATCOM mode (for simultaneous active power injection and power quality enhancement) under dynamic solar irradiance conditions.

  • Evaluation of the harmonic suppression under IEEE-519 standards, by analyzing the system’s ability to mitigate harmonics and maintain power quality under fluctuating load and grid conditions in a three-phase four-wire power distribution network.

Organisation of the paper

This paper is structured as follows: Section “Introduction” provides the background, research gap, objectives, and contributions. Section “System configuration” outlines the system configuration, component sizing, and parameter selection for the proposed PV-DSTATCOM. Section “Indirect current control strategy” details the indirect current control strategy. Section “Real-time simulation, results and discussions” presents real-time simulations evaluating PV-DSTATCOM performance under varying solar irradiance and load fluctuations, considering both balanced and unbalanced PCC voltages. Finally, Section “Conclusion” summarizes the conclusions and suggests directions for future research.

System configuration

The proposed PV-DSTATCOM system, as illustrated in Fig. 1, consists of a PV array, a boost converter, a split-capacitor DC link, and a two-level VSC. The VSC enables efficient PV power injection while dynamically regulating the reactive power to enhance power quality at the PCC. The MPPT algorithm optimally adjusts the duty cycle of the boost converter to ensure maximum power extraction from the PV array 38. By actively regulating the DC-link voltage and suppressing harmonics, the VSC facilitates seamless power transfer and improves overall power quality.

Fig. 1
figure 1

Schematic of PV-DSTATCOM system utilizing an indirect current control scheme for power quality enhancement.

PV array, MPPT, and boost converter

The proposed 3.5 kW PV array operates under varying solar irradiance, requiring a MPPT algorithm for maximum energy extraction. Using perturb & observe (P&O) method, the MPPT algorithm dynamically adjusts the duty cycle of the boost converter, stepping up the PV voltage to match the DC-link voltage. This ensures that the PV array operates at its maximum power point (MPP) under changing solar irradiance conditions43.

The P&O-based MPPT controller perturbs the duty cycle, monitors the PV array power output, and adjusts it accordingly––if power increases, the duty cycle is incremented; if power decreases, it is decremented. This iterative process enables continuous tracking of the MPP, maximizing energy harvest. The boost converter efficiently steps up the PV voltage while maintaining optimal duty cycle control. To prevent instability, the MPPT algorithm is bounded by upper and lower duty cycle limits.

The real-time decision-making process of MPPT algorithm is illustrated in Fig. 2, demonstrating how the system adapts to fluctuating solar irradiance conditions, ensuring maximum power extraction. The detailed PV panel specifications and array sizing are provided in Table 3.

Fig. 2
figure 2

Flowchart of the P&O algorithm for MPPT.

Table 3 Sizing and selection of system components and parameters for the proposed PV-DSTATCOM system.

DC-link capacitor and PV power transfer

The split-capacitor DC link acts as an energy buffer between the PV system and the VSC while power transfer from the PV system to the PCC34. The DC-link voltage dynamics are governed by:

$$0.5C\frac{d}{dt}V_{DC} = \frac{{P_{pv} - P_{VSC} }}{{V_{DC} }}$$
(1)

where symbols are listed in Table 4.

Table 4 List of symbols and abbreviations.

VSC and voltage dynamics at the PCC

The 7 kVA VSC serves as a dual-interface, enabling PV power injection and DSTATCOM operations for harmonic mitigation and reactive power compensation. It regulates the DC-link voltage \({(\text{V}}_{\text{DC}})\) at its reference value by dynamically adjusting the active power transferred by the VSC \({(\text{P}}_{\text{VSC}})\) to the PCC, ensuring it matches the power extracted from the PV array (\({\text{P}}_{\text{pv}})\) and maintaining power balance. For reliable operation under worst-case conditions, the reference DC-link voltage \({(V}_{DC}^{*}\)) must accommodate the highest peak voltage at the lowest modulation index. Considering a 415 V RMS (line-to-line) grid/PCC voltage and a typical sinusoidal PWM modulation index range of 0.85 to 1, the minimum required \({V}_{DC}^{*}\) is calculated to be 797.19 V. Therefore, a value of \({V}_{DC}^{*}=900\) V is selected in this paper to ensure proper operation.

Additionally, the VSC provides up to 6 kVAr of reactive power support to enhance power quality at the PCC. Operating under an indirect current control scheme23,44, the VSC effectively mitigates harmonics, compensates reactive power, and improves the power factor, ensuring stable grid interaction.The voltage dynamics at the PCC are governed by:

$$e_{dg} - \nu_{dvsc} = L_{g} \left( {\frac{d}{dt}i_{dg} } \right) + R_{g} i_{dg} - \omega_{g} L_{g} i_{qg}$$
(2)
$$e_{qg} - \nu_{qvsc} = L_{g} \left( {\frac{d}{dt}i_{qg} } \right) + R_{g} I_{qg} + \omega_{g} L_{g} i_{dg}$$
(3)

where symbols are listed in Table 4.

Indirect current control strategy

The indirect current control strategy offers an efficient and robust method for regulating the VSC in a PV-DSTATCOM system (see Fig. 1), ensuring precise PV power injection and enhanced power quality at the PCC24. Unlike direct current control, which derives reference currents from load currents and directly regulates VSC currents, the indirect approach calculates reference currents based on source/grid currents21,25. This method is termed “indirect” because it does not require direct measurement of VSC or load currents; rather, it controls the VSC using source/grid current behavior. By eliminating direct current sensing, the strategy simplifies system implementation, reduces hardware complexity, and enhances reliability under varying PV generation and nonlinear load conditions. Its primary goals are to regulate the DC-link voltage for efficient PV power transfer, mitigate harmonics, and compensate for reactive power to improve overall grid power quality23.

The control system consists of two key loops––an outer voltage control loop with a proportional-integral (PI) controller and an inner current control loop based on hysteresis. The outer loop stabilizes the DC-link voltage by balancing power exchange between the PV system and the grid. The error between the reference DC-link voltage \(\left( {V_{DC}^{*} } \right)\) and the actual DC-link voltage \(\left( {V_{DC} } \right)\) is processed by the PI controller to generate the reference d-axis source/grid current \(\left( {i_{dg}^{*} } \right)\)44 as follows:

$$i_{dg}^{*} = \left( {K_{pv} + \frac{{K_{iv} }}{s}} \right) \cdot \left( {V_{DC}^{*} - V_{DC} } \right)$$
(4)

where symbols are listed in Table 4.

The calculations for PI controller gains (\({K}_{pv}\) and \({K}_{iv}\)) are systematically presented in Table 3. These gains have been derived using the symmetric optimum approach for PI tuning, a well-established method ensuring a balance between dynamic response and system stability. The detailed explanation of this approach is provided in44,45.

By adjusting \({i}_{dg}^{*}\), the VSC ensures stable DC-link voltage despite fluctuations in solar irradiance and load demand, ensuring continuous PV power transfer to the PCC. To achieve unity power factor (UPF) at the PCC, the reference q-axis source/grid current (\({i}_{qg}^{*}\)) is set to zero, ensuring the VSC manages all reactive power compensation. The inner current control loop processes the error between the reference and actual three-phase grid currents using a hysteresis current controller, which generates the switching signals for the VSC. This ensures sinusoidal grid currents, effective harmonic mitigation, and reactive power compensation. By injecting compensating currents, the VSC preserves grid voltage quality, reduces THD, and prevents nonlinear loads from degrading system performance.

Real-time simulation, results and discussions

To comprehensively evaluate the performance of the proposed PV-DSTATCOM system, real-time simulations are conducted using the Typhoon HIL 604 simulator, as shown in Fig. 3. The system parameters, detailed in Table 3 are carefully selected to represent practical operational conditions.

Fig. 3
figure 3

Typhoon HIL 604 simulator used for real-time simulation of the PV-DSTATCOM system.

A key aspect of the performance assessment is the evaluation of the MPPT capability of PV array under varying irradiance conditions. Figure 4 illustrates the dynamic response of the PV array to solar irradiance levels of 0 W/m2, 600 W/m2, 1000 W/m2, and 500 W/m2, showcasing the effectiveness of the MPPT algorithm in maximizing power extraction. At nonzero irradiance levels, the PV array voltage remains stable, while the current and power output adjust accordingly, with recorded power outputs of 2080 W, 3440 W, and 1750 W, respectively. Under zero irradiance (0 W/m2), the PV array voltage decreases significantly, leading to no power generation. The MPPT algorithm continually tracks the optimal operating point, ensuring maximum power extraction despite variations in irradiance. Furthermore, the simulation framework replicates a three-phase, four-wire distribution network, where the PV-DSTATCOM system employs a VSC with an indirect current control strategy. The VSC operates in two distinct modes to manage both active power injection and reactive power compensation:

  • Pure DSTATCOM Mode (under no PV generation): The VSC prioritizes reactive power compensation and harmonic mitigation without injecting active power into the grid.

  • PV-DSTATCOM Mode (under PV generation): The VSC injects active power into the grid while concurrently providing reactive power support and harmonic filtering.

Fig. 4
figure 4

Dynamic response of the PV array for MPPT under varying solar irradiance levels. CH1: PV array voltage (100 V/div), CH2: PV array current (4A/div), CH3: PV array power (800W/div).

To comprehensively assess system performance, three critical test cases are analyzed under both balanced and unbalanced PCC voltage conditions. These test cases evaluate the response of PV-DSTATCOM to variations in solar irradiance and sudden load changes, offering key insights into its adaptability under dynamic grid conditions. Additionally, each scenario examines the system’s effectiveness in enhancing power quality and ensuring compliance with IEEE standards (see Table 5).

Table 5 Performance summary of PV-DSTATCOM under varying irradiance and PCC voltage condition.

Case 1: performance under varying solar irradiance with fixed nonlinear load

This case evaluates the operational performance of the PV-DSTATCOM system as the solar irradiance varies from 0 W/m2 (night-time, no solar power generation) to 600 W/m2 (moderate solar generation), while maintaining a fixed nonlinear load at the PCC. The objective is to assess the system’s ability to seamlessly transition between pure DSTATCOM mode (at zero irradiance) and PV-DSTATCOM mode (under PV generation), ensuring effective harmonic suppression, reactive power compensation, and DC link voltage regulation while injecting active power into the grid. The real-time waveforms of three-phase PCC voltages and load currents for both balanced and unbalanced PCC voltage conditions are presented in Fig. 5, demonstrating the system’s performance under these scenarios. The nonlinear load introduces harmonic distortions, with THD of load current measured at 13.51% under balanced PCC voltage, as depicted in Fig. 6a. Under unbalanced PCC voltage, the load current THD is slightly higher at 13.63%, as shown in Fig. 6b, due to asymmetry in supply voltages affecting harmonic propagation.

Fig. 5
figure 5

Real-time waveforms of three-phase PCC voltages and load currents under a fixed non-linear load—(a) balanced PCC voltage waveforms (CH1 to CH3: 200 V/div), (b) unbalanced PCC voltage waveforms (CH1 to CH3: 200 V/div), (c) load current waveforms under balanced PCC voltage conditions (CH1 to CH3: 1A/div), and (d) load current waveforms under unbalanced PCC voltage conditions (CH1 to CH3: 1 A/div).

Fig. 6
figure 6

Harmonic spectra of load current—(a) under balanced PCC voltage condition, and (b) under unbalanced PCC voltage condition.

Balanced PCC voltage condition

Under balanced PCC voltage condition, a steady voltage profile can be seen at the PCC despite the nonlinear nature of the load. The real-time system response under different irradiance levels (0–600 W/m2) is illustrated in Fig. 7a, c, and e for phases ‘a,’ ‘b,’ and ‘c’, respectively. These waveforms capture the transition from DSTATCOM operation (at 0 W/m2) to PV power injection mode (at 600 W/m2) while sustaining power quality. The source/grid current waveforms in Fig. 7a, c, and e confirm the absence of active power injection at 0 W/m2, where the VSC functions solely as a DSTATCOM, compensating for reactive power demand and mitigating harmonics. At this stage, the source/grid current is maintaining unity power factor at the PCC.

Fig. 7
figure 7

Real-time performance waveforms of the proposed PV-DSTATCOM under a fixed non-linear load with varying irradiance levels (0–600 W/m2)—(a), (c), (e) performance waveforms under balanced PCC voltage condition for Phase ‘a,’ Phase ‘b,’ and Phase ‘c,’ respectively; (b), (d), (f) performance waveforms under unbalanced PCC voltage condition for Phase ‘a,’ Phase ‘b,’ and Phase ‘c,’ respectively.CH1: Phase ‘a’ PCC voltage (400 V/div); CH2: source/grid current waveform of respective phase (5A/div); CH3: VSC current waveform of respective phase (5A/div); CH4: load current waveform of respective phase (5A/div).

As the irradiance increases to 600 W/m2, the VSC transitions into a dual-mode operation, simultaneously injecting active power into the grid while continuing to provide reactive power compensation and harmonic mitigation. The phase shift in the source/grid currents observed in Fig. 7 signifies active power transfer. Thus, the VSC effectively operates as a multifunctional device, addressing both power quality improvement and PV power injection into the PCC. The neutral current dynamics under balanced PCC voltage conditions, depicted in Fig. 8a, reveal that the source/grid neutral current remains near zero, which signifies effective load balancing and harmonic cancellation. However, nonzero neutral currents are observed in the VSC and load side, resulting from the inherent imbalance in nonlinear load current components. The DC-link voltage regulation is illustrated in Fig. 9a, where the DC-link voltage is maintained at approximately 900 V throughout the irradiance variations.

Fig. 8
figure 8

Real-time waveforms of neutral currents under varying irradiance levels (0–600 W/m2) with a fixed non-linear load—(a) neutral current waveforms under balanced PCC voltage condition; (b) neutral current waveforms under unbalanced PCC voltage condition. CH1: Phase ‘a’ PCC voltage (400 V/div); CH2: source/grid neutral current waveform (10A/div); CH3: VSC neutral current waveform (1A/div); CH4: load neutral current waveform (1A/div).

Fig. 9
figure 9

Real-time waveforms of three-phase source/grid currents and DC-link voltage under varying irradiance levels (0–600 W/m2) with a fixed non-linear load—(a) waveforms under balanced PCC voltage condition, and (b) waveforms under unbalanced PCC voltage condition. CH1 to CH3: source/grid current waveforms (5 A/div); CH4: DC-link voltage (200 V/div).

The grid current THD, which is a key indicator of power quality, remains within IEEE-519 harmonic standards at 600 W/m2, recorded at 4.08%, as shown in Fig. 10c. However, at 0 W/m2, where no active power injection occurs, the grid current THD slightly exceeds the IEEE-519 permissible limit, reaching 5.58%, as shown in Fig. 10a.

Fig. 10
figure 10

Harmonic spectra of source/grid current under a fixed non-linear load—(a) under balanced PCC voltage condition with PV power injection at an irradiance level of 0 W/m2, (b) under unbalanced PCC voltage condition with PV power injection at an irradiance level of 0 W/m2, (c) under balanced PCC voltage condition with PV power injection at an irradiance level of 600 W/m2, and (d) under unbalanced PCC voltage condition with PV power injection at an irradiance level of 600 W/m2.

Unbalanced PCC voltage condition

Under unbalanced PCC voltage conditions, voltage asymmetry introduces additional distortions that can impact power quality. The real-time system response under different irradiance levels (0–600 W/m2) is illustrated in Fig. 7b, d, and f for phases ‘a,’ ‘b,’ and ‘c’, respectively. These waveforms capture the transition from pure DSTATCOM operation (at 0 W/m2) to PV power injection mode (at 600 W/m2), while maintaining power quality and reactive power compensation. Despite the presence of PCC voltage unbalance, the real-time waveforms in Fig. 7b, d, and f confirm that the source/grid currents remain nearly balanced, demonstrating the effectiveness of the PV-DSTATCOM in preventing excessive current distortions. The VSC continues to provide harmonic mitigation and reactive power support, ensuring that source/grid current waveforms do not exhibit severe phase imbalances or waveform asymmetries.

The neutral current behavior, as depicted in Fig. 8b, highlights the ability of the VSC to regulate the source/grid neutral current, ensuring it remains near zero despite the presence of unbalanced PCC voltage and nonlinear load. This indicates that the VSC effectively counteracts unbalanced load currents, maintaining load balancing and harmonic cancellation, even under non-ideal grid conditions. The DC-link voltage, as shown in Fig. 9b, remains stable at 900 V, reinforcing the robustness of the indirect control strategy.

At 0 W/m2, when no active power injection occurs, the source/grid current THD slightly exceeds the IEEE-519 permissible limit, reaching 5.93%, as shown in Fig. 10b. This increase in distortion is attributed to the absence of active power support, which limits the ability of the VSC to improve the harmonic profile of the source/grid current. However, as the irradiance increases to 600 W/m2, the PV-DSTATCOM injects active power, enhancing the harmonic suppression capability. Consequently, the source/grid current THD improves significantly and remains within IEEE-519 standards, recorded at 3.95%, as depicted in Fig. 10d.

This analysis confirms that even under unbalanced PCC voltage conditions, the PV-DSTATCOM effectively maintains power quality, regulates neutral current, and stabilizes the DC-link voltage, ensuring compliance with IEEE harmonic limits while mitigating the impact of voltage asymmetry on the PCC.

Case 2: performance under high solar irradiance condition with fixed non-linear load

This case evaluates the performance of the PV-DSTATCOM under high solar irradiance condition, ranging from 600 W/m2 to 1000 W/m2. This scenario is critical in assessing the system’s capability to handle increased active power injection into the grid while maintaining power quality, and harmonic mitigation. The system’s response is examined under both balanced and unbalanced PCC voltage condition to ensure comprehensive performance validation.

Balanced PCC voltage condition

As depicted in Fig. 11a, c, and e, the load current remains constant due to its fixed nature, while increasing solar irradiance proportionally raises the VSC currents, consequently increasing the source/grid current. The neutral current regulation, illustrated in Fig. 12a, confirms that despite load imbalance, the source/grid-side neutral current remains near zero, demonstrating the system’s strong load-balancing capability. This indicates that the VSC efficiently compensates for load asymmetry and minimizes neutral current disturbances at the PCC. Furthermore, Fig. 13a shows that the DC-link voltage remains stable at 900 V and source/grid currents remain balanced, with the THD of the grid current maintained at approximately 4.96%, well within IEEE-519 standards (see Fig. 14a). This result highlights the ability of the PV-DSTATCOM to ensure high power quality preventing excessive harmonic distortion while injecting maximum available PV power into the grid.

Fig. 11
figure 11

Real-time performance waveforms of the proposed PV-DSTATCOM under a fixed non-linear load with varying irradiance levels (600–1000 W/m2)—(a), (c), (e) performance waveforms under balanced PCC voltage condition for Phase ‘a,’ Phase ‘b,’ and Phase ‘c,’ respectively; (b), (d), (f) performance waveforms under unbalanced PCC voltage condition for Phase ‘a,’ Phase ‘b,’ and Phase ‘c,’ respectively. CH1: Phase ‘a’ PCC voltage (400 V/div); CH2: source/grid current waveform of respective phase (5A/div); CH3: VSC current waveform of respective phase (5A/div); CH4: load current waveform of respective phase (5A/div).

Fig. 12
figure 12

Real-time waveforms of neutral currents under varying irradiance levels (600–1000 W/m2) with a fixed non-linear load—(a) neutral current waveforms under balanced PCC voltage condition; (b) neutral current waveforms under unbalanced PCC voltage condition. CH1: Phase ‘a’ PCC voltage (400 V/div); CH2: source/grid neutral current waveform (10A/div); CH3: VSC neutral current waveform (1A/div); CH4: load neutral current waveform (1A/div).

Fig. 13
figure 13

Real-time waveforms of three-phase source/grid currents and DC-link voltage under varying irradiance levels (600–1000 W/m2) with a fixed non-linear load—(a) waveforms under balanced PCC voltage condition, and (b) waveforms under unbalanced PCC voltage condition. CH1 to CH3: source/grid current waveforms (5 A/div); CH4: DC-link voltage (200 V/div).

Fig. 14
figure 14

Harmonic spectra of source/grid current under a fixed non-linear load—(a) under balanced PCC voltage condition with PV power injection at an irradiance level of 1000 W/m2, (b) under unbalanced PCC voltage condition with PV power injection at an irradiance level of 1000 W/m2.

Unbalanced PCC voltage condition

When operating under unbalanced PCC voltage condition, the system exhibits similar trends to those observed in the balanced case, as shown in Fig. 11b, d, and f. The VSC and source/grid currents continue to increase in response to higher solar irradiance, confirming the system’s ability to support active power transfer despite voltage unbalance. The neutral current behaviour, depicted in Fig. 12b, remains consistent with the balanced case, indicating that the grid-side neutral current is effectively suppressed, ensuring that load imbalances do not propagate to the grid.

Furthermore, Fig. 13b shows that the DC-link voltage remains stable at 900 V and source/grid currents remain balanced despite unbalanced PCC voltage. However, due to the voltage asymmetry at the PCC, the grid current THD slightly exceeds the IEEE-519 threshold, reaching 5.17%, as illustrated in Fig. 14b. This increase in distortion is attributed to the combined effects of nonlinear loads and PCC voltage unbalance. Despite this, the system maintains stable DC-link voltage and effective reactive power compensation, ensuring reliable operation under real-world grid condition.

Case 3: impact of sudden non-linear load variations at fixed solar irradiance

This case investigates the transient response of PV-DSTATCOM to a sudden increase in nonlinear load while maintaining a fixed solar irradiance of 700 W/m2. This test is crucial for assessing transient stability and power quality management under dynamic load condition. The performance of system is analyzed under both balanced and unbalanced PCC voltage condition.

Balanced PCC voltage condition

As depicted in Fig. 15a, the real-time waveforms of three-phase load currents demonstrate a sudden step increase in nonlinear load under balanced PCC voltage condition. This abrupt change leads to a shift in harmonic distortion levels, with the load current THD reducing from 13.51% to 9.40%, as shown in Fig. 16a and c. The THD reduction occurs because the increase in load results in a higher fundamental current component, thereby reducing the relative impact of harmonic distortions. Despite the sudden load variation, the VSC maintains stable compensation, effectively mitigating harmonics and regulating reactive power. This is validated by the source/grid phase currents illustrated in Fig. 17a, c, and e. Since PV generation remains constant, the source/grid current magnitude decreases due to the increased local load demand, as the system prioritizes supplying the local load before exporting excess power to the source/grid.

Fig. 15
figure 15

Real-time waveforms of three-phase load currents under a sudden load change—(a) load current waveforms under balanced PCC voltage condition, and (b) load current waveforms under unbalanced PCC voltage condition.CH1 to CH3: load current waveforms (1 A/div).

Fig. 16
figure 16

Harmonic spectra of load current under a sudden load change—(a) before the load change under balanced PCC voltage condition, (b) before the load change under unbalanced PCC voltage condition, (c) after the load change under balanced PCC voltage condition, and (d) after the load change under unbalanced PCC voltage condition.

Fig. 17
figure 17

Real-time performance waveforms of the proposed PV-DSTATCOM under a sudden load change at an irradiance level of 700 W/m2—(a), (c), (e) performance waveforms under balanced PCC voltage condition for Phase ‘a,’ Phase ‘b,’ and Phase ‘c,’ respectively; (b), (d), (f) performance waveforms under unbalanced PCC voltage condition for Phase ‘a,’ Phase ‘b,’ and Phase ‘c,’ respectively. CH1: Phase ‘a’ PCC voltage (400 V/div); CH2: source/grid current waveform of respective phase (5A/div); CH3: VSC current waveform of respective phase (10A/div); CH4: load current waveform of respective phase (2.5A/div).

Figure 18a illustrates that the VSC effectively suppresses the source/grid-side neutral current, maintaining it close to zero despite nonlinear load imbalance and sudden load variations. Additionally, as shown in Fig. 19a, the DC-link voltage remains stable at 900 V, demonstrating the robustness of the indirect current control strategy for the PV-DSTATCOM, even under sudden load change. Furthermore, the source/grid currents remain balanced, indicating the system’s capability to mitigate load-induced distortions. The harmonic spectra of the source/grid current before and after the load change are presented in Fig. 20a and c, respectively. It is evident that the source/grid current THD remains within IEEE-519 permissible limits, confirming the effectiveness of PV-DSTATCOM in maintaining high power quality under rapid load disturbances.

Fig. 18
figure 18

Real-time waveforms of neutral currents under a sudden load change at an irradiance level of 700 W/m2—(a) neutral current waveforms under balanced PCC voltage condition; (b) neutral current waveforms under unbalanced PCC voltage condition. CH1: Phase ‘a’ PCC voltage (400 V/div); CH2: source/grid neutral current waveform (10A/div); CH3: VSC neutral current waveform (1A/div); CH4: load neutral current waveform (1A/div).

Fig. 19
figure 19

Real-time waveforms of three-phase source/grid currents and DC-link voltage under a sudden load change at an irradiance level of 700 W/m2—(a) waveforms under balanced PCC voltage condition, and (b) waveforms under unbalanced PCC voltage condition. CH1 to CH3: source/grid current waveforms (2.5 A/div); CH4: DC-link voltage (200 V/div).

Fig. 20
figure 20

Harmonic spectra of source/grid current under a sudden load change at an irradiance level of 700 W/m2—(a) before the load change under balanced PCC voltage condition with PV power injection at an irradiance level of 700 W/m2, (b) before the load change under unbalanced PCC voltage condition with PV power injection at an irradiance level of 700 W/m2, (c) after the load change under balanced PCC voltage condition with PV power injection at an irradiance level of 700 W/m2, and (d) after the load change under unbalanced PCC voltage condition with PV power injection at an irradiance level of 700 W/m2.

Unbalanced PCC voltage condition

As depicted in Fig. 15b, the real-time waveforms of three-phase load currents exhibit a sudden step increase in nonlinear load under unbalanced PCC voltage condition. This transition leads to a reduction in load current THD from 13.63% to 9.36%, as illustrated in Fig. 16b and d, which follows the principle of increased fundamental current dominance. Despite the PCC voltage unbalance, the VSC effectively maintains compensation, ensuring stable source/grid phase currents, as shown in Fig. 17b, d, and f. Since the solar irradiance remains constant at 700 W/m2, the increased local load demand results in a reduction in source/grid current magnitude. This behavior confirms the system’s ability to dynamically adjust power allocation while maintaining grid support and power quality.

The neutral current dynamics, illustrated in Fig. 18b, indicate that the VSC efficiently suppresses the source/grid neutral current, maintaining it near zero despite the combined effects of nonlinear load imbalance and PCC voltage asymmetry. Additionally, the DC-link voltage remains stable at 900 V, as depicted in Fig. 19b, validating the robustness of the indirect current control strategy under unbalanced PCC voltage condition. Furthermore, the source/grid currents remain nearly balanced, highlighting the effectiveness of the VSC in mitigating the impacts of load unbalance, load disturbances, and PCC voltage asymmetry. The harmonic spectra of the source/grid current before and after the load change under unbalanced PCC voltage condition are presented in Fig. 20b and d, respectively. While the source/grid current THD remains within the acceptable IEEE-519 limits, it is slightly higher compared to the balanced PCC voltage scenario. This increase is primarily attributed to voltage asymmetry at the PCC, which induces additional harmonic distortions in the system.

Conclusion

This paper conducted a real-time evaluation of a PV-DSTATCOM system, demonstrating its effectiveness in MPPT, harmonic mitigation, reactive power compensation, and active power injection using the Typhoon HIL 604 simulator. The indirect current control strategy ensured precise DC-link voltage regulation at 900 V (± 5%) and accurate reference current generation, enhancing system stability and reliability. The MPPT algorithm optimized power extraction, maintaining stable PV operation under varying irradiance levels. The PV array generated 2080 W, 3440 W, and 1750 W at 600 W/m2, 1000 W/m2, and 500 W/m2, respectively, with power dropping to zero at 0 W/m2. Continuous MPP tracking improved energy conversion efficiency, ensuring reliable PV-grid integration.

The PV-DSTATCOM significantly enhanced power quality, reducing THD to 3.03%–5.58% under balanced PCC voltage and 3.95%–5.93% under unbalanced conditions, adhering to IEEE-519 standards. Additionally, the proposed system maintained near-unity power factor operation at the PCC and effectively minimized source/grid neutral current, contributing to enhanced grid stability and reduced power losses. Seamless mode transitions were achieved, with DSTATCOM mode mitigating harmonics and compensating reactive power during night-time, while PV-DSTATCOM mode injected active power while maintaining power quality under high solar availability. Overall, the PV-DSTATCOM system demonstrated a robust and efficient solution for grid-integrated PV applications, ensuring stable and reliable power quality improvement.

Future research could explore adaptive control strategies to further enhance harmonic suppression, reactive power compensation, and system resilience under dynamic grid disturbances, contributing to more stable and efficient renewable energy integration.