Next Article in Journal
Customized Vibration Generator for State of Health Monitoring of Prosthetic Implants and Pseudo-Bionic Machine–Human Feedbacks
Next Article in Special Issue
A Control Strategy for a Three-Phase Grid Connected PV System under Grid Faults
Previous Article in Journal
A Context-Aware Route Finding Algorithm for Self-Driving Tourists Using Ontology
Previous Article in Special Issue
Stability Analysis of Grid-Connected Photovoltaic Systems with Dynamic Phasor Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Ancillary Service with Grid Connected PV: A Real-Time Hardware-in-the-Loop Approach for Evaluation of Performances

by
Yujia Huo
and
Giambattista Gruosso
*,†
Politecnico di Milano, Piazza leonardo da Vinci, 32, 20133 Milano, Italy
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Electronics 2019, 8(7), 809; https://doi.org/10.3390/electronics8070809
Submission received: 28 June 2019 / Revised: 16 July 2019 / Accepted: 18 July 2019 / Published: 19 July 2019
(This article belongs to the Special Issue Grid Connected Photovoltaic Systems)

Abstract

:
The integration of photovoltaic (PV) systems with the grid is undoubtedly an issue of great interest both in terms of energy production, but also as a support to the grid as an ancillary service, but to evaluate the performance of the use of PV in an unconventional way, it is necessary to have reference models to be applied to evaluate the characteristics and integration requirements. In this work, an ancillary service provided by a grid-connected PV is shown and a hardware in the loop simulation environment is created to simulate performances and integration issues.

1. Introduction

Connection to the distribution grid is one of the most important aspects of the future of renewable energy sources. Undoubtedly, this represents a source of opportunities and technological problems to be addressed and solved, but very often, we do not dwell on the fact that these sources can also be used as a tool to provide innovative network services [1,2,3,4]. In the so-called micro-grids, that can work either in island mode or connected to the main electric network, there are several issues that needs to be addressed. Considering that the latter is usually composed of synchronous generators (SGs), which have the capability to stabilize the electric network itself thanks to their mechanical inertia. Indeed, for instance, following a sudden variation of the injected/absorbed active power, due to the connection or disconnection of some electric loads and/or power sources, an electro-mechanical transient takes place. Therefore, the mechanical speed of SGs, which are connected to the electric network, starts to decrease or increase and, at the same time, the grid frequency decreases or increases as well. During the electro-mechanical transient, the variation of the kinetic energy stored in the rotating rotors of SGs helps stabilize the transient itself. This stabilizing effect depends on the total equivalent inertia of all the SGs owing to the electric network. Conversely, the increasing amount of renewable energy sources (RESs) installed in the micro-grids makes the total equivalent mechanical inertia of the electric network lower. In fact, the RESs, such as PV and wind systems, are connected to the point of common couplings (PCCs) through the power converters, which, for their nature, do not have any mechanical inertia. Therefore, stability issues can arise, and in addition to the electro-mechanical transients due to power variations, the immunity of the grid to faults and disturbances are wakened [5,6].
Therefore, as the grid integration of RESs shows an upward trend in capacity, RESs’ intermittent feature will pose greater threats and challenges to the frequency stability of the grid. In order to overcome these problems, it is possible to use other SGs not for power production but only for helping the stability of the electric network, increasing its total inertia, and for acting other services such as the voltage regulation. These kinds of services are called ancillary services. In order to strengthen the frequency robustness, several potential solutions providing ancillary services have been studied. The back-up the SGs method directly adds supplementary SGs, giving more mechanical inertia to reinforce the frequency stability [7,8]. Another method dispatches storage units to provide fast-response power reserves when the system is under seriously insufficient conditions [9,10,11]. Another way to act these ancillary services is to use the same power converters of the RESs with opportune control strategies. The virtual synchronous generator (VSG) is one of the most commonly applied methods. It emulates the mechanical behavior of SGs by providing specific active power [12,13,14]. The amount of virtual inertia applied to the grid is restricted by the active power rating of the power converter, DC source and DC-link capacitance [15]. Moreover, it deals with only the active power, so accordingly, auxiliary devices that are already functioning in the grid are not able to share such a burden. Even though the VSG approach can be integrated in PV systems, the required power reserve for the virtual inertia drives down the original planned power yield, not mentioning the truth that it is only available when there is illumination [16,17]. Overall, the aforementioned methods manage the output power only to perform ancillary services instead of to increasing the capacity. Furthermore, they all depend on additional equipments, impacting the budget and the comprehensive control of the grid.
The assessments to be made in this context are many and varied. They range from planning to designing the system and control algorithm. Simulation and modelling therefore, become an important element in this scenario.
This is particularly true when you want to analyze their behavior at the system level, taking into account the interaction with other devices and especially the behavior of discrete and digital control logic. This can help real-time simulations (RTSs) in combination with hardware-in-the loop (HIL) techniques in order to validate the behavior of devices under study, combined with a more complex system [18,19,20,21,22,23,24]. The approach is new and not well discussed in the literature. This paper is also a guideline to focus on some implemetation issues. There are several reasons to use these techniques, compared to traditional test-benches, for the testing and development of electronic systems. Soliciting the hardware through a more or less accurate physical model of the environment in which it will be used allows to obtain a greater understanding of its behavior in order to develop the control software or validate it.
Starting from this consideration, in this paper, an ancillary service to damp the frequency transient without adding any storage systems is analyzed in order to improve the understanding of the method. It is based on the existent equipment in the network, but does not sacrifice the nominal power output. It is a frequency-regulation ancillary service, responding automatically to detected frequency deviations at the point where SGs, RESs and loads are coupled. The proposed ancillary service aims to compensate for the brake force applied to the rotor of the SG under the loss of torque equilibrium. This ancillary service and the governor act simultaneously, but the former is much faster, acting directly on the armature currents. The proactive interfering currents come from the reactive power flow which is normally regulated to zero in many localized RESs, hence, neither additional reserves nor the under-use of RESs are required. The general idea is to make the RES absorb reactive power from the SG on experiencing a frequency drop, thus, the induced magnetic field inside the SG is weakened, thereby trimming the comprehensive electromagnetic force applied to the rotor. In other words, the frequency transients are partially transformed into that of the voltage on purpose. In order to endure the newly introduced reactive power flow, the power converter to implement the ancillary service has to be sized a bit more than the nominal rating. The original contribution of this work is to explain the theoretical aspect of the proposed method and to implement this model in a controller-hardware-in-the-loop (C-HIL) real-time simulation, proving the effectiveness of an ancillary service. The model of this network is implemented in a real-time simulator to emulate the behavior of the real world but also to emulate the behavior of control algorithms. An additional electronic control board (ECB) is connected to the system to implement the system control with the same rules used in the final coding. This apparently simple implementation hides a series of issues that are usually insufficiently considered in this type of simulation. The first is the choice of proper interfaces between different physical domains, since this choice results in a corresponding level of stability and accuracy. The second is the delay caused by the sampling action and the response time of the algorithm [25,26,27].
In this article, we will start from the simulation of a microgrid and we will create a framework for the testing of control algorithms by means of Hardware in the Loop highlighting the implementation aspects and the main problems, generally not addressed in such a systematic way. The original aspect of the work is to provide a description of the ancillary service through methodological treatment of how to implement the simulation in a hardware simulator in the loop created in an innovative way to highlight both the simulation of the network, and the development part of control algorithms. In Section 2, the model of the ancillary services will be presented while in Section 3, the simulation framework will be described and deeply discussed. The implementation of digital PLL, which is one of the main issues, will be presented in Section 4. The main result will be shown in Section 5 and then the conclusion will be drawn in Section 6.

