☀️
↖ Back to main page








Off-grid Photovoltaics System Design and Simulation:
A Case Study Using Irradiation Data



Bachelor's Thesis in Electrical Engineering
by Niklas Lissjos



Stavanger, Norway 2020
Faculty of Science and Technology
Department of Electrical Engineering and Computer Science

University of Stavanger









Abstract

This thesis provides an insight into photovoltaics energy system design and simulation. The report describes each step along the design path for an electrical system for off-grid use. Solar power feasibility at northern latitudes has been a focus, and a supplied case study using solar irradiation data courtesy of the European Organization for the Exploitation of Meteorological Satellites. Because this study covers an off-grid system, it means a battery-bank is part of the design. System simulations are performed for the case study, located in Norway. Based on a winter-optimized design and component efficiency factors, it is concluded feasible with the help of a relatively large PV array. When designing a PV energy system, there can be different practical limitations present. Therefore, alternative methods are needed. In parallel with the design process, a simple web application is developed as a tool and resource for this field of technology.









Acknowledgements

I would like to thank my supervisor Prof. Karl Skretting, at the University of Stavanger, who has provided helpful guidance and discussions along the way. And a special thanks to Daniel Philipp at Germany's National Meteorological Service, the Deutscher Wetterdienst, who has given helpful advice and guidance during the irradiation data extraction and evaluation process.

Stavanger, Spring 2020
Niklas Lissjos









Table of Contents









Abbreviations

CDNContent Delivery Network
CMSAFSatellite Application Facility on Climate Monitoring
CSSCascading Style Sheets
DODDepth Of Discharge
GUIGraphical User Interface
HTMLHypertext Markup Language
EMElectromagnetic
EUMETSATEuropean Organisation for the Exploitation of Meteorological Satellites
MPPMaximum power point
MPPTMaximum power point tracking
NRELNational Renewable Energy Laboratory
OCVOpen Circuit Voltage
PHPHypertext Preprocessor
PVGISPhotovoltaic Geographical Information System
PVPhotovoltaic
PWMPulse width modulation
SCCShort Circuit Current
SSHSecure Shell
STCStandard Test Conditions
SOCState Of Charge
SZASolar Zenith Angle








Introduction

"Energy is the only universal currency: one of its many forms must be transformed to another in order for stars to shine, planets to rotate, plants to grow, and civilizations to evolve."

– Vaclav Smil

Photovoltaic energy is the electric energy obtained by capturing and absorbing photons given off by the sun to the earth's surface. This way of generating electrical power is based on the photovoltaic (PV) effect. It is done using photovoltaic cells that are produced using advanced semiconductor technology. The thesis is focused on the field of off-grid photovoltaic systems, meaning an electrical system that has energy storage and is independent of the electric power grid. This is sometimes called a stand-alone system.









Aim and Objectives

The project aims to present an organized way of system design and evaluation of the main components, as well as making use of meteorological radiation data for the purpose. The report presents a step-by-step method where a case study is used to form an example. This case study is a fictionalized small house with relatively low energy demands, located in Stavanger, Norway. The report is not meant to be a complete design guide but to give an insight into analyzing feasibility, efficiency, and losses. Neither does the thesis aim to cover the economic aspects of solar energy, but rather the technological side. The minimum energy usage requirements of the case study house are mapped and based around this, a study on the feasibility of solar power at northern latitudes is formed. Because the winter weather and sun conditions, at the specific location, are the most challenging, this is a focus throughout the design. A battery bank is being sized based on capacity requirements and component losses. Solar radiation charging capabilities are based on meteorological data statistics. The amount of energy converted by the PV modules is evaluated based on factors such as optimal angle, temperature, and PV module conversion efficiency. The system component sizes and efficiencies found are merged into Python code for simulations. The designed system is simulated to test, verify, and draw conclusions. A simple web application is developed as a tool for some of the steps along the way.









Motivation

The production of clean energy is of major importance today and in the future. Sustainable living and environmental consciousness are becoming a more significant part of each and everyone's lives. The thesis topic and objective is chosen and formulated based on an interest in sustainable energy generation for the future and off-grid living technologies. The steps described in the report are aimed at hobbyists or engineers interested in designing efficient photovoltaic systems without blindly trusting available solar energy kits. For homeowners wanting to "go solar", efficiency numbers are most likely not as important as the cost per watt output. However, for someone to purposely find appropriate components and an accurate cost per watt output, it is crucial to understand how the different system components performes under different weather conditions.









Background Theory

This chapter summarizes the theoretical background needed to work through and understand the methods and results presented later in this report. A focus is on solar radiation energy conversion and how the obtained energy can be stored. The chapter also includes some theory on energy consumption, and other components needed to design a complete system.









Electrical Units









Photovoltaic Technology

Publicly available radiation data from various online sources can be used for the dimenzioning of a PV powered electrical system.

CM SAF Radiation Data

The Satellite Facility on Climate Monitoring (CM SAF) based in Germany and Belgium, is an integral part of the European Organization for the Exploitation of Meteorological Satellites (EUMETSAT) . CM SAF develops, generates, and distributes satellite-derived solar energy-related data products. The data, holding various specifications and parameters can be ordered(free of charge) through their web user interface, and comes in the fileformat Tape Archive (TAR , also referred to as tarball). The files can be downloaded or sent other ways. The data from CM SAF can be analyzed in several different ways, but using R and the RStudio tool called "the CM SAF R Toolbox" provided by CM SAF, the file can be prepared, analyzed and visualized. This data has good geographical coverage and contains many useful parameters .

Radiation and Photons

As radiation data is available as different parameters with various specifications, there is some background knowledge needed to be able to find, understand and make use of the appropriate data.

Photons

Energy from the sun, in the form of electromagnetic (EM) radiation, is carried by photons to the earth's surface. Photons is particles of light that is characterized by a wavelength (λ). Photon energy can be denoted in joules [J] or electron-volts [eV], where electron-volts is the energy recovered in the photovoltaic semiconductor technology . $$\label{ph_energy_j} E = \frac{hc}{\lambda}[J] = \frac{1.24}{\lambda}[eV]$$









Radiation

Energy from the sun, in the form of convection, and naturally occuring radiation, is at all times reaching the earth. Below, is a summary of definitions needed further in this section, to understand how this radiation behaves when entering and passing through the atmosphere .






The full EM spectrum from the sun is the assemble of different EM radiations , such as Gamma-ray, Ultraviolet (UV), and Microwaves. Still, not all solar radiation is useful with photovoltaics .

Typical spectrum of wavelengths reaching the earth. Air-mass (AM) and the ASTM standard are explained below. Plot data from Matlab Fileexchange .





The energy for each wavelength that reaches the earth is just a fraction of what is being radiated and consists roughly of Infrared(IR), visible light, and Ultraviolett(UV). The dotted lines in figure 2.1 indicate roughly where these three different radiation types meet. The middle section shows the visible light and composes 44 percent of the energy reaching the earth's surface. The left part at only 9 percent of received energy is the UV light. The right section is IR, which at 47 percent is the most significant fraction of energy reaching the earth .

