Case Study of Power Plants in the Slovak Republic and Construction of Microgrid and Smart Grid

: To reduce emissions worldwide, decarbonization has also affected for power engineering and its conventional methods of power generation, distribution, and transmission. This fact affects not only the production of power and supply itself, but also other parts related to it, namely systems for the protection of electricity generation facilities and the location of faults in distribution networks and transmission systems. Is this new technology of renewable energy sources (RES) mastered enough to be able to replace traditional methods of energy generation reliably and safely? If we can answer the previous question, we could proceed to the next phase of putting these technologies into practice, considering the actual state of distribution networks and transmission systems. The aim of the article will be to evaluate the current state of systems and production sources of electricity in the Slovak Republic and to provide a better insight and suggestions for rebuilding current networks on a smart grid. The proposals will also include models of some RES in the Matlab/Simulink software.


Introduction
The construction or conversion of the current system into a smart grid will require a lot of effort for successful application, which will lead to uninterrupted power supply for all consumers, reduced transmission and distribution loss high penetration of renewable energy sources, cyber secured electrical network, large-scale power storage, creation of new opportunities for the electricity market, and active involvement of costumers in the management process [1]. Figure 1 shows a comparison of the current system with the smart grid. The difference in producing is the transition from large power plants to many small power plants, which changes centralized production to decentralize, which is a significant modification smart grid system. Another significant difference is distribution, where the transmission structure is lightened, and a distribution network with compensation is used. While the direction of energy flow has a major impact on these facts. In the current system, we use only one direction, from production to consumption, but in smart grid, this fact changes into a twoway flow of energy, with the consumers themselves also participating in the production [2].
These are the main advantages and goals of a smart grid and for such a network to work, it is first necessary to master a similar management on a smaller scale in a microgrid. The first step towards getting closer to the smart grid is that the issue of the microgrid must first be mastered.
When designing the smart grid, we must choose the appropriate size of local microgrids structures and not forget to select the right energy mix of sources that will power these regional systems and therefore ensure a continuous supply of electricity due to the possibility of switching to island mode [3,4].

Literature Overview
The issue of microgrid systems is addressed worldwide, in which several publications have been published so far. The design of the economic system for the microgrid was realized in the Yanbu area in Saudi Arabia, where they considered using photovoltaic stations (PV), battery energy storage systems, wind farm, diesel generators, and biomass systems [6]. They have a different approach to this issue in South Korea, where they have applied a microgrid model to a photovoltaic system using energy stored in a pumped hydropower plant [7]. The state of Rio de Janeiro in Brazil considered the appropriate choice of sources to supplement renewable energy sources for the high dependence of fossil fuel power plants, therefore these studies were conducted to evaluate the complementarity of renewable energy sources for hydropower plants, photovoltaic stations, and wind farms [8]. From another perspective, the specific mix of energy sources and their environmental impacts and carbon dioxide (CO2) production should also be considered, this issue has been evaluated in Malaysia for the small share of RES and provides a comparison with neighboring countries [9]. In Italy, a study has been carried out in the alpine region to compare combined heat and power (CHP) systems with renewable such as photovoltaic station and run-of-the-river (RoR) hydropower. The use of this combined source system will ensure the same energy satisfaction as in thinking only with only twice the number of RES they do not consider CHP [10]. For the Portuguese power energy system, a study has been carried out on the optimal combination of renewable energy production, specifically for photovoltaic stations, hydropower plants and wind farms based on temporal and spatial diversity. The study shows that to limit the reserve power, it is appropriate to consider the total power of photovoltaic stations and wind farms, which their sum will be lower than the installed capacity of hydropower plants [11]. The issue of the