2. Grid-Connected PV System: The Ancillary Service Description

In order to explain the ancillary service proposed, we consider a simple microgrid made by a photo-voltaic (PV) plant, a synchronous generator (SG), short transmission lines and loads as an example as reported in Figure 1. Unlike other solutions that require involvements of additional power supplies, we deploy the existent RESs which are integrated into the micro-grids to damp frequency transients. The target micro-grids are composed mainly of generation systems with natural inertia, e.g., SGs, RESs with power electronics interfaces, and loads. In view of the characteristics of such a hybrid network of slow and fast responses, we conduct a study on the coordination between fast and slow systems, as well as the advanced utilization of RESs’ power conversion system, exploring the added value of such networks without sacrificing the main mission. As to be elaborated in the following paragraphs, the strategy is to implement a reactive power flow control by fast power conversion systems during transients that are used to be handled only by the slow ones. Frequency variation on a grid occurs whenever the generators lose torque balance. If the mechanical torque is greater than the electromagnetic torque, the frequency goes up and vice versa. The electromagnetic force depends on the state of the whole system, which is random and instantaneous; the mechanical power is based on the prime mover, which is inherently slow in response. Therefore, in a system where SGs dominate the global frequency behavior, frequency transients are closely related to the dynamics of SGs. Whilst traditional ancillary service control active power to damp the variation of the induced electromagnetic torque applied to the rotor, the proposed method handles reactive power instead to achieve the same goal. Both methods aim to reduce one component of the armature current, which produces braking force to the rotor.
The electromagnetic equation Equation (1) suggests the hypothesis that reactive power regulation can benefit the frequency stability as well.
T e l = k V s E 0 sin ( θ )
In Equation (1), k is a constant depending on machine parameters, V s is the armature voltage, E 0 is the electromotive force (EMF) induced by the field current, and θ is the angle between V s and E 0 . The VSG method slows down the variation procedure of θ , thus the prime mover deals with the slowed down transients more easily; while the proposed method handles V s instead to compensate the variation in sin ( θ ) partially. In order to regulate V s , the most commonly used method is to regulate the reactive power flow. For a single SG, V s depends on the excitation system and the power flow. Since the proposed method intends to inject or adsorb reactive power, the excitation system, which has the opposite effect to that of the ancillary service, has to be slower in response.
In order to explain it more explicitly, we consider a simple grid with a PV plant, a single-salient-pole SG, short transmission lines and loads as an example, and we will look deep inside the SG to see how the regulated reactive power reduces the braking force. We assume that the PV system generates the maximum active power, and the resistive components in transmission lines and stator windings are neglected for simplification. We will focus only on the armature reaction, which has the largest impact in our concern.
The observation point is the point of common coupling (PCC), and the d,q axis is built referring to this point. The control strategy implemented in the PV system, with the integration of the proposed ancillary service are shown in Figure 2. The measurement and PLL block samples the PCC information and transforms it into d,q-axis components, so frequency, d,q voltage and current, and phase angle are all available for the the control loop. According to the measured ambient conditions, the maximum active power generation is firstly estimated. At the same time, a reactive power reference for the control loop is generated by the deviation of frequency apart from the reference. Therefore, the current references in d,q axis can be calculated knowing the estimates of power and the processing results of voltage, and the inner dual-current loop is formed, eventually providing driving modulation waves and driving signals to the power conversion block. The reactive power is controlled by measuring the PCC frequency: when there is frequency deviation from the reference, there is inner q-axis current flow; at steady state, q-axis current is controlled to be zero.
Figure 2 illustrates the implementation of the control strategy in PV system, with the integration of the proposed ancillary service. The measurement and PLL block samples the PCC information and transforms it into d,q-axis components, thus frequency, d,q voltage and current, and phase angle are all available for the the control loop. According to the measured ambient conditions, the maximum active power generation is firstly estimated. At the same time, a reactive power reference for the control loop is generated by the deviation of frequency apart from the reference. In order to achieve an interim reactive power control, the reactive power reference is linked to the frequency deviation by a proportional regulator, i.e., when there is frequency deviation, there is reactive power flow; at steady state, the reactive power is control to zero or near zero. Therefore the current references in d,q axis can be calculated knowing the estimates of power and processing results of voltage, and the inner dual-current loop is formed, eventually providing driving modulation waves and driving signals to the power conversion block.
The reactive power is controlled by measuring the the PCC frequency: when there is frequency deviation from the reference, there is inner q-axis current flow; at steady state, q-axis current is controlled to be zero. One intuitive method is to use a proportional regulator to generate the reactive reference, and q-axis current reference is thus calculated according to the status of the PCC.

