1. Introduction
In recent years, the composition of the energy matrix has experienced significant changes, mainly due to growing environmental concerns. The increasing integration of renewable resources into the power grid through DC-to-AC converters has introduced new challenges in the operation and control of electrical systems. The replacement of conventional synchronous generators by renewable energy sources has contributed to the reduction of the inertia of the system, making it more vulnerable to frequency fluctuations and resulting in the degradation of the dynamic response of the electrical system [
1].
Because inertia restricts frequency oscillation after disturbances in the system, control measures become essential to ensure adequate frequency responses [
2]. Several efforts were undertaken in proposing control strategies for wind and photovoltaic plants, aiming to improve the stability of the system. Synthetic or virtual inertia adds a frequency control contribution from sources such as wind farms and solar farms [
3,
4]. Energy storage represents another approach to intensifying frequency control in systems with low inertia [
5].
Despite the steady increase in Distributed Generation (DG) connection by Renewable Energy Sources (RES), conventional synchronous generators will continue to play a significant role in power generation, especially in countries with vast water resources. The seasonal variability of renewable energy resources will impact the inertia of the electricity system as its contribution increases. This can result in the reduction or disconnection of conventional synchronous generators when RES generation is high, or in increasing the power of conventional generators and their reconnection when RES generation decreases. In the implementation of RES, it is possible to perform additional controls on the power converters to simulate a synthetic inertia, thus emulating the frequency response of the synchronous generators [
6]. In addition, to improve the frequency response of the system, several approaches have been proposed, including direct estimation of inertia, adjustment of the parameters of conventional speed controllers, and the addition of supplementary controls to conventional speed control systems.
Microgrids are becoming a growing focus of research due to the reduction in costs associated with small-scale generation and batteries [
7]. These microgrids can operate in two distinct modes: connected to the power grid or isolated. Similarly, voltage source converters (VSC) in microgrids can be categorized into two types: those that grid forming (voltage-controlled mode in isolated microgrids) and grid following (current-controlled mode in grid-connected microgrids) [
8]. In the scenario where distributed generation (DG) units operate connected to the grid, they are usually controlled according to the frequency established by the power grid, and one of the most widely adopted control strategies for this configuration is discussed in [
9]. However, there are situations in which voltage and frequency variations occur even when the power grid is connected, such as in weak grid (low level of short circuit) [
10].
On the other hand, in island mode, the electronic power converter plays the role of interface between the loads and the sources of distributed generation, functioning as voltage sources. They are responsible for managing the power distribution between the DGs, according to the availability of active power from the primary source, while regulating and stabilizing the voltage and frequency [
11]. Regarding the modes of operation of the converters in microgrids, there is an additional functionality called “grid conditioning mode”. This mode can be applied both in the formation and in the monitoring of the grid. In this context, the electronic power converter also plays a crucial role in improving the power quality in various situations, such as:
Reduction of harmonic content generated by nonlinear loads [
12,
13].
Reactive power compensation for voltage regulation [
11,
14].
Uninterruptible power supply to increase supply reliability [
15].
Correction of voltage sags and swells in critical loads [
13,
16].
Power management through a battery system for peak demand reduction, load leveling, or peak consumption management [
17].
In the context of island mode, control strategies are usually based on the “droop” principle [
8]. In addition, there are integrated control approaches that involve hierarchical structures, typically comprising three levels of control: primary, secondary, and tertiary [
18]. Primary control plays a key role in stabilizing voltage and frequency by providing a plug-and-play capability for distributed generation units (DGs) [
11]. The secondary control, in turn, acts as a decentralized controller, correcting deviations in voltage and frequency to improve the power quality [
18]. Tertiary control encompasses considerations about the optimal flow of energy throughout the microgrid or the interaction with the main grid.
Some research proposes the implementation of a “virtual synchronous machine” by means of electronic power converters, which allows the creation of a virtual inertia and the regulation of voltage and frequency. However, it’s important to note that this approach tends to have slower dynamics compared to traditional droop control [
18]. A multifunctional inverter can perform various functions under certain conditions, in order to maintain the stability and effectiveness of the system. However, some researchers have focused exclusively on some additional functions, such as: Refs. [
19,
20] propose that the inverter perform the only extra function of voltage regulation; similarly Refs. [
21,
22] show the Volt/VAr capacity of the electronic converter as an intelligent/extra function; Ref. [
23] proposed as a smooth transition from grid-connected mode to islanded mode on a microgrid as a multifunctional inverter; Ref. [
24] showed reactive power compensation functionality to adjust the use of inverter nomenclature. For the present work, a multifunctional inverter is considered one that is capable of imposing functions according to the needs of the grid.
To date, there are few examples in the literature that explore the impacts of multifunctional inverters on the direct current (DC) side, encompassing renewable energy sources (RES) and battery energy storage systems (BESS), in order to effectively incorporate additional functionalities on the alternating current (AC) side [
25]. These functionalities include harmonic compensation, steady-state voltage regulation, power factor correction, frequency stability support, and power dispatch optimization to keep the multifunctional inverter operating close to 1 pu. It is important to note that in most related research, the authors present analyses under stable state conditions (balanced and without harmonic ditortion in grid) and using simplifications of the DC side by considering it as a voltage source, as exemplified in the studies [
7,
26].
This paper focuses on the operation of a converter in both mains-connected and island mode in a microgrid. It explores the operation of a multifunctional inverter with internal energy storage through batteries that meets the specific demands of the power grid, covering:
The islanding scenarios;
The management of harmonics caused by the insertion of nonlinear loads;
The provision of ancillary services of reactive support, frequency, and power dispatch for maintenance of the operating reserve;
The execution of the energy management mode in hybrid systems (photovoltaic generation with batteries).
In this sense, the relevance of this research applies to in the computational implementation of a multifunctional converter that has the capacity to assist the grid in various contingency situations, with the aim of maintaining its operability, differently other proposals mentioned above which only solve a few specific disturbances. Also noteworthy is the good dynamic performance of the controls implemented in the DC-AC converter, which manage to improve power quality indicators without compromising photovoltaic generation.
The main contributions of this paper are summarized below:
The development of the two-stage multifunctional inverter model with internal energy storage by means of a battery bank;
Battery charge and discharge control strategy to contribute to voltage and frequency stability in conjunction with droop control;
Modified active filter proposal that allows filtering harmonic orders of current;
Ability to operate in islanded mode with a synchronous machine playing the role of grid forming in the IEEE 13-bus system.
Therefore, the aim of this research is to show that the multifunctional inverter is capable of operating in various grid contingencies and at the same time helping to mitigate the aforementioned power quality problems, together with the battery bank as an auxiliary source. In this context, the insertion of the storage system on the DC bus of the photovoltaic inverter aims to provide power dispatchability of the generating unit, since photovoltaic generation alone does not allow this control.
In addition, charge and discharge control enables frequency regulation in islanding situations and/or when there is an imbalance in the power (input or output of a significant load) of the PCC. Still on the subject of the proposed charge and discharge control, it makes it possible to manage the flow of battery charging power without reaching the phenomenon of deep discharge (a critical level of charge that can cause severe damage to battery life).
The multifunctional inverter in conjunction with the battery bank allows the PCC’s load curve to be regulated, thus relieving the power supplied by the utility and contributing to the voltage levels along the sections of the electricity system, given that the load demand will be supplied locally.
With regard to harmonic compensation, the photovoltaic inverter acts as an active filter, since the harmonic current compensation function was implemented by inserting resonant plots in parallel with the current loop PI controllers. To implement these plots, it was necessary to determine the gain of each resonant controller. This was done in order to achieve the desired frequency response and obtain a good response in the time domain (without large overshoots and fast dynamics). Finally, a reactive power management control was implemented in order to regulate the voltage and correct the power factor of the local load.
The structure of this paper follows the following organization:
Section 2 presents a detailed description of the system under analysis, while
Section 3 explores the methodology employed for the modeling and control of the system.
Section 4 addresses the proposal for the operation of the inverter performing the proposed ancillary services, while the results of the simulations are presented in
Section 5. Finally,
Section 6 presents the discussion of the results,
Section 7 presents the conclusion of the article, as well as proposals for future work and
Appendix A presents the values of the parameters used in the algorithms.
3. System Modeling and Control
This section will address the methodologies adopted for the modeling and control of the systems involved in the operation of the renewable generating unit. In this sense, the modeling and control of the system is separated into three major sub steps, which are: modeling and control of the Boost converter, the Buck-Boost converter, and the voltage inverter for connection to the grid. Each sub-step will be covered separately below.
3.1. Modeling and Control of the DC/DC Boost Stage
In the first analysis, for the correct modeling of the system, as well as its control must be verified the topology of the converter and the control systems employed. Thus,
Figure 4 shows the topology of the Boost converters in conjunction with their control systems.
It turns out that the control of the Boost converter is carried out by two cascading loops. The innermost loop is responsible for controlling the current in the converter inductor, while the outermost loop is responsible for controlling the voltage on the input capacitor [
28]. Therefore, to perform the voltage reference for the control system, an MPPT P&O algorithm was used, widely used in the technical literature [
29]. Therefore, the system in
Figure 4 can be represented by a block diagram, shown in
Figure 5.
The transfer functions G
idb(s) and G
vib(s) which relate, respectively, the current in the inductor with the work cycle of the S switch and the voltage in the input capacitor with the current in the inductor are obtained by nodal and mesh analysis, applying Kirchhoff’s Law of currents and voltages. Thus, for the transfer function G
idb(s), applying Kirchhoff’s law of currents to the capacitor C
b yields:
is the current of the photovoltaic array;
is the input capacitor current of the boost converter;
is the inductor current of the boost converter;
is the maximum power output voltage of the photovoltaic array;
is the voltage of the boost converter’s input capacitor.
is the capacitance of the boost converter’s input capacitor.
In (1) the terms
e
represent the equivalent of Thevenin for the photovoltaic array. This is a simplification adopted in modeling which would assume an equivalent of the circuit of the photovoltaic array at the point of maximum power. Already the terms highlighted with a slash over the variable (
), represent mean values of the variables. Subsequently, applying small signs (
) in the terms in the variables of (1) and later applying the Laplace transform, considering only the terms of small signs, the transfer function of interest is obtained.
Therefore, by applying Kirchhoff’s Law of Voltages to the loop containing the input capacitor, one can determine the transfer function G
idb(s). Thus:
is the voltage on the IGBT switch;
is the voltage of the boost converter’s inductor resistor;
is the DC bus capacitor voltage;
is the resistance of the boost converter inductor;
is the inductance of the boost converter inductor;
is duty cycle.
Applying small signs (3) and then applying the Laplace transform and disregarding the middle terms, the transfer of interest function is obtained.
From the transfer functions of the plants, PI controllers will be applied. The methodology adopted for the calculation of the gains will be the allocation of poles [
30], so in relation to the innermost mesh of current one can write:
Given that the controller’s zero must be equal to the plant pole, we obtain:
is the integral gain of the boost converter’s current controller;
is the proportional gain of the boost converter’s current controller;
Simplifying (5) through (6) it is possible to obtain the following equation:
Equation (7) represents a first-order system, whose cutoff frequency
is given by the term:
. Thus, by defining a cutoff frequency it is possible to calculate the gains of the controllers as:
is the cut-off frequency of the boost converter’s current loop;
Carrying out a similar analysis for the voltage loop and considering the current loop as unitary gain, we have:
is the proportional gain of the boost converter’s voltage controller;
is the integral gain of the boost converter’s voltage controller;
is the cut-off frequency of the boost converter’s voltage loop.
It is worth highlighting that the consideration that the current loop is taken as a unitary gain arises from the separation of at least a decade from the cutoff frequency of the internal and external loops. Therefore, considering (8) to (11) and the converter parameters shown in
Table 3, it is possible to obtain the frequency response of the Boost converter control system, shown in
Figure 6.
As can be seen in the frequency response of the system, the cutoff frequency of the current loop has a value ten times lower than the switching frequency [
30], this aspect is necessary to consider PWM modulation in modeling as a gain unitary. In turn, the cut-off frequency of the voltage loop has a value ten times lower than the cut-off frequency of the current loop, thus ensuring an adequate distance of one decade from the poles of the control loops [
30]. In addition to the frequency response for the correct validation of the gains found, it is necessary to analyze the response in the time domain, which in turn is shown in
Figure 7.
Observing
Figure 7 it is possible to verify that, for both control loops, stable responses were obtained without error in steady state to a current and voltage step. Furthermore, it is possible to see that the settling time for the current loop is ten times shorter than the settling time for the voltage loop, thus reflecting the cutoff frequencies of both loops.
3.2. Modeling and Control of the DC/DC Buck-Boost Stage
The converter topology, as well as the control system used, can be seen in
Figure 8.
The converter topology used, as shown in
Figure 8, allows power flow in both directions, that is, it allows the battery to be charged and discharged without the bank or DC bus voltages being switched. To control the charging or discharging current, a PI controller is used, which receives the reference from an upstream system responsible for calculating the reference current, allowing the selection of the operating mode and the charging, or discharging power depending on the services. ancillary executed. Each sub-step will be treated separately. The system in
Figure 8 can be simplified into a block diagram, as shown in
Figure 9.
As with modeling the Boost converter, it is possible to apply a similar process to the Buck-Boost converter. In this sense, it is worth highlighting that the Thevenin equivalence of the battery bank circuit is performed for the battery to operate in the nominal region, since in this state the battery has little voltage variation for a wide range of charge states, as demonstrated in
Figure 10, thus resembling a constant voltage source. The battery model used is the one available in the Simulink software, which is widely used in the technical literature [
31,
32].
Carrying out the modeling in a similar way to what was previously done for the Boost converter, it is possible to determine the gains of the battery bank current controller, according to (12) and (13).
is the proportional gain of the buck-boost converter’s current controller;
is the integral gain of the buck-boost converter’s current controller;
is the cut-off frequency of the buck-boost converter’s current loop;
is the resistance of the buck-boost converter inductor;
is the inductance of the buck-boost converter inductor;
For correct operation of the converter, switches S1 and S2 must operate in a complementary manner. Thus, for the converter’s construction parameters shown in
Table 4, it is possible to evaluate the response in frequency and in the time domain, shown in
Figure 11 and
Figure 12.
Note that the system was designed so that the current control loop has a cut-off frequency at least ten times lower than the switching frequency. Furthermore, when analyzing the response in the time domain, it is verified that the system is stable and does not present an error in steady state.
3.3. DC/AC Stage Modeling and Control
To connect the renewable generating unit to the electrical grid, it is necessary to use an electronic converter to convert the DC level of the DC bus to the AC level. In this sense, a three-level NPC inverter was adopted; the choice of this topology was based on the wide use of this converter in the technical literature [
33], as well as because it is widely used in medium and high-power applications [
34]. All control was carried out in a synchronous reference, as there is the possibility of using classical linear controllers [
35]. The converter topology, as well as the control systems used can be seen in
Figure 13.
As shown in
Figure 13, the converter current control loop is divided into a direct axis and quadrature mesh, in this sense, there is a more external mesh responsible for controlling the DC bus voltage (on direct axis) and a mesh responsible for controlling reactive power (in quadrature axis). For reactive power management, a strategy was implemented that will be discussed shortly, as well as harmonic compensation. To synchronize the converter with the grid, DDSRF-PLL was used, implemented according to [
36]. Furthermore, an LCL filter was used to attenuate multiple harmonics of the switching frequency, which was implemented according to [
37].
Therefore, for modeling the converter, it was considered that the equipment will be connected to a balanced grid without voltage distortions and that the LCL filter has a predominantly inductive resistive behavior, so the following equations are valid in the frequency domain.
Thus, from (14) and (15) we have the block diagram seen in
Figure 14, which already has the PI controller inserted. It is worth noting that the terms in braces are compensated by a feedforward action. It should also be noted that L
f is the total inductance of the LCL filter, V
rd is the direct axis voltage of the grid, V
rq is the quadrature axis voltage of the grid, V
id is the direct axis voltage synthesized by the inverter, V
iq is the voltage quadrature axis synthesized by the inverter, ω
r is the angular frequency of the grid and I
d and I
q are the direct axis and quadrature currents injected by the inverter.
In a similar way to what was done for DC/DC converters, the gains of the DC/AC converter controllers were found by pole allocation. In this sense, it was established as a design requirement that the cutoff frequency of the current loop must be at least ten times lower than the switching frequency [
30], therefore it is possible to simplify the PWM block by a unity gain. In addition to the direct and quadrature axis current control loops, two external loops were implemented, one for DC bus voltage control and the other for reactive power, respectively in the direct and quadrature axes. The cutoff frequency of these loops was stipulated as being at least ten times lower than the cutoff frequency of the current control loops [
30].
Thus, using the data in
Table 5 it is possible to calculate the controller gains and obtain the frequency and time domain responses of the systems. This data can be viewed in
Figure 15 and
Figure 16.
Analyzing the frequency response of the system, the distance between the cutoff frequencies of the meshes in question is observed, therefore meeting the design criteria. Therefore, checking the response in the system’s time domain, the system is stable and has zero error in steady state. It can also be noted that the mesh settling time is within the acceptable range to ensure proper operation of the converter.
5. Results
This section shows the results of the computer simulations carried out. Therefore, this section will be subdivided to deal with the results separately. The results obtained for the ancillary services of frequency support, reactive power support, active power dispatch and regulation of the PCC load curve and compensation of harmonic currents in the PCC will be discussed, all under the influence of the proposed load and discharge control.
5.1. Frequency Support
In order to validate the performance of the frequency support ancillary service, simulations were carried out in which the microgrid is isolated from the main grid and after the circuit is disconnected by means of the CB2 circuit breaker shown in
Figure 1, there is a change in photovoltaic generation. Cases were analyzed in which there is a loss or increase in photovoltaic generation and its respective impact on the rotational speed of the synchronous machine with the system operating with and without the battery energy storage system.
In this sense, out of a total simulation period of 4.5 s, at 1 s the microgrid is isolated and at 2.5 s the photovoltaic generation varies for the cases under analysis.
Figure 27 shows the frequency variation of the microgrid in the event of a 100% loss of photovoltaic generation and
Figure 28 shows the frequency of the microgrid in the event of a 100% increase in the total generation of the photovoltaic generating unit.
As can be seen in
Figure 27 and
Figure 28, in cases where the generating unit does not have an energy storage system, when there is a variation in generation, there is a frequency variation with high amplitude and oscillation. In cases where the generating unit is equipped with a storage system, the frequency variation amplitudes are attenuated and the oscillations are damped. The response of the system in question is equivalent to that of a system with a greater inertia than the original system. This characteristic is accentuated by increasing the steady-state (R
F) of the photovoltaic generating unit.
The attenuation of the amplitudes and the damping of the oscillations are due to the action of the storage system.
Figure 29 and
Figure 30 therefore show the powers flowing through the storage system and the DC/AC converter of the generating unit during a disturbance in the load-generation balance.
As can be seen in
Figure 29 and
Figure 30, when a disturbance occurs, the energy storage system responds by supplying or absorbing power to re-establish the load-generation balance. It is worth noting that the response to the disturbance is directly related to the droop selected, as well as the dynamic response of the PLL algorithm used and the controllers of the DC/DC Buck-Boost and DC/AC converters. In cases of maximum droop, there is an oscillation in power caused by the frequency oscillation coming from the PLL. However, in general, when the energy storage system is used, the power oscillations from photovoltaic generation become less severe, thus providing greater stability in the face of random oscillations in photovoltaic generation.
5.2. Reactive Power Support
The evaluation of the ancillary service of reactive power support was verified with a scenario in which the generating unit dispatched a defined amount of active power, consequently, there was a voltage variation in the PCC of the generating unit and the reactive power control was sensitized.
A 17-s computer simulation was carried out. At the 0.5 s mark, the CB1 circuit breaker and the reactive power support control were triggered, resulting in a voltage drop in the PCC (due to the load coming in through the CB1 circuit breaker) of the generating unit, which led to the reactive power support control being excited. In the following period, up to the instant of 8 s, the renewable unit dispatches active power, thus varying the voltage positively at the PCC. From 9 s to 16 s, the storage system consumed active power, thus characterizing a voltage drop at the PCC. Finally, at 16.5 s the CB1 circuit breaker was opened, thus increasing the voltage at the PCC. The reactive power dispatch is shown in
Figure 31.
Looking at
Figure 31, it can be seen that the dispatch of reactive power followed the variation in voltage, which consequently followed the variation in load on the grid. For the reactive power dispatch, a steady-state voltage droop (R
v) of 20 was used.
For this ancillary service, the renewable unit’s ability to dispatch a greater amount of reactive power to the detriment of active power dispatch was also assessed. A 4-s simulation was carried out in which the generating unit operated with maximum generation and zero reactive power dispatch. At the 1-s mark, a maximum reactive power dispatch step (450 kVAr) was requested, as shown in
Figure 32a. At this point, if the conditions of the algorithm shown in
Figure 22 were met, all the photovoltaic generation power was directed to the storage system, as can be seen in
Figure 32c, so the generating unit stopped dispatching active power, as shown in
Figure 32b. It is worth noting that the power peak at the start of the simulation in
Figure 32c is an initialization transient.
In order to assess the impact of reactive power dispatch on the grid voltage, the voltages of phases A, B and C were measured at bar 680, and it was found that when reactive power was dispatched there was an increase in the voltages of the three phases, as shown in
Figure 33.
With the dispatch of reactive power, a voltage increase in the three phases of the grid of approximately 1% was observed. This relatively low value is due to the high short-circuit level of the bar in relation to the renewable unit, so if the number of renewable units or the power of the generating unit were increased, greater variations would be observed. It is worth noting that the voltages are slightly unbalanced, which is characteristic of the grid under study.
Based on the performance of the ancillary service of reactive power support, it can be seen that the proposed control increases the efficiency of the energy grid, since there will be an attenuation of the flow of reactive power in the main branches, making it more available to transport active power. Furthermore, in situations where the system has a demand for large amounts of reactive power in relation to the demand for active power, the option can be taken to dispatch this amount of reactive power, but without any loss of generation, since the energy generated by the photovoltaic system will be stored in the battery system, as long as it is available to drain this energy.
5.3. Active Power Dispatch and Regulation of the PCC Load Curve
The active power dispatch was validated based on the supply and absorption of active power by the energy storage system. To this end, the active power reference shown in blue in
Figure 34b was used. This power reference was chosen because it travels between the limits of the energy storage system, and there is also a 1-s period for assessing the stability of the control system. The results obtained are shown in
Figure 34.
According to the data in
Figure 34b, it can be seen that the storage system followed the power demand reference, except at the maximum limits, where power was limited by the battery bank’s maximum current limit. As the power demand moves towards positive values, the power injected into the grid increases, as shown in
Figure 34a, while for negative demand values, the power injected into the grid decreases. It is worth noting that these results were obtained for photovoltaic generation under nominal conditions, that is, irradiance at 1000 W/m
2 and temperature at 25 °C.
The active power dispatch shown can be used to mitigate the grid demand for power at peak times. The storage system can also be charged at times when grid use is low. This strategy ultimately increases efficiency and optimizes the energy system in question.
With regard to the regulation of the PCC load curve, the results obtained are shown in
Figure 35.
To obtain the results for the regulation of the PCC load curve, the underloads in
Figure 2 were switched via the respective circuit breakers. It is worth remembering that there is a period of 1 s to evaluate the system’s response, thus proving its stability. At 2 s the CB1 circuit breaker was switched on, then at 3 s the CB2 circuit breaker was closed, followed by the CB4 circuit breaker at 4 s, then the CB3 circuit breaker was switched on at 5 s, and finally the CB5 circuit breaker at 6 s. The activation of these respective loads demands active and reactive power from the PCC, represented by the red and blue dotted curves, respectively. In addition, the influence of the photovoltaic unit with and without the storage system was verified, whose generated power varied from the nominal value of approximately 10% of this respective value, between the period of 3 and 5 s.
Looking at
Figure 35, it can be seen that the power demand curve at the PCC for the case in which the conventional photovoltaic unit is connected suffers abrupt variations in reactive power (black curve) and especially active power (green curve). In certain scenarios, this variation can overload the grid to which the DG is connected, and in some cases, it can lead to frequency or voltage instability [
40,
41]. In cases where DG with ancillary services is connected, it can be seen that even with abrupt variations in load power, the power demanded from the grid remains constant, thus leading to greater system stability in terms of voltage and frequency.
5.4. Compensation of Harmonic Currents in the PCC
To validate harmonic current compensation, a harmonic phonon was used, consisting of a three-phase 6-pulse diode rectifier feeding an RL load (R = 15 Ω and L = 0.1 H). The capabilities of the renewable harmonic compensation unit were evaluated at low levels of dispatched power and at nominal power values. The appearance of the measured currents of interest is shown in
Figure 36.
Looking at
Figure 36, it is noticeable that the appearance of the PCC current after harmonic compensation is more like that of a sinusoid compared to the appearance of the load current, thus showing that there has indeed been harmonic current compensation. To validate this, the FFTs of the PCC currents without and with compensation are analyzed, as shown in
Figure 37 and
Figure 38.
As can be seen in
Figure 37 and
Figure 38, the THD of the PCC current after compensation has been halved, for a similar fundamental current. In addition, when evaluating the frequency components, high attenuation can be seen at all frequencies that have resonant controllers in the DC/AC converter, thus validating the compensation of harmonic currents.
In relation to harmonic compensation, the performance of the compensation was also evaluated in the face of power fluctuations on the DC side of the converter. To do this, the DG was simulated with approximately 10% photovoltaic generation and the storage system was tasked with making up for this generation shortfall.
Table 7 shows the amplitude of the frequency components compensated by the control system with the converter operating at nominal power and partial power.
The data in
Table 7 shows that there are no major variations in the compensation of harmonic currents with the DC/AC converter operating at partial power in relation to the rated power, since the frequency components of the compensated PCC current remained close to the rated power.
Through the harmonic compensation carried out by the DC/AC converter, it was possible to attenuate the current harmonics coming from a non-linear load. This compensation is useful in electrical systems, as it avoids the consequences of these unwanted signals.
6. Discussion
With regard to frequency support, the presence of an energy storage system in a photovoltaic generating unit plays a fundamental role in stabilizing the electrical system. It helps to smooth out fluctuations in generation, attenuate frequency oscillations and can make the system’s response resemble that of a system with greater inertia, as seen in
Figure 27 and
Figure 28. This is important information for planning and operating power systems with a significant share of photovoltaic generation. Furthermore, the effectiveness of this system depends on several factors, including the statics selected, the PLL algorithm and the converter controllers, as seen in
Figure 29 and
Figure 30. In general, however, the storage system helps to reduce power fluctuations, improving stability in relation to fluctuations in photovoltaic generation.
With terms of reactive power support, the renewable energy generation unit was able to adjust its operation to meet a request to dispatch maximum reactive power to the detriment of active power. This is done by directing all the photovoltaic generation power to the energy storage system, demonstrating flexibility in the operation of the generating unit, as shown in
Figure 32a–c. This capacity to respond is important for supporting the stability and power quality on the grid, especially when it is necessary to supply or absorb reactive power to keep the voltage within the appropriate limits. Also noteworthy is the ability of batteries to store the energy generated by the photovoltaic system when there is excess reactive generation by the inverter. This can be beneficial for the stability and efficiency of the power system.
With relation to active power dispatch and regulation of the PCC load curve, it is worth mentioning the behavior of the energy storage system in relation to power demand, highlighting the importance of strategies such as active power dispatch and charging at strategic times to optimize the system (load relief) and increase its efficiency in serving local loads. In addition, the stability of the grid must be considered when connecting distributed generation units. The presence of abrupt power variations can be a challenge, but the incorporation of ancillary services can help maintain grid stability by preventing overloads, frequency and voltage instability through the regularization of the load curve, as shown in
Figure 35. This highlights the importance of proper planning and advanced technology to deal with the complexities of integrating renewable energy sources into the grid.
Therefore, in relation to the compensation of harmonic currents in the PCC, the effectiveness of DG with harmonic compensation control in improving the power quality is evident. This was confirmed by observing that the current in the PCC became more like a sinusoid after compensation, indicating a significant reduction in harmonics, as illustrated in
Figure 36a–c. Therefore, the evaluation was carried out both in situations with low dispatched power and in situations with nominal power values. This implies that the harmonic compensation capability was tested under different load conditions, which is relevant for verifying its effectiveness in a variety of scenarios, as shown in
Table 7. Given this situation, there was a significant reduction in current THD, in which the maintenance of the fundamental current and the attenuation of resonant frequencies indicate that the compensation was effective, as corroborated by
Figure 37 and
Figure 38. In addition, the ability to cope with oscillations in photovoltaic generation shows the robustness of the compensation system in dynamic situations.
Finally, it is worth pointing out that the method proposed in this work for the joint operation of several extra functions in a hybrid photovoltaic inverter has some limitations, which must be taken into account. One of these is in relation to frequency and reactive power support. The limitation lies in the dynamics of the response of these systems, since this is determined by the dynamics of the variation in frequency and voltage of the grid, and it is not possible to change it, since only one gain is used to obtain the final response (frequency and voltage droop in steady state). The second limitation is harmonic compensation. It is worth noting that, although the harmonic components have a high level of attenuation, they have not been completely eliminated, thus demonstrating the limitations of this function.
7. Conclusions
Therefore, based on the study carried out, the possibility of performing ancillary services such as frequency support, reactive power support, active power dispatch, load curve regulation and PCC harmonic current compensation was verified. These services were evaluated from the point of view of simultaneous execution with the conventional operation of the generating unit.
In this sense, the simulation results obtained demonstrate the technical viability from the point of view of the system’s operation, since it was operated at all times within its nominal limits. In addition, the effectiveness of the services provided stands out, as improvements over the conventional system were observed. It is also worth highlighting the joint operation of the battery energy storage system with the photovoltaic generating unit integrated into a single DC/AC converter. This integration allows for greater flexibility in terms of power flow between generation and the storage system, as well as greater efficiency when compared to systems that operate separately.
As a proposal for future work, it is recommended that the system be studied using control models that integrate virtual synchronous machine systems, as this would tend to improve the efficiency of the frequency support in the face of disturbances. It is also worth noting that the reactive power dispatch strategy can be improved to inject power into unbalanced systems, in order to improve the voltage indices per phase. Finally, it is worth highlighting the need for experimental validation of the proposed system.