scieee AI-readable full text Open interactive document viewer

Control strategy for distribution generation inverters to maximize the voltage support in the lowest phase during voltage sags

Camacho Santiago, Antonio,Castilla Fernández, Miguel,Miret Tomàs, Jaume,García de Vicuña Muñoz de la Nava, José Luis,Garnica López, Miguel Andrés

Abstract

IEEE Voltage sags are considered one of the worst perturbations in power systems. Distributed generation power facilities are allowed to disconnect from the grid during grid faults whenever the voltage is below a certain threshold. During these severe contingencies, a cascade disconnection could start, yielding to a blackout. To minimize the risk of a power outage, inverter-based distributed generation systems can help to support the grid by appropriately selecting the control objective. Which control strategy performs better when supporting the grid voltage is a complex decision that depends on many variables. This paper presents a control scheme that implements a smart and simple strategy to support the fault: the maximum voltage support for the lowest phase voltage. Therefore, the faulted phase that is more affected by the sag can be better supported since this phase voltage increases as much as possible, reducing the risk of under-voltage disconnection. The proposed controller has the following features: a) maximizes the voltage in the lowest phase, b) injects the maximum rated current of the inverter, and c) balances the active and reactive power references to deal with resistive and inductive grids. The control proposal is validated by means of experimental results in a laboratory prototype.

Full text