Literature Overview
The issue of microgrid systems is addressed worldwide, in which several publications have been published so far. The design of the economic system for the microgrid was realized in the Yanbu area in Saudi Arabia, where they considered using photovoltaic stations (PV), battery energy storage systems, wind farm, diesel generators, and biomass systems [6]. They have a different approach to this issue in South Korea, where they have applied a microgrid model to a photovoltaic system using energy stored in a pumped hydropower plant [7]. The state of Rio de Janeiro in Brazil considered the appropriate choice of sources to supplement renewable energy sources for the high dependence of fossil fuel power plants, therefore these studies were conducted to evaluate the complementarity of renewable energy sources for hydropower plants, photovoltaic stations, and wind farms [8]. From another perspective, the specific mix of energy sources and their environmental impacts and carbon dioxide (CO 2 ) production should also be considered, this issue has been evaluated in Malaysia for the small share of RES and provides a comparison with neighboring countries [9]. In Italy, a study has been carried out in the alpine region to compare combined heat and power (CHP) systems with renewable such as photovoltaic station and run-of-the-river (RoR) hydropower. The use of this combined source system will ensure the same energy satisfaction as in thinking only with only twice the number of RES they do not consider CHP [10]. For the Portuguese power energy system, a study has been carried out on the optimal combination of renewable energy production, specifically for photovoltaic stations, hydropower plants and wind farms based on temporal and spatial diversity. The study shows that to limit the reserve power, it is appropriate to consider the total power of photovoltaic stations and wind farms, which their sum will be lower than the installed capacity of hydropower plants [11]. The issue of the mix of energy sources, Appl. Sci. 2021, 11, 5252 3 of 22 mainly affects fewer developing countries than Bangladesh, where so far, they mainly use gas and oil as energy sources, which does not contribute to reducing carbon dioxide. It is for this reason that it is necessary to solve the problem of microgrid systems and introduce the ready-made solution directly to less developing countries [12]. Compared to other countries, the issue of the energy network in Sudan is considerably complicated by the size and location of the communities. For this reason, it uses small island networks, where they use solar and wind energy with energy storage using compressed air, which, due to their geographical location, are ideally renewable energy sources [13].
When compiling the energy mix of resources, it is necessary to consider several factors, the main role being played by the daily load diagram and the selection of energy sources in terms of CO 2 minimization, risk minimization, or levelized cost of energy [14].
The issue of microgrid system analyzes various possibilities of electricity storage, for example, using compressed air energy storage (CAES) and power-to-gas (P2G). The advantage of this system is the possibility of storing any excess energy [15]. The issue of renewable energy sources and their dynamic changes depending on the weather is important to solve, which also results in new or modified control methods that improve the use of energy stored in the battery or another storage system [16].

Current Situation in Slovakia
The Slovak Republic has one transmission system, which is managed by the Slovak Electricity Transmission System, a.s. (SEPS). SEPS manages all transmission lines with a total length of 3008 km and a total transformation power of 11,730 MVA [17]. As shown in Figure 2 current grid map.
Appl. Sci. 2021, 11, x FOR PEER REVIEW 3 of 22 mix of energy sources, mainly affects fewer developing countries than Bangladesh, where so far, they mainly use gas and oil as energy sources, which does not contribute to reducing carbon dioxide. It is for this reason that it is necessary to solve the problem of microgrid systems and introduce the ready-made solution directly to less developing countries [12]. Compared to other countries, the issue of the energy network in Sudan is considerably complicated by the size and location of the communities. For this reason, it uses small island networks, where they use solar and wind energy with energy storage using compressed air, which, due to their geographical location, are ideally renewable energy sources [13]. When compiling the energy mix of resources, it is necessary to consider several factors, the main role being played by the daily load diagram and the selection of energy sources in terms of CO2 minimization, risk minimization, or levelized cost of energy [14].
The issue of microgrid system analyzes various possibilities of electricity storage, for example, using compressed air energy storage (CAES) and power-to-gas (P2G). The advantage of this system is the possibility of storing any excess energy [15]. The issue of renewable energy sources and their dynamic changes depending on the weather is important to solve, which also results in new or modified control methods that improve the use of energy stored in the battery or another storage system [16].