3. The Model of the Grid and the Control Strategy

The aim of this section is to present the architecture for the control hardware-in the-loop (C-HIL), to validate the software control strategy directly implemented in the embedded ECB. The first step is the implementation of the model in a RTS, that in our case is the Typhoon Hil402 [28] which deploys a Zynq-7 SoC processor with up to 4 cores (depending on the configuration) and is equipped with DI/Os and AI/Os. It is ideal for power system HIL test because of the integration of machine solver, ultra-fast real-time simulation time step 0.5–2 μ s and digital inputs oversampling up to 20 ns.

3.1. Implementation of the RT Simulation

The system is designed with a SG, a PV system, loads, a circuit breaker and transmission lines as reported in Figure 3 such as implemented in both real-time simulator Typhoon HIL402 [28], and dSPACE DS1104, which are closer to the industrial implementation. The main parameters of the components are reported in the simulator reference manual [28], and the chosen values are reported in the Table 1, Table 2 and Table 3.
In order to reduce the total computation and to make a better use of the hardware resources, the system is subdivided into two sub-models partitioned into two different core of the simulator using an interface algorithm, that in this case is an ideal transformer model (ITM)-based core-decoupler, with the PV system executed in one core and the rest of the system in another [23,25,26].

3.2. Implementation of the C-HIL

The C-HIL simulation is achieved by extracting the ancillary service algorithm from Typhoon HIL and subsequently embedding it into dSPACE DS1104 (dSPACE GmbH, Patborn, Germany) [29]. So far, we have the Typhoon HIL emulating the physical part of the micro-grid and dSPACE emulating the digital controller, as illustrated in Figure 4. DS1104 adopts an integrated host processor MPC8240 working at 250 MHz CPU clock. DS1104 is also equipped with four channels of 16-bit multiplexed A/D converter, four channels of a 12-bit parallel A/D converter, eight channels of 16-bit D/A converter and twenty parallel general purpose TTL I/Os.
We assume that the measurement and anti-aliasing filtering of PCC voltages, currents and frequency are done in the emulated physical domain. The controller samples the PCC information and generates PWM signals for the PV inverter. The Typhoon HIL ±10 V range 16-bit AOs have 0.01% gain error and 0.5 mV offset error. We scale down the voltages and currents by 100, i.e., 311 V p h y s /3.11 V t y p h _ o u t and 300 A p h y s /3 V t y p h _ o u t , If the sampling action is put at the beginning of the program, we would actually be trying our best to sample the state variables at the same relative time. Similarly, the PWM output action sometimes is put at the beginning to have the same effect, however, it will introduce one-step delay. Since the control loop is not fast, we decided to keep the PWM output action at the end to avoid the one-step del. The carrier frequency is defined as 19.96 kHz. In the preliminary stage, it was defined as 19.95 kHz for the purpose of eliminating even order harmonics. However, the 20 MHz clock rate of the slave DSP is not an integer time of 19.95 kHz, that is to say, we would obtain 19.94 kHz or 19.96 kHz instead of 19.95 kHz. The slight deviation will lead to a periodical time-variant phase shift between the carrier and the fundamental electrical signal. If the 20 kHz that appears in the uni-real-time simulation is used, there will not be a phase shift problem, but it has no advantage eliminating even order harmonics.

