<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JPEE</journal-id><journal-title-group><journal-title>Journal of Power and Energy Engineering</journal-title></journal-title-group><issn pub-type="epub">2327-588X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jpee.2015.36006</article-id><article-id pub-id-type="publisher-id">JPEE-57380</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Power Quality Study of an Isolated Northwest Grid of Saudi Arabia with PV and Storage
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ani</surname><given-names>Albalawi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Elham</surname><given-names>Makram</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Electrical and Computer Engineering, Clemson University, Clemson, USA</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>halbala@clemson.edu(AA)</email>;<email>makram@clemson.edu(EM)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>10</day><month>06</month><year>2015</year></pub-date><volume>03</volume><issue>06</issue><fpage>54</fpage><lpage>64</lpage><history><date date-type="received"><day>28</day>	<month>May</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>22</month>	<year>June</year>	</date><date date-type="accepted"><day>25</day>	<month>June</month>	<year>2015</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  One main concern of power quality is harmonics because the distorted waveforms of current and voltage have a huge effect on electrical equipment. Due to the continuous increase of grid connected photovoltaic (PV) and nonlinear loads, as a result of the fast development and growth of power electronics application, power quality becomes more important since it introduces harmonics to the power system. This paper presents a power quality study to the isolated northwest grid of Saudi Arabia in presence of PV system and battery storage. Moreover, the study includes nonlinear loads for more analysis regarding harmonics penetration and the design procedure for passive filters to eliminate the harmonics.
 
</p></abstract><kwd-group><kwd>PV</kwd><kwd> Battery</kwd><kwd> Nonlinear Load</kwd><kwd> Harmonics</kwd><kwd> Passive Filter</kwd><kwd> Tabuk Grid</kwd><kwd> Saudi Arabia</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Supplying energy at constant frequency and magnitude of voltage is always the objective for any electrical utility. This can only happen in ideal power system but in practice this condition is hard to achieve. Many studies are required for planning and operation of power system in order to assist system performance, reliability and safety. Power quality is one important aspect of power system. It is the concept for many types of power disturbances such as voltage variation, and transient and harmonic distortion. The most unlikely condition for power quality is the harmonic distortion as it is a steady state condition. With high growth of installing grid connected photovoltaic (PV), power quality becomes more important as the DC-AC inverter can affect the quality of the power delivered to the grid due to the switching mechanism responsible for additional harmonics. Moreover, the widespread nonlinear loads due to power electronics applications result in distorted current and voltage in transmission and distribution networks. A solution for this power quality issue can be achieved by using harmonic filters which are designed to reduce the harmonic penetration to the network [<xref ref-type="bibr" rid="scirp.57380-ref1">1</xref>] .</p><p>All appliances that use diode rectifiers to convert AC to DC have a nonlinear characteristic that can lead to introduce harmonics. Examples of nonlinear loads include television, computers, fluorescent lamp and adjustable speed drives (ASD) for air condition and heat pump. Harmonic distortion is unwanted phenomena as it can cause additional line losses and interference in communication system. Therefore, analysis of harmonics and nonlinear loads is vital. A common way to analyze and study harmonics is to represent a load by linear model, then adding nonlinearity by using voltage or current harmonic sources [<xref ref-type="bibr" rid="scirp.57380-ref2">2</xref>] .</p><p>This paper presents a complete study of power quality for the isolated northwest grid of Saudi Arabia. A detailed PV model with battery storage is modeled and a combination of nonlinear loads is introduced. Also, the paper includes filter design to reduce harmonics. The outline of this paper is as follows. Section 2 shows PV and battery model. Section 3 explains the filter design. Section 4 describes the nonlinear load modeling. Section 5 provides a brief description of the test system. Section 6 shows the simulation results.</p></sec><sec id="s2"><title>2. PV and Battery Model</title><sec id="s2_1"><title>2.1. PV Model</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref>(a) shows a diagram of a three phase grid connected PV system with battery storage. It consists of a PV array, Inverter and 3 phase reactor which is connected in series with the ac terminal of the inverter. The PV array is connected in parallel to the dc link capacitor and the dc terminal of the inverter. The inverter is controlled by voltage source converter (VSC) modulation strategy based on sinusoidal pulse-width modulation (S-PWM). The main element of the PV array is the solar cell, which has a very small power. In order to increase and have sufficient power to supply a load, single cells are connected in series to form a module. Therefore, PV array is a combination of parallel Np module and series Ns module. By increasing Np PV current increases and the PV voltage rises by increasing Ns. the Capacitor C<sub>f</sub> is used to reduce the harmonic produced by the PV system. <xref ref-type="fig" rid="fig1">Figure 1</xref>(a) illustrates that, synchronizing the VSC and control to the grid voltage is achieved by a phase-locked loop (PLL). Also, the error between the V<sub>dc</sub> reference given by MPPT and the dc-link voltage is passed through PI compensator whose output provides the d-axis reference current<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x5.png" xlink:type="simple"/></inline-formula>. Then, the dq-frame current loop control is fed by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x6.png" xlink:type="simple"/></inline-formula> to force d-axis current to track the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x7.png" xlink:type="simple"/></inline-formula> to control the PV output power, for unity Power factor the q-axis reference current <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x8.png" xlink:type="simple"/></inline-formula> is set to zero [<xref ref-type="bibr" rid="scirp.57380-ref3">3</xref>] .</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> (a) Single line diagram of PV system; (b) PV control; (c) Battery control</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x9.png"/></fig><sec id="s2_1_1"><title>2.1.1. Phase Locked Loop</title><p>The PLL is used to synchronize VSC’s output voltage with electric-grid angular frequency in order to make dq- frame transformed variables constant and by regulating <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x10.png" xlink:type="simple"/></inline-formula> to zero the PV system active and reactive power are controlled as follows:</p><disp-formula id="scirp.57380-formula526"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x11.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.57380-formula527"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x12.png"  xlink:type="simple"/></disp-formula><p>From (1) and (2), controlling the active power is archived by regulating <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x13.png" xlink:type="simple"/></inline-formula> and the reactive power is controlled by regulating<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x14.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s2_1_2"><title>2.1.2. DC Voltage Control</title><p>The control of the dc voltage link is achieved by simply comparing the dc voltage with the reference value. This reference is calculated from MPPT strategy to ensure that the PV works at its maximum output power. The error between these two signals is passed through a PI compensator whose output provide<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x15.png" xlink:type="simple"/></inline-formula>, which will be the input for the current controller as seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>(b). <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x16.png" xlink:type="simple"/></inline-formula>is set to zero to achieve unity power factor.</p></sec><sec id="s2_1_3"><title>2.1.3. Current Controller</title><p>The current controller is comparing the dq-reference currents with the actual ones to obtain the modulation signals <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x17.png" xlink:type="simple"/></inline-formula> the control scheme is achieved by</p><disp-formula id="scirp.57380-formula528"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x18.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.57380-formula529"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x19.png"  xlink:type="simple"/></disp-formula><p>The state variables of (3) and (4) are <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x21.png" xlink:type="simple"/></inline-formula> while the input control signals are <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x22.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x23.png" xlink:type="simple"/></inline-formula>. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x24.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x25.png" xlink:type="simple"/></inline-formula> are disturbance inputs. The d-q frame dynamics is coupled and nonlinear due to the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x26.png" xlink:type="simple"/></inline-formula> term. Hence, it must be linearized according to the following control principals [<xref ref-type="bibr" rid="scirp.57380-ref3">3</xref>] :</p><disp-formula id="scirp.57380-formula530"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x27.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.57380-formula531"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x28.png"  xlink:type="simple"/></disp-formula><p>By substituting (5) and (6) into (3) and (4), two control inputs produced which can control <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x29.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x30.png" xlink:type="simple"/></inline-formula> independently, respectively, as following:</p><disp-formula id="scirp.57380-formula532"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x31.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.57380-formula533"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x32.png"  xlink:type="simple"/></disp-formula><p>However, the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x33.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x34.png" xlink:type="simple"/></inline-formula> signals is converted back to abc reference-frame to generate the reference signals for the VSC. These reference waveforms are compared with a triangular carriers to generate the pulsing signals to modulate the VSC [<xref ref-type="bibr" rid="scirp.57380-ref4">4</xref>] .</p></sec></sec><sec id="s2_2"><title>2.2. Battery Model</title><p>This paper used the developed battery model in PSCAD [<xref ref-type="bibr" rid="scirp.57380-ref5">5</xref>] . Details of this battery model are described in [<xref ref-type="bibr" rid="scirp.57380-ref6">6</xref>] . It is modeled by a control voltage source with a series resistance. The charging and discharging process is controlled by constant current charging mode. Positive current reference is for charging process while negative reference is for discharging process. When the battery reaches a certain level of state of charge (SOC), the reference current is set to zero to keep the voltage at that level. From <xref ref-type="fig" rid="fig1">Figure 1</xref>(c), the DC/DC converter is operating in current control mode; the error signal is passed through a limiter and then compared with a triangular wave carrier to generate the pulse signals for the converter [<xref ref-type="bibr" rid="scirp.57380-ref7">7</xref>] .</p></sec></sec><sec id="s3"><title>3. Filter Design</title><p>One way to improve the power quality of power system is to resolve the harmonics issue. This can be done by many approaches described in [<xref ref-type="bibr" rid="scirp.57380-ref8">8</xref>] . One common way for harmonic filtering is to use passive filters, these kinds of filters are designed to provide low impedance path at the tuned frequency to prevent the harmonic current of flowing into the system. In this paper passive filter is used because it is one of the cheapest and economic wayfor harmonic filtering [<xref ref-type="bibr" rid="scirp.57380-ref1">1</xref>] . Harmonic filters are used to reduce the harmonics penetration in power system. A well designed harmonic filter is important to keep the harmonic within acceptable level. One of the most types used of passive filter is the single tuned filter, which is a capacitor designed to eliminate a certain harmonic by adding a reactor so that X<sub>C</sub> = X<sub>L</sub> at the tuned frequency (fn) [<xref ref-type="bibr" rid="scirp.57380-ref9">9</xref>] . The tuned frequency for harmonic filter designing usually should be between 2% to 10% below the desired harmonic frequency to avoid parallel resonance and near short circuit at tuned frequency as the filter provides low impedance. However, since the passive filters also provide a reactive compensation, they can also provide a power factor correction to a desired level in parallel to its filtering action.</p><p>For a tuned harmonic (hn) with a capacitor<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x35.png" xlink:type="simple"/></inline-formula>, the capacitor reactor at fn is</p><disp-formula id="scirp.57380-formula534"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x36.png"  xlink:type="simple"/></disp-formula><p>And to eliminate the hn harmonic, the reactor size should be</p><disp-formula id="scirp.57380-formula535"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x37.png"  xlink:type="simple"/></disp-formula><p>The reactance resistor can be calculated as follows</p><disp-formula id="scirp.57380-formula536"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x38.png"  xlink:type="simple"/></disp-formula><p>where Q is the quality factor and its typical value is between 30 and 100 [<xref ref-type="bibr" rid="scirp.57380-ref10">10</xref>] .</p></sec><sec id="s4"><title>4. Nonlinear Load Model</title><p>The increase of nonlinear loads due power electronics applications has introduced more effect on power system quality. Therefore, analysis of nonlinear loads and its affects is important. In power system, one common way to model a nonlinear load is to model it as a load for the fundamental current and as a current source for the harmonics current [<xref ref-type="bibr" rid="scirp.57380-ref11">11</xref>] . <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the configuration of the nonlinear load. In this paper three types of nonlinear loads are used, which are fluorescent lamp, computer and adjustable speed drive (ASD). ASD is used to represent air condition and heat pump. One important parameter is the individual harmonic distortion as it shows the contribution of each harmonic frequency to the distorted waveform. And by knowing the contribution of each harmonic frequency for a specified load, a harmonic current source can be used to inject the magnitude current for each harmonic frequency. Hence, the nonlinear behavior can be modeled by doing so. The contribution of each individual harmonic distortion for the three types of the nonlinear loads is shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p></sec><sec id="s5"><title>5. Study System</title><p>Saudi Arabia grid is divided into four operation areas, West area (WA), East area (EA), South area (SA) and Central Area (CA). Each one has its own control center and operation however they are now under interconnection projects. The WA consists of two parts, the west part and the northwest isolated area which has Tabuk region and its surrounding towns. The grid data was provided from Saudi Electricity Company, Tabuk sector. Line and Peak load data are shown in <xref ref-type="table" rid="table2">Table 2</xref>. It observed form <xref ref-type="fig" rid="fig3">Figure 3</xref> that, the grid has 12 buses with voltage level of 132 KV, 10 substations are distributed around the city and two substations are connecting two different towns, Timma and Albir. It has two generation stations at bus 1 and 5 with a capacity of 102 MW and 857.2</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> representation of nonlinear load</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x39.png"/></fig><fig-group id="fig3"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Tabuk Substations.</title></caption><fig id ="fig3_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x41.png"/></fig><fig id ="fig3_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x40.png"/></fig></fig-group><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Harmonic Number h (n) VS Individual Harmonic distortion [<xref ref-type="bibr" rid="scirp.57380-ref12">12</xref>] </title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >H (n)</th><th align="center" valign="middle"  colspan="3"  >IHD (%)</th></tr></thead><tr><td align="center" valign="middle" >Fluorescent lamp</td><td align="center" valign="middle" >Computer</td><td align="center" valign="middle" >ASD</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >100</td><td align="center" valign="middle" >100</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >3.3</td><td align="center" valign="middle" >4.12</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >13.9</td><td align="center" valign="middle" >87.2</td><td align="center" valign="middle" >0.78</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >5.1</td><td align="center" valign="middle" >1.79</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >64.1</td><td align="center" valign="middle" >35.01</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.215</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >3.3</td><td align="center" valign="middle" >41.1</td><td align="center" valign="middle" >2.62</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >3.2</td><td align="center" valign="middle" >17.9</td><td align="center" valign="middle" >0.06</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.1</td><td align="center" valign="middle" >0.73</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" ></td><td align="center" valign="middle" >10.3</td><td align="center" valign="middle" >9.99</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >0.03</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >10.3</td><td align="center" valign="middle" >0.19</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.48</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >10.3</td><td align="center" valign="middle" >0.07</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.52</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >5.1</td><td align="center" valign="middle" >4.85</td></tr><tr><td align="center" valign="middle" >THD (%)</td><td align="center" valign="middle" >18</td><td align="center" valign="middle" >118.3</td><td align="center" valign="middle" >37.3</td></tr></tbody></table></table-wrap><p>MW respectively. <xref ref-type="fig" rid="fig4">Figure 4</xref> provides an over view of the power consumed in the city for a summer and winter day.</p></sec><sec id="s6"><title>6. Simulation Result</title><p>The PSCAD software is used to build and simulate the grid with a detailed PV model and Battery storage. A peak loading condition for a summer day, 07/16/2013, with a total load of 720 MW is selected for the simulation. Bus 5 has been selected as a slack bus due to its largest capacity. The PV Farm is connected to bus 6 because it has enough land that can accommodate two PV farms connected in parallel with a total capacity of 40 MW, 20 MW each. The battery is assumed to have a capacity of 50% of the total PV Power. A harmonic current source is used to represent the nonlinear loads; the harmonic injection based on <xref ref-type="table" rid="table1">Table 1</xref> is placed at the substation, at</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Load Profile for Tabuk. Solid lines is daily load, dashes lines is temprature</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x42.png"/></fig><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Line and Peak load data</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >From Bus</th><th align="center" valign="middle" >To Bus</th><th align="center" valign="middle" >R (Ohm/Km)</th><th align="center" valign="middle" >X (Ohm/Km)</th><th align="center" valign="middle" >Bus</th><th align="center" valign="middle" >Peak Load (MW)</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0.0493</td><td align="center" valign="middle" >0.2408</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >106</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.0493</td><td align="center" valign="middle" >0.2408</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >94</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.047</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >55</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.0773</td><td align="center" valign="middle" >0.4682</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >62</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >0.08606</td><td align="center" valign="middle" >0.5062</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >0.0493</td><td align="center" valign="middle" >0.2408</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >37</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.0773</td><td align="center" valign="middle" >0.4682</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >60</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.093</td><td align="center" valign="middle" >0.452</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >67</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.0493</td><td align="center" valign="middle" >0.2408</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >134</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >0.047</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >12</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >0.094</td><td align="center" valign="middle" >0.458</td><td align="center" valign="middle" >11</td><td align="center" valign="middle" >33</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >0.0794</td><td align="center" valign="middle" >0.4671</td><td align="center" valign="middle" >12</td><td align="center" valign="middle" >43</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >12</td><td align="center" valign="middle" >0.08</td><td align="center" valign="middle" >0.47</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >0.0493</td><td align="center" valign="middle" >0.2408</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >11</td><td align="center" valign="middle" >0.149</td><td align="center" valign="middle" >0.497</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >0.0493</td><td align="center" valign="middle" >0.2408</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><p>the low voltage side 13.8 KV. At each bus the load is divide into 80% linear load and 20% nonlinear load. The nonlinear loads that used are ASD, to represent air condition and heat pump, fluorescent lamp and a personal computer with percentage of 18%, 1% and 1% respectively. All loads at each bus has the same procedure therefore the highest load at bus 9 is selected to show the result of including the nonlinear loads, <xref ref-type="fig" rid="fig5">Figure 5</xref>(a) illustrates the distorted load current after adding the nonlinear loads. Also, <xref ref-type="fig" rid="fig6">Figure 6</xref>(a) shows that, the total harmonic distortion (THD) of the total load current is above the limits therefore a single tuned filter has been designed to eliminate the highest harmonic component which is the 5th component as shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>(b). <xref ref-type="fig" rid="fig5">Figure 5</xref>(b) shows the load current after installing the passive filter. Hence, <xref ref-type="fig" rid="fig7">Figure 7</xref> provides the THD for each bus during the simulation and it observed that as seen in <xref ref-type="table" rid="table3">Table 3</xref> the distortion is within the limits based on IEEE standard [<xref ref-type="bibr" rid="scirp.57380-ref13">13</xref>] . The initial irradiation applied for the PV is 1000 W/m<sup>2</sup> with initial SOC of 70% for the battery. <xref ref-type="fig" rid="fig8">Figure 8</xref> shows the different stages of PV penetration with battery storage. At 3 second, the charging process starts and stops when the SOC reaches 80% at 16 second. The SOC kept constant until the discharging of the battery begins at 18 second. During the discharge process the irradiation drops by 250 W/m<sup>2</sup> at 25 second and 30 second. The THD of the PV current injected to the grid for all penetration stages is within the acceptable limits. It is oscillating around 2.5% as observed from <xref ref-type="fig" rid="fig9">Figure 9</xref>; the two high values at the second 16 and 18 are instantaneous due to the switching of the reference current of the battery to keep the SOC at 80% and to start the discharging mode.</p><p>One advantage of the Battery model in PSCAD is that, it allows the user to define the characteristic charge and discharge curves. And since the PV farm output power is high and so the dc voltage link,it is hard to find a battery with such voltage level therefore a characteristic charge and discharge curve of lead acid battery has</p><fig-group id="fig5"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> (a) Load current without filter of bus 9; (b) Load current with filter of bus 9.</title></caption><fig id ="fig5_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x43.png"/></fig><fig id ="fig5_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x44.png"/></fig></fig-group><fig-group id="fig6"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> (a) THD at bus 9; (b) Harmonic component.</title></caption><fig id ="fig6_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x45.png"/></fig><fig id ="fig6_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x46.png"/></fig></fig-group><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Load current THD compared with the standard Limits</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Bus No.</th><th align="center" valign="middle" >1</th><th align="center" valign="middle" >2</th><th align="center" valign="middle" >3</th><th align="center" valign="middle" >4</th><th align="center" valign="middle" >5</th><th align="center" valign="middle" >6</th><th align="center" valign="middle" >7</th><th align="center" valign="middle" >8</th><th align="center" valign="middle" >9</th><th align="center" valign="middle" >10</th><th align="center" valign="middle" >11</th><th align="center" valign="middle" >12</th></tr></thead><tr><td align="center" valign="middle" >THD% for load current</td><td align="center" valign="middle" >2.11</td><td align="center" valign="middle" >1.96</td><td align="center" valign="middle" >2.03</td><td align="center" valign="middle" >2.18</td><td align="center" valign="middle" >5.87</td><td align="center" valign="middle" >2.33</td><td align="center" valign="middle" >1.90</td><td align="center" valign="middle" >1.97</td><td align="center" valign="middle" >1.98</td><td align="center" valign="middle" >5.63</td><td align="center" valign="middle" >1.83</td><td align="center" valign="middle" >2.49</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-1770138x47.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >50 &lt; 100</td><td align="center" valign="middle" >20 &lt; 50</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >50 &lt; 100</td><td align="center" valign="middle" >&lt;20</td><td align="center" valign="middle" >&lt;20</td></tr><tr><td align="center" valign="middle" >IEEE limit % for 132 KV level</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >6%</td><td align="center" valign="middle" >4%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >6%</td><td align="center" valign="middle" >2.5%</td><td align="center" valign="middle" >2.5%</td></tr></tbody></table></table-wrap><fig-group id="fig7"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> THD for all loads currents with filter. (a) THD of load current at bus 1; (b) THD of load current at bus 2; (c) THD of load current at bus 3; (d) THD of load current at bus 4; (e) THD of load current at bus 5; (f) THD of load current at bus 6; (g) THD of load current at bus 7; (h) THD of load current at bus 8; (i) THD of load current at bus 9; (j) THD of load current at bus 10; (k) THD of load current at bus 11; (l) THD of load current at bus 12.</title></caption><fig id ="fig7_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x48.png"/></fig><fig id ="fig7_2"><label>(c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x49.png"/></fig><fig id ="fig7_3"><label> (d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x50.png"/></fig><fig id ="fig7_4"><label>(e)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x51.png"/></fig><fig id ="fig7_5"><label> (f)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x52.png"/></fig><fig id ="fig7_6"><label>(g)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x53.png"/></fig><fig id ="fig7_7"><label> (h)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x54.png"/></fig><fig id ="fig7_8"><label>(i)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x55.png"/></fig><fig id ="fig7_9"><label> (j)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x56.png"/></fig><fig id ="fig7_10"><label>(k)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x57.png"/></fig><fig id ="fig7_11"><label> (l)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x58.png"/></fig><fig id ="fig7_12"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x59.png"/></fig></fig-group><p>been scaled up to match the DC link voltage and defined in the battery model. For the control scheme, the reference current for the battery can be obtained based on the DC link voltage and the amount of power to be stored. Since the battery assumed to have 50% of the PV power, the battery reference current is calculated as follows</p><disp-formula id="scirp.57380-formula537"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-1770138x60.png"  xlink:type="simple"/></disp-formula><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref>0 it observed that, the battery current follows the reference for both charging and discharging modes, for the discharge process a negative reference is applied. Also, when SOC of the battery reaches 80% the reference current is set to zero to keep the SOC of constant as seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>1. The battery power is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2.</p><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> PV power at PCC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x61.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> THD of PV Current at PCC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x62.png"/></fig><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Battery current for one farm</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x63.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Battery SOC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x64.png"/></fig><fig id="fig12"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> Battery Power</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-1770138x65.png"/></fig></sec><sec id="s7"><title>7. Conclusion</title><p>This paper presents a power quality study for the northwest grid of Saudi Arabia in presence of PV and battery storage. Different PV power penetrations with battery storage are introduced and the THD of PV current is within the acceptable limit for all penetration stages. Also, nonlinear load has been included for more analysis and it shows that the harmonic impact of introducing such loads has been solved by designing passive filters. It also discusses the passive filter design producer.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.57380-ref1"><label>1</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Rao</surname><given-names> R.N. </given-names></name>,<etal>et al</etal>. (<year>2013</year>)<article-title>Harmonic Analysis of Small Scale Industrial Loads and Harmonic Mitigation Techniques in Industrial Distribution System</article-title><source> International Journal of Engineering Research and Applications</source><volume> 3</volume>,<fpage> 1511</fpage>-<lpage>1540</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.57380-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Fauri, M. (1997) Harmonic Modeling of Non-Linear Load by means of Crossed Frequency Admittance Matrix. IEEE Transactions on Power Systems, 12, 1632-1638. http://dx.doi.org/10.1109/59.627869</mixed-citation></ref><ref id="scirp.57380-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Yazdani, A. and Dash, P.P. (2009) A Control Methodology and Characterization of Dynamics for Photovoltaic (PV) System Interfered with a Distribution Network. IEEE Transactions on Power Delivery, 24, 1538-1551. 
http://dx.doi.org/10.1109/TPWRD.2009.2016632</mixed-citation></ref><ref id="scirp.57380-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Mahmood, F., Yanfretti, L. and Hooshyar, H. (2014) Modeling of a Detailed Photovoltaic Generation System for EMT-Type Simulation. IEEE International Energy Conference, Cavtat, 13-16 May 2014, 916-921. 
http://dx.doi.org/10.1109/energycon.2014.6850535</mixed-citation></ref><ref id="scirp.57380-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Jiang, S. (2012) Battery Component in PSCAD/EMTDC. Manitoba HVDC Research Centre, Winnipeg.</mixed-citation></ref><ref id="scirp.57380-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Tremblay, O., Dessaint, L.A. and Dekkiche, A.I. (2007) A Generic Battery Model for the Dynamic Simulation of Hybrid Electric Vehicles. IEEE Vehicle Power and Propulsion Conference, Arlington, 9-12 September 2007, 284-289. 
http://dx.doi.org/10.1109/vppc.2007.4544139</mixed-citation></ref><ref id="scirp.57380-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Clarke, A., Bihani, H., Makram, E. and Corzine, K. (2013) Fault Analysis on an Unbalanced Distribution System in the Presence of Plug-In Hybrid Electric Vehicles. Clemson Power System Conference, March 2013.</mixed-citation></ref><ref id="scirp.57380-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Balaraju, U.P., Kethineni, B., Shewale, R. and Grourishetti, S. (2012) Harmonic Effects and Its Mitigation Techniques for a Nonlinear Load. International Journal of Advanced Technology &amp; Engineering Research, 2, 122-127.</mixed-citation></ref><ref id="scirp.57380-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Badrzadeh, B., Smith, K. and Wilson, R.C. (2011) Designing Passive Harmonic Filters for an Aluminum Smelting Plant. IEEE Transactions on Industry Application, 47, 973-983. http://dx.doi.org/10.1109/TIA.2010.2103544</mixed-citation></ref><ref id="scirp.57380-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Wakileh, G.J. (2001) Power System Harmonics: Fundamental, Analysis and Filter Design. Springer, New York. 
http://dx.doi.org/10.1007/978-3-662-04343-1</mixed-citation></ref><ref id="scirp.57380-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Gonen, T. (2008) Electrical Power Distributed System Engineering. 2nd Edition, CRC Press, New York.</mixed-citation></ref><ref id="scirp.57380-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Sankaran, C. (2008) Power Quality. CRC Press, New York.</mixed-citation></ref><ref id="scirp.57380-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">McGranaghan, M. (1988) Overview of the Guide for Applying Harmonic Limits on Power Systems—IEEE P519A. 8th International Conference on Harmonics and Quality of Power Proceeding, Athens, 14-18 October 1998, 462-469.</mixed-citation></ref></ref-list></back></article>