Below is a brief summary of definitions and useful radiation parameters that is available in satellite derived data from CMSAF and others.

PV Cell Technology

To absorb and convert photon energy, PV cell technology is being used. The PV cell can be manufactured using different techniques and is usually produced using Silicon (Si). Monocrystalline and Polycrystalline silicon cell technology is the two most commonly used in currently available modules. Very shortly described the PV cell is built up of silicon and the electric current occurs at a pn-junction. P and N-type silicon is produced by doping the materials. A PN-junction is then made up of these two doped materials. An electric field occurs between the P and N part when photons from the sun reach the PN-junction. And from this, electron hole pairs occurs. A voltage will develop across the PN-junction when the incident radiation and photon energy exceeds the bandgap energy . To summarize the production of the PV cell semiconducting material, the main steps is explained below. From Quartzite rock, metallurgical silicon is produced through several steps and processes, where finally the silicon is purified through melting. At this stage the material can be used to various applications not only for the semiconductor industry .

Looking at operational characteristics of the PV cell, it is known that the bandgap energy varies from material to material but silicon needs approximately 1.11 [eV] . Wavelength (λ), smallar then about 1.1 μm will uphold the energy required for silicon-based PV cells. Looking at figure 2.1 we can see that these wavelengths is in the near IR range and below. This means that PV cells can absorb and convert energy with wavelengths in the range of approximately 0.2 to 1.1 μm .









Ideal PV Cell Equivalent Circuit

Even though there are different manufacturing techniques and semiconductor metallurgy, the main characteristics of most PV cells can be modelled and approximated by the below ideal cell equivalent circuit. This can help to evaluate different situations and understand characteristics. By using this circuit model, it is possible to work with Kirchoff's circuit law's and derive formulas for testing and understanding .

(0,0) to[isource = Iph] (0,3) to[short, -*] (3,3) to[short, -*] (6,3) (3,3) to[diode, i>_=ID] (3,0) – (0,0) (3,3) – (6,3) to[resistor = Rsh, i>_=IRsh] (6,0) – (3,0) (6,3) to[resistor = Rs, i>_=I] (12,3) to[short, o-*] (12,3) node[anchor=west]+ (6,0) – (12,0) to[short, o-*] (12,0) node[anchor=west]-;

By using Kirchoff's current law's, ideal circuit element equations and ohms law, the below characteristic equation describing the PV cell output current is found . $$I = I_{ph} - I_S \Big(e^{(\frac{V_D}{nV_T})}-1\Big) - \frac{V + IR_{s}}{R_{SH}}$$

Based on the ideal cell circuit in figure [cell_equivalent], it is evident that, to get the most out of this circuit it required for RS to have zero resistance and Rsh to have infinite resistance. Disregarding the resistors, imagining no sunlight available, the PV cell acts as a diode. And when the cell receives radiation from the sun, the current Iph appears as illustrated in figure 2.2. The part of the irradiated curve inside the green rectangle are what is usually seen up-side-down, as shown in figure 2.3 .

Illustration of the PV cell IV-curve origin

Looking back at the equivalent circuit in figure [cell_equivalent], it is a fact that the current Iph, will be the biggest when the cell is shorted without load, i.e. load voltage is zero. Iph will on the other hand be zero when no load is connected, and the open-circuit voltage VOC is then at its biggest. This results in: ISC =  − Iph, and the IV curve is plotted as shown in figure 2.3 .

Maximum Power Point

Because power is defined as P = U x I, there will be a specific point on the IV curve where power (P) is the biggest. This point is called the Maximum power point (MPP). This is visualized in figure 2.3 by the gray marked area that would represent power. MPP on the IV-curve, will be where this gray "power area" is the biggest possible . The real IV-curve for a PV cell or module is found in laboratories under Standard test conditions (STC), as explained in section 2.2.3.

Illustration of Ideal PV cell Power, IV curve, and MPP.

To get the most power out of a PV cell, it needs to be forced to work at the MPP. Since the cell and the IV-curve will constantly vary from factors such as temperature and irradiance, the MPP will also change as a result. By connecting a load directly to a cell or module this would not operate very efficiently, but instead this is solved and handled using a technique called Maximum power point tracking(MPPT), which is handled by a charge controller . Besides MPPT, the cell temperature is a factor that affects the efficiency remarkably. Voltage drops from increasing internal resistance at higher cell temperatures, and current increases very little, therefore resulting in a power loss . For the entire PV module, there will be more factors to consider, such as soiling and shading. More about this in section 2.2.3.

PV Module Ratings and Properties

PV modules or solar panels as the modules are commonly called, is built up by a number of PV cells to output a certain voltage. In PV powered systems, a number of PV modules is connected and together forms a PV array that can supply the system with power.

6 x 12 Monocrystalline PV Module, with a single cell indicated. Image from Victron Energy, used with permission .
PV array with one string of 6 PV Modules.

Standard Test Condition

Or shortly called STC, is an industry-standard for the conditions where PV Modules is being tested and rated in laboratories. Thanks to this standard of test conditions, modules can be accurately compared. The STC consists of the following three criteria that is used during laboratory testing :

Manufacturer Information

Using the STC, PV module manufacturers can test and declare a number of electrical properties. These data can be found on the product datasheet. Since the STC is a controlled testing environment, the parameters has fixed values under STC .

Beyond STC parameters, manufacturers declare physical dimensions, characteristic curves, a nominal operating temperature and electrical properties under the nominal temperature. A tempererature coefficient of power is declared in percent per degree celcius. This is a coefficient stating how big loss to expect per degree celsius change. The coefficient is negative since efficiency goes down with increasing temperature .

Shading and Mismatch Losses

A shaded or mismatched cell in a module behaves like "a clog in the pipe", as resistivity will go up and make the current drop. Other than shading, this phenomenon can also be caused by soiling, aging or other damage to a cell or module. A cell that gets raised resistance like this, also heats up quickly, which will result in degraded performance of that cell. The solution to this is bypass-diodes. This can be an issue at cells in a module, but also in a string of modules when parts of a module gets shaded. To avoid this problem as much as possible, bypass-diodes is integrated in PV modules, and it can be added to the strings in a solar array.

Illustration of PV module built-in bypass-diodes.

The PV module configuration of cells, and use of bypass-diodes can be found from the product datasheet. For example, a 60 cell module has three built in bypass diodes that can each bypass a string of 20 cells in the module . These different factors discussed above will cause a loss that is very hard to set up a general number or equation for. Shading over large areas of a PV array will have a big impact and can quickly halve the output. This is simply a thing that needs to be avoided in order to achieve a system as efficient as possible. According to NREL, soiling, shading, and cell mismatch often cause 2 to 3 percent losses .

Maximizing Absorbed Irradiation

Established definitions and parameters used for the topic has been summarized below:

Example of the suns daily angles at a specific location .