4. Digital PLL Discussions and Enlightenment of Embedded Control Design

Since the control algorithm is based on d–q coordinates, transforming angle θ is mandatory and important for the transformation. If the θ obtained by the embedded system deviates from that achieved under ideal and continuous conditions, variables seen from the control side will not be the same as those in physical world without drawing the operators’ attention. In real implementation, it is an unavoidable issue, but any clues locating the intrinsic reasons will help design and implement digital control more wisely.
The left flowchart in Figure 5 is an example of how we have implemented the digital PLL at the control side. Every iteration with the phase angle achieved from the previous iteration is used to do the transformation and integration. We have simulated this solution and compared the result with an ideal one. At steady state, the digital phase angle solution is greater than the ideal one by 0.0314 rad under 10 kHz (Equation (2)).
Δ θ = 2 × π × 50 2 × T s
Furthermore, the interfacing from the actual electrical signals to the controller accessible digital signals imposes even greater impact on the phase angle deviation. The interface mainly consists of sensors, anti-aliasing filters and ADCs. Since sensors and ADCs have enough bandwidth for general electrical signals, only the internal data latency (typhoon-hil’s variables to AOs; dspace’s AIs to variables), synchronization condition and device conversion time are considered, i.e., absolute time delay. However, the anti-aliasing filters attenuate the signals depending on frequency, i.e., it will cause phase shift. We expect the PLL to obtain the phase angle of the fundamental frequency, thus the phase shift of the anti-aliasing filter at 50 Hz is recorded and the aforementioned absolute time delay is transformed to a phase shift based on 50 Hz.
After knowing all the above 3 aspects, we are able to roughly estimate the phase shift at 50 Hz and make the compensation like in the right picture of Figure 5. As in our case, the anti-aliasing filter has cut-off frequency of 2 kHz, controller step is 100 μ s and the absolute time delay is estimated as 100 μ s.
The control algorithm is designed in this way: V a , b , c are fed to the PLL to obtain V d , q and θ , then θ is used to transform I a , b , c to I d , q . With the components V d , q and I d , q , we are able to calculate P and Q, thus P, Q are monitored at the control side and the derived current control loop can be formed. So the accuracy of the current feed-back depends on framework angle calibration. As mentioned before, the phase shift of the digital PLL comes from 2 parts: digital realization and interface. By compensating the PLL with the calculated value from Equation (2), we can focus on the interface. Figure 6 is the process to calculate P and Q in C-HIL or real implementation: the voltages and the currents seen at controller side are rotated by the voltage channel interface and by the current channel interface respectively. If these two interfaces have the same delay property, the relative phase difference between the voltages and the currents remain the same; that means that PQ calculation will not be influenced by the interfaces. However, in general case, current and voltage transducers can hardly have the same delay, i.e., there is a relative phase displacement caused by the non-uniformly of the two interfaces, which will lead to a lack of fidelity in PQ calculation. Based on these, firstly we add a phase compensation to the digital PLL to calibrate the PLL, then another phase compensation is added to compensate the relative rotational displacement of 50 Hz caused by the interfaces. It is tested under open-loop condition where T s = 100 μ s, the original currents lead the original voltages by 30 and the current sampling channels are slower than the voltage sampling channels by 100 μ s. Before t = 0 , no compensation is added; at t = 0 s and t = 3 s, digital PLL compensation and interface compensation are activated successively. As we can see from Figure 7, before compensation, the active power and d-axis-current are deviated from that in physical domain by 2.9%, and the reactive power and q-axis-current are by 5.6%; after compensation, they almost overlap with values in physical domain. The compensation design requires a thorough knowledge of the data latency inside the simulator or controller, hardware interface and PLL algorithm.
Even though we have calibrated the sampled currents to the framework of the sampled voltages, the modulation waveform based on the sampled voltage framework still has a phase shift from the supposed value in the physical domain caused by the voltage sampling interface. This phase shift will be compensated by of the current close loop, controlling the active and reactive power. In spite of the proposed calibration, the interface delay has to be considered when designing the control loop to guarantee the stability of the system.

5. Simulation Results