Current Situation in Slovakia
The Slovak Republic has one transmission system, which is managed by the Slovak Electricity Transmission System, a.s. (SEPS). SEPS manages all transmission lines with a total length of 3008 km and a total transformation power of 11,730 MVA [17]. As shown in Figure 2 current grid map.    Slovak power plants operate 31 hydro, 2 nuclear, 2 thermal, and 2 solar power plants with a total capacity of 4112 MW [19]. The total installed capacity of the Slovak power plant in 2019 is 7716 MW. The full electricity consumption for the Slovak Republic in 2019 was 30,309 GWh [17]. When we examined more detailed information about the location of power plants, we found the following divisions of power plants in Slovakia, which is shown in Table 1 and Figure 5. The organization of power supply management in Slovakia was divided according to  Slovak power plants operate 31 hydro, 2 nuclear, 2 thermal, and 2 solar power pl with a total capacity of 4112 MW [19]. The total installed capacity of the Slovak po plant in 2019 is 7716 MW. The full electricity consumption for the Slovak Republic in 2 was 30,309 GWh [17]. When we examined more detailed information about the loca of power plants, we found the following divisions of power plants in Slovakia, whic shown in Table 1 and Figure 5. Slovak power plants operate 31 hydro, 2 nuclear, 2 thermal, and 2 solar power plants with a total capacity of 4112 MW [19]. The total installed capacity of the Slovak power plant in 2019 is 7716 MW. The full electricity consumption for the Slovak Republic in 2019 was 30,309 GWh [17]. When we examined more detailed information about the location of power plants, we found the following divisions of power plants in Slovakia, which is shown in Table 1 and Figure 5.

Microgrid
Research shows microgrid systems will be a key part of building smart grids, and this major part also provides solutions for powering remote communities and industrial facilities and military bases that are usually connected to the grid so that they can disconnect and operate independently.
Microgrid working system: • On-grid microgrid obtains a battery-free system that is connected to the public power grid. Any excess solar energy they produce is provided in the power grid. The primary disadvantage of this structure is that they fail to operate during a blackout [26].

Microgrid
Research shows microgrid systems will be a key part of building smart grids, and this major part also provides solutions for powering remote communities and industrial facilities and military bases that are usually connected to the grid so that they can disconnect and operate independently.
Microgrid working system: • On-grid microgrid obtains a battery-free system that is connected to the public power grid. Any excess solar energy they produce is provided in the power grid. The primary disadvantage of this structure is that they fail to operate during a blackout [26]. • Off-grid microgrids typically provide power for remote villages, industrial operations, and military bases. These usually have a very high cost of generation as they are totally dependent on diesel fuel and may face logistical challenges in fuel delivery. We can also use photovoltaic panels with battery systems, but in this case, we have certain performance limitations [26]. • Hybrid microgrids can be disconnected from the grid to operate autonomously, ensuring continuity of power supply in the case of an outage. This approach is common in locations where the grid can be unreliable, such as storm-prone or mountainous areas. As shown in Figure 6 system takes advantage of both previous systems. Appl. Sci. 2021, 11, x FOR PEER REVIEW 6 of 22 The most promising for the future is a hybrid system, which, as shown in Figure 6, uses the advantages of both the On-grid and the Off-grid systems. However, there are also problems with this system in the form of a protection system and locating faults. The main problem with the microgrid system is the way of managing individual resources so that they work as efficiently as viable and with the least possible losses. Solving these problems in microgrid systems will simplify management, increase the efficiency of electricity generation, and reduce transmission losses in the smart grid.
For these microgrid systems, it will therefore be essential to select, according to the area of application, the appropriate energy sources so that the supply of electricity is guaranteed under any weather conditions. The problem with applying these structures in practice is several, but the essential problems are with a suitable mix of energy sources for such systems and the transmission infrastructure itself, which is undesigned for such changes. The key will be to determine the size of the area that such a microgrid system will control.