The earth rotates around its axis once per day, as well as orbiting in an elliptical path around the sun ones during a year, as shown in figure 2.8. Because of the earth's tilted axis in relation to the sun, the declination angle δ appears. This angle varies between 23.45$°$ in the summer, and -23.45$°$ in the winter .

Illustration of the earth's orbit, and the declination angle \delta.

There is two angles of the PV module that needs to be considered when planning an optimal mounting position. The elevation angle (θ), and the azimuth angle, as shown in figure 2.9.

Illustration of azimuth and elevation angle of a PV module.

Solar Tracking

An alternative to mounting the module or array in a fixed position is to use a solar tracker. One or two axis, solar trackers, is a piece of equipment that makes the module/array automatically follow the sun for optimal irradiation absorption. The two-axis tracker adjusts both elevation and azimuth, whilst the one axis tracker, is slightly simpler and changes only the azimuth angle. Solar tracking maximizes the intersection with the sun's rays. Figure 2.10 illustrates the cosine to angle relation, that dictates the sun rays radiation components that can be absorbed by the PV module .

Illustration showing the effect of PV module elevation towards the sun.

The gain from using a solar tracker versus a fixed position depends on many factors. In Photovoltaics Systems Engineering , it is stated that two-axis tracking in a desert climate, can help achieve up to 50 percent more energy during summer and 20 percent during winter in best-case scenarios. But locations affected by more diffuse solar radiation such as Seattle WA, would gain 35 percent in summer and only 9 percent in winter time. It is also stated that a PV module can have an azimuth angle offset from the solar noon of up to 22.5 degrees, with no more than a 2 percent irradiation loss. Common in smaller installations is to use a fixed position where the aim is to find the optimal angles, for most possible irradiation absorbance .

Optimal PV Module Elevation Angle

The illustration in figure 2.8 explains why the declination angle δ will have a sinusoidal behavior. During summer in the northern hemisphere, it will alternate between $23.45°$ and $0°$, and similarly, in winter it will alternate between $-23.45°$ and $0°$. The average seasonal declination angle is found using the same method, as when finding an average sinusoidal voltage output, 2A/π, wherein this case, the amplitude is the declination degrees. Resulting in: $2\cdot-23.45° / \pi \approx -14.93 °$, which is average angle for wintertime. Based on this, it is common practice to set the optimal PV module elevation angle as follows:

Optimal PV Module Azimuth Angle

From the perspective of the earth and the northern hemisphere, the sun is traveling from east to west along the horizon, at different solar noon altitude depending on location and season. An optimal azimuth angle for a specific location would be the direction of the sun at solar noon, which is true south for the northern hemisphere. Looking away from possible diffuse solar radiation, the irradiation will be at its strongest at solar noon thanks to the fact that air mass will be the least at the time. See equation [am]. The intensity of the irradiation on the module will decrease rapidly before and after one hour from solar noon because of air mass, and the sun's angle of 15$°$ traveled per hour . Solar noon can be calculated based on Astronomy, but it is beyond the scope of this project. This can instead be found at various online resources. For example at www.timeanddate.com . Data covering Stavanger in December 21th 2019, states that solar noon is occoring at 12:34, at 180$°$ South, with an altitude angle of 8$°$ .

Batteries

A battery is an electrochemical device that could be extensively described to fully understand. Instead this section summarizes the main parameters, characteristics and efficiency on an electrical level.

There are two main categories of batteries: Primary and secondary type, where the primary group covers the non-rechargable. Since recharging is one of the key reasons of a battery bank in an off grid PV system, the following information covers exclusively secondary type batteries.

Parameters

Battery Types and Characteristics

To summarize, here is four of the most common secondary type batteries:

Ragone plot illustrating volumetric and gravimetric energy density of various battery types .

Generally the battery capacity becomes smaller at lower temperatures, but the battery lifetime improves from operating under colder conditions. Overheating damages the battery, and this usually comes from overcharging. For analysis of a batterys characteristics, ambient temperature statistics for specific geographical location will be useful. This can be found online at publicly available sources. For Norway, Norsk Klimaservicesenter, is a valuable resource of weather and climate data. As an example, yearly average temperature data for Stavanger and December can be located. Data from the years 2015 to 2019 is localized and used to find an average based on these five years .

$$\label{averagetemp} \frac{(6.2 + 6.1 + 3.5 + 4.1 + 5.3)}{5} = 5.04 \hspace{1mm} [° C]$$

Other System Components

Charge Controller

A solar charge controller is a power electronics device specifically built to handle the needs and conditions that a PV system requires. The charge controller interconnects the PV array, battery bank and the load, and to handle this it has several built in functionalities. A PV system is constantly changing from external parameters such as irradiance and ambient temperatrue. And energy usage will not happen synchrously with charging. It is therefor important to control a number of parameters. Below is an overview of some of the most important and commonly built in functionalities .

Inverter

An inverter is needed to convert the battery DC voltage to AC, 230 or 110 volts depending on geographical location standards. For bigger installations it is possible to get inverters for three phase output. Some manufacturers offer a charge controller with integrated inverter. Two important specifications to consider below

DC Power Transfer Losses

To be able to determine losses in cabling it is necessary to know voltage, current and resistace for the wires in question . The DC cable power efficiency ηwire can be calculated as follows: $$\eta_{wire} = 100\% \cdot \frac{P_{out}}{P_{in}} = 100\% \cdot \frac{(V_{in} - V_{drop} ) \cdot I}{V_{in} \cdot I}$$ where, Vdrop = I ⋅ Rwire Rwire can be found using the wire resistance formula below: $$\label{cableresistance} R_{wire} = \frac{\rho \cdot l}{A}$$ where,

Table of wire resistivity (ρ)
Conductor material $[Ω m ]$ at 300 Kelvin
Copper 1.72 ⋅ 10−8
Aluminium 2.73 ⋅ 10−8
Carbon 3.5 ⋅ 10−5
Gold 2.27 ⋅ 10−8
Silver 1.63 ⋅ 10−8

Energy Consumption

According to the European Union, certain products require energy labels along with standard product information. The labelling standard at the time of writing is following the European Parliament directive 2010/30/EU. This energy labelling has a ranking scale from A to G with three additional grades added on top of Class A. These additional grades is A+, A++ and A+ + +. Stated in the Selina Consumer Guide , published by the European Commision, the average household standby electricty losses is found to be 11% during a survey made across EU countries. In the same study by the European Commision it is declared that the International Energy Agency expect that by 2030, 15% of total appliance electricity consumption in Europe could be due to standby functions . Listed below is common household energy consumers.

Web Application Developement

A web based application using traditional HTML in combination with Python as back-end programming language is a popular method and good alternative to PHP. The HTML to Python interface can be done using the Flask microframework. The Flask framework requires minimal code and installations to get up and running, and can thereafter be expanded with numerous modules depending on end product needs. It is therefore suitable for basic websites, as well as highly sofisticated applications. Flask is providing quickstart code snippets, along with good documentation . For developement of responsive design and front-end graphics, it is common to use both CSS and Javascript. This can be made easy by using the open source toolkit from Bootstrap . The Bootstrap framework can be used without installations through their CDN. There is many different ways of deplyoing a Flask application to make it accessible on the internet. Linux servers is commonly used, and can be set up using a cloud Linux server at one of many available hosts. Web applications of this kind, is usually deployed to a virtual machine on the server, where the user can install and configure using SSH.

