The blocks in
Figure 1 show a commercial photovoltaic system. The DC-generated voltage of the PV is boosted with the DC–DC converter, and the capacitor
Clink is the link between the DC–DC converter and the inverter. Moreover, the grid-connected inverters use a filter to obtain an injected current with a low THD. In this case, the analyzed system uses an L-filter, an isolated Cuk converter as a DC–DC converter, and a single-phase full-bridge as an inverter (see
Figure 2).
In the literature, there is very little information about how to calculate the L-filter and there are no mathematical expressions for its calculation. The articles found [
25,
26,
27,
28,
29,
30] introduce the analysis and present the L-filter value but do not explain how they obtained it. They mention that the high value is based on a cutoff frequency that must be much larger than the grid frequency and show the Bode diagrams for a proposed value [
25,
28,
29,
31,
32].
To analyze the effect of the inductor L in the assessment of the DC-level bus voltage, a simplified circuit is used (see
Figure 4). For simplicity, in this circuit only the fundamental component in the inverter output voltage is considered, and a phasor analysis is applied, where
V1 represents the phasor of
vinv,
vL represents the inductor voltage,
XL =
ωL is the reactance, and
Vgrid represents the phasor of the main grid voltage (
vgrid =
Vgridsin(
ωt)). As it was pointed out, all the analysis is carried out at the fundamental components of
f = 60 Hz or
ω = 2πf, and
IL is the phasor of the current injected into the grid. The reference for all the phasors is the grid voltage.
2.1. Output Current Due to Fundamental Components in the Inverter Output Voltage
The analysis of the circuit voltages of the series connection in
Figure 3 is undertaken with the grid frequency set so that
V1 is the magnitude of voltage at the fundamental frequency of the sinusoidal pulse width modulation (SPWM). The inductor voltage (
VL) is substituted by the multiplication of the inductive reactance (
XL) with
IL and an imaginary number (
j). The fundamental voltage
V1 can be obtained from (1) by expressing it in polar form, where
V1 is the magnitude of the phasor
V1. This is shown in Equation (1):
The magnitude and phase of Equation (1) are obtained, as shown in Equations (2) and (3):
The angle
ϕinv is the lag phase angle that must be added to the inverter output voltage to obtain a unity power factor at the connection point with the grid. Assuming that
IL must be in phase with the grid voltage
Vgrid to obtain a unity power factor at the connection point and that
IL is a pure sinusoidal waveform, the average power
Pavg can then be calculated using Equation (4):
Solving
IL from Equation (4) results in Equation (5):
2.2. Output Current Due to Harmonic Components in the Inverter Output Voltage
To determine the harmonic content of the inverter output voltage, a relationship between the frequency of the triangular carrier signal
fsw of the SPWM modulation and the frequency of the grid
fgrid is defined. This relationship will be called
β, and it is shown in Equation (6):
To calculate the harmonics of a unipolar SPWM signal, the Fourier series is used [
33,
34,
35]. In a unipolar SPWM modulation, there are only odd harmonics, and the DC component is equal to 0. The Fourier series of a unipolar SPWM signal [
35,
36] is shown in Equations (7) and (8):
where
Vdc is the average amplitude of the DC bus,
N is the number of switching angles per quarter of the signal period,
ak are the switching angles for a quarter-period signal and are conditioned as shown in Equation (9), and
k is the
k-th switching angle.
By obtaining the switching angles and solving Equation (7) for the harmonic
nsw = 2
β + 1, it is possible to obtain the maximum output voltage at the harmonic
nsw (
Vnsw) as a function of (
Vdc), as shown in Equation (10), where
mnsw is the relationship between the maximum output voltage at the harmonic
nsw (
Vnsw) and (
Vdc). For a modulation index, this is equal to 1.
For this work, the unipolar SPWM modulation technique was used with a carrier switching frequency
fsw = 15 kHz, where the harmonics after the fundamental appear at a frequency of 2
β + 1, 2
β − 1, 2
β + 2, and 2
β − 2, respectively. The harmonic 2
β + 1 (
nsw) is one of the largest harmonics and is the inverter output voltage (
vinv) at the frequency of the harmonic
nsw (
fnsw). To evaluate the magnitude of the current at harmonic
nsw = 2β + 1, a phasor analysis is again used. For this harmonic, the circuit is simplified to the circuit of
Figure 5, where
Vnsw represents the voltage phasor at the inverter output at harmonic
nsw,
VLnsw represents the inductor voltage at the same harmonic,
XLnsw =
ωnswL is the reactance in the same harmonic
nsw, and
ILnsw is the phasor of the current at harmonic
nsw. Given that
Vgrid has only the fundamental frequency (60 Hz) and does not have harmonic components, it is no longer included in the analysis of
ILnsw current.
Applying the Kirchhoff voltage law to the circuit of
Figure 4 and substituting the inductor voltage (
VLnsw) by the equivalent product of the inductive reactance (
XLnsw) with
ILnsw gives Equation (11):
Subtracting the current phasor (
ILnsw) from Equation (11) gives Equation (12):
The magnitude
ILnsw is obtained from Equation (12). This is shown in Equation (13):
where
XLnsw is the inductive reactance at harmonic
nsw. This can be calculated with Equation (14):
2.3. Calculation of the L-Filter from the Ripple Current
For this analysis, the current harmonics of
iL(t) after the harmonic
nsw will be neglected since they are very small compared with the harmonic
ILnsw. Therefore, the inductor current in the time domain can be approximated by the sum of
IL and
ILnsw, as shown in Equation (15):
According to Equation (15), it can be observed that the current ripple in the inductive L-filter is caused by the peak-to-peak amplitude of the current signal in the
nsw harmonic. Hence, the percentage of current ripple in the L-filter can be approximated by Equation (16):
By substituting Equations (5) and (13) into Equation (16), the expression (17) is obtained.
Solving for
L from Equation (14) and substituting Equation (17) results in Equation (18):
2.4. Calculation of the DC-Level Bus Voltage
Once the inductor value is obtained, the analysis is performed to calculate the DC-level bus voltage. The inverter’s fundamental maximum output voltage
V1 is related to the modulation index
m, see Equation (19). The inverter output voltage is equal to the DC-level bus voltage [
37,
38].
Combining Equations (19) and (14) and substituting the inductive reactance in Equation (2) results in Equation (20):
Substituting (5) and (18) in Equation (20) results in Equation (21):
Equation (10) is substituted and Equation (21) is divided into two parts, A and B, as shown in Equations (22) and (23):
Combining (22) and (23) in Equation (21) results in Equation (24):
Solving
Vdc of Equation (24) results in Equation (25):
Substituting Equations (22) and (23) into Equation (25) results in Equation (26):
It is possible to calculate the DC bus level using Equation (26). The DC bus value must exceed the peak value of the grid voltage [
39,
40,
41,
42], even with ±5% variations. This equation is a function of the grid voltage (
Vgrid), the ripple percentage (%
riL), the modulation index (
m), and the angular switching frequency (
ωnsw). The average power of the DC–DC converter is approximately equal to the average output power supplied to the grid and the output power of the inverter without considering the switching losses of the MOSFETs; see Equation (4). Therefore, the average power delivered by the inverter can be expressed as a cosine function of the lag phase angle (
ϕinv), and it is approximately equal to the average power delivered to the grid when the power factor at the connection point with the grid is unitary. This is shown in Equation (27).
Substituting (5) and solving for the angle phase caused by the L-filter results in Equation (28). For a modulation index, this is equal to 1.
Equation (26) was solved for various values of the filter ripple current (%r
iL) and the specifications are shown in
Table 1.
Figure 6 shows the variation between
Vdc and the current ripple.
Figure 7 shows the different values of the L-filter for different
Pavg and
Vdc values when
m is equal to 1.
2.5. Evaluation of the Current Total Harmonic Distortion (THDi)
The
THDi in the L-filter can be calculated with Equation (29)
where
Insw1,
Insw2,
Insw3 up to
Inswn are the main harmonics that are multiples of the harmonic
nsw. These harmonics are found at frequencies of 30.06 kHz, 60.06 kHz, 90.06 kHz, and so on. To calculate the values of the currents in these harmonics, we use Equation (30).
where
Inswn is the current for any harmonic,
Vnswn is the inverter voltage for any harmonic, and
ωnswn is the angular frequency for any harmonic. Using Equations (7) and (30) and substituting into Equation (29) gives the
THD result for the L-filter current, as shown in Equation (31).
The THD is very low due to the high switching frequency fsw = 15 kHz.