Examples of Application of Microgrid Systems
The schematic of the microgrid system shown in Figure 6 has already been practically tested on island operation and is currently working in a few places. One such system supplies electricity to the remote north of the Arctic, with approximately 160 members of Lake Colville located 50 km beyond the Arctic Circle in Northern Canada. The peak load is 150 kW and the basic load is 30 kW, 136 kW solar panels were installed locally, generating approximately 112 MWh per year-representing about half of the community's total annual consumption, together with a 2 × 100 kW and 1 × 150 kW diesel generators complemented by a battery energy storage system (BESS) Intensium ® Max 20M Medium Power (IM 20M) (Saft, Jacksonville, USA), which provides 232 kWh of energy in combination The most promising for the future is a hybrid system, which, as shown in Figure 6, uses the advantages of both the On-grid and the Off-grid systems. However, there are also problems with this system in the form of a protection system and locating faults. The main problem with the microgrid system is the way of managing individual resources so that they work as efficiently as viable and with the least possible losses. Solving these problems in microgrid systems will simplify management, increase the efficiency of electricity generation, and reduce transmission losses in the smart grid.
For these microgrid systems, it will therefore be essential to select, according to the area of application, the appropriate energy sources so that the supply of electricity is guaranteed under any weather conditions. The problem with applying these structures in practice is several, but the essential problems are with a suitable mix of energy sources for such systems and the transmission infrastructure itself, which is undesigned for such changes. The key will be to determine the size of the area that such a microgrid system will control.

Examples of Application of Microgrid Systems
The schematic of the microgrid system shown in Figure 6 has already been practically tested on island operation and is currently working in a few places. One such system supplies electricity to the remote north of the Arctic, with approximately 160 members of Lake Colville located 50 km beyond the Arctic Circle in Northern Canada. The peak load is 150 kW and the basic load is 30 kW, 136 kW solar panels were installed locally, generating approximately 112 MWh per year-representing about half of the community's total annual consumption, together with a 2 × 100 kW and 1 × 150 kW diesel generators complemented by a battery energy storage system (BESS) Intensium ® Max 20M Medium Power (IM 20M) (Saft, Jacksonville, USA), which provides 232 kWh of energy in combination with a 200 kW Power Conditioning System from ABB (ABB, Napier, New Zealand) [26,27].
At the other extreme, microgrid is also supporting a remote community in Bolivia's Amazonian rainforest, near the border of Brazil and Peru. The remote community is not grid connected and depended on 16 MW diesel generators and 5 MW solar PV, together with a BESS comprising two Saft IM 20M Medium Power containers (Saft, Jacksonville, USA), each with 580 kWh storages and 1.1 MW peak power output to meet total 8 MW load. BESS allows the penetration of renewables to be optimized while ensuring operational excellence in terms of reliability and stability [26]. Figure 7 shown used microgrid.  At the other extreme, microgrid is also supporting a remote community in Bolivia's Amazonian rainforest, near the border of Brazil and Peru. The remote community is not grid connected and depended on 16 MW diesel generators and 5 MW solar PV, together with a BESS comprising two Saft IM 20M Medium Power containers (Saft, Jacksonville, USA), each with 580 kWh storages and 1.1 MW peak power output to meet total 8 MW load. BESS allows the penetration of renewables to be optimized while ensuring operational excellence in terms of reliability and stability [26]. Figure 7 shown used microgrid.
Experience has shown that research into renewable energy sources and increasing the efficiency of already used electricity sources is still needed. The combination of BESS and solar PV has proved its worth in practice, and it is necessary to address the issue for the design of the energy mix of sources and not only use fossil energy sources. In such a case, if we consider in the future with the use of battery systems, it is necessary to deal with their recycling, increasing their lifespan and technical parameters.

Modeling RES in MATLAB/Simulink
In this chapter we will deal with RES models and evaluation of their properties during ordinary operation and through simulated fault conditions. For further research and development, it is necessary to utilize quality models that will match the facts for their applications in microgrid and smart grid systems.
The following models use the Simscape Power System library (v7.5, MathWork, California, USA) in the Simulink (v9.10.0.1649659, MathWork, California, USA). For the following models, we will consider with photovoltaic stations, diesel generators, battery systems, and thermal power plants and hydropower plants, which would be most suitable use for Slovakia. Experience has shown that research into renewable energy sources and increasing the efficiency of already used electricity sources is still needed. The combination of BESS and solar PV has proved its worth in practice, and it is necessary to address the issue for the design of the energy mix of sources and not only use fossil energy sources. In such a case, if we consider in the future with the use of battery systems, it is necessary to deal with their recycling, increasing their lifespan and technical parameters.