Methodology

This chapter is based on an off-grid PV system case study, which consists of a fictionalized small house with relatively small energy demands located in Stavanger, Norway. The case study system design, is based around specific minimum energy demands, where required PV array size and angles is calculated. Six main steps lead forward to final simulations of the complete system. As the case study covers a year round living scenario in Stavanger, it is known that the solar energy bottleneck will be during wintertime. Therefore from section 3.3 onwards, the month with the least available irradiation (December) has been used as a basis for design, simulation and analysis. In other situations where the PV array size is a bottleneck, a slightly different method is required (Explanied in section 3.4.4). In parallel with the case study project, a simple web application is developed as an online tool. The web application is built for personal use during this project, but also as a future resource for anyone interested. The application has functionalities to facilitate steps 1 to 4 below.

1. Mapping of system loads. . Battery-bank dimensioning. . Solar irradiation evaluation. 4. PV array sizing and considerations. . MPPT Charge-controller & inverter. . System simulation.

The system block diagram in figure [blockdiagram], is made to get a simple overview of the PV system main components. Indicated in this diagram, is the different efficiency parameters(η) that has been considered in the coming sections. = [draw, fill=blue!20, rectangle, minimum height=8em, minimum width=13em] = [pin edge=to-,thin,black]

Summary of considered efficiency parameters
Efficiency: Parameter:
PV module maximum power point ηmpp
PV module operating temperature ηpv − temp
PV module optimal angle ηangle
PV array to controller cable ηarray − cbl
Inverter ηinv
Charge controller ηcharge − ctrl
Battery cable ηbatt − cbl
Battery roundtrip ηround − trip = ηbatt − chng * ηbatt − dchng
Battery temperature effect on capacity ηbatt − temp
Inverter to load cable ηload − cbl
Standby power losses ηstandby

Mapping of System Loads

An important task when designing a PV powered system for off-grid use, is to gather and list information about energy comsumption. The list should contain all appliances including small electronic gadgets. This will give a good overview of where the biggest amount of power goes. In many cases the energy usage can be minimized by using more energy efficient appliances and hence a suitable pv/battery system can be designed. For example, it might be feasable to upgrade to a newer and more energy efficient fridge. This case study, based on a fictionalized house, is equipped for simple but year-round living. It is not electricity-dependent for heating. The heating is instead envisioned to be handled by, for example, a woodstove. Page #1 in the web application (Appendix A) can be useful to find daily watthours similar to what is done in figure [consumers].

Consumer Watt Hours [Wh]
LED lighting 4pcs. 5 = 20 12 240
Wireless router 5 24 120
Laptop charger 45 5 225
Washing machine 900 1 900
Water boiler 1500 0.3 450
Induction cooktop 2000 2 4000
Water heater 1000 3 3000
Fridge/freezer 18.4 24 441.6
Total [Wh]: 9376.6

The electrical power in an off-grid PV system will essentially have a DC side and a AC side. The DC power transfer will happen mostly between PV array to controller/inverter. And AC power will be from inverter out to appliances. The power losses in the AC side of the electrical system, will be similar to the losses of any conventional household. This is mostly from standby losses, as covered in section 2.5. Assuming that 11 percent of total energy consumption is caused by cabling and standby losses in the 230 volt, AC part of the system, the total watthours is recalculated as follows:

$$\frac{9376.6}{100\% - 11\%} = \frac{9376.6}{89\%} \approx 10536 \textnormal{ [Wh]} = 10.536 \textnormal{ [kWh]} \label{24henergy}$$

With the standby and AC-cabling losses now included in the daily total energy usage, it is covered for ηstandby and ηload − cbl, shown in the block diagram (figure [blockdiagram]). The proposed 24 hour timeline in figure 3.1 is set up based on the table in figure [consumers] and a possible scenario of use.

24 hour timeline of power usage.

For the purpose of simulations later in this report, the consumption timeline in figure 3.1, is translated into a kW consumption curve. The resulting power curve shown in figure 3.2, is produced using values from the table in figure [consumers] and the timeline in figure 3.1.

24 hour consumption curve, based on usage table and timeline.

With a focus on correct daily energy consumption (10.536 kWh), this curve is actualized using Python, through an interpolated list of values. The curve is then numerically integrated, using the trapezoidal method (section 2.1), to verify the daily kilowatthours towards the result in equation [24henergy].

Battery-bank Dimensioning

The battery-bank in an off-grid PV system is built up of a number of batteries, configured in series and or parallel to supply the appropriate voltage needed. The purpose of the battery-bank is to be able to store and later distribute the needed energy. Energy storage is needed since the solar irradiance curve versus load curve, will not match up. It also helps cover up for seasonal fluctuations as for example, diffuse solar radiation in combination with higher load demands. Because the case study location is Stavanger where the weather is challenging for PV power, the battery-bank has been calculated based on a two day backup scenario. Two days of heavy clouds is not unusual, especially during wintertime. With the unwanted "memory effect" in Ni-CD technology and high rate of self-discharge in Ni-MH, it is clear that Lead Acid and Li-ion batteries make better choices for a PV system (Section 2.3). As the Ragone plot in figure 2.11 illustrates, the lead acid battery will be considerably bigger and heavier than any Li-ion battery with the same capacity. And as this project has been focused on efficient technology rather than affordable components, lithium-ion has been used for the case study. Specifically the Victron Energy, 25,6v/200Ah Lithium-Iron-Phosphate Battery Smart. Considering power transfer losses, it is in most cases beneficial to work with higher voltages since it results in lower currents. Based on equation [vdrop] in chapter 2, less current results in less Vdrop, which in turn results in better DC cable efficiency. and 48 volt is commonly used in larger systems, and for the sake of best possible efficiency, a 48 volt battery bank is decided for the case study. Knowing that battery capacity will decrease when operating at colder temperatures (section 2.3), ambient temperature has been used for battery bank sizing.

To find the necessary battery-bank capacity, the below steps is followed. Page #2 in the web application (Appendix A) can be used to find and experiment with these five steps.

  1. Daily energy usage from equation [24henergy] compensated for the battery round-trip efficency: 10.536 [kWh]  ≈ 11.451 [kWh]

  2. The result from step 1, compensated for the preferred 50 percent DOD: 11.451 [kWh]  ≈ 22.902 [kWh] Note: DOD can be up to 80 percent using Li-ion, to help minimizing battery bank capacity.

  3. The result from step 2, compensated for capacity drop at lower operating temperature: 22.902 [kWh]  ≈ 27.264 [kWh]

  4. The result from step 3, multiplied by the desired number of backup days. In this case 2 days: 27.264 [kWh] 2 54.529 [kWh]

  5. Divide the result from step 4 with the desired battery bank voltage. In this case 48 volt is desried: 54.529 [kWh] / 48 1136 [Ah]

Note: Inverter and charge-controller losses has not been considered at this stage, but included later in the simulations section. With the calculated battery-bank capacity figure, battery configuration comes next. A series connection of two 24[V]/200[Ah] batteries results in 48[V]/200[Ah]. And by paralleling 5 of these battery pairs, a battery-bank of nominal 48 volt and 1000 amphours is obtained. This is slightly below the calculated needed battery capacity, but adequacy is later analyzed through simulation.

Illustration of 48v/1000Ah battery bank, built of 24v/200Ah batteries.

To find the loss in the cable connecting the battery bank to inverter/charge-controller (ηbatt − cbl), the maximal instantaneous current drawn by the load is used. Battery cable length of 3 meter has been used for the example case study. Based on the power curve in figure 3.2, a daily power peak of 2043.4 watts is drawn when the induction cooktop is used. This causes a current at: [W] / 48 [V] 42.57 [A], daily peak current. To calculate the battery cable loss, it is necessary to know the cable cross-sectional area. Which will depend on the specific cable manufacturers specifications and recommendation. In this case, a recommendation table from Victron, and the peak current of 42.57 amps, is used decide on 16 squaremillimeter area. The recommendation states, this should be sufficient with some margin . Making use of equation [cableresistance] and the resistivity ρ, for copper from figure [wireresistivity], the battery cable efficiency percentage is found through the steps below: $$R_{wire} = \frac{1.72 \cdot 10^{-8} \cdot 3}{16 \cdot 10^{-6}} \approx 3.2 \hspace{1mm} [mΩ]$$ $$V_{drop} = I \cdot R_{wire} = 42.57 \hspace{1mm} [A] \cdot 3.2 \hspace{1mm} [mΩ] \approx 136 \hspace{1mm} [mV]$$ $$\label{batterycableefficiency} \eta_{batt-cbl} = 100\% \cdot \frac{48 - 0,136 \cdot 10^{-3}}{48} \approx 99.9997 [\%]$$ With the result in equation [batterycableefficiency] it is tempting to say that the battery cable losses is negligible, but it is accounted for later in the report during simulation, and where the total system efficiency is summarized. Note: Calculating cable loss using the peak-current is a close approximation. To find the exact loss, an integration based on the instantaneous current would be required.

Solar Irradiation Evaluation

The solar irradiation data used for the Stavanger case study is of SIS specifications aquired from CMSAF. SIS data properties has been explained in section 2.2.1, and most importanly to understand, that this data is given in watts per squaremeter, reaching the earth surface on an horizontal surface, including the photon wavelengths usable by PV technology. This means, the angles of the module will say quite alot about the amounts of irradation that is actually possible to absorb and use, especially at latitudes far from the equator. The PV module angles is accounted for in the next section. A histogram of monthly average irradiation for Stavanger is produced from the CMSAF supplied NetCDF data files, using Python with additional packages(see Appendix B). This histogram, in figure 3.4, is based on ten years of statistics covering monthly average irradiation.

Irradiation histogram covering the case study location. Watts per horizontal square-meter. Copyright 2020 EUMETSAT

At Page #3 in the web application (Appendix A), monthly average irradiation can be found and compared. With the current version of the application, two locations can be compared and evaluated at a time, with data covering 30 different locations available.

With a starting point from this data, the month with the least average irradiation is used further. This is found to be December with an average of 7.8 watts per squaremeter. To be able to later simulate an 24 hour scenario of the PV system, a irradiation charging curve is needed. To achieve this, the irradiation data together with sunhour information, is translated into an 24 hour continous curve. In addition to the solar noon time (12:34), found in section 2.2.4, the below information is extracted online, for Stavanger in December 21th 2019 .

Daily average solar irradiation curve, based on SIS data (Horizontal surface).

The 24 hour irradiation curve in figure 3.5 is produced using the same method as the consumption curve (figure 3.2), based on the three points below. The average value of this curve is calculated to verify 7.8 as desired. This has served as a basis for coming calculations and finally simulations to test out PV array and battery-bank size.

PV Array Sizing and Considerations

For the purpose of the case study, the sections below cover the gain from optimal angles, required PV array size, and PV array output. A fixed PV array installation has been chosen for this study, based on arguments discussed in Chapter 5. Aside from the case study, for situations where the PV array size is the bottleneck, an alternative method is described in section 3.4.4.

Gain from Optimal Angles

Optimal Elevation Angle

Ideally it is desired for the incident angle θi to be 0, which means an optimal angle is obtained.

Illustration of defined angles relative to horizontal.

In reality with a fixed PV module position it is all about minimizing θi through out the day. Latitude for Stavanger is 59$°$, and an optimal elevation angle(θ) for December is desired. Following section 2.2.3, the result is: $$\label{optimal_angle} 59° + 14.6° = 73.6° = \theta$$ The next step is to find out what this specific optimal elevation angle can give in return, based on the horizontal surface SIS data. The different angles in relation to horizontal from figure 3.6, is being used below to derive equations, and finally to end up with the two cases in equation [case1] and [case2].

$$\theta_{i} = 90° - (\theta_{Z}+(90° - \theta))$$ $$\rightarrow \theta_{i} = 90° - \theta_{Z}-(90° - \theta)$$ $$\rightarrow \theta_{i} = 90° - \theta_{Z}-90° + \theta$$  → θi = θ − θZ Direct beam solar radiation (IB) as explained in section 2.2.1, is the radiation that will reach earth without diffusion. In this case IB will be replaced by an expression of the SIS irradiation (ISIS). Based on some basic trigonometry and figure 3.6, it is possible to set up the relations in equation [I_pv] & [I_b]. IPV = IB ⋅ cos(θi) $$\label{I_b} I_{B} = \frac{I_{SIS}}{cos(\theta_{Z})}$$ Where IPV is the irradiance in watts per square-meter on to the PV module surface. Substituting to get an expression involving the two angles: $$\label{optimal_angles} I_{PV} = \frac{I_{SIS}}{cos(\theta_{Z})} \cdot cos(\theta_{i}) = \frac{cos(\theta_{i})}{cos(\theta_{Z})} \cdot I_{SIS}$$ From the last expression in equation [optimal_angles], two cases has been considered. Case 1: When the sun beams is parallel to the normal vector of the PV module. Meaning the exact optimal angle, and θi = 0$°$. Which also means that θZ = θ and the equation [case1] can be written. This case would be valid for a well working two-axis tracker. $$\label{case1} I_{PV} = \frac{1}{cos(\theta)} \cdot I_{SIS}$$ Case 2: Second case is when θZ ≠ θi and θi> 0. For installations without solar tracking. $$\label{case2} I_{PV} = \frac{cos(\theta_{i})}{cos(\theta)} \cdot I_{SIS}$$

