Abstract
The real-time simulation is a valid help to test electrical systems when a physical device is not available. This is significantly evident when used in hardware and software co-simulation environment, where it is possible to connect the emulator to a real subsystem to test or validate it. In this paper, a model of the photovoltaic system is presented that can be implemented within a hardware simulator to be able to interface it with a real circuit, the hardware simulator used is the National Instruments RIO system.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Real-time simulation (RT) is one of the frontiers of electrical system analysis. Its task is to control or react to events that occur in the real world, with the same speed as the real world clock. With the aim of having systems that can be interfaced with other software or real systems in order to simulate increasingly complex systems and on a large scale, also taking communication infrastructure into account, as in the case of smart grids [1,2,3,4].
It is necessary to be aware of the execution time of the simulation system to ensure that it is shorter or equivalent to the selected time step especially in simulating scenarios that cannot normally be performed, for example, to model the high switching characteristics of the converters, a fast processor is required to reach the minimum step size of up to microseconds [5, 6]. To simulate very quick phenomena in the order of microseconds, it is necessary to think of architectures with more than one processor, and based on FPGAs, that allow high sampling rates, a faster and parallel computing capacity [7]. As the penetration of PV generation increases, its impact on stability and security of the power system will become more and more significant, due to the characteristic of randomness and volatility [8]. Modeling and simulation are the basic technologies to study the impact on the power grid in which, large-scale PV generation systems are integrated. Simulations in the usual platform may give good results, but they are not able to deliver the results for dynamic change in input as present in real world in run time, the model may not respond for such a change. When we try to simulate to know the long-term performance of a system, the normal simulation requires a very long time to deliver the results and the accuracy of the results may also get compromised. While simulating the complex model like PV system interaction with the grid in real-time, we may encounter many problems. The important ones to mention are,
-
1.
The need for a PV mathematical model that can deliver results faster to keep the real-time simulation properties during execution. Solving the algebraic loop in the PV model is an important task, as algebraic loops are not supported in the real-time hardware.
-
2.
There is a need of cost-effective test bench/platform for simulating PV systems in real-time that can be used for control validation, studies of the storage system, and integration of PV system to the power drive train or grid.
-
3.
Model-based design of process and systems is very popular, there are tools available, for automatic code generation for the developed model, it is required to use these tools, that can deliver C code from the model, which can be used for the cost-effective target hardware.
-
4.
The memory of the real-time digital simulator (RTDS) is the main constraint while simulating a complex model, like the grid, this memory is used for storing and executing the compiled C code in real-time. It may be necessary to split the model into two or more separate systems and bridge them using an appropriate interface.
-
5.
Interfacing the two models using respective interfacing algorithm introduces some errors in the execution, that results in, instability of the system during run time and also the accuracy of the results varies according to the interfacing algorithm used.
The main objective of this work is to conduct the real-time simulation of the PV considering as hardware under test (HUT), with the MPPT (Maximum Power Tracking Point) system, storage and the load connected to DC bus acting as a rest of the system (ROS) of hardware-in-the-loop (HIL) simulation methodology. The idea is that the photovoltaic system and the rest of the system are executed in parallel in real-time and the maximum power is monitored for irradiation variation in the real world and the extracted power is supplied to the DC bus to which storage element and the fixed load resistance are connected. The modeling of these systems is done in Simulink [9]. The modeled systems are compiled and deployed in NI myRIO’s FPGA [10] for real-time simulation.
The rest of this article is organized as follows: Sect. 2 deals with the modeling of photovoltaic and MPPT systems, Sect. 3 explains the real-time simulation architecture used in this work, Sect. 4 tells the real-time simulation with the results and conclusions are drawn in Sect. 5.
2 PV System Modelling
The mathematical model of the PV system is drawn accordingly with [11, 12]. The equivalent described in Fig. 1 consists of a current source in parallel with the diode and R sh and R s are the intrinsic shunt and series resistances of the cell, respectively. The I–V characteristic of the cell is determined by the diode. PV cells are grouped into larger units to form PV modules, these modules are connected in series or parallel to create a PV array to obtain required electrical power.
where
-
I pv Cell current
-
V pv Array terminal voltage
-
I ph Photo current
-
I sc Short-circuit current at 25∘C and 1 kW/m2
-
K i Short-circuit current temperature coefficient
-
T cell, T ref PV cell and reference temperature in K
-
λ Ratio of solar irradiation to reference 1 kW/m2
-
I rs Module reverse saturation current
-
q Charge on electron = 1.6 × 10−19 C
-
N cell Number series cells in a module
-
n Diode ideal factor
-
k Boltzmann’s constant= 1.3805 × 10−23 J/K
-
I o Module saturation current
-
E g Energy band gap of semiconductor material
-
V t Diode thermal voltage
-
I sh Shunt current
-
N s Number of series modules connected in string
-
N p Number of parallel string connected in array
-
V oc Open circuit voltage
-
R s,R sh Series and shunt resistance
The method to find the resistances of PV cell can be found in [13], the above mentioned Eq. (6) is solved using Newton Raphson method with the error tolerance of 10−5 for better accuracy. In this work Mitsubishi Electric PV-UD180MF5 PV module is selected as reference, the parameters of the module are given in Table 1. The IV curve of the modeled PV array for different irradiation is given in Fig. 2, later the same model is used for PV real-time simulation, fixed step discrete solver with the sample time of 1 ms is used in both normal and real-time simulation.
The PV panels are connected to the load using a DC/DC converter governed by an MPPT controller, based on perturb and observe (P&O) method. The choice of a DC–DC converter is based on many factors such as load resistance, resistance at the maximum power point, DC output voltage [14]. Figure 3 shows the block diagram of PV with MPPT system.
3 Real-Time Simulation Architecture
In this section the test benches created for conducting HIL experiment will be presented. The mathematical model will be simulated in myRIO in real-time. FPGA IO’s are used to integrate the model in-ports and out-ports to the real world measurement systems (Fig. 4).
The model will be implemented in MATLAB-Simulink [9] and translated in into C code with its internal C code generating tool using the NI VeriStand compilers which adds on to the MATLAB and it can generate the file “.SO” which defines our model with the libraries. NI VeriStand Engine has to be deployed in the RT target to make it compatible to run with the host computer. .lvbitx file defines the custom FPGA personality used for the simulation in the RT target. The main operation is shown in Fig. 5. National Instruments myRIO-1900 is a Linux based device, it comes with built-in Xilinx Z-7010 FPGA [10] and it also allows us to build custom FPGA applications with real-time capabilities. In this study, the real-time simulation of PV system is done in myRIO using NI VeriStand [10], it is a configuration-based testing software, specifically designed to run the real-time testing application, thus allowing us to develop and test control system using hardware I/O and simulation models.
4 Simulation and Results
This test bench consists of a 100 kW PV array model as HUT, whose interaction with the ROS for the change in temperature and the irradiation is studied. The ROS consists of MPPT, DC–DC converter, DC bus is created where the load and the storage are connected with the breaker and the bi-directional intelligent converter, respectively. The temperature and the irradiation data are measured using a temperature sensor and a small 5 W PV cell, respectively. The model used to simulate using this test bench is shown in Fig. 6.
The power rating and other parameters of the proposed RT simulated system are given in Table 2, the voltage of DC bus is maintained at 250 V all the time with the help of storage and the bi-directional DC-DC converter, which allows the power flow in both the directions. PID control is used for the voltage control of the converter. When the power required by the load is more than the generation, DC bus voltage drops. Power will be compensated by the energy stored and the voltage is brought regulated. When the power generated is more than the load requirement, the DC bus voltage increases, and the controller takes action to bring back the voltage to the set reference of 250 V. In this experiment, the fixed resistive load of 1 Ω is connected to the DC bus at 5th s, the outputs are driven to the real world using FPGA IO and read using the digital oscilloscope, the test bench setup is shown in Fig. 7.
The irradiation and the temperature measured in real-time are given in Fig. 8. They both are measured by myRIO and fed to the model during run time.
The load is connected to the DC bus at 5th s, the DC bus voltage and its variations during run time is given in Fig. 9. It can be observed that the controller is able to maintain the bus voltage constant even after connecting load at 5th s.
To ensure the simulation running in real-time the bus voltage is also measured using a digital oscilloscope as shown in Fig. 10. The real-time simulation started at − 9 s, this corresponds to 0th s of the model time, the load is configured to get connected to the DC bus at 5th s of the model time, and in the oscilloscope the voltage variation due to load application is recorded at − 4th s, this proves that the simulation is running in real-time, just the voltage is scaled down by 100 V as 1 V to drive output through DAC, finally the simulation is stopped at 1.6 s as seen in oscilloscope.
The maximum power delivered by PV and the power consumed by the load after connecting it to the DC bus is shown in Fig. 11. The power delivered by PV before connecting the load is used to charge the storage system of 10 Ah. The state of charge measured in the storage system and the current flowing to the batteries are given in Fig. 12. Initial SOC is about 50% and raised rapidly till connecting the load to the DC bus, later the slope of SOC decreases since the flow of current is decreased to the storage system. The voltage seen across the storage system throughout the simulation is given in Fig. 13.
5 Conclusion
This article presents a methodology for real-time simulation, based on a model created in Simulink environment and then downloaded to the hardware of National Instruments. The step is done through VeriStand tool, to demonstrate that, it is possible to create small real-time simulators for laboratory or educational use. In the article, the methodology is illustrated in detail and accompanied by the results.
References
Y. Huo, G. Gruosso, L. Piegari, Power hardware in the loop simulator of photovoltaic plant for smart grid interation analysis, in 2017 IEEE International Conference on Environment and Electrical Engineering and 2017 IEEE Industrial and Commercial Power Systems Europe (EEEIC / I CPS Europe), June, pp. 1–5
M.D. Omar Faruque, T. Strasser, G. Lauss, V. Jalili-Marandi, P. Forsyth, C. Dufour, V. Dinavahi, A. Monti, P. Kotsampopoulos, J.A. Martinez et al. Real-time simulation technologies for power systems design, testing, and analysis. IEEE Power Energy Technol. Syst. J. 2(2), 63–73 (2015)
A. Ingalalli, H. Satheesh, M. Kande, Platform for hardware in loop simulation, in 2016 International Symposium on Power Electronics, Electrical Drives, Automation and Motion (SPEEDAM) (IEEE, New York, 2016), pp. 41–46
W. Li, G. Joós, J. Bélanger, Real-time simulation of a wind turbine generator coupled with a battery supercapacitor energy storage system. IEEE Trans. Ind. Electron. 57(4), 1137–1145 (2010)
P.M. Menghal, A. Jaya Laxmi, Real time control of electrical machine drives: a review, in 2010 International Conference on Power, Control and Embedded Systems (ICPCES) (IEEE, New York, 2010), pp. 1–6
B.L. Schenkman, D.G. Wilson, R.D. Robinett, Photovoltaic distributed generation for lanai power grid real-time simulation and control integration scenario, in 2010 International Symposium on Power Electronics Electrical Drives Automation and Motion (SPEEDAM) (IEEE, New York, 2010), pp. 154–157
M. Dagbagi, L. Idkhajine, E. Monmasson, I. Slama-Belkhodja, FPGA implementation of power electronic converter real-time model, in 2012 International Symposium on Power Electronics, Electrical Drives, Automation and Motion (SPEEDAM) (IEEE, New York, 2012), pp. 658–663
J.V. Paatero, P.D. Lund, Effects of large-scale photovoltaic power integration on electricity distribution networks. Renew. Energy 32(2), 216–234 (2007)
The Mathworks. http://www.mathworks.com/
National Instruments. http://www.ni.com
F. Bizzarri, A. Brambilla, G. Gruosso, C. Guardiani, A. Sangiovanni Vincentelli, G. Storti Gajani, Modeling and estimating yield and efficiency of photovoltaic solar parks, in 2013 IEEE International Conference on Industrial Technology (ICIT) (2013), pp. 734–739
F. Bizzarri, M. Bongiorno, A. Brambilla, G. Gruosso, G.S. Gajani, Model of photovoltaic power plants for performance analysis and production forecast. IEEE Trans. Sustain. Energy 4(2), 278–285 (2013)
S. Sumathi, L. Ashok Kumar, P. Surekha, Application of MATLAB/SIMULINK in solar PV systems, in Solar PV and Wind Energy Conversion Systems (Springer, New York, 2015), pp. 59–143
M. Pisano, F. Bizzarri, A. Brambilla, G. Gruosso, G.S. Gajani, Micro-inverter for solar power generation, in International Symposium on Power Electronics Power Electronics, Electrical Drives, Automation and Motion, June (2012), pp. 109–113
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Palahalli, H., Huo, Y., Gruosso, G. (2020). Modelling of Photovoltaic Systems for Real-Time Hardware Simulation. In: Zamboni, W., Petrone, G. (eds) ELECTRIMACS 2019. Lecture Notes in Electrical Engineering, vol 615. Springer, Cham. https://doi.org/10.1007/978-3-030-37161-6_1
Download citation
DOI: https://doi.org/10.1007/978-3-030-37161-6_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-37160-9
Online ISBN: 978-3-030-37161-6
eBook Packages: EngineeringEngineering (R0)