Modeling RES in MATLAB/Simulink
In this chapter we will deal with RES models and evaluation of their properties during ordinary operation and through simulated fault conditions. For further research and development, it is necessary to utilize quality models that will match the facts for their applications in microgrid and smart grid systems.
The following models use the Simscape Power System library (v7.5, MathWork, CA, USA) in the Simulink (v9.10.0.1649659, MathWork, CA, USA). For the following models, we will consider with photovoltaic stations, diesel generators, battery systems, and thermal power plants and hydropower plants, which would be most suitable use for Slovakia.

Model of Photovoltaic Station
This model of photovoltaic station was designed for an output of 100 kW. The PV array has seven modules per string connected in series, which are connected in thirty-five strings in parallel. Wherein the DC link electric potential is 480 V and the output phase-phase alternating voltage from the inverter is 250 V, which is in the end increased to a 22 kV by means of a step-up transformer. Figure 8 shown schematic model of PV station. This model of photovoltaic station was designed for an output of 100 kW. The PV array has seven modules per string connected in series, which are connected in thirty-five strings in parallel. Wherein the DC link electric potential is 480 V and the output phasephase alternating voltage from the inverter is 250 V, which is in the end increased to a 22 kV by means of a step-up transformer. Figure 8 shown schematic model of PV station.

Model of Diesel Generator
This model of the diesel generator was designed for direct connection to the network for a phase-phase voltage of 22 kV for this reason. It is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity.

Model of Diesel Generator
This model of the diesel generator was designed for direct connection to the network for a phase-phase voltage of 22 kV for this reason. It is not necessary to use a stepup transformer. A synchronous machine was used in this model to generate electricity. Figure 9 shown schematic model of diesel generator.
This model of photovoltaic station was designed for an output of 100 kW. The PV array has seven modules per string connected in series, which are connected in thirty-five strings in parallel. Wherein the DC link electric potential is 480 V and the output phasephase alternating voltage from the inverter is 250 V, which is in the end increased to a 22 kV by means of a step-up transformer. Figure 8 shown schematic model of PV station.

Model of Diesel Generator
This model of the diesel generator was designed for direct connection to the network for a phase-phase voltage of 22 kV for this reason. It is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity.

Model of Battery Energy Storage System
This model of battery energy storage system was based on the same design as the replica of the photovoltaic station. This model also uses a step-up transformer to output power to the grid. The battery module can also be added in a PV station. Figure 10 shown schematic model of BESS.
This model of battery energy storage system was based on the same design as the replica of the photovoltaic station. This model also uses a step-up transformer to output power to the grid. The battery module can also be added in a PV station. Figure 10 shown schematic model of BESS.

Model of Thermal Power Plant
This model of the thermal power plant was based on the same design as the replica of the diesel generator and is also created for direct connection to the grid for a phasephase voltage of 22 kV, therefore it is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity. Figure 11 shown schematic model of thermal power plant.

Model of Hydropower Plant
This replica of a hydropower plant was based on the same design as the model of a diesel generator and a thermal power plant. Like the previous models, it is designed for

Model of Thermal Power Plant
This model of the thermal power plant was based on the same design as the replica of the diesel generator and is also created for direct connection to the grid for a phase-phase voltage of 22 kV, therefore it is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity. Figure 11 shown schematic model of thermal power plant.
This model of battery energy storage system was based on the same design as the replica of the photovoltaic station. This model also uses a step-up transformer to output power to the grid. The battery module can also be added in a PV station. Figure 10 shown schematic model of BESS.

Model of Thermal Power Plant
This model of the thermal power plant was based on the same design as the replica of the diesel generator and is also created for direct connection to the grid for a phasephase voltage of 22 kV, therefore it is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity. Figure 11 shown schematic model of thermal power plant.

Model of Hydropower Plant
This replica of a hydropower plant was based on the same design as the model of a diesel generator and a thermal power plant. Like the previous models, it is designed for