© 2016 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Control Strategy for Distribution Generation Inverters to Maximize the Voltage Support in the Lowest Phase During Voltage Sags Antonio Camacho, Miguel Castilla, Jaume Miret, Member, IEEE, L. García de Vicuña, Miguel Andrés Garnica Abstract—Voltage sags are considered one of the worst perturbations in power systems. Distributed generation power facilities are allowed to disconnect from the grid during grid faults whenever the voltage is below a certain threshold. During these severe contingencies, a cascade disconnection could start, yielding to a blackout. To minimize the risk of a power outage, inverter-based distributedgeneration systems can help to support the grid by appropriately selecting the control objective. Which control strategy performs better when supporting the grid voltage is a complex decision that depends on many variables. This paper presents a control scheme that implements a smart and simple strategy to support the fault: the maximum voltage support for the lowest phase voltage. Therefore, the faulted phase that is more affected by the sag can be better supported since this phase voltage increases as much as possible, reducing the risk of under-voltage disconnection. The proposed controller has the following features: a) maximizes the voltage in the lowest phase, b) injects the maximum rated current of the inverter, and c) balances the active and reactive power references to deal with resistive and inductive grids. The control proposal is validated by means of experimental results in a laboratory prototype. Index Terms—Grid faults, Positive-negative sequence, Voltage dip, Voltage ride-through, Voltage sag, Voltage support I. INTRODUCTION THE high integration of renewable energy sources and distributed generation (DG) [1] into the grid has changed the requirements and the operation of power systems [2]. Some years ago, DG sources represented a low contribution over the total energy market. At present, the total amount of nonconventional energy production can achieve up to 50% of the total electrical comsumption and even more [3], [4]. This new scenario presents a potential benefit over the classical one, since DG reduces energy losses and many times provides from clean and sustainable energy sources [5]. However, the massive This work has been supported by ELAC2014/ESE0034 from the European Union and its linked Spanish national project PCIN-2015001. We also appreciate the support from the Ministry of Economy and Competitiveness of Spain and European Regional Development Fund (FEDER) under project ENE2015-64087-C2-1-R. A. Camacho, M. Castilla, J. Miret, L. García de Vicuña and M. A. Garnica are with the Department of Electronic Engineering, Technical University of Catalonia, 08800 Vilanova i la Geltrú, Spain (e-mail: antonio.camacho.santi[email protected]; [email protected]; [email protected]; [email protected]; [email protected]) integration of those systems can compromise the reliability of the whole system, in particular during voltage sags. Voltage sags are one of the worst perturbations in power systems characterized by a short-time voltage drop in one or several phases [6]. The main causes are short-circuits by unintentional contact, lightnings and equipment failure [7]. During the fault, DG grid-connected power sources must withstand the perturbation and operate continuously. However, in order to protect the installation, when the voltage is low for a long time, the power facility can be disconnected according to the voltage profile and trip times defined in grid codes [8]– [10]. To reduce the risk of disconnection, appropriate lowvoltage ride-through (LVRT) protocols need to be developed to support the grid voltages. The conventional LVRT services [11]–[15] are focused on medium to big power plants above a certain rated power. The main objective of grid codes is to support the grid with reactive power during the fault, and to guarantee the continuous operation to avoid sudden loss of power generation. The control proposal of this paper should be understood as a part of the new generation of grid codes that could apply to any rated power generation source, that is being interfaced with the grid via flexible power converters, and tied to any type of grid impedance (inductive and resistive with high or low values). Voltage support has become a challenging method to improve the grid reliability during grid faults. The main reason for this is the huge amount of fast reactive power provisions available in inverter-based DG systems. How to manage the current injected by the DG into the grid is the main issue for the new development of such control strategies. However, which strategy is appropriate for a given voltage sag is a complex problem to be solved. This paper presents a voltage support control scheme that implements one of the simplest objectives: to maximize the lowest phase voltage. This strategy is fairly justified by the fact that raising the lowest voltage could avoid under-voltage disconnection. The trend in voltage support control is nonetheless dedicated to mainly inductive grids [16]–[20], while low and medium voltage grids with some inherent resistive behavior have been less discussed in the literature [21]–[24]. This study presents a control scheme that applies for any type of grid impedance, either inductive, resistive or a combination of both. Indeed, the proposed solution is also valid for weak or stiff grids since the optimal solution does not rely on the magnitude of the grid power source dc-link inverter filter LiLoi C PCC v L R vg grid Fig. 1. Simplified scheme of a three-phase grid-connected distributed generation inverter. impedance, but on the inductive/resistive ratio p L { R q . Several works have been proposed in the literature for voltage support during faults [16]–[28]. Most of these works are based on symmetric sequences to deal with unbalanced grid voltages, which has been established as the preferred method to develop advanced voltage support controllers. The main features investigated in this research area cover: different voltage support objectives [16]–[20], [27], [28], maximum current injection during the sag [17], [19], [25], [26] and grid impedance matching [22]–[24]. However, none of these works joins these three features at the same time, i.e. improving the voltage support for any type of grid impedance while injecting the maximum rated current. To simultaneously accomplish these objectives, several issues need to be addressed first as will be shown along the work. Compared with previous state-of-the-art control strategies, the main contributions of the proposed work are: a) the formulation of a new voltage support objective for distribution generation inverters during grid faults, b) the control scheme that guarantees the maximum increase in the lowest phase voltage, subject to the constraint of a safe current injection, and c) the flexibility of the proposal to deal with inductive and resistive, weak or stiff grids. This method has the advantage of increasing as much as possible the lowest phase voltage in a safe manner. By considering the grid impedance, it is possible to extend the voltage support range. Thus, the risk of under-voltage disconnection is reduced. The paper is organized as follows. Section II formulates the problem. Section III solves the problem of maximizing the lowest phase voltage. Section IV deals with the impact of the grid impedance on the performance of the proposal. Section V presents the experimental results obtained in a laboratory prototype. Finally Section VI concludes the paper. II. PROBLEM STATEMENT This section starts presenting the basics of the power plant under control, then the main controller tasks are enumerated, and the voltage support concept is briefly explained, finally the control objectives and the problem to be solved are presented. A. Power Plant The main objective of the proposed work is to maximize the lowest phase voltage during grid faults. This proposal applies to DG inverters and/or static synchronous compensators with energy storage capacity that are interfaced with the grid via full-power converters. A generic scheme of this kind of controlled systems is presented in Fig.1. In the figure, the primary source is connected to the three-phase inverter. In TASK : Controller(tk) 1  vabc, iabc  = ReadADC() 2  vα, vβ  = Clarke(vabc) 3  iα, iβ  = Clarke(iabc) 4  v  α, v  β, v  α, v  β  = SequenceExtractor  vα, vβ  5if Sag is detected then 6  i  α, i  β  = VoltageSupport  v  α, v  α, v  β, v  β  7else 8  i  α, i  β  = NormalOperation(  ) 9  dα, dβ  = PRes  i  α  iα, i  β  iβ  10  Tabc  = SpaceVectorPWM  dα,dβ  Fig. 2. Pseudo-code of the controller task. between, a dc-link is needed to balance the power flow from the source to the grid. The main inverter’s parts are the power switches and the LCL output filter to reduce the switching harmonics. The inverter connects to the grid at the point of common coupling (PCC), which corresponds to the place where the phase voltages vfor the different voltage support controls should be compared. The grid is modeled as a voltage source vgand an equivalent grid impedance Rand L. It should be mentioned that for developing the control proposal, the L { R ratio need to be known. To this end, two main methods can be borrowed: the knowledge of the nearby elements close to the facility, or an on-line grid impedance estimator [29], [30]. In order to simplify the study, along this work it is assumed that no local load is tied to the DG inverter. By assuming this, the theoretical analysis becomes simpler and the control development can be derived in a more intuitive way. B. Controller After presenting the main system parts, the controller functionality is briefly reviewed. To control the plant in Fig. 1, the inverter is set in current-controlled mode. The pseudocode that implements the main controller parts is presented in Fig. 2. The controller task is activated each sampling time, the first step is to sense the voltages and currents. Then, by using Clarke transformation, the instantaneous values in the α-βdomain are obtained. A sequence extractor [31] is needed to decompose the voltage into the symmetric sequence counterparts (v  αand v  βfor the positive sequence, and v  α and v  βfor the negative one). Once the sag is detected, the proposed voltage support control is launched. This part of the code will be fully described in Section III-B. For the case where no sag has been detected, the current references are selected based on the conventional behavior of a currentmode inverter [32], depending on the production, desired power factor, operational and economic constraints. After computing the reference currents i  αand i  β, a proportionalresonant controller compares the references and the sensed currents to get the duty cycles of the inverter dαand dβ. Finally, a space vector PWM computes the switching times of each inverter branch. C. Voltage Support Based on the scheme in Fig. 1, the relations among the inverter and the grid voltages, the injected currents, and the grid impedance can be expressed as v  vg  Ri  Ldi dt. (1) where the voltage support from the grid to the PCC is ∆v  v  vg. This voltage increment clearly depends on the grid impedance as will be shown along this work. Indeed, the main limitation of the voltage support control schemes is the magnitude of this impedance. For weak grids, higher voltage support effects are obtained than for stiff ones. Also, as previously stated, in order to inject a high-quality current into the grid, and to deal with unbalanced voltages, the method of symmetric sequences has become the preferred tool to develop advanced voltage support controllers. To further develop the control, some magnitudes based on the symmetric sequence theory are required. After obtaining the instantaneous voltage sequences v  α,v  α,v  βand v  β, the amplitudes of the positive and negative sequences are computed as V   b p v  α q 2  p v  β q 2(2) V   b p v  α q 2  p v  β q 2. (3) Note that along the text, uppercase is used to indicate amplitude variables while instantaneous values are written in lowercase. Besides, the sag angle between the positive and negative sequence ϕ, which is needed to derive the solution, is obtained as [20] cos ϕ  v  αv  α  v  βv  β V  V  (4) sin ϕ  v  αv  β  v  αv  β V  V  (5) ϕ  atan2 p sin ϕ, cos ϕ q (6) where atan2 is the two-argument arctangent function. Thanks to the use of symmetric sequences, the inverter can be viewed (when analyzing the voltage support effects) as a current source injecting positive sequence active I  pand reactive I  qcurrents into the grid. This assumption is the basis for the development of the control proposal, and the derivation of these active and reactive current references are the goal to maximize the lowest phase voltage. In order to detail the proposed voltage support concept, Fig. 3 presents the phasor diagram of the phase voltages for a given voltage sag. The amplitude of the phases Va,Vband Vcis given in per unit (p.u.). As shown in the phasor graph, phase A barely suffers the sag while phase C (in blue color) is the most affected voltage. In the interest of clarity, the angle of phase C (the lowest voltage) is selected to be 180°. Under this consideration, the currents decomposition and the associated angles are better appreciated in the graph. In order to raise as much as possible the lowest phase voltage, two requirements are needed, the first one is to inject the maximum rated current of the inverter through this phase (i.e. Ic  Imax), and the second one is that this phase current 0° 30° 60° 90° 120° 150° 180°0°  30°  60°  90°  120°  150° 1p.u. Ipc Iqc Ic  Imax θ Va Vb Vc Fig. 3. Voltage support concept. must be injected in a particular angle with respect to the phase voltage. This angle is represented by θ(which has been arbitrarily selected to 60° in the phasor diagram). The first requirement allows for a safe operation and a better utilization of the inverter capabilities during the sag. The second requirement is the key point to maximize the voltage support. Without loss of generality, this injected current can be decomposed into an active Ipc and a reactive component Iqc which are in-phase and in-quadrature with respect to the phase voltage respectively. Depending on the magnitudes of these two currents, θwill be modified and different voltage variations will be produced depending on the grid impedance. Assuming a mainly inductive grid, it is clear that injecting a mainly reactive current Iqc will produce better voltage support effects on the grid. In such a case θ  90° . On the contrary, for a mainly resistive grid, the injected current should be mainly active Ipc, and θ  0° . In between these two extreme cases, the best voltage support solution for any grid impedance must be obtained, as it will be shown in Section III-A. D. Control Objectives Along this work, the control to be implemented during the sag is based on the transformation of the unbalanced voltages into the symmetric sequences. Thus, the phase currents Ipc and Iqc need to be transformed into the corresponding I  p and I  qvalues, consisting in the in-phase and in-quadrature currents following the positive sequence voltage V  instead of the phase voltage Vc. The current reference generator for the symmetric sequences that achieves this objective can be expressed as [19] i  α  I  p V  v  α  I  q V  v  β(7) i  β  I  p V  v  β  I  q V  v  α(8) where it can be seen how the reference currents i  αand i  β cause the inverter behave as a positive sequence active and reactive current source. It should be highlighted that the proposal deals with positive sequence voltages, being the negative sequence uncontrolled. This facts allows for a simpler and easier implementation, producing balanced injected currents, which is of interest during unbalanced voltage sags. As a drawback, voltage imbalance cannot be mitigated with the proposed method. Along this work, the lowest phase voltage will be denoted as Vxin order to deal with any voltage sag. For this purpose, the following is defined Vx  min t Va, Vb, Vc u . (9) Resuming the main control goals, i.e. 1) maximize the lowest phase voltage Vx 2) inject the maximum current of the inverter Imax, the problem can be formulated as max x Pt a,b,c u Vx  I  p, I  q  subject to: Ix  Imax. (10) The solution relies on finding a combination of active and reactive currents p I  p, I  q q that simultaneously maximizes the lowest phase voltage by injecting the maximum permissible current of the inverter Imax. As can be inferred from (10), the optimal solution comprises several stages. First, to evaluate the voltage support effect of an injected phase current into a generic R-Lgrid for any given voltage sag. Then, to find the current to voltage angle that maximizes the voltage support. And finally, to translate these expressions from the phase values into the symmetric sequence values. These three steps are fundamental to develop the solution to (10) as will be shown in next Section, and constitutes the main contributions of this work. III. PROBLEM SOLUTION This section will be devoted to solve (10). The solution is developed in two steps: firstly, the active and reactive phase currents that maximizes the lowest phase voltage are obtained and, secondly, the positive sequence active and reactive currents are derived. A. Maximization of the Lowest Phase Voltage Proposition 1. Let Ipx be the active phase current associated with the lowest phase voltage, and let Iqx be the reactive phase current. Under this consideration, by selecting Ipx  Imax R a R2  p ωL q 2(11) Iqx  Imax ωL a R2  p ωL q 2(12) then the lowest phase voltage Vxis maximized and the injected phase current equals the rated current of the inverter Ix  Imax, for a given grid frequency ω, and for any grid impedance Rand L. Proof. The optimal active and reactive phase currents that maximize the voltage in the lowest phase are obtained by using the method of the Lagrange multipliers. The problem consists in building the Lagrange function Lbased on the objective function fand the restriction gso that L p y1, y2, λ q  f p y1, y2 q  λg p y1, y2 q (13) where λis the Lagrange multiplier, and y1,y2are the dependent variables. Using (1) and the graphical projection of each phasor as shown in Fig. 3, the voltage support effects can be quantified. To this end, the phase current is decomposed into the active and reactive parts. Arranging the involved terms into a single equation, and after some mathematical manipulations, the theoretical amplitude of the phase voltage at the PCC side can be obtained. As a result, the PCC voltage is related to the voltage amplitude at the grid side, the injected currents and the grid impedance as Vx  ωLIqx  RIpx  b p Vgx q 2  p ωLIpx  RIpx q 2(14) where Vxis the amplitude of the supported phase voltage, Vgx is the phase voltage at the grid side, and Ipx and Iqx are the unknown variables. Once the objective function to be maximized f p y1, y2 q  Vx p Ipx, Iqx q presented in (14) is derived, a constraint should be included to keep the inverter currents safely controlled. Resuming the current in phase C from Fig. 3, the restriction is straightforward since both components in the phase current Ipx and Iqx are 90° delayed. Thus, the constraint can be written as g p y1, y2 q  b p Ipx q 2  p Iqx q 2  Imax  0. (15) Each involved term in the Lagrange function (13) has been identified for the problem stated. To obtain the optimal solution, the next step is the computation of the gradient with respect to the involved variables Ipx,Iqx and λ. Finally, solving the gradient to zero gives the optimal solution ∇L p y1, y2, λ q   B L B Ipx , B L B Iqx , B L B λ   0. (16) Developing (16), the optimal currents p Ipx, Iqx q that maximizes the lowest phase voltage are (11) and (12). Alternatively, by using trigonometric identities, (11) and (12) can be rewritten as Ipx  Imax cos θ(17) Iqx  Imax sin θ(18) where θ  atan2 p ωL, R q . (19) B. Phase Currents to Symmetric Sequence Currents Proposition 2. Let s ϕbe the rotation angle that translates the optimal active Ipx and reactive Iqx phase currents in (17) and (18) to the symmetric sequence counterparts I  pand I  q. Under such consideration the active and reactive current references in (7) and (8), being the optimal solution to (10), are I  p  Imax cos p θ  s ϕ q (20) I  q  Imax sin p θ  s ϕ q .(21) Proof. The proof is derived from trigonometric relations among the phasors analyzed in Fig. 3. Without loss of generality, it can be assumed that the phase to current angle, namely ϕIx Vx, equals the impedance angle, i.e. ϕIx Vx  θ  0. (22) By definition, ϕIx Vx  ϕVx  ϕIx(23) is the phase to current angle. Based on the phasor analysis, and conveniently developing the expressions for the voltage angle ϕVxand the current angle ϕIxas a function of the positive and negative sequences, the following relation hold [33] ϕIx   ϕ  ϕx  atan2 p I  q, I  p q (24) and the angle of the lowest phase voltage can be derived by using different methods, the proposed one decomposes the phase voltage into direct and quadrature projections, based on the positive, negative and sequence angle as ϕVx  atan2  V  sin p ϕ  ϕx q  V  sin p ϕx q V  cos p ϕ  ϕx q  V  cos p ϕx q  (25) where ϕxindicates the angle t 0,  2π { 3,  2π { 3 u associated to the lowest phase voltage as ϕx:  $ & % 0,120° ¤ ϕ  240° ñ x  a  2π { 3,0° ¤ ϕ  120° ñ x  b  2π { 3,240° ¤ ϕ  360° ñ x  c. (26) Equation (24) relates the phase current angle ϕIxwith the amplitude of the positive sequence active I  pand reactive I  q currents. This relation is the starting point for the definition of s ϕas will be shown below. Equation (25) is derived from the trigonometric analysis of the voltage phasors in Fig. 3, and it presents a useful method to compute phase voltage angles ϕVa,ϕVbor ϕVc, based on the symmetric sequence amplitudes and the sag angle. Lastly, (26) presents a method to track the lowest phase voltage based on the sag angle in (6). Due to the properties of symmetric sequences, the sag angle itself can be used to identify the lowest phase voltage as detailed above. To achieve this goal, it is required to use the two-argument arctangent function, in brief atan2 pq as previously stated in (6). This function helps to obtain the angle in any of the four possible quadrants, between the positive and the negative sequence voltages. Thus, allowing for the identification of the lowest phase voltage [20]. The idea behind this track angle is that general expressions can be particularized by using its value ϕx P t 0,  2π { 3,  2π { 3 u . Using (26) in (24) and (25), and developing (23) with (22), the following holds s ϕ  ϕVx  ϕx  ϕ(27) while(true) compute rms Va, Vb, Vc  0.85p.u? VoltageSupport pq NormalOperation pq return p i  α, i  β q (sag detected) yes no i  αi  βi  αi  β Fig. 4. Flowchart for triggering the voltage support control scheme. Outer ref. generator Inner loop Voltage Support i  α i  β   Proportional Resonant dα dβ Space Vector Modulator u1 u6 Plant iα iβ vα vβ Sequence extractor v  αv  β v  αv  β Fig. 5. Control diagram for the proposed control scheme. which defines the rotation angle in (20)-(21) that constitutes the optimal reference currents. Based on (11) and (12), and applying trigonometric identities to (20) and (21), the above expressions can be rewritten in terms of a rotating transformation as I  p  Ipx cos s ϕ  Iqx sin s ϕ(28) I  q  Iqx sin s ϕ  Ipx sin s ϕ(29) which conclusively is the optimal solution to (10). After developing the theoretical solution, (28) and (29), to the problem in (10), a step by step procedure to implement this solution is presented. The flowchart for the decision algorithm is presented in Fig. 4. In this chart, it can be shown how the triggering decision for the whole voltage support controller is implemented. The trigger consists on the comparison of the root mean square (rms) voltages with the common threshold voltage of 0.85 p.u. [8], [10]. Whenever the rms voltage of one of the phases falls below this threshold, the sag is detected. Depending on this comparison, the inverter operates in normal mode or launchs the voltage support control scheme presented in Fig. 5. In this scheme, it can be appreciated the outer reference generator, the inner current loop, the modulator and the plant. The detailed implementation of the reference generator is shown in Fig. 6, which presents the algorithm that solves the problem at run-time. IV. IMPACT OF IMPEDANCE MISMATCHES This Section derives an expression to quantify the deviations produced in the amplitude of the minimum voltage due to the mismatch in the grid impedance estimation. Along the work, it has been assumed that the grid impedances Rand Lare known. Two methods have been proposed to notify the grid values: a known grid model FUNC :  i  α,i  β   VoltageSupport  v  α, v  α, v  β, v  β  1θ  atan2 p ωL, R q /* From known model or estimator */ 2Ipx  Imax cos p θ q 3Iqx  Imax sin p θ q 4V   b p v  α q 2  p v  β q 2 5V   b p v  α q 2  p v  β q 2 6cos p ϕ q  v  αv  α  v  βv  β V  V  7sin p ϕ q  v  αv  β  v  αv  β V  V  8ϕ  atan2 p sin p ϕ q ,cos p ϕ qq 9if 120° ¤ ϕ  240°then 10 ϕx  0/* Lowest phase is A */ 11 else if 0° ¤ ϕ  120°then 12 ϕx   2π { 3/* Lowest phase is B */ 13 else if 240° ¤ ϕ  360°then 14 ϕx  2π { 3/* Lowest phase is C */ 15 ϕVx  atan2  V  sin p ϕ  ϕx q  V  sin p ϕx q V  cos p ϕ  ϕx q  V  cos p ϕx q  16 s ϕ  ϕVx  ϕx  ϕ 17 I  p  Ipx cos s ϕ  Iqx sin s ϕ 18 I  q  Iqx cos s ϕ  Ipx sin s ϕ 19 i  α  I  p V  v  α  I  q V  v  β 20 i  β  I  p V  v  β  I  q V  v  α 21 return  i  α,i  β  Fig. 6. Pseudo-code for the controller implementation of the voltage support proposal. based on the nearby elements where the power facility is connected, and an on-line impedance estimator. Both methods have inherent benefits and drawbacks. Whatever the method used, a certain discrepancy between the real grid values Rand L, and the estimated values used to implement the proposal p Rand p Lcould exist. Assuming that I  pand I  qin (28)-(29) are built based on a perfect impedance estimation, the following holds V  x  Vgx  Imax a R2  p ωL q 2(30) where V  xis the maximum voltage at the PCC that can be achieved with the proposed control scheme for the lowest phase voltage. However, in case of discrepancies between the real and estimated impedance values (i.e. p R  Rand p L  L corresponding to an estimated impedance angle p θ  θ), the lowest phase voltage is Vx  b V2 gx  I2 max p Rsin p θ  ωLcos p θ q 2  Imax p Rcos p θ  ωLsin p θ q (31) which correspond to a lower voltage support compared with the case where the impedance is perfectly known. The above expressions can help to further understand and quantify the effects of a poor grid impedance estimation. It is worth mentioning that the grid model used along this work, made by a voltage source and an equivalent grid impedance, (see Fig. 1 for details), is a simplified version of TABLE I SYSTEM PARAMETERS Symbol Nominal value base power Sbase 2.3kVA rated current Imax 10 A(peak) grid voltage vg155 V(l-n, peak) grid frequency ω2π60 rad/s grid inductance L5mH grid resistance R1.3 Ω impedance angle θ55  dc-link voltage Vdc 350 V inverter inductance Li5mH filter capacitor C1.4µF output inductance Lo2mH switching frequency fs10 kHz the real grid. In a real power system, AC grid parameters and loads are changing dynamically. Thus, a certain discrepancy between the real and the estimated grid impedance could exists. However, as will be shown in next Section, a perfect grid impedance estimation is not really needed. V. EXPERIMENTAL RESULTS Based on Fig. 1, a scale-down laboratory prototype has been built to check the dynamic and static performance of the control proposal against a time-varying voltage sag. A. Laboratory Setup The experimental setup is made up of an Amrel DC power source, a Guasch three-phase inverter and a Pacific AC power source to get repetitive voltage sags. The controller task is implemented on a F28M36 Texas Instruments digital signal processor based on the pseudo-code presented in Fig. 2. The main system parameters are collected in Table I. From this table, the nominal values for the grid impedance are R  1.3Ω and L  5mH, being ω  2π60 rad/s. Hence, the impedance angle is θ  atan2 p ωL,R q  55°. It is worth mentioning that the per unit impedance values are R  0.08 p.u. and L  0.12 p.u, which can be considered as a weak grid. However, the merit of the control scheme does not rely on the stiffness or weakness of the grid but in the L { Rratio. This weak grid test-case has been selected to highlight the voltage support effects and to test the dynamic performance of the control scheme in a worst case scenario. B. Evaluation of Dynamic Performance The test scenario is divided into three parts, firstly the normal operation mode, in which the inverter injects P  2000W and Q  0VAr into the grid. Second case corresponds to the occurrence of the voltage sag, where the proposed voltage support described in Fig. 6 is launched and the results are presented below. Finally, the third case is the post-fault state, where the inverter comes back to the normal operation mode once the fault has been cleared. The sag under test is presented in Fig. 7. The instantaneous phase voltages are shown in the top, and the rms values are plotted in the bottom. At t  0s, the sag occurs and, at t  0.2s, -150 0 150 Phase voltages (V) vga vgb vgc -0.05 0 0.05 0.1 0.15 0.2 0.25 t(s) 0 50 100 RMS voltages (V) Vga Vgb Vgc Fig. 7. Experimental results of the instantaneous and rms phase voltages for the sag under test without voltage support. -150 0 150 Phase voltages (V) va vb vc t(s) 0 50 100 RMS voltages (V) Va Vb Vc t(s) 0 5 10 15 RMS difference (V) ∆Va ∆Vb ∆Vc -10 -5 0 5 10 Phase currents (A) ia ib ic 0 5 10 Sequence currents (A) I+ p I+ q 0 1 2 Instant. pow. (kW,kVAr) p q -0.05 0 0.05 0.1 0.15 0.2 0.25 t(s) 0 120 240 360 Angles (◦) ϕ ϕx ϕVx ¯ϕ Fig. 8. Experimental results for the dynamic performance of the voltage support proposal. From top to bottom: instantaneous phase voltages, rms voltages, rms voltage difference among no voltage support and the proposed method, injected phase currents, active and reactive reference currents, instantaneous active and reactive powers, and involved angles for the computation of the solution. the fault is cleared by the protection devices. In between, the sag has a dynamic profile to test the proposal against this complex fault. It can be seen that along the test, the threephase voltages are affected, however the lowest voltage Vx concerns to phase C. In order to test the performance of the voltage support control, Fig. 8 presents the most important signals and magnitudes involved. From top to bottom, the plot shows the instantaneous phase voltages, the rms phase voltages, the rms voltage difference between the proposed control and the base-test without voltage support, the injected phase currents, the references for the active and reactive sequence currents, instantaneous active and reactive powers, and the angles as computed within the control loop. Comparing instantaneous and rms phase voltages in Fig. 7 (without voltage support), and the voltages on top of Fig. 8 (with voltage support), it is clearly manifested the main contribution of this work: the voltage increase of the lowest phase voltage. The rms comparison of both tests can be better appreciated in the next plot, where the rms voltage difference with and without voltage support is presented. According to (30), the lowest phase raises approximately 15V independently of the voltage sag profile. This is due to the fact that the control proposal computes the optimal solution based on the rotation angle as previously detailed. It should be pointed out that this high voltage increment is due to the weak grid scenario. However, for stiff grids, the objective of reducing the risk of under-voltage disconnection will be also accomplished although the voltage variation will be less than in the weak case. The other phases present less voltage increment, as expected due to the fact that the proposal is intended to optimize the lowest phase voltage. Next plot of Fig. 8 presents the instantaneous phase currents that the inverter injects during the test. Before the sag and when the sag is cleared, the inverter injects an active power according to the production of the power source. When the sag is detected, the inverter launches the voltage support control to improve the voltage profile. As can be shown in this graph, the injected currents during the sag reach the rated current of the inverter (Imax  10A along the experiments). Therefore, the second objective of the proposal, which consists in a safe current injection during the sag is also accomplished. This second objective not only allows for a safe inverter operation, but also helps to take advantage of the fast reaction of inverterbased power converters when interfaced with the grid in front of sudden perturbations. After presenting the injected phase currents, it is worth showing the references for the active and reactive sequence currents. Next plot of Fig. 8 shows the values of these two magnitudes. The active current injected before and after the sag is approximately 8A, and the reactive current is zero. However these values change during the sag so as to generate the appropriate current references that are needed to achieve the above mentioned control objectives. The dynamic evolution of these reference currents are due to the dynamic profile of the voltage sag. Next plot in the figure shows the instantaneous active and reactive powers during the experiment. Before the sag, the inverter injects 2000W and 0VAr, during the sag these values evolve accordingly to dynamically adapt the references to the optimal solution. Note that the energy storage capacity of the inverter allows to regulate the excess/lack of active power to the dynamic needs during the fault. When the sag has been cleared, the pre-fault values are kept. As can be appreciated in the plot, during the sag both magnitudes have oscillations at twice the grid frequency, as expected for unbalanced voltage sags. It should be noticed that the proposed method can neither reduce the voltage imbalance nor cancel the active power oscillations, which have been selected in other studies as two interesting objectives during faults. This limitation is due to the injection of positive sequence powers only, being the negative sequence unaffected. As a result, problems derived from the oscillations in the dc-link voltage should be considered, and over-voltage in the phase(s) that do not suffer the sag can be produced. Last plot in Fig. 8 is intended to present the angles computed within the controller. These angles only have a physical meaning during the sag, so the analysis is focused on this interval. From top to bottom, the sag angle ϕpresents the angle between the positive and negative sequence voltages. The track angle ϕxindicates which phase is the lowest one. As can be observed in the sag voltages, the lowest phase is Vc, thus the track angle is 120° during the grid fault. The phase voltage angle ϕVxshows where this voltage is located. Although it 180º 134º 0º -162º -100 -50 0 51 107 140 vavbvc 180º 78º -42º -163º -10 0 10 iaibic 0.5 1 30 210 60 240 90 270 120 300 150 330 180 0 0.5 1 30 210 60 240 90 270 120 300 150 330 180 0 Fig. 9. Time-domain and phasor analysis of voltages and currents. is close to 120°, the dynamic evolution of the voltages during the sag, makes this voltage angle to change slightly depending also on the voltage sag programmed in the experiment. Finally, the angle s ϕshows the information for the rotation from phase currents to sequence currents as theoretically explained before. C. Evaluation of Static Performance Once the dynamic performance of the controller has been presented and discussed, a static analysis has been performed to show additional features of the proposal. Fig. 9 shows the supported voltages and the injected currents in one grid cycle. The values have been arbitrary collected in the middle of the sag at time t  0.1s. The figure is divided into 2parts corresponding to the time-domain values (on the right) and the phasor plots (on the left). In order to corroborate that the voltage to current angle match the impedance angle θ, the time-domain plots have labels indicating the angle instead of the time. For simplicity it has been assumed a zero angle for the voltage of phase A when crossing the origin. As it can be seen in the phasor diagram, the three phase voltages are unbalanced and have different amplitudes. However, the currents have the same amplitude and are approximately 120° delayed. As previously stated, this figure helps to compute the voltage to current angle. Taking a look at the labels for the phase voltage C, it indicates 134°, and the current angle shows 78°, corresponding to a difference of 134°  78°  56° which strongly agrees with the theoretical impedance angle θ  55°. Therefore the proposed method ensures that the phase current can be injected in a particular angle with respect to the lowest phase voltage, in such a way that the voltage support is maximized. D. Impact of Grid Impedance Mismatches Last experiment also deals with the static analysis needed to further evaluate the optimal solution. Several tests have been developed using a wrongly estimated grid impedance, and the voltage support effects have been reported in Fig. 10.