We have conducted the proposed method in the context of PV-SG-composed micro-grid on both real-time simulation and C-HIL simulation platforms. The simulation initiates from the state where the 176 kW load (50.3% of the nominal generation) has been connected to the PCC. The transients to be observed are induced by the connection and disconnection of another 30 kW &−3 kvar load at specific moments. Figure 8 shows the simulation results of the frequency transients without ancillary service (blue), with the proposed method (red) and with the VSG method (black) respectively. This demonstrates that the proposed method is capable of attenuating the increase (decrease) in frequency caused by a connection or disconnection of the load by acting on the rate of frequency change (RoCoF). As expected in the theoretical section, the auxiliary service has a negative influence on transient voltage. The power flowing through the photovoltaic system reaches 22.5% of the photovoltaic system. total nominal generation to manage an active load change of approximately 8.6% of total nominal generation with settlement time of 6 s.
It is not so effective as the VSG method, but it can be used as a support to an operation using the already installed PV systems, without adding other converters such as in the case of VSG. However, when it comes to the practical implementation, the accumulation of all the non-ideal elements may bring unexpected results, for example, being ineffective or even instable.
Figure 9 and Figure 10 demonstrate the comparison between real-time and C-HIL simulations on the frequency transients. The low frequency components of the transients are visually the same, but the high frequency components are different, due to which the overshooting of C-HIL is slightly higher than that of real-time simulation. The origin of this difference is complicated. It is probably caused by the interface and the high-frequency-non-repeatability of the platform. Table 4 and Table 5 show how much the frequency overshooting has been attenuated by the proposed method both carried out in real-time simulation and C-HIL simulation. The results of real-time simulation have the smallest frequency overshooting during the load change. The frequency overshooting of C-HIL simulation is a bit worse than that of real-time simulation, but it is still superior to that of the case where no ancillary service is applied. In short, the practical implementation of the proposed ancillary service is promising, which has been proved by C-HIL simulation.
Repeatability is one important index of the simulation performance, so this experiment aimed to discover the repeatability of C-HIL simulation in this specific context. We have conducted the same experiment 5 times and their transients are shown in Figure 11. The transients of the repeated experiments overlap well, even though differences are observed from high frequency components. Fortunately, in the study of micro-grid, whether it is the local device control, network control or fault detection, high frequency dynamics are not the main focus. However, it is good to keep in mind that, the slight difference between transients due to high frequency components, such as the magnitude of overshooting, may be caused by the coupling effect of the high frequency components. The causes are complex.
In C-HIL simulation, the interface between the controller and the emulated grid is constructed by AI/Os and DI/Os, among which AI/Os will bring about errors caused by the converters and the DI/O interface is sensitive to multi-rate and asynchronous operation, but these are not our concern in this article. the unintentional asynchronism probably originates from the execution mechanisms depending on the processor (controller: microprocessor; grid: FPGA), and the independent crystal inside each processor (this asynchronism is periodical).
In order to study how the uncertainty of the PV plant impacts the ancillary service, we emulate a situation where the PV panels are temporarily shaded partially by a drifting cloud. So the irradiance in Figure 12 has a continuous valley-shape variation, and it occurs at the same time as the load connection. From the test result, the ancillary service is able to damp the transient frequency overshooting in this case.
In simulations, it is possible to see that as the active power frequency transient is moved to the reactive power voltage transient helping the mechanical transient of real synchronous machines connected to the electrical grid by regulating their voltages through the injection/absorption of reactive power by converters of any RESs instead to support directly the grid frequency through the exchange of active power. The system was demonstrated through real-time and C-HIL simulations. The latter helped assess problems that can be found when implementing the control algorithm on an external microprocessor.

6. Conclusions

This article presented an ancillary service that can softly control the frequency of a microgrid using the reactive power available in a PV system and normally adjusted to be zero. The article presented the main feature of the algorithm, but at the same time, focused on the methodology of implementation of the HIL simulation with attention to the control and problems that these may have in the effectiveness of the system. The service was demonstrated, in fact, using a C-HIL framework where both the network model and the control algorithm were implemented. The first, in a dedicated real-time simulator, and the second, in an embedded system of the same performance as a typical control board.

Author Contributions

Conceptualization, G.G. and Y.H.; Methodology, G.G. and Y.H.; Software, Y.H.; Validation, Y.H.; Formal Analysis, Y.H.; Investigation, G.G. and Y.H.; Writing—Original Draft Preparation, G.G. and Y.H.; Writing—Review & Editing, G.G. and Y.H.; Supervision, G.G.

Funding

This research received no external funding.

Acknowledgments