Model of Hydropower Plant
This replica of a hydropower plant was based on the same design as the model of a diesel generator and a thermal power plant. Like the previous models, it is designed for direct connection to the mains for a phase-phase voltage of 22 kV, therefore it is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity. Figure 12 shown schematic model of hydropower plant. direct connection to the mains for a phase-phase voltage of 22 kV, therefore it is not necessary to use a step-up transformer. A synchronous machine was used in this model to generate electricity. Figure 12 shown schematic model of hydropower plant.

Modeled Scheme of Simulink
In the MATLAB/Simulink system, we constructed a scheme according to Figure 13  The simulation was performed on five models described in Chapter 3 and the simulated scheme is shown in Figure 13. For each model of the power plant, we considered two fault locations, close to the power plant and close to the source. The next chapter analyzes the simulation results for individual power plant models and for each the considered short-circuit locations.

Modeled Scheme of Simulink
In the MATLAB/Simulink system, we constructed a scheme according to Figure 13, where we considered a load of 100 kW for individual RES. For the fault condition, we consider the location of the fault of the output terminals of the RES models with a voltage level of 22 kV and in the vicinity of the load, which is 5 km away from the source by a line. The line parameters are as follows resistance 0.156 Ω/km and inductance 1.3 mH/km. direct connection to the mains for a phase-phase voltage of 22 kV, therefore it is not essary to use a step-up transformer. A synchronous machine was used in this mod generate electricity. Figure 12 shown schematic model of hydropower plant.

Modeled Scheme of Simulink
In the MATLAB/Simulink system, we constructed a scheme according to Figur where we considered a load of 100 kW for individual RES. For the fault condition consider the location of the fault of the output terminals of the RES models with a vo level of 22 kV and in the vicinity of the load, which is 5 km away from the source by a The line parameters are as follows resistance 0.156 Ω/km and inductance 1.3 mH/km The simulation was performed on five models described in Chapter 3 and the s lated scheme is shown in Figure 13. For each model of the power plant, we consid two fault locations, close to the power plant and close to the source. The next ch analyzes the simulation results for individual power plant models and for each the sidered short-circuit locations. The simulation was performed on five models described in Section 3 and the simulated scheme is shown in Figure 13. For each model of the power plant, we considered two fault locations, close to the power plant and close to the source. The next chapter analyzes the simulation results for individual power plant models and for each the considered short-circuit locations. Figures 14 and 15 show a comparison of the operating parameters of the ordinary condition with the fault state. The value of the simulated nominal current was less than 3.75 A and the phase-phase voltage was 21.82 kV. The simulated fault current value stabilized near the source at 5.62 A and the phase-phase voltage decreased to 6.885 mV, but on the load side simulated the fault current value was nearly the same as a fault condition on the source and the phase-phase voltage decreased to 15.8 V. The highest impulse simulated value of the fault current near the source was 6.606 A and on the other side was 6.598 A. The measuring point as also was shown in the individual models in Section 4.1 was located near the output of the power source. Figures 14 and 15 show a comparison of the operating parameters of the ordinary condition with the fault state. The value of the simulated nominal current was less than 3.75 A and the phase-phase voltage was 21.82 kV. The simulated fault current value stabilized near the source at 5.62 A and the phase-phase voltage decreased to 6.885 mV, but on the load side simulated the fault current value was nearly the same as a fault condition on the source and the phase-phase voltage decreased to 15.8 V. The highest impulse simulated value of the fault current near the source was 6.606 A and on the other side was 6.598 A. The measuring point as also was shown in the individual models in Chapter 3.1 was located near the output of the power source.    Figures 14 and 15 show a comparison of the operating parameters of the ordinary condition with the fault state. The value of the simulated nominal current was less than 3.75 A and the phase-phase voltage was 21.82 kV. The simulated fault current value stabilized near the source at 5.62 A and the phase-phase voltage decreased to 6.885 mV, but on the load side simulated the fault current value was nearly the same as a fault condition on the source and the phase-phase voltage decreased to 15.8 V. The highest impulse simulated value of the fault current near the source was 6.606 A and on the other side was 6.598 A. The measuring point as also was shown in the individual models in Chapter 3.1 was located near the output of the power source.             Figure 19 shows FFT analysis of the ordinary voltage condition. The generated voltage of this model had a THD value of 0.03%. As shown in the Figure 19, it is possible to see some harmonic near the base frequency value of 50 Hz, the individual values of these interfering elements not exceeding a value of 0.022%.   Figure 19 shows FFT analysis of the ordinary voltage condition. The generated vo age of this model had a THD value of 0.03%. As shown in the Figure 19, it is possible see some harmonic near the base frequency value of 50 Hz, the individual values of the interfering elements not exceeding a value of 0.022%. Figure 19. FFT analysis of output power of diesel generator model.            3.72 A and the phase-phase voltage was 21.951 kV. The simulated fault current value stabilized near the source at 27.15 A and the phase-phase voltage decreased to 33 mV, but on the load side simulated the fault current value was nearly same as a fault condition on the source and the phase-phase voltage decreased to 72.7 V. The highest impulse simulated value of the fault current near the source was 36.329 A and on the other side was 36.21 A. The measuring point as also was shown in the individual models in Chapter 3.4, was located near the output of the power source.   3.72 A and the phase-phase voltage was 21.951 kV. The simulated fault current value stabilized near the source at 27.15 A and the phase-phase voltage decreased to 33 mV, but on the load side simulated the fault current value was nearly same as a fault condition on the source and the phase-phase voltage decreased to 72.7 V. The highest impulse simulated value of the fault current near the source was 36.329 A and on the other side was 36.21 A. The measuring point as also was shown in the individual models in Chapter 3.4, was located near the output of the power source.

Analysis of Results of Testing Models
As the results show the use of inverters significantly reduced the amount of sho circuit current supplied by the source to the grid, resulting in an impact on protecti systems. This is only a part of the problem, as shown in Figures 14 and 20, the occurren of faults for the inverters caused an immediate limitation of the current and a significa deformation of the sinusoidal course. Compared to hydro and thermal power plants, t is not a problem and the short-circuit current supplied by these sources is several tim higher than the nominal current. As shown in Figures 15,18,21,24, and 27, the large vo age drop was caused by a near short circuit, and the hardness of the sources can be clea seen from the simulated values.
According to the simulated data, we can evaluate the impact of models of the pow system, while using many photovoltaic stations or battery systems, there are proble with maintaining the system and there is a risk of the blackout due to a significant dr in voltage and decreasing short-circuit current. When using thermal power plants a

Analysis of Results of Testing Models
As the results show the use of inverters significantly reduced the amount of shortcircuit current supplied by the source to the grid, resulting in an impact on protection systems. This is only a part of the problem, as shown in Figures 14 and 20, the occurrence of faults for the inverters caused an immediate limitation of the current and a significant deformation of the sinusoidal course. Compared to hydro and thermal power plants, this is not a problem and the short-circuit current supplied by these sources is several times higher than the nominal current. As shown in Figures 15, 18, 21, 24 and 27, the large voltage drop was caused by a near short circuit, and the hardness of the sources can be clearly seen from the simulated values.
According to the simulated data, we can evaluate the impact of models of the power system, while using many photovoltaic stations or battery systems, there are problems with maintaining the system and there is a risk of the blackout due to a significant drop in voltage and decreasing short-circuit current. When using thermal power plants and hydropower plants supplemented by diesel generators, we had a stable electricity system. For this reason, it is necessary to determine the appropriate mix of energy sources.

Microgrid Model
The use of the models of individual renewable sources mentioned in this article can be used to create a model microgrid, where further research will be carried out for fault localization and parameterization of protections, where we will already consider a dynamic load. Figure 29 shown example for microgrid model with RES.

Design of a Protection System
Conventional protection systems can be used for thermal and hydropower plants together with diesel generators, but for photovoltaic station and battery systems is needed for the development of a new protection system due to their shortcomings for the microgrid systems described in Section 5.1. The current connection conditions and the photovoltaic stations protection system did not provide sufficient protection for the electricity system and in some cases may react incorrectly. Another of the main problems with photovoltaic systems and battery systems was simulated, where the current measuring devices measure the sinusoidal course or the evaluated data according to this course did not correspond to the actual values in the grid. Therefore, there is a need to develop measurement and data processing systems that reliably locate the fault location and disconnect it. Differ-ential protections, impedance protections, and directional overcurrent protections with mutual communication have the most suitable perspective for independent protection of individual sources. hydropower plants supplemented by diesel generators, we had a stable electrici For this reason, it is necessary to determine the appropriate mix of energy sour