For further evaluations, Case 2 has been used, which is most realistic for a fixed PV module installation. Now, combining the facts that the sun is traveling 15 degrees per hour, and that full irradiation is present for only one hour before/after solar noon (section 2.2.3). During these ±15 degrees travel of the sun in relation to solar noon, the solar altitude angle will change just slightly. Based on this, the approximation of θi = 5$°$ has been used as an average in the Case 2 equation ([case2]). Using θi = 5$°$ in the calculation will add a small irradiation loss which is natural, since a fixed position will never fulfill θi = 0$°$.

Optimal Azimuth Angle

Azimuth angle for a fixed installation will be optimized by pointing the module at true south, which is equivalent to the sun's direction at solar noon. As explained in section 2.2.3 with background from the book Photovoltaics Systems Engineering, less than 2 percent irradiation loss is common at up to 22.5$°$ degrees azimuth angle offset. With the short duration of sun-hours in Stavanger during December month, azimuth angle offset will not likely be bigger than 22.5$°$. This can also be seen from the "narrow" sun curve illustrated in figure 3.5. Based on this information, an approximation is made to use a 2% loss (ηazimuth = 98[%]) for the fixed azimuth angle.

Optimal Elevation and Azimuth Angle Efficiency

Utilizing equation [case2] from case two, the angles found, and the azimuth loss, the optimal angle efficiency (ηangle) is found: $$\label{n_angle} \eta_{angle} = \eta_{azimuth} \cdot \frac{cos(\theta_{i})}{cos(\theta)} = 98[\%] \cdot \frac{cos(5°)}{cos(76.4°)} \approx 415.18 [\%]$$ To summarize ηangle : This is the factor that, thanks to the optimized angles, will improve and increase the amount of absorbed photon energy at latitudes and seasons where the sun is not perpendicular to the earth horizontal surface, when using SIS data. This effect of incident angle is illustrated in figure 2.10. Note: The value found in equation [n_angle] is specific for this case study, but the method can be used to find gain or loss at any location and PV module elevation. ηangle, is next used to approximate the actual average irradiation (IPV), on to the PV module surface. $$\label{ipv} I_{PV} = \eta_{angle} \cdot I_{SIS} = 423.66 \% \cdot 7,8 \textnormal{ [W}m^{-2}] \approx 32.38 \textnormal{ [W}m^{-2}]$$

Required PV Array Size

At this point, an estimation of the needed PV array surface area is calculated based on IPV and the PV module characteristics. Equation [arrayA] is formulated to output an approximation of needed PV array area in square meters, required to recharge the consumed energy during one average day. $$\label{arrayA} A = \frac{E_{D} }{T \cdot I_{PV} \cdot \eta_{mpp} \cdot \eta_{pv-temp}}$$

Resulting in: $$\label{neededarea} A = \frac{10536}{24 \cdot 32.38 \cdot 19.8\% \cdot 107.19\%} \approx 63.88 \textnormal{ } [m^{2}]$$ Note: square meters of effective PV module surface area, at 76.4 degrees angle, will cause practical problems in many real situations. Even though this area can be split up between several sub-arrays. For situations where PV array space is strictly limited, see section 3.4.4. One LG Neon PV module has effective surface dimensions of approximately 1000 x 1650 mm, which means approximately 1.65 m2 . Based on the result from equation [neededarea], next is to find an estimate of how many PV modules that is needed. $$63.88 [m^{2}] / 1.65 [m^{2}] \approx \textnormal{39 PV modules needed.}$$ $$\rightarrow 39 \textnormal{ modules} \cdot 1.65 \textnormal{ }[m^{2}] \approx 64.4 \textnormal{ }[m^{2}]$$ Meaning, 39 modules will give an area slightly over what is found in equation [neededarea]. Page #4 in the web application (Appendix A), consists of a slightly simplified PV Array Sizing Calculator. The application is utilizing an algorithm, assuming that incident sun angle θi relative to the PV module has an average value of 5 degrees, as well as neglecting losses from a fixed azimuth angle and high operating temperatures. The user is required to input the location latitude, irradiation, energy usage, and PV module efficiency. An optimal angle is internally calculated, and the estimated array area is returned.

python @app.route(’/4’, methods=[’POST’]) def page4_calc(): latitude = float(request.form[’latitude’]) i_sis = float(request.form[’i_sis’]) e_d = float(request.form[’e_d’]) mpp_e = float(request.form[’mpp_e’]) if latitude >= 0: theta = latitude + 14.6 elif latitude < 0: theta = latitude - 14.6 array_area = (e_d * math.cos(theta)) / (24 * math.cos(5) * i_sis * (mpp_e/100)) array_area = round(array_area,2); return render_template(’page4.html’, array_area = array_area)

PV Array Output Curves

Based on values found in section 3.4.2 and 3.4.1, an PV array average power output (Paverage) has been found. Paverage = A ⋅ IPV ⋅ ηmpp ⋅ ηpv − temp  → 64.4[m2] ⋅ 32.38[Wm−2] ⋅ 19.8[%] ⋅ 107.19[%] ≈ 0.443[kW] The PV array output power curve in figure 3.7, is produced for later use during simulation. The curve is a rescaled version, based on the horizontal surface irradiation curve in figure 3.5, which now holds the Paverage value.

PV array output charging curve, for an average December day.

Whilst the dark green curve line is showing the charging value at different hours, the green shaded area underneath the curve would be kilowatthours in a day, if integrated. The plot also illustrates an average daily maximum charging, of close to 2.1 kilowatts, which is maintaned for about 2 hours during mid day. This curve represents a close approximation of an average day's available charging from the PV array in December. Note: For sizing of charge-controller and cables, summer peak power should be evaluated.

Irradiation and PV array output during a particular day in the month could turn out to be both better or worse than the average charging curve in figure 3.7. Therefore, in preperation for simulations, two alternative curves is produced, from now on called Good day and Bad day.

PV array output charging curve, for a Good day.
PV array output charging curve, for a Bad day.

PV Array as a Bottleneck

This alternative method sequence, has not been used for the case study, but can be used in cases where the physical PV array space is strictly limited to for example, a specific roof or wall square meters.

  1. Based on equation [arrayA], the below formula is derived, and can be used to determine energy available, given specific square meters (A) available. ED = A ⋅ T ⋅ IPV ⋅ ηmpp ⋅ ηpv − temp Where, T, IPV, ηmpp, and ηpv − temp can be found as previously described in section 3.4.

  2. With the energy available (ED), found in step one, Page #1 in the web application can be used to "test out" combinations of appliances and possible amounts of energy consumption.

  3. Having found the energy consumption, in step two, battery bank capacity can be calculated as described in section 3.2.

MPPT Charge-Controller and Inverter

With a background from battery characteristics described in section 2.4, a charge controller configured for the battery type will protect from overcharging and high temperatures, which will help increase the lifetime of the battery-bank significantly. Overcharging essentially means that voltage and or current during charging is not within specifications. This brings us to the fact that a charge controller is needed. In my opinion, this battery protecting technology, and the MPPT, is what makes the difference in high-end products. The Victron EasySolar-II , chosen for the case study, has integrated MultiPlus-II inverter/charger, as well as SmartSolar MPPT -Tr solar charge controller. This all-in-one solar power control unit is found suitable by evaluation continous current and maximum surge current limits . The inverter, and charge controller electronics is consuming some power, and will therefor cause small power losses.

Finally in this section the PV-array to charge-controller cable efficiency (ηarray − cbl) has been found. This cable is assumed to be 5 meter long, for the sake of this example. Furtherly a recommendation of 35 squaremeter cable is followed , for the Victron charge controller that will be used as example. 48 volt design from array to MPPT is also choosen based on efficiency considerations and Victron datasheet . To find the PV array cable efficiency, it is necessary to find the array cable resistance. Following equation [cableresistance] and resistivity for copper cable from figure [wireresistivity], the below is found: Copper cable: ρ = 1.72 ⋅ 10−8 $$R_{wire} = \frac{1.72\cdot10^{-8} \cdot 5}{35\cdot10^{-6}} \approx 0.0025 [Ω]$$ The maximum average charging current, and voltage drop, is found using maximum PV array power output (Found in figure 3.7). Imax = Pmax/voltage ≈ 2.1[kW]/48[V] = 43.75[A] $$V_{drop} = I_{max} \cdot R_{wire} = 43.75 [A] \cdot 0.0025[Ω] \approx 0.11 [V]$$

$$\rightarrow \eta_{array-cbl} = 100[\%] \cdot \frac{48 - 0.11}{48} = 100[\%] \cdot \frac{47.89}{48} \approx 99.77[\%]$$

System Simulation

In preparation for the system simulations, all efficiency parameters is divided into two main categories as follows.

The idea of the system simulation is to test and verify the dimensioning that has been done up to this point. With the simulation set up and working, this also gives a chance to experiment with the battery-bank capacity. The simulation is done using Python, with some additional packages such as Matplotlib to visualize the plots. The desired outcome of the simulation is to visualize the following two subplots over a 24 and 72 hour scenario.

Results and Analysis

In this chapter, a summary and visualization of system losses is utilized for analysis. The simulation methodology explained in section 3.6, is applied to visualize and analyze different scenarios of sun conditions. Finally, in section 4.3, the potential untapped solar energy during summer has been evaluated.

System Losses

To visualize and analyze the case study PV system losses, three Sankey diagrams is produced based on the Category 1 and Category 2 losses, as defined in section 3.6, as well as one final overall system loss diagram. Note, that these diagrams of losses is based on December month conditions, and percentages will therefore deviate slightly during other times of the year.

  1. Category 1 loss table, diagram and comments.

  2. Category 2 loss table, diagram and comments.

  3. Overall PV system loss table, diagram and comments.

Category 1 losses sequence
Efficiency Parameter Value [%] Remaining [%] Loss [%]
Maximum power point ηmpp 19.8 19.8 80.2
Array cable ηarray − cbl 99.95 19.79 0.01
Charge controller ηcharge − ctrl 98 19.39 0.4
Battery cable ηbatt − cbl 99.9997 19.38998 0.00002
Battery charging ηbatt − chng 96 18.61 0.78
Total loss: 81.39%

Note: Maximum power point efficiency usually is not considered a system loss, but chosen to be included in this partial loss consideration.

Category 1 losses Sankey diagram, based on figure [cat1table].

Category 1 losses analysis comments:

Category 2 losses sequence
Efficiency: Parameter Value [%] Remaining [%] Loss [%]
Battery discharging ηbatt − dchng 96 96 4
Battery cable ηbatt − cbl 99.9997 95.9999 0.0001
Inverter ηinv 95 91.2 4.8
Load cable
& standby power
& ηstandby 89 81.17 10.03
Total loss: 18.83%
Category 2 losses Sankey diagram, based on figure [cat2table].

Category 2 losses analysis comments:

Overall system losses can be summarized and viewed in slightly different ways, since charging and discharging happens simultaneously and changes dynamically as sun and consumption changes over time. It is, in this case, made simple by assuming that battery discharging happens after charging.

Overall system losses sequence
Efficiency Parameter Value [%] Remaining [%] Loss [%]
Array cable ηarray − cbl 99.95 99.95 0.05
Charge controller ηcharge − ctrl 98 97.95 2
Battery cable ηbatt − cbl 99,9997 97.9499 0.0001
Battery charging ηbatt − chng 96 94.03 3.92
Battery discharging ηbatt − dchng 96 90.27 3.76
Battery cable ηbatt − cbl 99.9997 90.2699 0.0001
Inverter ηinv 95 85.76 4.5
Load cable
& standby power
& ηstandby 89 76.33 9.43
Total loss: 23.67%
Overall system losses Sankey diagram, based on figure [overall_loss_table].

Overall PV system losses analysis comments:

Simulation Results

The first simulation result (figure 4.4) following the steps outlined in section 3.6 confirms that the PV array sizing is sufficient for the battery-bank and energy usage for the case study at an average day. Initial SOC at midnight (start of simulation) is set to be 80 percent.

Simulation result of 24 hours, based on the average irradiation.

The simulation shows that after 24 hours of simultaneous charging and energy consumption, the battery SOC is back to 80 percent. This is a good sign, but important to note is that this is based on an average days irradiation, meaning all days of the month is looking the same, which in turn means that irradiation could be both better or worse. These better or worse scenarios are further analyzed through the following simulations.

The battery-bank is in chapter 3 sized to last as a two day backup with the average energy consumption. To verify this, the simulation in figure 4.5 over 72 hours of zero solar charging is done.

72 hour simulation, based on average consumption and zero sun.

SOC had gone down to 50 percent after approximately 48 hours, which is calculated for with the desired DOD of 50 percent. Testing the SOC recovery time, another simulation (figure 4.6) is run over 72 hours with an initial SOC of 50 percent and the Good day sun conditions.

72 hour simulation, based on average consumption and Good day sun.

The simulation now indicates that it takes about three days of Good day sun conditions to recover from two days of zero charging from the sun.

Since it is more realistic to receive small amounts of charging rather than zero charging, even during a cloudy period, it is desired to simulate this scenario. The following simulation covering 72 hours using the Bad day sun conditions is run.

System simulation of average consumption and Bad day sun conditions.

Evaluating figure 4.6 at 48 hours, the SOC had now decreased only about 20 percent. Indicating that the battery-bank capacity could possibly be smaller and still keep up as a two-day backup. The simulated battery capacity is decreased to 18 kilowatt-hours (figure 4.7), where it now shows a DOD of 50 percent after 48 hours.

System simulation with battery bank capacity reduced to 18 kWh.

Untapped Energy Resource

The focus throughout the report is centered around system design, optimized for average winter (December) conditions, which can recharge the minimum daily consumption found in section 3.1. This design approach, at this geographic location, results in significantly more electrical energy available during summer, even though the PV array angle is optimized for winter. This untapped energy is in this section calculated through some approximations for analysis purposes.