We thanks Luigi Piegari or his support and suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bozalakov, D.; Mnati, M.; Laveyne, J.; Desmet, J.; Vandevelde, L. Battery storage integration in voltage unbalance and overvoltage mitigation control strategies and its impact on the power quality. Energies 2019, 12, 1501. [Google Scholar] [CrossRef]
  2. Barrero-Gonzalez, F.; Pires, V.; Sousa, J.; Martins, J.; Milanés-Montero, M.; González-Romera, E.; Romero-Cadaval, E. Photovoltaic Power Converter Management in Unbalanced Low Voltage Networks with Ancillary Services Support. Energies 2019, 12, 972. [Google Scholar] [CrossRef]
  3. Karbouj, H.; Rather, Z. Voltage Control Ancillary Service From Wind Power Plant. IEEE Trans. Sustain. Energy 2019, 10, 759–767. [Google Scholar] [CrossRef]
  4. Xin, H.; Liu, Y.; Wang, Z.; Gan, D.; Yang, T. A new frequency regulation strategy for photovoltaic systems without energy storage. IEEE Trans. Sustain. Energy 2013, 4, 985–993. [Google Scholar] [CrossRef]
  5. Blaabjerg, F.; Teodorescu, R.; Liserre, M.; Timbus, A.V. Overview of Control and Grid Synchronization for Distributed Power Generation Systems. IEEE Trans. Ind. Electron. 2006, 53, 1398–1409. [Google Scholar] [CrossRef] [Green Version]
  6. Guan, Y.; Vasquez, J.C.; Guerrero, J.M.; Wang, Y.; Feng, W. Frequency Stability of Hierarchically Controlled Hybrid Photovoltaic-Battery-Hydropower Microgrids. IEEE Trans. Ind. Appl. 2015, 51, 4729–4742. [Google Scholar] [CrossRef]
  7. Kundur, P. Power System Stability and Control; McGraw-Hill Education: New York, NY, USA, 1994. [Google Scholar]
  8. Xu, T.; Jang, W.; Overbye, T. Commitment of Fast-Responding Storage Devices to Mimic Inertia for the Enhancement of Primary Frequency Response. IEEE Trans. Power Syst. 2018, 33, 1219–1230. [Google Scholar] [CrossRef]
  9. Pulendran, S.; Tate, J.E. Energy Storage System Control for Prevention of Transient Under-Frequency Load Shedding. IEEE Trans. Smart Grid 2017, 8, 927–936. [Google Scholar] [CrossRef]
  10. Wen, Y.; Li, W.; Huang, G.; Liu, X. Frequency Dynamics Constrained Unit Commitment With Battery Energy Storage. IEEE Trans. Power Syst. 2016, 31, 5115–5125. [Google Scholar] [CrossRef]
  11. Saxena, N.; Singh, B.; Vyas, A.L.; Hussain, I. Integration of renewable energy with storage system to single phase distribution system. In Proceedings of the 2017 IEEE 26th International Symposium on Industrial Electronics (ISIE), Edinburgh, UK, 19–21 June 2017; pp. 987–992. [Google Scholar] [CrossRef]
  12. Soni, N.; Doolla, S.; Chandorkar, M.C. Inertia Design Methods for Islanded Microgrids Having Static and Rotating Energy Sources. IEEE Trans. Ind. Appl. 2016, 52, 5165–5174. [Google Scholar] [CrossRef]
  13. Barcellona, S.; Huo, Y.; Niu, R.; Piegari, L.; Ragaini, E. Control strategy of virtual synchronous generator based on virtual impedance and band-pass damping. In Proceedings of the 2016 International Symposium on Power Electronics, Electrical Drives, Automation and Motion (SPEEDAM), Anacapri, Italy, 22–24 June 2016; pp. 1354–1362. [Google Scholar] [CrossRef]
  14. Zhang, W.; Cantarellas, A.M.; Rocabert, J.; Luna, A.; Rodriguez, P. Synchronous Power Controller with Flexible Droop Characteristics for Renewable Power Generation Systems. IEEE Trans. Sustain. Energy 2016, 7, 1572–1582. [Google Scholar] [CrossRef]
  15. Ashabani, M.; Mohamed, Y.A.R.I. Novel Comprehensive Control Framework for Incorporating VSCs to Smart Power Grids Using Bidirectional Synchronous-VSC. IEEE Trans. Power Syst. 2014, 29, 943–957. [Google Scholar] [CrossRef]
  16. Drumea, A.; Dobre, R.A. Modelling, simulation and testing of an autonomous embedded system supplied by a photovoltaic panel. In Proceedings of the 2014 IEEE 20th International Symposium for Design and Technology in Electronic Packaging (SIITME), Bucharest, Romania, 23–26 October 2014; pp. 309–312. [Google Scholar] [CrossRef]
  17. Bizzarri, F.; Bongiorno, M.; Brambilla, A.; Gruosso, G.; Gajani, G.S. Model of Photovoltaic Power Plants for Performance Analysis and Production Forecast. IEEE Trans. Sustain. Energy 2013, 4, 278–285. [Google Scholar] [CrossRef]
  18. Lu, B.; Wu, X.; Figueroa, H.; Monti, A. A Low-Cost Real-Time Hardware-in-the-Loop Testing Approach of Power Electronics Controls. IEEE Trans. Ind. Electron. 2007, 54, 919–931. [Google Scholar] [CrossRef]
  19. Lauss, G.F.; Faruque, M.O.; Schoder, K.; Dufour, C.; Viehweider, A.; Langston, J. Characteristics and Design of Power Hardware-in-the-Loop Simulations for Electrical Power Systems. IEEE Trans. Ind. Electron. 2016, 63, 406–417. [Google Scholar] [CrossRef]
  20. Faruque, M.D.O.; Strasser, T.; Lauss, G.; Jalili-Marandi, V.; Forsyth, P.; Dufour, C.; Dinavahi, V.; Monti, A.; Kotsampopoulos, P.; Martinez, J.A.; et al. Real-Time Simulation Technologies for Power Systems Design, Testing, and Analysis. IEEE Power Energy Technol. Syst. J. 2015, 2, 63–73. [Google Scholar] [CrossRef]
  21. Dufour, C.; Bélanger, J. On the Use of Real-Time Simulation Technology in Smart Grid Research and Development. IEEE Trans. Ind. Appl. 2014, 50, 3963–3970. [Google Scholar] [CrossRef]
  22. Ibarra, L.; Rosales, A.; Ponce, P.; Molina, A.; Ayyanar, R. Overview of real-time simulation as a supporting effort to smart-grid attainment. Energies 2017, 10, 817. [Google Scholar] [CrossRef]
  23. Huo, Y.; Gruosso, G.; Piegari, L. Power hardware in the loop simulator of photovoltaic plant for smart grid interation analysis. In Proceedings of the 2017 IEEE International Conference on Environment and Electrical Engineering and 2017 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I CPS Europe), Milan, Italy, 6–9 June 2017; pp. 1–5. [Google Scholar] [CrossRef]
  24. Schulte, T.; Kiffe, A.; Puschmann, F. HIL simulation of power electronics and electric drives for automotive applications. Electronics 2012, 16, 130–135. [Google Scholar] [CrossRef]
  25. Ren, W.; Steurer, M.; Baldwin, T.L. Improve the Stability and the Accuracy of Power Hardware-in-the-Loop Simulation by Selecting Appropriate Interface Algorithms. In Proceedings of the 2007 IEEE/IAS Industrial Commercial Power Systems Technical Conference, Edmonton, AB, Canada, 6–11 May 2007; pp. 1–7. [Google Scholar] [CrossRef]
  26. Ren, W.; Steurer, M.; Baldwin, T.L. An effective method for evaluating the accuracy of Power Hardware-in-the-Loop simulations. In Proceedings of the 2008 IEEE/IAS Industrial and Commercial Power Systems Technical Conference, Clearwater Beach, FL, USA, 4–8 May 2008; pp. 1–6. [Google Scholar] [CrossRef]
  27. Kotsampopoulos, P.C.; Lehfuss, F.; Lauss, G.F.; Bletterie, B.; Hatziargyriou, N.D. The Limitations of Digital Simulation and the Advantages of PHIL Testing in Studying Distributed Generation Provision of Ancillary Services. IEEE Trans. Ind. Electron. 2015, 62, 5502–5515. [Google Scholar] [CrossRef]
  28. Typhoon HIL. (accessed on 2018). Available online: http://www.typhoon-hil.com.
  29. ControlDesk. (accessed on 2018). Available online: https://www.dspace.com/en/inc/home/pro-ducts/sw/experimentandvisualization/controldesk.cfm.