Microgrid Model
The use of the models of individual renewable sources mentioned in this be used to create a model microgrid, where further research will be carried ou localization and parameterization of protections, where we will already cons namic load. Figure 29 shown example for microgrid model with RES.

Design of a Protection System
Conventional protection systems can be used for thermal and hydropower gether with diesel generators, but for photovoltaic station and battery systems for the development of a new protection system due to their shortcomings f crogrid systems described in Chapter 5.1. The current connection conditions an tovoltaic stations protection system did not provide sufficient protection for the system and in some cases may react incorrectly. Another of the main problems tovoltaic systems and battery systems was simulated, where the current meas vices measure the sinusoidal course or the evaluated data according to this cour correspond to the actual values in the grid. Therefore, there is a need to develop ment and data processing systems that reliably locate the fault location and dis Differential protections, impedance protections, and directional overcurrent p

Discussion
In the future, it will be necessary to adjust the protection system for renewable energy source, while the protection system will be managed centrally for the local microgrid, to speed up the process of locating the fault and fault elimination. The protection system depends on the operating conditions and the type of resources used for this reason, it is necessary to consider this system as a whole and not separate. The size of the microgrid system will be decisive in this issue, and for Slovakia we could consider the size of the microgrid system according to the current regions or larger parts with the binding of several microgrid systems cooperating with each other. The mix of energy sources of microgrid power supplies must comply with the year-round load diagram and for individual days, as the size of consumption varies from month to month and from the weather the system sources must be flexible enough. Figure 30 shows perspective places on the territory of the Slovak Republic for the location of photovoltaic stations, where the greatest perspective is in the southern part of Slovakia, while we can get the most electricity from photovoltaic stations in the vicinity of Komarno and Nitra. necessary to consider this system as a whole and not separate. The size of the microgrid system will be decisive in this issue, and for Slovakia we could consider the size of the microgrid system according to the current regions or larger parts with the binding of several microgrid systems cooperating with each other. The mix of energy sources of microgrid power supplies must comply with the year-round load diagram and for individual days, as the size of consumption varies from month to month and from the weather the system sources must be flexible enough.          For this reason, it is appropriate to place battery systems or other power sources in the northern parts of Slovakia. The balanced distribution of power plants as shown in Table 1 is not ideal due to the uneven distribution of power plants in Slovakia, because the western part of Slovakia has several times higher capacity of installed power plants than the eastern part.

Conclusions
In the introduction, the current situation of the location of power plants in the Slovak Republic was evaluated, where most of the installed capacity is in Western Slovakia. For this reason, Slovakia is not yet ready to create microgrids. Alternatively, the possibility of trial designs opens only in Western Slovakia as a microgrid model example. For this reason, it is appropriate to place battery systems or other power sources in the northern parts of Slovakia. The balanced distribution of power plants as shown in Table 1 is not ideal due to the uneven distribution of power plants in Slovakia, because the western part of Slovakia has several times higher capacity of installed power plants than the eastern part.

Conclusions
In the introduction, the current situation of the location of power plants in the Slovak Republic was evaluated, where most of the installed capacity is in Western Slovakia. For this reason, Slovakia is not yet ready to create microgrids. Alternatively, the possibility of trial designs opens only in Western Slovakia as a microgrid model example.
The aim of the publication was to highlight the need for a suitable energy mix of resources and to ensure it in all areas. Determining the appropriate mix of resources, we can proceed to the next step, to determine the size of the territory that will be controlled by the microgrid system. As soon as we successfully apply these steps in practice, we can approach the solution of the problem of the protection system and localization of faults, while the problem of measuring and evaluating the simulated data must be solved.
The article provides design options for the RES model, where the next step will be to design a system using these models as a sample microgrid with the proposed protection system. Perspective control tool in the future to control and monitor microgrid and the smart grid is the wide area management system and control.