Available solar irradiation (SIS), during an average June day in Stavanger. Irradiation peak value of approximately 380 watts per horizontal squaremeter, in comparison to the 38 watts per squaremeter peak (figure 3.5) for December. (Illustration curve produced using the methods described in section 3.3.)

Optimal PV module elevation angle for June (at latitude 59$°$) would be 44.4$°$ (section 2.2.4), and since the system is instead winter optimized with an elevation angle fixed at 76.3 degrees, there will be an angle offset of 31.9 degress from the June optimal. In addition, the daily sun curve (figure 4.8) is considerably wider than the corresponding December curve (figure 3.5). This means more loss caused by the fixed azimuth angle, and an approximation of 20 percent loss (80 percent efficiency) is used to calculate the June angle-efficiency (ηangle, June). Based on the same theory, and method as equation [n_angle]. $$\eta_{angle, June} = 80[\%] \cdot \frac{cos(5 + 31.9°)}{cos(76.4°)} \approx 2.72 [\%]$$ Resulting in merely a 2.72 percent average improved irradiation absorption through the 76.3 degrees elevated PV modules, compared to a horizontal mount, in June. (Down from ηangle = 415.18 percent in December.) This makes sense, since the solar altitude angle is significantle larger, during summer. Average June irradiation on to the PV modules, IPV, is calculated below. $$\label{I_pv_june} I_{PV} = 102.72 [\%] \cdot 217.3 \textnormal{ [W}m^{-2}] \approx 223.21 \textnormal{ [W}m^{-2}]$$ Based on equation [neededarea], the PV array June average daily output ED, is found. $$E_{D} = 64.4[m^{2}] \cdot 24[h] \cdot 223.21[Wm^{-2}] \cdot 19.8[\%] \cdot 107.19[\%] \approx 73 \textnormal{ } [kWh]$$ Subtracting the minimum daily consumption from equation [24henergy], to find the potential "untapped" energy. $$E_{untapped} = 73 \textnormal{ } [kWh] - 10.536 \textnormal{ } [kWh] \approx 62 \textnormal{ } [kWh]$$ This means that the energy consumption could potentially be increased by a factor of 5 during June average conditions. Since this case study covers off-grid system design, this energy could not be sold as grid-tied systems can. But, this available energy could with great advantage be used for something like additional water heating.

Conclusions and Future Work

Conclusions

Future Work

There are many things regarding the simulation of different weather and shading scenarios that could be analyzed. Shading and PV cell mismatch are known to have significant adverse effects, and in this case study, it has been assumed absent. A function of temperature over time could be added to the simulation to see how PV and battery efficiency changes. It would be interesting to do similar simulations based on real charging and consumption data. This could, for instance, be done by logging charging from a PV module and ambient temperatures, over a period of time. Energy consumption data could be monitored and logged from a house of interest. The simulations performed in this thesis project is accomplished through some relatively simple code lines and standard packages for Python. This could be developed to include a GUI. Alternatively, more complex simulations, including more parameters, could be done using available open-source simulators for photovoltaics.

Web Application

Application and Server Description:

Web Application Files and Structure.

The application consists of six pages that inherits from layout.html. Start and about page is informative only. Page 1 to 4 contain various PV system sizing resources. Example screenshots of the six web application pages included below. The application was initially based on starter code snippets from Flask and Bootstrap as described in section 2.6. It is then further developed to obtain the desired functionalities. A couple of different Flask imports is necessary for template inheritance and user request handling. Pygal bar charts is used for the interactive histograms on the application page #3 .

for tree=font=, grow'=0, folder indent=.9em, folder icons, edge=densely dotted [Main application folder [calculator1.py, is file] [static [dropdown.js, is file] [main.css, is file]] [templates [layout.html, is file] [start.html, is file] [page1.html, is file] [page2.html, is file] [page3.html, is file] [page4.html, is file] [about.html, is file]] ]

Screenshot of the web applications start page. Gives information about the content of the different pages and required user input.
Screenshot of the web application page: #1 Energy usage calculator, showing an example of a daily energy consumption result.
Screenshot of the application page: #2 Battery bank dimensioning.
Screenshot of the web application page: #3 Monthly irradiation evaluator, comparing two locations opposite of the equator. December month value for Cape Town shown by hovering over.

Solar Data Extraction

Description:

Irradiation data used in the report and web application is sourced from EUMETSAT's Satellite Application Facility on Climate Monitoring (CM SAF) . The histograms produced is based on ten years (2008-2017) of satellite derived shortwave incoming solar (SIS) radiation data (horizontal surface). Data aquired and processed as described below.

  1. SIS data ordered and downloaded from CM SAF .

  2. The ordered NetCDF files is delivered as a single TAR (Tape ARchive) file, which is unpacked using the CM SAF R Toolbox .
    Total filesize 935,5 megabytes.

  3. Using the R Toolbox, desired geographical (spatial) coverage is chosen to output 120 pieces of NetCDF files containing the required temporal coverage (ten years and twelve months).

  4. Processing of NetCDF grid data using Python.

    1. Dataset opened using the xarray module .

    2. The SIS parameter extracted and read into an numpy array .

    3. Grid projections defined using pyproj .

    4. 2D (longitude/latitude) meshgrid array created using numpy .

    5. Meshgrid transformed into ECEF projection, containg longitude/latitude positions, using pyproj .

    6. Processing of ECEF projection using KDTree from scipy .

    7. Looping through all months and years for the coordinate of interest, to calculate monthly averages.

    8. Returning list of resulting values.

Filenames:

SISmm200801010000003231000101MA.nc This sample filename, containing data for January 2008, is one of the 120 NetCDF files that have been processed.
cmsafSisReader.py Python script for processing of the above NetCDF files.

List of Source Files

Summary of Python source files used for simulations and plots.
Figure Content Source files
2.1 Wavelenght spectrum plot. Data from Matlab Fileexchange . plotSpectral.py SpectrumAM.xls
2.3 Ideal PV cell Power & IV-curve plot. plotIdealCell.py
3.1 Power consumption timeline plot. timeline.py
3.2 Power consumption curve. kWdischarge24.py
3.4 Irradiation histogram. histogramStvg.py
3.5 Solar irradiation curve, daily average December. 24irradiation.py
3.7 PV array output plot, for an average day. kWcharging24.py
3.8 PV array output plot, for a "good day". kWcharging24.py
3.9 PV array output plot, for a "bad day". kWcharging24.py
4.1 Sankey/losses diagram. sankeyCat1.py
4.2 Sankey/losses diagram. sankeyCat2.py
4.3 Sankey/losses diagram. sankeyOverall.py
4.4 24 hour simulation, at average irradiation. simulation24h.py
4.5 72 hour simulation, at zero irradiation. simulation72h1.py
4.6 72 hour simulation, at "good day" irradiation. simulation72h2.py
4.8 Solar irradiation curve, daily average June. 24irradiationJune.py