Figure 1. The functional scheme of the micro-grid under test.
Figure 1. The functional scheme of the micro-grid under test.
Electronics 08 00809 g001
Figure 2. Ancillary service implemented in photovoltaic (PV) system.
Figure 2. Ancillary service implemented in photovoltaic (PV) system.
Electronics 08 00809 g002
Figure 3. Real-time simulation (RTS) model of micro-grid under test.
Figure 3. Real-time simulation (RTS) model of micro-grid under test.
Electronics 08 00809 g003
Figure 4. Simulation Framework: Controller-hardware-in-the-loop (C-Hil) is performed with dSPACE DS1404 and the real-time simulator is the Typhoon Hil402.
Figure 4. Simulation Framework: Controller-hardware-in-the-loop (C-Hil) is performed with dSPACE DS1404 and the real-time simulator is the Typhoon Hil402.
Electronics 08 00809 g004
Figure 5. Digital PLL preliminary (Left) and improved (Right) implementation.
Figure 5. Digital PLL preliminary (Left) and improved (Right) implementation.
Electronics 08 00809 g005
Figure 6. (a) PQ calculation without phase compensation, (b) PQ calculation with phase compensation.
Figure 6. (a) PQ calculation without phase compensation, (b) PQ calculation with phase compensation.
Electronics 08 00809 g006
Figure 7. Comparison of the currents during the control stage with the ideal “reference current” and the generated one from control.
Figure 7. Comparison of the currents during the control stage with the ideal “reference current” and the generated one from control.
Electronics 08 00809 g007
Figure 8. Frequency transients under load connection at the 15th s without ancillary service (blue), with the proposed method (red). In (black) the same simulation done using virtual synchronous generator (VSG) tecnique.
Figure 8. Frequency transients under load connection at the 15th s without ancillary service (blue), with the proposed method (red). In (black) the same simulation done using virtual synchronous generator (VSG) tecnique.
Electronics 08 00809 g008
Figure 9. Frequency transients under the load disconnection. In yellow, we show the simulation without regulation. In blue, we show the simulation with regulation in the C-HIL case and in orange, we show the pure real-time simulation. The blue simulation highlights how the presence of the sampling done by the controller introduces numerical instabilities that move away from the ideality of pure simulation. These oscillations must be taken into account in the optimal design phase of the control system.
Figure 9. Frequency transients under the load disconnection. In yellow, we show the simulation without regulation. In blue, we show the simulation with regulation in the C-HIL case and in orange, we show the pure real-time simulation. The blue simulation highlights how the presence of the sampling done by the controller introduces numerical instabilities that move away from the ideality of pure simulation. These oscillations must be taken into account in the optimal design phase of the control system.
Electronics 08 00809 g009
Figure 10. Frequency transients: without ancillary service (yellow), with ancillary service verified in real-time simulation (red) and with ancillary service verified in C-HIL simulation (blue).
Figure 10. Frequency transients: without ancillary service (yellow), with ancillary service verified in real-time simulation (red) and with ancillary service verified in C-HIL simulation (blue).
Electronics 08 00809 g010
Figure 11. Repeatability of the C-HIL simulation: Considering that the C-Hil simulation, includes sampling and delays due to communication between the two devices, we wanted to prove how the repeatability is guaranteed, so we repeated the simulation under the same conditions.
Figure 11. Repeatability of the C-HIL simulation: Considering that the C-Hil simulation, includes sampling and delays due to communication between the two devices, we wanted to prove how the repeatability is guaranteed, so we repeated the simulation under the same conditions.
Electronics 08 00809 g011
Figure 12. PV irradiance’s influence on the frequency dynamic. In this figure it is shown the effect of a sudden change of radiation during the frequency regulation phase.
Figure 12. PV irradiance’s influence on the frequency dynamic. In this figure it is shown the effect of a sudden change of radiation during the frequency regulation phase.
Electronics 08 00809 g012
Table 1. Value of the parameters considered in the model for the synchronous generator (SG).
Table 1. Value of the parameters considered in the model for the synchronous generator (SG).
Governor
V n K p K i V f d S a t . T s
400 V1580[−500, 500] V200 μ s
Excitation
P n K p K i T o r q u e S a t . T s
250 kW7051[−1.6, 1.6] kN·m200 μ s
Star-Connection SG and Pole Pairs = 2
Inertia moment3.5 kg·m 2 Friction coeff.0.16 Nms
Stator res.16.6 m Ω Stat. leak ind.183.3 μ H
Magnet. ind. (d)5602 μ H Magnet. ind. (q)4787 μ H
Field wind. res.0.06 Ω Field wind. ind.0.3 H
Damp. res. (d)0.187 Ω Damp. res. (q)0.042 Ω
Damp. ind. (d)4307 μ H Damp. res. (q)621.4 μ H
Table 2. Transmission lines parameters.
Table 2. Transmission lines parameters.
R / m L / m Length: PCC to SGLength: PCC to Loads
78 Ω /m0.238 H/m100 m300 m
Table 3. Parameters of the photovoltaic (PV) plant.
Table 3. Parameters of the photovoltaic (PV) plant.
PV Plant
Nominal volt.400 VNominal Pow.100 kVA
Nominal frEquation50 HzSwitch. frequ.19.96 kHz
PV area500 m 2 PV efficiency20%
Inverter side ind.79.8 μ HInverter side res.10 μ Ω
Grid side ind.48 μ HGrid side res.10 μ Ω
Shunt Cap.541.7 μ FShunt resistor78.4 m Ω
Outer loop K p 15Outer loop K i 3
Inner loop K p 0.21Inner loop K i 2.1
Sample time200 × 10 6 smodulation lim.[−1.15, 1.15]
Table 4. Frequency overshooting under load connection.
Table 4. Frequency overshooting under load connection.
ItemSim w/o A.S. *Sim w A.S.C-HIL w A.S.
Δ Freq/50−2.8%−2.0%−2.1%
* A.S. refers to ancillary service.
Table 5. Frequency overshooting under load disconnection.
Table 5. Frequency overshooting under load disconnection.
ItemSim w/o A.S. *Sim w A.S.C-HIL w A.S.
Δ Freq/503.2%2.8%3.0%
* A.S. refers to ancillary service.

Share and Cite

MDPI and ACS Style

Huo, Y.; Gruosso, G. Ancillary Service with Grid Connected PV: A Real-Time Hardware-in-the-Loop Approach for Evaluation of Performances. Electronics 2019, 8, 809. https://doi.org/10.3390/electronics8070809

AMA Style

Huo Y, Gruosso G. Ancillary Service with Grid Connected PV: A Real-Time Hardware-in-the-Loop Approach for Evaluation of Performances. Electronics. 2019; 8(7):809. https://doi.org/10.3390/electronics8070809

Chicago/Turabian Style

Huo, Yujia, and Giambattista Gruosso. 2019. "Ancillary Service with Grid Connected PV: A Real-Time Hardware-in-the-Loop Approach for Evaluation of Performances" Electronics 8, no. 7: 809. https://doi.org/10.3390/electronics8070809

APA Style

Huo, Y., & Gruosso, G. (2019). Ancillary Service with Grid Connected PV: A Real-Time Hardware-in-the-Loop Approach for Evaluation of Performances. Electronics, 8(7), 809. https://doi.org/10.3390/electronics8070809

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop