Open access peer-reviewed chapter

MatLab Simulink Modeling for Network-Harmonic Impedance Assessment: Useful Tool to Estimate Harmonics Amplification

By Alexandru Băloi and Adrian Pană

Submitted: March 21st 2017Reviewed: March 13th 2018Published: November 5th 2018

DOI: 10.5772/intechopen.76461

Downloaded: 357


The importance of the subject is given by the fact that harmonics are making their presence felt in electrical distribution networks, and the cheapest and most widespread solution for power factor correction is the capacitor banks. This chapter proves that the harmonic impedance is an efficient tool for assessing the state of distribution networks containing harmonics. The unfavorable operating conditions are anticipated based on the network harmonic impedance values, and the means of intervention are selected. Harmonic impedance monitoring and using it in expert systems for operating condition optimization will increase in the future. Power factor correction by shunt capacitor switching in electrical networks containing harmonics can lead to harmonics amplifications by harmonic voltage increasing and capacitors thermal overstressing by great values of the currents flowing through them. This chapter proposes a method for practical determination of harmonic impedance. Based on its values, a quick method is developed to anticipate the harmonic voltages and current amplifications that can occur when a shunt capacitor is installed for power factor correction. Amplification factors are calculated depending on the equivalent harmonic impedance of the network seen in the compensation bus. A distribution network containing harmonics is modeled using MatLab Simulink, and harmonic impedance is determined by simulation in different operating conditions. Using the values of the harmonic impedance and the capacitive reactance of the capacitor bank that is connected for power factor correction, the amplification of the harmonic voltages and currents is estimated by calculus. The results obtained by calculus are then compared with the values obtained by simulation after the connection of the capacitor bank to the network. In conclusion, the chapter proves that the network harmonic impedance is a useful tool to estimate the harmonics amplification caused by power factor correction using shunt capacitor banks.


  • distribution electrical networks
  • reactive power compensation
  • capacitor banks
  • harmonic impedance
  • harmonics amplification

1. Introduction

Harmonics are making their presence felt in electrical distribution networks due to both the use of nonlinear devices in the consumers’ area and the high development of distributed generation [1, 2].

The harmonics of the electrical networks have negative effects like increasing active power losses, resonance over voltages, increasing the potential of the transformers’ neutral point, over currents in three-phase networks which can lead to difficulties regarding the protection relay selectivity, and capacitor banks overstressing. The effects of some types of loads like office equipment, air conditioning units, lighting devices, motor drives, and household equipment are presented in [3]. This study discusses the influence of capacitor banks on the network harmonics conditions.

Connecting a capacitor bank to the electrical network leads to the resonance phenomena, which, superimposed over the harmonic current flow on frequencies close to the resonance frequency, result in high harmonic voltage values at the capacitor terminals and high harmonic currents flowing through the capacitor bank. Over voltages lead to insulation overstressing, and high currents produce a capacitor bank heating that is also reflected in insulation damage [4, 5].

There are many methods for network harmonic impedance determination, which are presented in many literature works [6, 7, 8, 9, 10, 11, 12]. Even the operation of switching the capacitor bank can be used for harmonic impedance measuring [13], and online determination of the harmonic impedance is the subject of many works [14, 15]. One problem that is less noticed in these works is how to determine the phase of the complex harmonic impedance.

This chapter presents a method, which uses the network harmonic impedance like a tool to anticipate the harmonic condition amplifications in the case of reactive power compensation by capacitor banks.

In order to reach this objective, Section 2 presents a method to determinate the complex harmonic impedance. In order to find the phase of the impedance, the series–parallel circuit transformation is used. A mathematical model to anticipate the harmonic currents and voltage amplification, based on the harmonic impedance values, when a capacitor bank is connected to the network, is also described in Section 2. The mathematical model is validated, in Section 3, by a MatLab Simulink simulation for an electrical distribution network that comprises a bus with a capacitor bank installed for power factor correction. The results obtained by simulation are compared with those obtained by calculus from the mathematical model. Section 4 presents, step by step, how the distribution network is implemented on a Matlab Simulink model. Section 5 comprises the conclusions of the chapter.

2. Amplifying harmonic conditions assessment

2.1. Determination of the network harmonic impedance

The simplest method for harmonic impedance measurement supposes the changing of network status. The disturbance can be created by switching a network component in the bus where the network harmonic impedance must be measured. The main steps of this method are as follows [16]:

  1. Voltage and current waveforms recording before the disturbance.

  2. Changes are then made to the status of the network.

  3. Voltage and current waveforms recording after the disturbance.

  4. Network harmonic impedances determination:


where U¯kpreand I¯kpreare the pre-disturbance harmonic voltage and current, and U¯kpostand I¯kpostare the post-disturbance harmonic voltage and current.

The impedance Z¯kdoes not include the switched load.

Because the harmonic impedance determined using the expression (1) is parallel impedance, to obtain the phase of the impedance, we have to transform the parallel schema into series schema.

The series harmonic impedance can be determined using the following expression:


The parallel harmonic impedance can be determined using the following expression:


Knowing that:




We write now these parameters of the series impedance depending on the absolute value of the harmonic impedance, which can be practically determined using (1).


Using expressions (6) and (7), we can write the series resistance as follows:


The value of the parallel resistance, Rp, from the expression (8) can also be practically determined; it is actually the value of the harmonic impedance corresponding to the resonance frequency. Using the expression (7), the value of the series reactance can now be determined:


With the values of the series parameters of the harmonic impedance, we can now determine the phase of the complex harmonic impedance:


2.2. Mathematical model of amplifying the harmonic conditions by reactive power compensation

Switching shunt equivalent impedance in a network containing harmonics, conduce to more or less influence on the harmonic conditions, depending on the character and the value of the impedance.

Switching a shunt capacitor bank in order to improve the power factor in a bus of a distribution network containing harmonics can conduce to the amplification of the harmonic conditions. This is possible only when the harmonic currents are flowing in the network, with the frequencies close to the parallel resonance frequency. The resonance frequency occurs between the capacitance of the capacitor bank and the equivalent inductance of the network.

Figure 1 presents the equivalent schema for the k range harmonic, for the cases before and after the shunt capacitor impedance switching (Z¯kCB) in the point of common coupling (PCC).

Figure 1.

The equivalent circuit: (a) before the capacitor connection; (b) after the capacitor connection.

The notations used in Figure 1 are:

I¯kis the harmonic current provided by an equivalent fictive current source. It corresponds to all the k range harmonic current sources existing in the network, and it produces the harmonic impedance corresponding to PCC, Z¯knet, and the harmonic voltage drop U¯k.

The harmonic equivalent current source for k range (I¯k) does not change its value after connecting the capacitor bank (CB) represented by the equivalent reactance, Z¯kCB.

In order to determinate the mathematical expressions that will be used, the harmonic impedance “seen” in the PCC before the installation of Z¯kCBis separated in two components:

Z¯kloadis the transversal impedance of the load existing before the disturbance, usually a load impedance and

Z¯knetis the equivalent impedance of the rest of the network.

The harmonic voltage of k range in PCC is:


in which: Z¯k=Z¯knetZ¯kload=Z¯knetZ¯kloadZ¯knet+Z¯kload.

Results of the component of the harmonic current distributed through Z¯kload:




We can also write:


After the shunt capacitor bank connecting, Z¯kCB, supposing that the harmonic current sources and the harmonic impedance of the network do not change, we can write:


Consulting expressions for the harmonic impedance corresponding to PCC after the reactive power compensation (Z¯kCBswitching):


The total transversal impedance:


From (15), we have the following result:


Using the expression of I¯kfor the regimen before the reactive power compensation, Z¯kCB(expression (14)):




where the notation F¯Iloadrepresents the load current amplification factor, pursuant to the reactive power compensation, Z¯kCB:


Using expressions (16) and (17) in (21), we obtain:


So, knowing the impedances Z¯kand Z¯kCBfrom the initial regimen, and the initial load harmonic current (I¯kload), we can find the final load current I¯kloadand also the harmonic voltage in PCC after the capacitor bank connection Z¯kCB:


The harmonic voltage amplification factor in PCC is calculated by the following expression:




The total harmonic distortion (THD) of the PCC voltage after connecting to the capacitor bank must be lower than the highest value:


In addition, the voltage in PCC must be lower than the highest value imposed by the capacitor bank manufacturer, usually 10% over the nominal voltage.

Knowing the voltage bus in PCC and the capacitor bank reactance, we can also check if the current trough in the capacitor bank is lower than the highest value imposed by the capacitor bank manufacturer, usually 30% over the nominal current:


3. Simulation results, discussions

In order to estimate the changes regarding the harmonic conditions in a bus of a network, due to the installation of transversal impedance, it means to determinate the new harmonic voltages and harmonic currents, using the initial state of the network.

The validation of the mathematical model was done on a distribution electrical network comprising three voltage levels: 20, 6, and 0.4 kV, respectively. The configuration of the network and the main characteristics of its elements are presented in Figure 2 .

Figure 2.

The electrical distribution network used to validate the mathematical model.

To simulate the permanent normal operating conditions, the MatLab Simulink soft is used.

The harmonic regimen was obtained using harmonic current sources for the harmonics 5, 7, and 13, in three of the busses of the network (noted 1, 2, 3)—the load busses. These harmonic sources model the nonlinear components of the loads.

For the validation of the mathematical model, bus no. 3 was selected.

The transversal impedance that will be installed has a capacitive character, and it corresponds to 0.3 MVAr capacitive reactive power on the fundamental frequency. The installation of a CB for power factor correction or the voltage control is an operation with a high impact for both the network and the capacitors. If the network contains harmonics, the effect of connecting a capacitor bank will be harmonic conditions amplification and capacitors thermal overstressing risk.

The ampleness of both effects can be anticipated using the state values of the network before the installation like it was proved earlier.

The amounts obtained by MatLab simulation before the installation of the CB are presented in Table 1 . The notation represents the equivalent impedance of the linear component of the load.

Z¯k(Ω)Phase (deg)Z¯kload(Ω)Phase (°)

Table 1.

The values from steady-state operation before the capacitor bank switching.

By the successively installation of a CB having 0.3 MVAr capacitive reactive power, the values obtained using the method presented in this chapter, respectively, by MatLab simulation, are written in Tables 2 and 3 .


Table 2.

The values calculated after the capacitor bank switching.


Table 3.

The values obtained by MatLab simulation after the capacitor bankswitching.

The simulation was deliberately done for a case with high harmonic conditions—see the values in Table 1 . It results in THDU=20%for the bus 3, before the reactive power compensation. For the bus 3, where is connected also a load, for the current absorbed by this, we have THDI=19%. We only concentrate on the linear component of the load connected in bus 3. From Table 3 , we observe that after the reactive power compensation, the voltage THD in the bus 3 will increase to 24.11%. This is due to the high distortion of the current that will flow through the capacitive impedance after its installation.

Comparing now the values obtained by calculus ( Table 2 ) with the values measured in MatLab ( Table 3 ), we observe a good proximity.

4. MatLab implementation of the proposed model

MatLab Simulink simulation software is frequently used in a large area of engineering fields like communications, electrical engineering, mechanical engineering, digital image processing, and others, both for research and education [17, 18].

In this chapter, the proposed mathematical model was validated using Matlab Simulink. The electrical network presented in Figure 2 was modeled in Simulink, Figure 3 , as follows:

Figure 3.

The electrical distribution network implemented in MatLab Simulink before the reactive power compensation.

The electrical system was modeled using a 110-kV three-phase balanced source having Y grounded connection.

The electrical overhead lines (OHL) and cables are modeled using three-phase PI section lines. The line parameters resistor (R), inductor (L), and capacitor (C) are specified as positive- and zero-sequence parameters that take into account the inductive and capacitive couplings between the three-phase conductors, as well as the ground parameters. This method of specifying line parameters assumes that the three phases are balanced.

A three-phase two windings transformer model is used for all the transformers of the network. The connection of the windings is Y grounded for high voltage (110 kV) and D for medium voltage (20 and 6 kV). The parameters can be written in pu units or SI units. Changing the Units parameter from pu to SI, or from SI to pu, automatically converts the parameters displayed in the mask of the block.

The loads are modeled using parallel R L C circuits defined by active and reactive powers. Only the elements corresponding to non-zero powers are displayed. In this example, the reactive power of the loads is inductive reactive power.

This model is used for the steady-state operation condition before the capacitor bank switching.

Figure 4 presents the MATLAB Simulink model of the electrical distribution network with the capacitor bank for power factor correction connected in bus No.3. The capacitor bank is modeled as a capacitive load defined by the capacitive reactive power.

Figure 4.

The electrical distribution network implemented in MatLab Simulink after the reactive power compensation.

A detail of the compensation bus is presented in Figure 5 . Here, the harmonic current sources for the 5th, 7th, and 13th harmonics are presented. These are ideal current sources having the following parameters: peak amplitude, phase, and frequency. A three-phase measurement block for both voltages and currents are also inserted in the model. The user can choose phase-to-phase or phase-to-ground measuring. Knowing the harmonic currents and harmonic voltages, the total harmonic distortion (THD) factor both for voltage and current can be calculated.

Figure 5.

Details of the compensation bus.

The harmonic impedance of the network is measured using a dedicated block named “Impedance Measurement” which measures the impedance in a bus of the network as a function of the frequency (harmonic impedance). The harmonic impedance (magnitude and phase) is displayed by using the appropriate tool from the Powergui block. The results obtained in the two cases are presented in Figures 6 and 7 .

Figure 6.

Harmonic impedance before the compensation.

Figure 7.

Harmonic impedance after the compensation.

In order to highlight the influence of the capacitor reactive power amounts on the values of the harmonic impedance, the following compensation steps are considered: 0.2, 0.3, and 0.4 MVAr. Corresponding to these steps of the capacitor reactive power, the resonance frequency is much lower, while the reactive power increases: 404 Hz for 0.4 MVAr, 460 Hz for 0.3 MVAr, and 550 Hz for 0.2 MVAr. The results are presented in Figure 8 .

Figure 8.

The influence of the amount of reactive power compensation.

The influence of the load active power is also interesting to study. For a constant reactive power of compensation (0.3 MVar), the resonance frequency does not change, but the amplification factor is changing. For different values of the load active power (1, 1.5, and 2.5 MW), the harmonic impedance has different values (22.8, 17.32, and 11.7 Ω) and the resonance frequency has a constant value: 460 Hz. The results are presented in Figure 9 . Changes of the load reactive power do not influence the results of the harmonic impedance.

Figure 9.

The influence of the amount of load active power.

Scopes are installed for both voltage and current. The results for time-domain simulation for one cycle (0.02 s), after switching the capacitor bank, are presented in Figure 10 for voltages and in Figure 11 for currents.

Figure 10.

Voltages waveforms in bus 3 after the capacitor bank switching.

Figure 11.

Currents waveforms in bus 3 after the capacitor bank switching.

5. Conclusions

The scope of this chapter consists in highlighting the importance of harmonic impedance study in a bus of an electrical network with harmonics where a capacitor bank will be installed. Capacitor bank switching leads to an amplification of the harmonic impedance for the frequencies close to the resonance frequency.

The harmonic voltage amplification will lead to high values of voltage to the capacitor terminals and the effect will be an electrical overstressing of the capacitor banks. Harmonic current amplification will lead to high values of current trough the capacitor bank and the effect will be a thermic overstressing of the capacitor banks.

A mathematical model for harmonic impedance determination is presented, and, based on its values, anticipation of harmonic amplification is proved. A numerical example is presented for a distribution network containing harmonics and capacitor banks for power factor correction.

The validation of the mathematical model was done by MatLab Simulink simulation. The presented electrical distribution network is modeled using elements from the Library Browser like: three-phase balanced source for electrical system modeling, PI section lines for overhead lines and cables, three-phase two windings transformers, and three-phase loads. Harmonic conditions are simulated using ideal current sources for different frequencies. Three-phase measurement blocks are used for measuring harmonic voltages and currents, and harmonic impedance is also measured using a dedicated block.

We observe a good proximity of the results obtained by calculus and by simulation, MatLab Simulink being a useful tool for research and education in the field of power engineering.

© 2018 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

Alexandru Băloi and Adrian Pană (November 5th 2018). MatLab Simulink Modeling for Network-Harmonic Impedance Assessment: Useful Tool to Estimate Harmonics Amplification, MATLAB - Professional Applications in Power System, Ali Saghafinia, IntechOpen, DOI: 10.5772/intechopen.76461. Available from:

chapter statistics

357total chapter downloads

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Dynamic Modeling for Open- and Closed-loop Control of PMSG based WECS with Fuzzy Logic Controllers

By Anbarasi Jebaselvi Jeya Gnanaiah David and Meenakshi Veerappan

Related Book

First chapter

Two‐Phase Inverters with Minimum Switching Devices

By Branislav Dobrucky, Tomas Laskody and Roman Konarik

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us