Professional Documents
Culture Documents
net/publication/281574175
CITATIONS READS
5 5,057
2 authors:
Some of the authors of this publication are also working on these related projects:
PhD Supervision - B.Pawlik "Unifying the earth return theory" View project
All content following this page was uploaded by R.E. Betz on 08 September 2015.
1
First created: March 14, 2005
Revised on 2014-04-14 15:10:40 +1000 (Mon, 14 Apr 2014) by R.E. Betz
SVN Version: 537
ii
Preface
1 Symmetrical Components 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Why is Balance Important in Power Systems? . . . . . . . 1
1.2 Symmetrical Component Basics . . . . . . . . . . . . . . . . . . . 3
1.2.1 Power Under Asymmetric Operation . . . . . . . . . . . . 7
1.3 Techniques for Extracting the Symmetrical Components . . . . . 11
3 Implementation 25
3.1 Investigation of Topologies . . . . . . . . . . . . . . . . . . . . . . 25
3.1.1 The Real Power Problem . . . . . . . . . . . . . . . . . . 26
3.2 Symmetry Compensation Using Active Components . . . . . . . 27
3.2.1 Delta Connected Active Symmetry Compensation . . . . 27
3.2.2 Wye Connected Active Symmetry Compensation . . . . . 34
3.3 Phase Power Balancing . . . . . . . . . . . . . . . . . . . . . . . 39
3.3.1 Phase Power Balancing using Zero Sequence Components 40
3.3.1.1 The Y Connected Case . . . . . . . . . . . . . . 40
3.3.1.2 The ∆ connected case. . . . . . . . . . . . . . . 42
3.4 Control Integration Issues . . . . . . . . . . . . . . . . . . . . . . 44
3.4.1 Power System Topology Issues . . . . . . . . . . . . . . . 45
3.5 H-bridge Converter Ratings . . . . . . . . . . . . . . . . . . . . . 45
3.5.1 Delta Connection Ratings . . . . . . . . . . . . . . . . . . 45
3.5.2 Wye Connected Converter Ratings . . . . . . . . . . . . . 46
3.6 Unbalanced Voltage Support . . . . . . . . . . . . . . . . . . . . 48
3.6.1 Relevant Paper Reviews . . . . . . . . . . . . . . . . . . . 49
3.6.1.1 “Compensation of Distribution System Voltage
Sag by DVR and D-STATCOM” – M.H. Haque . 49
3.6.1.2 “STATCOM Controls for Operation with Unbal-
anced Voltages” – Hochgraf and Lasseter . . . . 55
3.6.2 Control Strategy Development . . . . . . . . . . . . . . . 57
3.6.2.1 Phase Power Balance with Positive and Negative
Sequence Currents and Voltages . . . . . . . . . 58
vi CONTENTS
4 Simulation Studies 71
4.1 Wye Connected Current Sources . . . . . . . . . . . . . . . . . . 71
4.2 Delta Connected Current Sources . . . . . . . . . . . . . . . . . . 76
4.3 Wye Connected Current Sources and Voltage Source . . . . . . . 81
4.4 Unbalanced Source Voltages . . . . . . . . . . . . . . . . . . . . . 86
4.4.1 Delta Connected STATCOM . . . . . . . . . . . . . . . . 86
4.4.1.1 Balanced Load Case . . . . . . . . . . . . . . . . 89
Bibliography 131
List of Figures
1.1 Three sets of balanced phasors which are the symmetrical com-
ponents for three phase unbalanced phasors. . . . . . . . . . . . . 4
1.2 Operations on the “a” operator. . . . . . . . . . . . . . . . . . . . 5
4.1 Schematic of the Saberr simulation used for the Wye connected
current sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4.2 Wye connected current sources in Saberr simulation. . . . . . . . 73
viii LIST OF FIGURES
4.3 Negative sequence currents on the load and source sides of the
compensator connection point. . . . . . . . . . . . . . . . . . . . 74
4.4 Positive sequence current on the load and source sides of the
compensator connection point. . . . . . . . . . . . . . . . . . . . 74
4.5 Phase current on the load and source side of the wye connected
compensator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.6 Power in Wye connected current sources with no zero sequence
voltage injection. . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.7 Saberr simulation for Delta connected current sources with zero
sequence current injection. . . . . . . . . . . . . . . . . . . . . . . 77
4.8 Delta connected current sources used in Saberr simulation. . . . 78
4.9 Source side line currents for the Delta connected current sources. 79
4.10 Negative sequence currents on the source side with Delta com-
pensator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.11 Currents in the individual current sources for a Delta connected
compensator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
4.12 Zero sequence current injected into the Delta compensator. . . . 80
4.13 Current source powers in Delta compensator with zero sequence
current applied at 0.5 seconds. . . . . . . . . . . . . . . . . . . . 81
4.14 Saberr schematic of wye connected compensator with zero se-
quence voltage injection. . . . . . . . . . . . . . . . . . . . . . . . 82
4.15 Close-up of compensator showing voltage source for zero sequence
voltage injection. . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.16 Voltage source reference generator for zero sequence voltage in-
jection for a wye connected compensator. . . . . . . . . . . . . . 83
4.17 Negative sequence currents with a zero sequence voltage injection
wye connected compensator. . . . . . . . . . . . . . . . . . . . . . 84
4.18 Voltages across the compensator sources and star point for a zero
sequence voltage injection wye connected compensator. . . . . . . 85
4.19 Powers in the sources for a zero sequence voltage injection wye
connected compensator. . . . . . . . . . . . . . . . . . . . . . . . 85
4.20 Negative sequence currents for wye connected compensator with
zero sequence injection and general unbalanced admittances. . . 86
4.21 Voltages for a wye connected compensator with zero sequence
voltage injection and general unbalanced load. . . . . . . . . . . . 87
4.22 Powers for a wye connected compensator with zero sequence volt-
age injection and a general load. . . . . . . . . . . . . . . . . . . 87
4.23 Simulation of a Delta connected current source based STATCOM
with 20% dip in phase ‘a’, a balanced resistive load, negative
sequence injection from derived from the load current to balance
the currents, and I0 injection for power balance. . . . . . . . . . 88
4.24 Single line diagram of conceptual re-balancing of unbalanced volt-
ages when there is a balanced load. . . . . . . . . . . . . . . . . . 89
4.25 From the top plot: load currents, negative sequence load current,
positive and negative sequence voltages, STATCOM compensator
currents with a balanced resistive load and a 20% different voltage
in phase ‘a’ (14.3% unbalance). STATCOM re-balancing occurs
from 0.7 seconds. . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
LIST OF FIGURES ix
4.26 Close-up of Figure 4.25 From the top plot: load currents, negative
sequence load current, positive and negative sequence voltages,
STATCOM compensator currents with a balanced resistive load
and a 20% different voltage in phase ‘a’ (14.3% unbalance). . . . 91
4.27 Total three phase power and the individual current source powers
under the conditions of figures 4.25 and 4.26. . . . . . . . . . . . 92
Symmetrical Components
1.1 Introduction
Symmetrical components were developed in 1918 by C.L. Fortescue [2]. The
technique allows any unbalanced polyphase system to be decomposed into a
series of balanced polyphase systems, thereby making the analysis of unbalanced
systems a simple extension of that of balanced systems.
Remark 1.1 The Europeans use a superior definition for unbalance based on
the relationship between positive and negative sequence components in the wave-
forms. This takes out the strange issue of using the average voltage as the basis
of the measurement. n
Remark 1.2 Note that the lifetime reduction for even 2% unbalance is dra-
matic. A 2% unbalance would not be unusual in practice. NEMA recommends
that supply unbalance be below 1%, but in reality very few supply situations would
satisfy this requirement. n
Remark 1.3 A rule-of-thumb for voltage unbalance and the resultant percent-
age temperature rise above the rated temperature is:
Table 1.1: Effects of unbalance on temperature, losses, efficiency and life time
of an induction machine at rated load [1].
Clearly the decreased motor life indicated in Table 1.1 is a significant cost
of voltage unbalance. In addition to this there is a loss of efficiency in the
machines, and therefore an increased energy loss. For example, if one has 3%
unbalance in the voltages feeding a plant full of electrical machines, then the
plants energy bill will be approximately 2 to 3% higher due to this. Unbalance
in voltages could, for example, completely swamp the benefits of buying high
efficiency electrical machines.
Remark 1.4 The main reason that minor unbalance results in significant loses
in the machine is due to the very low impedance of the machine to the negative
sequence. In effect the machine is running at a very large slip with respect to
the negative sequence, and hence its impedance is very low. n
1.2 Symmetrical Component Basics 3
r
Vcp
r r r
Vbn Van Vcr0
Vbr0
Va 0
qn r
Vap
q0
r
Vbp
r
Vcn
Negative sequence components Positive sequence components Zero sequence components
Figure 1.1: Three sets of balanced phasors which are the symmetrical compo-
nents for three phase unbalanced phasors.
Consider a set of polyphase phasors, which are arbitrary in nature (i.e. may
be a balanced set of phasors, or may be unbalanced in various ways). These
phasors are written as follows:
The notation X̂y in the phasor expressions denotes that this is an rms value.
Symmetrical component theory says that the phasors in equations (1.22),
(1.23) and (1.24) can be written as:
~a=V
V ~ ap + V
~ an + V
~ a0 (1.25)
~b=V
V ~ bp + V
~ bn + V
~ b0 (1.26)
~c=V
V ~ cp + V
~ cn + V
~ c0 (1.27)
a -a 2
-a 3 (-1) a 3 (1)
a2 -a
Using the operator defined in (1.28) one can write the voltages of equa-
tions (1.13)– (1.21) as follows:
~ bp = a2 V
V ~ ap (1.30)
~ cp = aV
V ~ ap (1.31)
~ bn = aV
V ~ an (1.32)
~ cn = a Van
V 2~
(1.33)
~ b0 = V
V ~ a0 (1.34)
~ c0 = V
V ~ a0 (1.35)
6 Symmetrical Components
Substituting (1.31)– (1.35) into (1.25)– (1.27) we can write the following:
~a=V
V ~ ap + V~ an + V~ a0 (1.36)
~b=V
V ~ bp + V~ bn + V~ b0 (1.37)
~ ap + aV
= a2 V ~ an + V~ a0 (1.38)
~c=V
V ~ cp + V
~ cn + V~ c0 (1.39)
~ ap + a2 V
= aV ~ an + V ~ a0 (1.40)
The expressions can be expressed more succinctly in matrix form:
~ ~
Va 1 1 1 Va0
~ b = 1 a2 a V
V ~ ap (1.41)
~ 2 ~ an
Vc 1 a a V
Denoting:
1 1 1
A= 1
a2 a (1.42)
1 a a2
we can show that:
1 1 1
1
A−1 = 1 a a2 (1.43)
3
1 a2 a
Using (1.43) we can write the symmetrical components in terms of the line
or phase voltages as follows:
~ ~
Va0 1 1 1 Va
1
~ ap = 1 a a2 V ~ b
V (1.44)
~ 3 2 ~c
Van 1 a a V
Using (1.30)– (1.35) in conjunction with (1.44) one can construct all the
symmetrical component sequences from the line or phase waveforms. After
some manipulation one can obtain the following expressions for the positive,
negative and zero sequences.
Firstly the positive sequence can be expressed as:
~ ~
1 a a2
Vap Va
1
~ bp = a2 1 a V ~ b
V (1.45)
~ cp 3 2 ~c
V a a 1 V
The negative sequence can be expressed as:
~ ~
1 a2 a
Van Va
V~ bn = 1 a 1 a2 V ~ b (1.46)
~ 3 2 ~c
Vcn a a 1 V
The zero sequence can be expressed as:
~ ~
Va0 1 1 1 Va
1
~ b0 = 1 1 ~ b
V 1 V (1.47)
~ c0 3 ~c
V 1 1 1 V
1.2 Symmetrical Component Basics 7
Remark 1.6 The equations for the symmetrical components are all expressed
in phasor terminology. In a practical system one has time domain waveforms.
Therefore techniques need to be developed to extract phasor information from
these waveforms, even when there is noise and harmonics present in the mea-
surements of the system quantities. This issue has been the subject of much
research in the power systems community. One technique for detecting the pha-
sors is presented in [5]. Details of the implementation of this technique in the
simulation studies associated with this report appear in Appendix B. n
Substituting the expressions (1.53)– (1.58) into (1.48) and (1.49) we can
write the space vectors as:
√ √
v = 2V̂p ej(ωt+α1 ) + 2V̂n e−j(ωt+α2 ) = v p + v n (1.59)
√ √
ˆ
i = 2Ip e j(ωt+α1 +φ1 ) ˆ
+ 2In e −j(ωt+α2 +φ2 )
= ip + in (1.60)
Remark 1.8 Note that (1.62) contains two main groups of terms. The first
ones the instantaneous power flowing, and is a constant value (which is well
know for three phase circuits). The second group of terms involving a mixture
of positive and negative sequence currents and voltages are effective the double
frequency reactive power terms. n
Using the definitions of (1.59) and (1.60) and substituting into (1.62) one
can write the following expression for the instantaneous power in terms of rms
values:
Remark 1.9 As can be seen from (1.63) the first term contains the normal
three phase power term one is familar with from traditional three phase circuit
theory – there is the addition of the term from the average power for the negative
sequence. The last two terms of the expression are similar to the single phase
reactive powers. However, note that we are dealing with three phase power here,
and not single phase power. In a three phase system the total power due to the
VARs is instantaneously zero. Therefore these extra terms are new, and are an
artifact of the presence of the negative sequence voltages and currents. Note that
these terms contain an average zero double frequency component and hence no
average power flows in the three phase system due to them. n
Remark 1.10 If there are negative sequence currents present, but no negative
sequence voltage (which is approximately the case in many practical situations),
then v n ≈ 0. Therefore v n i∗n ≈ 0, and only the normal positive sequence average
power is present. If this were not the case, then a STATCOM would have to
supply the negative sequence power as part of the process of getting rid of the
negative sequence. This makes practical sense, since this situation implies that
there is unbalance in the voltages, and the STATCOM has to then support the
voltage. It has to supply the necessary energy to compensate for the negative
sequence power being generated by the unbalanced supply in order to do this. n
Let us consider the individual phase power in the case where the negative
sequence voltage can be assumed to be zero, but there is both positive and
negative sequence currents. We will assume that the control of the positive
1.2 Symmetrical Component Basics 9
sequence current is such that the positive sequence power is only reactive – i.e.
there is no three phase positive sequence real power, only three phase positive
sequence reactive power. This is the case when a STATCOM is controlling the
reactive power on a network. If will be assumed that the voltages and currents
are of the form shown in (1.53)–(1.58).
The general power expression is of the form:
p = va ia + vb ib + vc ic (1.64)
Each of these individual power expressions can be expanded to find the individ-
ual phase powers. Let us consider the expression:
p a = va i a (1.65)
Substituting (1.53) and (1.56) into (1.65) assuming that V̂n = 0 – i.e. the
negative sequence voltage component is zero. The phase angle α2 is also set to
zero. In order to simplify the expressions, and without loss of generality, α1 will
also be assumed to be π2 . We can therefore get:
√ √ π √
pa = 2V̂p cos ωt[ 2Iˆp cos(ωt + ) + 2Iˆn cos(ωt + φ2 )] (1.66)
2
π
= 2V̂p Iˆp cos ωt cos(ωt + ) + 2V̂p Iˆn cos ωt cos(ωt + φ2 ) (1.67)
2
The first term of (1.66) can be written as:
Now let us consider the 2nd term of (1.66), which is the term that con-
tains both positive and negative sequence components. Carrying out a similar
expansion we can write:
Remark 1.12 The second term of (1.74) contains two components. The first
has an average value of zero over a period, and the second term has a constant
value depending on the value of φ2 . n
10 Symmetrical Components
Remark 1.13 Overall the we can write the following expression for the instan-
taneous power in phase ‘a’ as:
π
pa = V̂p Iˆp cos(2ωt + ) + V̂p Iˆn cos(2ωt + φ2 ) + V̂p Iˆn cos φ2 (1.75)
2
Therefore the average phase power is:
pave
a = V̂p Iˆn cos φ2 (1.76)
Similar development can be carried out for the other phases. If this is done
one can get the following expressions:
π 4π 4π
pb = V̂p Iˆp cos(2ωt + − ) + V̂p Iˆn cos(2ωt + φ2 ) + V̂p Iˆn cos(φ2 + )
2 3 3
(1.77)
π 4π 4π
pc = V̂p Iˆp cos(2ωt + + ) + V̂p Iˆn cos(2ωt + φ2 ) + V̂p Iˆn cos(φ2 − )
2 3 3
(1.78)
Remark 1.14 As can be seen from (1.77) and (1.78) there is again oscillating
power terms with zero average, as well as an average term. One can see that in
general, irrespective of the value of φ2 there are always average real power terms
associated with the interaction of the positive sequence voltage and the negative
sequence current. n
If one considers the total power for the three phases we get (1.63). The
average power terms in each of the phases sum to be zero.
Remark 1.15 The important observation from the above analysis is that in
this simplified case, there is an average power in each individual phase, but
from a three phase perspective the average power is zero. This has important
implications for the H-bridge STATCOM, where the capacitors in each phase leg
are isolated from the capacitors in other phase legs. n
Conclusion 1.1 If one has asymmetry in the supply, then the three phase power
will contain the double frequency power components shown in (1.63). Therefore,
if one wishes to make the unsymmetrical supply symmetrical, then the equipment
that does this has to supply the double frequency power component. However,
because these components have no average power, then the equipment does not,
on average, have to generate or absorb real power. This means that it is tech-
nical feasible for a non-real power device such as a STATCOM to supply this
instantaneous power, but no average power. It should be emphasised that the
double frequency power component is in the three phase power, and whilst it
does not contain an average component, this does not necessarily mean that the
individual phases will have this property. n
Conclusion 1.2 Whilst the three phase average power into or out of the three
phase system is zero, the individual average powers on each phase in general are
not zero. Therefore, without some other remedial action the capacitor voltages
in a H-bridge based STATCOM that is injecting negative sequence currents into
a positive sequence voltage will either continually rise or fall. n
1.3 Techniques for Extracting the Symmetrical Components 11
*********************
Add material here describing the technique used in the initial Saber
simulations, then that proposed by Hochgraf and Lasseter [7], and
finally by Jung [8].
*********************
12 Symmetrical Components
Chapter 2
2.1 Introduction
In this section we consider some general theory related to controlling the power
factor and balancing the phase currents in a network where we have an unbal-
anced load. This presentation is based on work that originally was carried out
by Steinmetz, but which has been more recently published in [9] and [10].
Remark 2.1 A basic assumption in all the following analysis is that the sup-
ply voltages are balanced, and the unbalance in the line currents is due to the
unbalanced load. n
r r r
Ib Ic Ia
c
r
Ica
r
r
Vbc Vca
Ybc Yca
r
Ibc Yab
b r
Iab a
r
Vab
r r r
Ib Ic Ia
c r
Ica
-jBbc -jBca
Ybc Yca
r
Ibc Yab
b r a
Iab
-jBab
r r r
Ib Ic Ia
c
r
Ica
r
r
Vbc Vca
Gbc Gca
r
Ibc Gab
b r
Iab a
r
Vab
The next step after achieving unity power factor is to now balance the supply
currents. This involves compensating for the different conductances.
We are free to choose the element Yca between nodes c and a. We want this
element to be a reactive element so that it does not consume any real power. If
the element is an inductor then we get the current ~Ica as shown in Figure 2.2
– note that it is at 90◦ with respect to the V ~ ca phasor. The vector evaluation
of (2.2) determines the value of ~Ia . Since the line currents have to be balanced,
then the determination of ~Ia also effectively determines the phasors for ~Ib and
~Ic .
16 Theory of Power Factor Control and Phase Balancing
r r r
Ib Ic Ia
c
Equivalent to an
open circuited wye
r r
Vbc Vca connected load
Gab
b r
Iab a
r
Vab
r
Vca r
r -Vb
Vc
r
Vab
r
-Ibc r r r
Iab = Ia + Ica
r r
Ic Ica
r
r -Ica
Ibc
r r r r
-Va -Ibc Ia Va
r
-Iab r r
Ibc Ib
Vector diagram for
balanced phase currents
r r
Vb -Vc
r
Vbc
and
~Ib = ~Ibc − ~Iab (2.5)
Remark 2.4 The important point to note from this diagram is that both ~Ica and
~Ibc are at 90◦ angle with respect to the relevant voltage. Therefore the elements
that allow this current to flow are reactive elements and therefore on a phase
basis there is no real power flow. n
Figure 2.3 shows the completed Delta circuit with the balancing and unity
power factor elements added.
r r r
Ib Ic Ia
r
Ica
r r
Vbc Vca
jBbc -jBca
r
Ibc Gab
b r
Iab a
r
Vab
Remark 2.5 Note that when using a STATCOM it has to be controlled so that
the H-bridge legs in leg “ca” and leg “bc” are made to look like an inductor and
capacitor respectively. n
general than the previous case though, in that we are accounting for the situation
where we have arbitrary load admittances of Yab , Ybc and Yca .
Given that we have arbitrary load admittances, then as discussed in Section 2
we can place parallel susceptances across these admittances so that the load
susceptances are cancelled leaving only the conductances. At this stage the unity
power factor requirement has been achieved, but the system is in general still
unbalanced. The resultant situation is shown in the top diagram of Figure 2.4.
The remainder of this section will develop the theory to calculate what the
additional balancing susceptances so that the line currents are balanced.
Let us define the following voltages and currents, as per Figure 2.4, for the
purposes of the following analysis:
~ a = V̂p ej0◦
V ~ b = V̂p e−j120◦
V ~ c = V̂p e−j240◦
V (2.6)
√ √ √
~ ab = 3V̂p ej30◦
V ~ bc = 3V̂p e−j90◦
V ~ ca = 3V̂p ej150◦
V (2.7)
We want unity power factor and balanced currents, which implies the following
situation:
~Ia = V
~ aG ~Ib = V
~ bG ~Ic = V
~ cG (2.8)
⇒ ~Ia = V̂p G ~Ib = V̂p Ge−j120◦ ~Ic = V̂p Ge−j240◦ (2.9)
The currents through each of the Delta phase legs are:
~Iab = V~ ab Y c = V
~ ab (Gab + jB c ) (2.10)
ab ab
~Ibc = V~ bc Y c = V
~ bc (Gbc + jB c ) (2.11)
bc bc
~Ica = V
~ ca Y c = V
~ ca (Gca + jB c ) (2.12)
ca ca
c c c
where Bab , Bbc and Bca are the compensating susceptances.
c c c
Essentially we have four unknowns – Bab , Bbc , Bca and G. We can write
three equations from the KCL equations at the three nodes in Figure 2.4. These
equations are complex, therefore using real and imaginary parts we effectively
have six equations.
Consider node “a” in the second diagram of Figure 2.4. Using KCL we can
write:
~Ia − ~Iab + ~Ica = 0 (2.13)
√ ◦
j30 c
√ ◦
∴ V̂p G − 3V̂p e (Gab + jBab ) + 3V̂p ej150 (Gca + jBca
c
)=0 (2.14)
Using the following:
√
j30◦ ◦ ◦ 3 1
e = cos 30 + j sin 30 = +j (2.15)
2 2
√
◦
◦ ◦ 3 1
ej150 = cos 150 + j sin 150 = − +j (2.16)
2 2
√ !
◦ 1 3
ej120 = cos 120◦ + j sin 120◦ = − + j (2.17)
2 2
√ !
−j120◦ ◦ 1◦ 3
e = cos(−120 ) + j sin(−120 ) = − − j (2.18)
2 2
◦
e−j90 = cos(−90◦ ) + j sin(−90◦ ) = −j (2.19)
2.2 Symmetry Compensation Using Passive Circuits 19
r r r
Ib Ic Ia
c
r
Ica
r r
Vbc Vca
Gbc Gca
r
Ibc Gab
b r
Iab a
r
Vab
r r r
Ib Ic Ia
c r
Ica
c c
jBbc jBca
Gbc Gca
r
Ibc Gab
b r a
Iab
c
jBab
r r r
Ib c Ic Ia
r
G Vc
G G
r r
r
Ibc Vb Va
b a
G = Gab + Gbc + Gca
Remark 2.6 Equations (2.31)–(2.36) can now be solved to get the expressions
c c c
for G, Bab , Bbc , and Bca . n
c 1 c
Bab = √ (Gca − Gab ) − Bca (2.37)
3
c G 2 Gab
Bab = √ − √ Gbc − √ (2.39)
3 3 3
Substituting (2.38) and (2.39) into (2.31) and manipulating gives the expression
for G as:
G = Gab + Gbc + Gca (2.40)
Using (2.34) together with (2.40) allows us to write:
c Gca − Gbc
Bab = √ (2.41)
3
c Gbc − Gab
Bca = √ (2.42)
3
c Gab − Gca
Bbc = √ (2.43)
3
c Gca − Gbc
Bab = √ (2.44)
3
c Gab − Gca
Bbc = √ (2.45)
3
c Gbc − Gab
Bca = √ (2.46)
3
The equivalent admittance for each of the phases in the equivalent wye connected
system is:
G = Gab + Gbc + Gca (2.47)
The compensated system will now look like that of Figure 2.5. n
22 Theory of Power Factor Control and Phase Balancing
r r r
Ib Ic Ia
c r
Ica
(Gab - Gca ) (Gbc - Gab )
j j
3 3
Gbc Gca
r
Ibc Gab
b r a
Iab
(Gbc - Gca )
j
3
The above analysis was carried out on the assumption that one wanted
unity power factor. However, in many STATCOM applications the power factor
required may be different than unity. An example where this is an objective
is when one wants to support voltage. In this case the STATCOM has to look
capacitive.
One can carry out the analysis for this case in a similar manner to the
previous analysis carried out for unity power factor. The main difference from
the previous situation is that the line currents required are:
~Ia = V
~ aY ~Ib = V
~ bY ~Ic = V
~ cY (2.48)
where Y = G + jB.
We don’t know what the values of G and B are, but we do know what the
phase angle of the current is with respect to the voltage – i.e. the phase angle.
Therefore, the only unknown is the magnitude of the admittance. Therefore the
currents can be written as:
~Ia = V
~ a |Y |∠θY ~Ib = V
~ b |Y |∠θY ~Ic = V
~ c |Y |∠θY (2.49)
where:
p
|Y | = G2 + B 2 (2.50)
B
θY = arctan (2.51)
G
The formulation will therefore add an imaginary term to the previous evaluation
process, but there are still the same number of unknowns and hence there is
still a solution. Due to the similarity of the process the details of the evaluation
of this will be left to the reader.
Conjecture 2.1 The main conclusion that can be drawn from this section is
that it is possible to put imaginary admittances in parallel with an arbitrary load
2.2 Symmetry Compensation Using Passive Circuits 23
so that one can achieve a desired power factor and symmetry of the line cur-
rents. Because the parallel elements are imaginary this means that they consume
no average power. Therefore, a power electronic device, such as the H-bridge,
which is unable to handle average real power, can be used to synthesise these
impedances. n
Remark 2.7 One obvious observation that can be made from this is that if the
Delta network is purely reactive in nature then so will be the wye connected
network. This can be seen from the Delta-Star transformation in Section A.4,
where the numerator is always real, but the denominator is imaginary. n
Remark 2.8 Remark 2.7 leads an important result as far as a H-bridge cascade
based STATCOM is concerned – i.e. that it is possible for each individual leg
of a wye connected STATCOM to only handle reactive power and at the same
time be able to balance an arbitrary unbalanced load. n
Remark 2.9 Remark 2.8 is important because if balancing can be carried out
using a wye connected STATCOM then the voltage rating of the individual legs
is lower compared to the Delta connected STATCOM (as proposed in [10]). This
clearly has significant economic implications. n
24 Theory of Power Factor Control and Phase Balancing
Chapter 3
Implementation
alternative solution of this paper are related. However, the control strategy
proposed in this paper to achieve zero power at a individual phase level is
completely different from the proposed and simulated in [10]. The work in [10]
was based very closely on ideas from [9], who in turn cited Steinmetz as the
original developer of the theory. This theory was developed in some detail in
Section 2.
Remark 3.1 The trade-off for using the Delta connection is clearly the voltage
rating of the power electronic phase leg. If the H-bridge cascade converter is
being used, then this will correspond to either an increased number of levels, or
alternatively an increase in the voltage rating of each of the H-bridges making
up the cascade. Partially compensating for this is the fact that the current rating
of the legs will decrease by the same √13 factor as the increase in the voltage. n
Remark 3.2 The decrease in current rating for the Delta connection mentioned
in Remark 3.1 above is in reality not gained. This is because where unbalance is
being compensated zero sequence currents are required around the Delta which
3.2 Symmetry Compensation Using Active Components 27
means that the current rating for the Delta connection is approximately the same
as that of the Star connection. n
Remark 3.3 Note that even though individual phase legs may be absorbing
or generating power under unbalance compensation applications, the net power
flowing into the entire power electronic compensator is still zero. n
Remark 3.5 In [10] it was not recognised that the technique can be extended to
wye connected systems. In fact [10] virtually states that wye connected H-bridge
systems cannot be used for symmetry balancing because that will have to handle
real power on a per-phase basis. n
This section shall develop what the author believes to be a new technique
to carry out balancing using active sources (current and voltage), connected in
both Delta and Star. The technique developed does not rely on explicit known
of the load admittances, but only requires measurement of the load currents.
The basic assumption in the following analysis is that we have either three
controllable current sources Delta connected, or that we have two controllable
current sources and a controllable voltage source in the wye connection.
ia
Phase a
vca
vab
iab ica
Phase b c
b
ib
ibc
vbc
Phase c
ic
Figure 3.1: Delta connected controlled current sources for active symmetry
compensation.
These equations can be rearranged to make ~Iab , ~Ibc and ~Ica the subject of the
expressions. However this is a non-unique process since we have three equations,
three unknowns, but the equations are not independent because of the fact that:
~Ia + ~Ib + ~Ic = 0 (3.4)
for a Delta connected network (to satisfy KCL for the network). However, if we
impose the constraint that the magnitude of the current source currents are √13
that of the magnitude of the space vector of the line currents, then one ends up
with the following solution for the individual current source currents in terms
of the line currents1 . This fact is calculated in Appendix A.2. The currents are:
The following section of this analysis is, to some degree, a leap of faith. We
shall introduce the concept of adding a zero sequence current to the currents
1 An alternative to this would be to impose the constraint that the current sources are all
Remark 3.7 If one implements current sources with the values calculated from
(3.5), (3.6) and (3.7) where ~Ia , ~Ib and ~Ic are the negative sequence currents
then one ends up with the situation that one of the current sources absorbing
real power, and other generating real power, and one absorbing zero power. This
situation is not sustainable if H-bridge cascade based phase legs are used to im-
plement the current sources, as these bridges cannot generate or absorb average
real power.
The addition of the zero sequence current to the reference values of the cur-
rents will be shown to be a technique to make sure that all the current sources
absorb no average real power. Of course adding a zero sequence current does
not contribute to the line currents, therefore the objective of the current sources
producing desired line currents is not influenced by the zero sequence. n
~ ab , V
where V ~ bc and V
~ ca are defined as follows:
~ ab = V̂ab ∠θab
V (3.21)
~ bc 2π
V = V̂bc ∠(θab − ) (3.22)
3
~ ca 4π
V = V̂ca ∠(θab − ) (3.23)
3
Since there is a large degree of symmetry in this, we shall consider only
current source ‘ab’ initially. Expanding the power expression for source ‘ab’ we
can write:
~
~Sab = Vab (~I∗ − ~I∗ + 3~I∗ ) (3.24)
ab bn 0
3
V̂ab h i
= ∠θab Iˆan ∠(−θan ) − Iˆbn ∠(−θbn ) + 3Iˆ0 ∠(−α0 ) (3.25)
3
V̂ab ˆ
= Ian ∠(θab − θan ) − Iˆbn ∠(θab − θbn ) + 3Iˆ0 ∠(θab − α0 ) (3.26)
3
We are specifically interested in the real power in the current source – we want
the real power to be zero so that the current source does not need to supply or
absorb real power. Let us define:
n o
Pab = < ~Sab (3.27)
Recognising that:
2π 4π
θbn = θan + = θan − (3.28)
3 3
4π 2π
θcn = θan + = θan − (3.29)
3 3
we can write:
" #
V̂ab Iˆn 2π 3Iˆ0
Pab = cos(θab − θan ) − cos(θab − θan − )+ cos(θab − α0 )
3 3 Iˆn
(3.30)
Considering the term cos(θab − θan ) − cos(θab − θan − 2π
3 ) from (3.30), and
using the trig relation:
u+v u−v
cos v + cos u = 2 sin sin (3.31)
2 2
3.2 Symmetry Compensation Using Active Components 31
A similar process can be carried out for the other two current sources, and
the real power expressions for these are:
!
V̂bc Iˆn 3Iˆ0 4π √ π
Pbc = cos(θab + − α0 ) − 3 cos(θab − θan − ) (3.35)
3 Iˆn 3 6
!
V̂ca Iˆn 3Iˆ0 2π √ π
Pca = cos(θab + − α0 ) − 3 cos(θab − θan + ) (3.36)
3 Iˆn 3 2
Summary 3.1 We can summarise the real powers in the individual current
sources as follows:
ˆ ˆ 0 1 5π
Pab = V̂ab In I0 cos(θab − α0 ) − √ cos(θab − θan − ) (3.37)
3 6
4π 1 π
Pbc = V̂bc Iˆn Iˆ00 cos(θab + − α0 ) − √ cos(θab − θan − ) (3.38)
3 3 6
2π 1 π
Pca = V̂ca Iˆn Iˆ00 cos(θab + − α0 ) − √ cos(θab − θan + ) (3.39)
3 3 2
Iˆ0
where Iˆ00 = Iˆn
– i.e. the normalised zero sequence current magnitude. n
We know from Conclusion 1.1 that the total real power flowing into the Delta
to re-symmetrise and unsymmetrical supply is zero, under the assumption that
there is no negative sequence voltage present3 . Therefore we can write:
Pab + Pbc + Pca = 0 (3.40)
This condition, however, does not mean that:
Pab = 0 (3.41)
Pbc = 0 (3.42)
Pca = 0 (3.43)
and this is the condition required for current source implementation using H-
bridge based cascade converters. We know from [9], [10], and Section 2.2 that
the balancing can be achieved with no real power in the individual branches of
a Delta, therefore it should be possible to achieve this.
3 This will only be approximately true, since the negative sequence current will introduce
i.e. there is an amplitude. Iˆ0 and angle, ∠α0 so that all the real powers in the
current sources are simultaneously zero. n
If Conjecture 3.1 is correct, then this implies the following:
1 5π
Pab = 0 ⇒ Iˆ00 cos γ − √ cos(β − )=0 (3.47)
3 6
4π 1 π
Pbc = 0 ⇒ Iˆ00 cos(γ + ) − √ cos(β − ) = 0 (3.48)
3 3 6
2π 1 π
Pca = 0 ⇒ Iˆ00 cos(γ + ) − √ cos(β + ) = 0 (3.49)
3 3 2
where β = θab − θan and γ = θab − α0 .
The cos(β − 5π π π
6 ), cos(β − 6 ), and cos(β + 2 ) terms in (3.47), (3.48) and
(3.49) are constants, and will be denoted as follows:
1 5π
x = √ cos(β − ) (3.50)
3 6
1 π
y = √ cos(β − ) (3.51)
3 6
1 π
z = √ cos(β + ) (3.52)
3 2
For zero average real power we require:
Iˆ00 cos γ − x = 0 (3.53)
4π
Iˆ00 cos(γ + )−y =0 (3.54)
3
2π
Iˆ00 cos(γ + )−z =0 (3.55)
3
It can be easily shown that x+y+z = 0 (since these are 120◦ phase separated
cosines waveforms), therefore we have:
x+y+z =0 (3.56)
y+z
⇒ cos γ = − 0 (3.57)
Iˆ 0
γ = θab − α0 (3.64)
Iˆ0
Iˆ00 = (3.65)
Iˆn
1 π
y = √ cos(β − ) (3.66)
3 6
1 π
z = √ cos(β + ) (3.67)
3 2
n
Equations (3.62) and (3.63) are two equations with two unknowns, namely
Iˆ00 and α0 . From these two equations we can write:
y+z
Iˆ00 = − (3.68)
cos γ
Sub into (3.63) gives:
y+z 1
− sin γ = √ (y − z) (3.69)
cos γ 3
1 y−z
∴ tan γ = − √ (3.70)
3y+z
z−y
or γ = arctan √ (3.71)
3(y + z)
Summary 3.3 For a Delta connected set of current sources, the real power in
all three current sources can be kept at an average value of zero by the injection
of a zero sequence current around the Delta, where the magnitude and angle of
the zero sequence is given by:
z−y
γ = arctan √ (3.72)
3(y + z)
y+z
Iˆ00 = − (3.73)
cos γ
34 Implementation
where:
γ = θab − α0 (3.74)
1 π
y = √ cos(θab − θan − ) (3.75)
3 6
1 π
z = √ cos(θab − θan + ) (3.76)
3 2
ˆ ˆ0ˆ
I0 = I0 In (3.77)
and ~I0 = Iˆ0 ∠α0 (3.78)
Remark 3.8 The arctan in (3.72) should be implemented using a four quadrant
arctan. n
Remark 3.9 This result achieves the same result as in [10]. However, in [10]
the current references were derived by identifying the load. In this case only
the relative phases of two of the currents are required, and the amplitude of the
negative sequence current. Therefore the control strategy implemented using this
approach is likely to be more robust than the technique in [10] as it only requires
measurement, and is not dependent on any identification processes. n
*********************
The above expressions need to be re-derived for the situation where
one has general unbalance – i.e. both magnitude and phase unbalance.
*********************
other words a zero sequence voltage has been introduced. This indicates that
the wye connected active compensation system may be the dual of the delta con-
nected active system – i.e. in the Delta a zero sequence current was introduced
in order to keep the individual active current sources average real power equal
to zero, and it the case of the wye connected one introduces a zero sequence
voltage to do the same.
Figure 3.2 shows the basic configuration of a wye connected active compen-
sator. For the moment we will consider that the unit has three current sources,
but as we shall find later this is perhaps not the correct way to implement the
unit (due to issues of making the current sum to zero at the Star if they are all
current sources).
Phase a
ia
va ¢
vab vca
vb ¢
vc ¢
Phase b
ib
vbc
Phase c
ic
Let us begin by defining the main quantities in the derivation. The following
is with reference to Figure 3.3. The negative sequence currents are as defined
previously, and are reproduced here for convenience. Note that θan is relative
to an arbitrary reference angle.
Let us define a balance set of positive sequence phase voltages relative to the
36 Implementation
r
r Ian
Vc
r qan - qa r
Va
Ibn
qan
qa
Ref axis
r r
Vb Icn
Figure 3.3: Vector definitions used in the derivation of the zero sequence voltage
for wye connected STATCOMs.
With these definitions, we can now calculate the powers in each of the phases
of the compensator, assuming that each phase leg is operating as a current source
for the relevant negative sequence current:
~Sa = V~ 0 ~I∗ (3.89)
a an
~Sb = V ~ 0 ~I∗ (3.90)
b bn
~Sc = V
~ 0 ~I∗ (3.91)
c cn
3.2 Symmetry Compensation Using Active Components 37
Taking the real component of ~Sa , ~Sb and ~Sc we can write:
" #
V̂0
<{~Sa } = V̂ Iˆn cos(θan − θa ) + cos(θan − α0 ) (3.92)
V̂
" #
~ ˆ 2π V̂0 4π
<{Sb } = V̂ In cos(θan − θa − )+ cos(θan − α0 − ) (3.93)
3 V̂ 3
" #
2π V̂ 0 4π
<{~Sc } = V̂ Iˆn cos(θan − θa + )+ cos(θan − α0 + ) (3.94)
3 V̂ 3
Remark 3.11 Note that θan −θa = ζ is an angle that is fixed by the relationship
between the negative sequence current phasors and the positive sequence voltage
phasor – it is established by external circuit conditions. n
Taking (3.92) and (3.93) and equating to zero (so that we have two equations
in two unknowns – V̂0 and α0 ) we can write:
V̂0
cos(θan − θa ) = − cos(θan − α0 ) (3.95)
V̂
2π V̂0 4π
cos(θan − θa − ) = − cos(θan − α0 − ) (3.96)
3 V̂ 3
√
2π V̂0 3V̂0
∴ cos(θan − θa − )= cos(θan − α0 ) + sin(θan − α0 ) (3.97)
3 2V̂ 2V̂
Substituting (3.95) into (3.97) we can write after some simplification:
V̂0
sin(θan − θa ) = sin(θan − α0 ) (3.98)
V̂
Rearranging (3.95) to make V̂0 /V̂ the subject of the expression, and then sub-
stituting into (3.98) and rearranging we can write:
Taking the inverse tan of both sides of (3.99) we can obviously write:
V̂0
cos(θan − θa ) = − cos(θan − θan − ζ) (3.102)
V̂
V̂0
∴ cos ζ = − cos ζ (3.103)
V̂
or V̂0 = −V̂ (3.104)
∴V~ 0 = −V̂∠α0 = V̂∠(α0 + π) (3.105)
38 Implementation
r r
Vc V0
r
Vc'
r
Ian
r
Va'
r r
Va V0
r r
Ibn Icn
r
Vb'
r r
Vb V0
Remark 3.12 Equations (3.101) and (3.104) say that the magnitude of the
zero sequence is always equal to the magnitude of the balanced phasor voltages,
and the angle of the phasor is always ζ = θan − θa from the V~ a phasor. n
as V~0 = V~ a . This means that the power electronics for this phase would have
to be rated at twice the normal voltage. The voltages across the other two phase
have the same magnitude as the normal phase voltages, but the angle of the
phasors is now different. However, in terms of voltage rating, these phase legs
do not need to be rated any higher than is normal in a wye connected system. A
phasor diagram showing this case appears in Figure 3.4. Notice that the negative
sequence currents are at 90◦ to the relevant phase leg voltages. n
Remark 3.14 One question that one may ask is; what happens as the negative
sequence current goes to zero in amplitude? One can see from the power expres-
sion of (3.92),(3.93) and (3.94) that the real powers associated with the current
go to zero. However, the zero sequence voltage associated with the presence of
negative sequence currents is not a function of the magnitude of the negative
sequence current, and is only a function of its presence. That is, whilst ever
there is a negative sequence present, there needs to be the same magnitude zero
sequence voltage to prevent real power flow. n
3.3 Phase Power Balancing 39
Remark 3.15 Another possibility that arises from the above analysis is that
of using negative sequences to help carry out fine balancing of the power flows
into and out of the individual phase legs in the H-bridge phase cascades. Even
if one is not going to balance an unbalanced system by using negative sequence
currents, one can artificially introduce them so to introduce an extra control.
For example, one can vary the phase and magnitude of the zero sequence, and
thereby introduce an added degree of freedom in balancing the real powers of the
phases. n
Summary 3.4 In order for the three wye connected H-bridge based cascade
current sources not to absorb or generate real power, the star point of the current
sources has to have a zero sequence voltage added to it of the form:
~ 0 = V̂∠(θan + ζ)
V (3.107)
where θan , the angle of ~Ian relative to the arbitrary reference angle of θa , and
ζ , the angle of the ~Ian phasor relative to the V
~ a phasor.
The actual voltages across the individual phases with the zero sequence volt-
age added are:
~0 =V
V ~a+V
~0 (3.108)
a
~0 =V
V ~b+V
~0 (3.109)
b
~0 =V
V ~c+V
~0 (3.110)
c
*********************
The following paragraph contains Bob’s initial thoughts on Phase
Power Balancing using negative sequence components. I have left
this here for the moment but it will have to be integrated into the
text of this section properly.
*********************
One interesting possibility that arises from the expressions in the previous
section is the concept of power balancing for the phases. The normal displace-
ment power factor control algorithm uses three phase quantities to control the
real and reactive power into the STATCOM. The real power is used to control,
in some sense, the real power flowing into the phases of the STATCOM. How-
ever, this is controlled in a three phase sense, and the voltages on the individual
phases are not controlled (see Section 1.1). The theory presented in the previous
section indicates that perhaps the negative sequence current control can be used
to offer another degree of freedom with respect to controlling the power in the
individual phases.
The key point technically in terms of controlling the phase powers is to
determine what happens if one manipulates the amplitude and phase of the
40 Implementation
injected zero sequence voltage – how does the voltage in the phases change with
this manipulation?
If one takes the derivative of the power expressions (3.92), (3.93)and (3.94),
then one can obtain the following. Firstly the derivatives with respect to α0 :
∂Pan
= V̂0 Iˆn sin(θan − α0 ) = −V̂0 Iˆn sin ζ (3.111)
∂α0
∂Pbn 4π 4π
= V̂0 Iˆn sin(θan − α0 − ) = −V̂0 Iˆn sin(ζ + ) (3.112)
∂α0 3 3
∂Pcn 4π 4π
= V̂0 Iˆn sin(θan − α0 + ) = −V̂0 Iˆn sin(ζ − ) (3.113)
∂α0 3 3
and secondly with respect to V̂0 :
∂Pan
= Iˆn cos(θan − α0 ) = Iˆn cos ζ (3.114)
∂ V̂0
∂Pbn 4π 4π
= Iˆn cos(θan − θa + ) = Iˆn cos(ζ + ) (3.115)
∂ V̂0 3 3
∂Pcn 4π 4π
= Iˆn cos(θan − θa − ) = Iˆn cos(ζ − ) (3.116)
∂ V̂0 3 3
where α0 = 2θan − θa and ζ = θan − θa .
Remark 3.16 As can be seen from the above equations, the rates of change in
the individual powers are complex with changes in V̂0 and α0 . We shall return
to the practical implications of this in the next chapter. n
*********************
This subsection has to be tidied up and some figures added which
explain the symbols used. I’ve tried to be consistent with the rest
of the report but there may be some inconsistencies in this. The
simulation studies are still to be completed.
*********************
The previous work in this report has indicated that phase power balancing
(balancing the sum of the voltages on the individual H-bridges in each phase leg
of a cascaded H-bridge STATCOM) may be able to be achieved by the injection
of either negative or zero sequence currents for a delta connected STATCOM or
negative or zero sequence voltages for a Y connected STATCOM. This section
looks at injecting zero sequence components to achieve phase power balance.
Throughout this section we are making the assumption that the line voltages
are balanced similar to the situation in Yoshii et al.’s 2006 IEEE IAS paper [11].
Let us define the voltages across the a, b and c phases respectively to be:
~0 =V
V ~a+V
~0 (3.117)
a
~ =V
V 0 ~b+V
~0 (3.118)
b
~0 =V
V ~c+V
~0 (3.119)
c
The real power in each phase is simply the real part of (3.120), (3.121) and
(3.122). That is:
" #
n o V̂0
< ~Sa = V̂ Iˆp cos(θap − θa ) + cos(θap − α0 ) (3.123)
V̂
" #
n o
~ ˆ V̂0 2π
< Sb = V̂ Ip cos(θap − θa ) + cos(θap − α0 − ) (3.124)
V̂ 3
" #
n o V̂0 2π
< ~Sc = V̂ Iˆp cos(θap − θa ) + cos(θap − α0 + ) (3.125)
V̂ 3
Further let the sum of the phase powers flowing into the STATCOM be equal
to P . That is:
k=c
X n o
P = < ~Sk , k ∈ [a, b, c] (3.126)
k=a
If we are controlling the three phase power into the STATCOM via standard
PQ theory then the power will be split evenly amongst the three phases of the
STATCOM so (3.123), (3.124) and (3.125) become:
n o P
< ~Sa = + V̂0 Iˆp cos(θap − α0 ) (3.127)
3
n o P 2π
< ~Sb = + V̂0 Iˆp cos(θap − α0 − ) (3.128)
3 2
n o P 2π
< ~Sc = + V̂0 Iˆp cos(θap − α0 + ) (3.129)
3 2
n o n o n o
Now < ~Sa , < ~Sb and < ~Sc are the desired powers for each of the
phase legs.
P
3 is known and comes from the PQ control as mentioned previously.
Equations (3.127) and (3.128) give us two equations with two unknowns as
the positive sequence current Iˆp ∠(θap ) is also fixed by the PQ control.
42 Implementation
n o n o n o
If we let < ~Sa = Pa∗ , < ~Sb = Pb∗ and < ~Sc = Pc∗ then (3.127) and
(3.128) can be written as:
P
Pa∗ − = V̂0 Iˆp cos(θap − α0 ) (3.130)
3
P 2π
Pb∗ − = V̂0 Iˆp cos(θap − α0 − ) (3.131)
3 3
From (3.131)
P ˆ 2π 2π
Pb∗ − = V̂0 Ip cos(θap − α0 ) cos( ) + sin(θap − α0 ) sin( ) (3.132)
3 3 3
Pb∗ − P
3 cos(θap − α0 ) cos( 2π 2π
3 ) + sin(θap − α0 ) sin( 3 )
P
= (3.133)
Pa∗ − 3
cos(θap − α0 )
2π 2π
= cos( ) + tan(θap − α0 ) sin( ) (3.134)
3 3
Therefore,
Pb∗ − P3
Pa∗ − P3
− cos( 2π
3 )
tan(θap − α0 ) = (3.135)
sin( 2π )
∗
P
3
P −
2 Pb∗ − P3 + 1
= a
√3 (3.136)
3
Therefore,
P ∗− P
2 Pb∗ − P3 + 1
θap − α0 = tan−1 a
√3 (3.137)
3
or P ∗− P
2 Pb∗ − P3 + 1
α0 = θap − tan−1 a
√3 (3.138)
3
Pa∗ − P
3
V̂0 = (3.139)
Iˆp cos(tan −1
(F))
∗ P
Pb −
2 3 +1
∗− P
Pa
where F = √3
3
.
For the ∆ connected case the appropriate equations for apparent power are:
h i
~Sab = V ~ ab~I∗ = V
~ ab ~I∗ + ~I∗ (3.140)
ab0 ab 0
h i
~Sbc = V~ bc~I∗ = V
~ bc ~I∗ + ~I∗ (3.141)
bc0 bc 0
h i
~Sca = V
~ ca~I∗ = V
~ ca ~I∗ + ~I∗ (3.142)
ca0 ca 0
Then,
P
Pab = + V̂p Iˆ0 cos(θab − α0 ) (3.149)
3
P 2π
Pbc = + V̂p Iˆ0 cos(θab − α0 − ) (3.150)
3 3
P 2π
Pca = + V̂p Iˆ0 cos(θab − α0 + ) (3.151)
3 3
Equations (3.149), (3.150) and (3.151) have exactly the same form as (3.127),
(3.128) and (3.129) and consequently the solution for α0 and Iˆ0 have the same
form as the solutions for α0 and V̂0 in the Y connected case.
That is:
P −P
2 P bc − P3 + 1
α0 = αab − tan−1
ab
√3 (3.152)
3
and
Pab − P3
Iˆ0 =
Pbc − P
(3.153)
2 3 +1
Pab − P
V̂p cos tan−1 √3
3
Remark 3.17 The control system for the compensator can essentially be broken
into two orthogonal parts – the positive sequence control which is the traditional
displacement power factor control, and the negative sequence or unbalance con-
trol. These two control can operate independently, since the negative sequence
does not effect the positive sequence. n
4 Note that unbalance may/will result in problems in the real power balance of the H-bridges
unbalanced load.
46 Implementation
are programmed as a Scilab script and the magnitude, angle and current source
phase currents are plotted then one obtains the results shown in Figures 3.5,
3.6 and 3.7. Note that these plots are for the case of θab = 0 – i.e. the phase
~ ab relative to some reference point.
angle of V
0.0
−0.1
−0.2
−0.3
−0.4
−0.5
−0.6
−0.7
−0.8
−0.9
−1.0 Theta_an
0 1 2 3 4 5 6 7
Figure 3.5: Normalised injected zero sequence current versus the negative se-
quence current phase.
Figure 3.5 shows the normalised injected zero sequence current versus the
phase angle of the negative sequence. The current is normalised relative to
the magnitude of the negative sequence line current into
√ the compensator. The
salient observation is that the current magnitude is 1/ 3 = 0.577 of the √
magni-
tude of the negative sequence line current magnitude – i.e. the normal 1/ 3 rule
that applies with Wye to Delta connection applies to the injected zero sequence
current. Figure 3.6 shows how the phase of the zero sequence varies with the
change in the negative sequence phase.
Finally, Figure 3.7 hows how the total normalised currents6 in each of the
phase current sources varies with the phase of the negative sequence. Notice
that the peak magnitude of the phase current is larger than the magnitude of
the negative sequence current (which is “1” on the normalised scale being used).
Conclusion 3.1 One can therefore conclude that the Delta connected compen-
sator with zero sequence current injection must be rated to withstand the line-
line voltage (this in independent of the injection), and with 1.15 times the line
current. n
−1
−2
−3
−4 Theta_an
0 1 2 3 4 5 6 7
Figure 3.6: Injected zero sequence current phase angle versus negative sequence
current phase.
1.2
1.0
0.8
0.6
0.4
0.2
0.0 Theta_an
0 1 2 3 4 5 6 7
Figure 3.7: Delta current source current amplitudes with zero sequence current
injection versus negative sequence current phase.
48 Implementation
phase voltage plus the zero sequence voltage. Since the zero sequence voltage
has the same amplitude as the normal balance phase voltages, and the phase
angle of the zero sequence voltage depends on the phase angle of the negative
sequence current required, then this means that the phase legs have to be rated
at twice the normal phase voltage.
Conclusion 3.2 The voltage rating on the Wye connected converter with zero
sequence voltage injection is twice the rated voltage. The current rating is the
normal line current rating, and does not change. n
Conclusion 3.3 Overall, the Delta configuration has to have a higher voltage √
rating compared to the balance voltage Wye connected converter (by the 3
factor). The current rating required is 1.15 times the line current, which is only
marginally larger than a Wye connection (15% larger).
On the other hand the Wye connection has to have all the legs rated at twice
the normal phase voltage rating, which is 1.15 times the line-line rating of the
Delta connection (i.e. 15% larger than the Delta rating). The current rating
however is the same as the required negative sequence current amplitude.
One can see from the above, that in terms of ratings the Delta and Wye
connections are duals of each other. Delta requires a 1.15 times current rating
with respect to the Wye current rating, the Wye requires a 1.15 times voltage
rating with respect to the Delta voltage rating. n
term voltage support device to minimise the effects of transient supply voltage
dips at the point of common coupling.
Remark 3.22 If the load is unbalanced then eliminating the negative sequence
voltage will not eliminate the negative sequence current drawn by the load.
Therefore the previous control strategy will also still be needed. n
Remark 3.23 If the load is balanced then eliminating the negative sequence
voltage is synonymous with eliminating the negative sequence current drawn by
the load. However, if the load is unbalance then clearly a zero negative sequence
voltage at the PCC will result in negative sequence currents flowing. n
r r
Vs VL
Rth Xth
r
Vs
r r r
Is Ic IL
PL + jQL
STATCOM
The following explanation will refer to Figure 3.8. This diagram depicts
the typical connection of a generic STATCOM to a load bus. It is assumed
that the load connected to the load bus is requiring PL + jQL complex power,
and this value of power is intimately connected to the bus voltage V ~ L . The
Thevenin equivalent of the system impedances are represented by the impedance
~ th = Rth + jXth , where it will be assumed that Xth is an inductive impedance
Z
in this case. In the following analysis we shall assume that the load bus voltage is
the reference with respect to phase. In addition it will be assumed that the load
voltage magnitude is kept constant, whereas the system voltage can undergo
dips due to faults on the system. The constant load voltage will be maintained
via intervention from the STATCOM.
It can be seen from Figure 3.8 that the relationship between the currents is:
~Is = ~IL + ~Ic (3.154)
Therefore:
~Ic = ~Is − ~IL (3.155)
The expression for the system current ~Is is using standard circuit theory:
~ ~
~Is = Vs − VL (3.156)
~ th
Z
Let:
~ th = Rth + jXth = Zth ∠β
Z (3.157)
~ L = V̂L ∠0
V (3.158)
V~ s = V̂s ∠δ (3.159)
Substituting (3.156) into (3.155) we can write the following expression for
the compensation current:
~ ~
~Ic = Vs − VL − ~IL (3.160)
~
Zth
V̂s V̂L
∴ Iˆc ∠ζ = ∠(δ − β) − ∠(−β) − IˆL ∠(−θ) (3.161)
Ẑth Ẑth
3.6 Unbalanced Voltage Support 51
Remark 3.24 Equation (3.161) gives the expression for the compensator cur-
rent under the conditions of the bus voltages indicated. Clearly the angle of the
compensator current ζ can be any value dependent on the other circuit condi-
tions. The following analysis will develop the voltage conditions in such a way
that ζ = ± π2 . This current condition means that the STATCOM will not be
supplying any real real power. The other condition is that the load bus
voltage will be held constant at the value that allows the load power to continue
even though the system voltage may have dipped below the normal rated voltage
value. n
Remark 3.25 In [14] the situation of minimum injected apparent power is also
investigated. In this case the STATCOM would be injecting real power as well
as reactive power into the load bus, but an attempt is being made to minimise
the VA of the STATCOM. I will not consider this case here, as the objective is
to see how to support the voltage dip without any real power. The motivation
behind this restriction is that the analysis will eventually focus on the H-bridge
STATCOM without any real power storage capacity. n
The approach taken to developing the expressions for zero active power in-
jection (ZAPI) is to make the assumption that all the real or active power is
coming from the supply. Therefore no real or active power has to be supplied
by the STATCOM. This will implicitly mean that the injected current from the
STATCOM will be orthogonal to the load bus voltage V ~ L . This can be stated
mathematically as: n o n o
< ~Sin + < ~SL = 0 (3.162)
n o
where < ~Sin , the real power flowing into the load bus from the source side
n o
of the system. Note that this value is not the same as < ~Ss due to the losses
n o
in the line resistance. For this case we also have < ~Sc = 0 because of the
assumption we are making.
Remark 3.26 The main conventions used are: power flowing from a node is
positive, and current flowing from a node is positive. n
The expression for the power flowing into the load bus from the supply is7 :
~Sin = −V
~ L~I∗ (3.163)
s
We know from (3.162) that the real power must be zero. Using (3.167) in
(3.162) and taking the real component of the complex values we can write:
This expression can be rearranged in order to find the angle of the source voltage
with respect to the load bus voltage for particular values of voltage magnitudes
and line impedances8 :
Ẑth PL V̂L
cos(δ − β) = + cos β (3.169)
V̂L V̂s V̂s
Ẑth PL V̂L
or cos(β − δ) = + cos β (3.170)
V̂L V̂s V̂s
Taking the arc cosine of both sides of (3.169) and (3.170) gives:
!
−1 Ẑth PL V̂L
δ = β ± cos + cos β (3.171)
V̂L V̂s V̂s
Remark 3.27 Equation (3.171) gives the angle of the source voltage with re-
spect to the load bus under the condition that all of the real power PL required
by the load is delivered by the source. Therefore no real power will be flowing
from the STATCOM. n
Remark 3.28 The ± in (3.171) indicates that there is two angles that allow
the same power to flow through the transmission line. This can be seen from
(3.172) just below. Usually the δ angle is kept below π/2, therefore we shall only
consider the negative sign in (3.171). n
V̂s V̂L
P = sin δ (3.172)
Xth
Xth PL
sin δ = (3.174)
V̂L V̂s
or:
V̂L V̂s
PL = sin δ (3.175)
Xth
which is the same as (3.172).
The following term from (3.171):
Ẑth PL V̂L
+ cos β (3.176)
V̂L V̂s V̂s
Ẑth PL
V̂s ≥ V̂L cos β + (3.178)
V̂L
Remark 3.29 Equation (3.178) gives the expression for the minimum source
voltage, for a given load bus voltage, for the system to be capable of delivering
the real power required by the load. n
Remark 3.30 If β = π/2 – i.e. inductive line, then this expression becomes:
Xth PL
V̂s ≥ (3.179)
V̂L
or
V̂s V̂L
PL ≤ (3.180)
Xth
which corresponds under the equal condition to the power equation (3.175) with
δ = π/2. In other words the transmission line must be capable of delivering the
real power under the voltage and line inductance conditions for the STATCOM
not to have to deliver any real power. n
Summary 3.5 We shall now summarise the key expressions established in this
section.
The fundamental equation for the angle of the source voltage with respect to
the load bus voltage for given voltage and line parameters is:
!
−1 Ẑth PL V̂L
δ = β − cos + cos β (3.181)
V̂L V̂s V̂s
54 Implementation
The corresponding current that must flow from the STATCOM using the δ value
obtained from the previous equation is:
V̂s V̂L
Iˆc ∠ζ = ∠(δ − β) − ∠(−β) − IˆL ∠(−θ) (3.182)
Ẑth Ẑth
and the injection apparent power of the STATCOM is ~Sc = V ~ L~I∗ . This is an
c
important value with respect to ascertaining the rating effects of supporting the
voltage dip.
The limit on the source voltage for zero active power injection from the
STATCOM is:
Ẑth PL
V̂s ≥ V̂L cos β + (3.183)
V̂L
These equations are essentially the limits that are placed on the STATCOM to
support voltage under normal operational conditions. Because the analysis has
been undertaken under steady state conditions, then the analysis is completely
valid for normal operation. n
In Haque’s [14] paper he then proceeds to presents results of the injected
apparent power from the STATCOM under various pu voltage dip scenarios.
These results show that there is a severe price to pay in relation to the rating
of the STATCOM to support voltage dips. For example to support a voltage
dip of 0.3 requires the STATCOM to operate at approximately 3.3pu apparent
power. This would mean that the converter would have to have a substantially
larger current rating.
Remark 3.31 If the dips are of short duration the large currents required may
be able to supplied via the transient overload capability of the STATCOM. n
The other interesting aspect of the Haque[14] paper is that he compares
the function of the DVR and the STATCOM with respect to supporting voltage
dips. He found that the STATCOM could support larger voltage dips under zero
active power injection conditions. However the price paid for this is the very
large apparent power rating of the STATCOM as compared to the DVR. For
example the STATCOM may require 10 times the apparent power to support
the same voltage dip.
Remark 3.32 The reason for the large rating required by the STATCOM is ob-
vious – it has to supply current into both sides of the circuit from the connection
point. It is supporting the voltage in both directions from the connection point,
whereas the DVR only supports the voltage in one direction. The rating of the
STATCOM required for the voltage support is very dependent on the fault level
of the circuit – the higher the fault level the higher the rating required. Again
the reason for this is obvious – if the impedance of the line is low then it takes
a lot more current to raise the load bus voltage above the source voltage under
voltage dip conditions. n
The main conclusion by Haque[14] is that the DVR is a more economic
solution for voltage dip support because of the lower ratings it requires. This
has to be balanced against the fact that under ZAPI conditions the voltage dips
that it can support are half the magnitude of the dips that the STATCOM can
support.
3.6 Unbalanced Voltage Support 55
r
Vs
r
jXth Is
d r
VL
-q
r r
IL = Is
Figure 3.9: Vector diagram for the currents and voltages of an inductive trans-
mission line without compensation currents.
Remark 3.33 In effect Haque’s [14] paper is only a reiteration of the very well
known real power flow expression for transmission lines, recast into a form where
one can deduce the implications on a STATCOM connection. n
The implications of the discussion in the Haque paper can be seen in Fig-
ures 3.9 and 3.10. Figure 3.9 shows the normal operational vector diagram
for an inductive transmission line connected between two buses. In this case
the load current and the transmitted current have the same value. The source
~ s is assumed to be at rated value.
voltage V
Figure 3.10 shows the situation when the source voltage has dipped to a
lower value. The angle of the source voltage with respect to the load bus volt-
age has increased to increased to maintain the real power flowing through the
transmission line at the same level. Therefore the load current and the load
voltage are assumed to remain at the same level as the case of Figure 3.9. A
STATCOM compensator current is injected so that it is orthogonal to the load
bus voltage. This results in the transmission line current phasor rotating so
that the load bus voltage can remain the same, and at the same time Kirchoff’s
voltage law is still satisfied.
r
Vs
r r
Is jXth Is
d
r
Ic
r
VL
-q
r
IL
Figure 3.10: Vector diagram for the currents and voltages of an inductive trans-
mission line with a voltage dip and compensation currents.
et al [7] did some analysis to show that making the compensator voltage equal
~ L where k is a gain, that as k → ∞ the negative sequence load voltage will
to k V
go to zero. However, the analysis in the paper does not appear to be correct,
so the corrected analysis appears below.
The following simple circuit expressions are derived from Figure 3.11. Ap-
plying KCL at the V ~ − node we can write:
L
~L−V
V ~s ~L
V ~L−V
V ~c
+ + =0 (3.184)
~s
Z ~L
Z ~c
Z
r r r
Zs VL Zc
r r
+ Is IL +
r r r r
Vs IL ZL Vc
Figure 3.11: Single line diagram of the STATCOM, source and load connections
that is suitable for the negative sequence currents.
3.6 Unbalanced Voltage Support 57
Remark 3.34 Equation (3.185) shows that it is possible to regulate the load
voltage to zero by making k a very large negative number, regardless of the
values of the impedances in the circuit. If the variables in (3.185) represent
the negative sequence voltages, the same result still holds. Since the nega-
tive voltage being minimised is the negative sequence voltage, then this can be
achieved without changing the positive sequence voltage. Consequently the V ~L
voltage will become balanced if unbalanced. n
Remark 3.35 The strategy suggested by (3.185) is very dependent on being able
to detect the negative sequence voltages in a rapid fashion. In most cases it is the
sensing of the negative sequence that is the main limitation on the performance
of this technique. n
*********************
In the paragraph below there is a reference to presentation of material
in a previous section. At the time of writing this this material has
not been included in the report.
*********************
One of the key parts of this paper was the information in the appendix
on how to extract the positive and negative sequence components from the
unbalanced voltage waveforms. The technique used will not be presented here
as it has been presented in Section??.
The other part of the paper that was of relevance is the control strategy
presented, which consisted of positive and negative sequence controllers. The
controllers for both sequences were identical, and their control voltage outputs
are added together to form the desired control voltage.
Remark 3.36 The control strategy generates the voltage that must appear across
the impedance between the STATCOM and the line. This voltage together with
this impedance forms a technique of limiting the current flowing. The important
point is that the output is a voltage, and therefore the angle of this voltage with
respect to the line voltage is going to be crucial in obtaining good performance.
The current limit accuracy also is very sensitive to knowledge of the angle of
the system voltages. This would appear to be a weakness of this technique. n
*********************
Need to determine if this is possible.
*********************
Remark 3.37 The analysis below implicitly assumes that the line impedances
are small relative to the load impedances. Therefore the line voltages at the
source are essentially the line voltages at the PCC. This assumption simplifies
the Matlab scripts used since the line voltage drop due to the load does not need
to be account for in terms of the voltage at the PCC. This assumption essentially
neglects any differential phase shifts that may occur due to unbalanced loads. It
should not make any difference to the validity of the results as the voltage at the
PCC is general in nature in the analysis. n
Figure 3.12 shows the physical connection of the STATCOM to the network.
The source voltages are unbalanced, and the load may or may not be balanced.
3.6 Unbalanced Voltage Support 59
~ as = V̂as ∠0
V (3.186)
~ −2π
Vbs = V̂bs ∠ (3.187)
3
~ −4π
Vcs = V̂cs ∠ (3.188)
3
where in general V̂as 6= V̂bs 6= V̂cs . Note that we are assuming that the normal
120◦ phase angle difference is maintained in this development.
The line-to-line voltages at the terminals of the STATCOM (i.e. at the PCC)
are denoted as follows:
~ ab = V̂ab ∠θab
V (3.189)
~ bc = V̂bc ∠θbc
V (3.190)
~ ca = V̂ca ∠θca
V (3.191)
Remark 3.38 Equations (3.189)–(3.191) use generic phase angles since the
phase voltage magnitudes differences mean that the normal 120◦ angle does not
hold. n
The phase voltages at the terminals of the STATCOM that are determined
from the line voltages, and are denoted as follows:
~ a = V̂a ∠θa
V (3.192)
~ b = V̂b ∠θb
V (3.193)
~ c = V̂c ∠θc
V (3.194)
The positive, negative sequence STATCOM terminal line voltages are defined
60 Implementation
Similarly one can define the positive, negative and zero sequence STATCOM
phase voltages. Note that the STATCOM is wye connected. Firstly the positive
sequence STATCOM phase voltages:
~ ap = V̂p ∠θpv
V (3.201)
~ 2π
Vbp = V̂p ∠ θpv − (3.202)
3
~ 4π
Vcp = V̂p ∠ θpv − (3.203)
3
~ an = V̂n ∠θnv
V (3.204)
~ bn = V̂n ∠ θnv + 2π
V (3.205)
3
~ cn = V̂n ∠ θnv + 4π
V (3.206)
3
Remark 3.39 Note that the wye connection is being targeted for this devel-
opment because the zero sequence voltage injection in this case explicitly con-
tains the voltage magnitude. In the previous analysis of the zero sequence volt-
age injection when compensating for unbalanced loads, as summarised in Sum-
mary 3.4, a balanced voltage magnitude appears in the expression. If the voltage
is no longer balanced a different expression must be used. If the phase angles are
also unbalanced, this further invalidates the previous expression. The following
expressions address these two issues. n
9 The cannot be any zero sequence voltages in the line-to-line voltages.
3.6 Unbalanced Voltage Support 61
Using similar nomenclature we can write the positive and negative sequence
currents flowing in the STATCOM as follows:
Remark 3.41 The main implication from the previous remark is that the volt-
ages seen on the phases at the STATCOM will be different from the phase voltage
seen on the phases of the unbalanced source. n
The standard power expressions for the phase powers with a wye connected,
62 Implementation
~Sa = V~ a~I∗ = (V
~ a0 + V
~ ap + V~ an )(~I∗ + ~I∗ ) (3.214)
a ap an
~Sb = V ~ b~I∗ = (V
~ a0 + a2 V
~ ap + aV~ an )((a2 )∗~I∗ + a∗~I∗ ) (3.215)
b ap an
~Sc = V
~ c~I∗ = (V
~ a0 + aV
~ ap + a2 V~ an )(a∗~I∗ + (a2 )∗~I∗ ) (3.216)
c ap an
2π
where a = ej 3 .
Let us expand (3.214) as follows:
~Sa = (V̂0 ∠α0 + V̂p ∠θpv + V̂n ∠θnv )(Iˆp ∠(−θpi ) + Iˆn ∠(−θni )) (3.217)
= V̂0 Iˆp ∠(α0 − θpi ) + V̂0 Iˆn ∠(α0 − θni ) + V̂p Iˆp ∠(θpv − θpi ) + · · ·
V̂p Iˆn ∠(θpv − θni ) + V̂n Iˆp ∠(θnv − θpi ) + V̂n Iˆn ∠(θnv − θni ) (3.218)
To control the voltages on the individual phase legs of the H-bridge STAT-
COM we are interested in the real power component of the complex power:
Remark 3.42 The last two terms in equation (3.219) are the normal average
real power expressions for the positive and negative sequence components. These
are the terms that the normal P Q control can control. The other terms involving
a mixture of positive and negative sequence components are terms that lead to
the mismatch of powers in the phases. n
Similarly the complex power equations for ~Sb and ~Sc can be expanded and
the real component extracted. The manipulations are tedious but straight for-
ward, and will not be repeated here. The resultant real power expressions are:
4π 2π
Pb = V̂0 Iˆp cos(α0 − θpi − ) + V̂0 Iˆn cos(α0 − θni − ) + ···
3 3
2π 2π
V̂p Iˆn cos(θpv − θni + ) + V̂n Iˆp cos(θnv − θpi − ) + ···
3 3
V̂p Iˆp cos(θpv − θpi ) + V̂n Iˆn cos(θnv − θni ) (3.220)
2π 4π
Pc = V̂0 Iˆp cos(α0 − θpi − ) + V̂0 Iˆn cos(α0 − θni − ) + ···
3 3
2π 2π
V̂p Iˆn cos(θpv − θni − ) + V̂n Iˆp cos(θnv − θpi + ) + ···
3 3
V̂p Iˆp cos(θpv − θpi ) + V̂n Iˆn cos(θnv − θni ) (3.221)
If one calculates the addition of these powers then one can show:
V̂0 Iˆp [cos α0 cos θpi + sin α0 sin θpi ] + V̂0 Iˆn [cos α0 cos θni + sin α0 sin θni ] + · · ·
+ V̂p Iˆn cos(θpv − θni ) + V̂n Iˆp cos(θnv − θpi ) = 0 (3.223)
4π 4π
V̂0 Iˆp [cos α0 cos(θpi + ) + sin α0 sin(θpi + )] + · · ·
3 3
2π 2π
V̂0 Iˆn [cos α0 cos(θni + ) + sin α0 sin(θni + )] + · · ·
3 3
2π 2π
V̂p Iˆn cos(θpv − θni + ) + V̂n Iˆp cos(θnv − θpi − ) = 0 (3.224)
3 3
V̂0 [Iˆp cos θpi + Iˆn cos θni ] cos α0 + V̂0 [Iˆp sin θpi + Iˆn sin θni ] sin α0 =
− [V̂p Iˆn cos(θpv − θni ) + V̂n Iˆp cos(θnv − θpi )] (3.225)
and
4π 2π
V̂0 [Iˆp cos(θpi + ) + Iˆn cos(θni + )] cos α0 + · · ·
3 3
4π 2π
V̂0 [Iˆp sin(θpi + ) + Iˆn sin(θni + )] sin α0 =
3 3
2π 2π
− [V̂p Iˆn cos(θpv − θni + ) + V̂n Iˆp cos(θnv − θpi − )] (3.226)
3 3
Summary 3.6 The Pa and Pb residual expressions can therefore be written as:
where:
Clearly equations (3.227) and (3.228) can be solved simultaneously for V̂0 and
α0 . After a little manipulation it is possible to show that the solutons are:
k6 k1 − k3 k4
tan α0 = (3.235)
k3 k5 − k6 k2
−k3
V̂0 = (3.236)
k1 cos α0 + k2 sin α0
or
−k6
V̂0 = (3.237)
k4 cos α0 + k5 sin α0
The choice of equation (3.236)or (3.237) for the V̂0 expression depends on the
size of the denominator. Choose the expression with the largest denominator, so
that the calculation is better conditioned. To find α0 use a four quadrant tan−1
function. n
In order to test this function a Matlabr script was written to implement the
above equations, which appears in Appendix C.3.4. This script allows a phase
imbalance to be specified in source voltages. Symmetrical components are then
generated for the phase voltages, and then these are converted to line-to-line
voltages. These are then in turn converted back to phase voltages for both the
positive and negative sequences. These result phase symmetrical components
are then added together to give the phase phasors applied to the STATCOM
terminals. As mentioned several times previously, these phase symmetrical com-
ponents no longer contain any zero sequence components.
Example 3.1 Consider the situation when the V̂a = 0.8 × V̂b and V̂c . The
specific values for the source voltages are:
~ as = 0.8V̂s ∠0
V (3.238)
~ bs = V̂s ∠ − 2π
V (3.239)
3
~ cs = V̂s ∠ − 4π
V (3.240)
3
where V̂s = 100.0 in this example. Carrying out a process of symmetrical com-
ponents, converting the phase voltages to their relevant positive, negative and
3.6 Unbalanced Voltage Support 65
zero sequence values, then the the equivalent line values, and then back to the
phase values for the STATCOM. Therefore the positive and negative sequence
a-phase voltages at the STATCOM are found to be:
~ ap = 93.333∠0
V (3.241)
~ an = 6.6667∠π
V (3.242)
~0=0
V (3.243)
and ~Sa + ~Sb + ~Sc = 6.4869e − 014 + 8.4000e + 003i. Therefore the individual
phase powers are zero as well as the total three phase power. Figure 3.13 shows
the phasors for this example. As can be seen without zero sequence voltage in-
jection the b-phase and c-phase currents are not orthogonal to the phase voltages
~ b and V
V ~ c . However when V~ 0 is added to the voltages the new values of the
three phase voltage are orthogonal to the currents, and therefore the average real
phase powers are zero. The new resultant voltages are denoted with the “new”
subscript.
One can set the negative sequence current phasor to an arbitrary value, and
the positive sequence phasor to compensate for any three phase power from the
negative sequence, and similar results can be obtained. Therefore it is possible
to solve for the zero sequence regardless of the positive and negative sequence
voltages under this condition. n
66 Implementation
r
r V0
Vcnew r
Vc
r
Vcp
r r
Icp
r
Ibp Vcn
r
r Va r
Van r r Vap
V0 Van
r
Vbn
r
r Vanew
Vbp r
r
r
Vb Iap
Vbn
r
Vbnew r
V0
Remark 3.43 Simulation studies of this particular control strategy are pre-
sented in Section 4.4.1. n
Figure 3.14 shows the conceptual approach to this strategy.11 The basis of
the strategy can be understood with the benefit of Figure 3.14. If the load is
balanced then the only way that there can be a negative sequence component
in the load current is if there is a negative sequence voltage at the point of
common coupling. This negative sequence voltage can be eliminated if the
negative sequence voltage is totally dropped across the system line impedance
jXs . As can be seen from Figure 3.14 if the amplitude of the load side negative
sequence is present then its value is integrated and this values is used to scale
the current references to the STATCOM. The current references are themselves
the negative sequence load currents. The currents are made negative so the the
STATCOM is absorbing the negative sequence currents.
Remark 3.44 The fact the STATCOM is absorbing a scaled version of the
negative sequence load current means that the STATCOM effectively looks like a
11 This explanation is repeated in Section 4.4.1.
3.6 Unbalanced Voltage Support 67
jXs
PCC
r Balanced
Vs
r r r r r r Load
Is = Ips + Ins IL = IpL + InL
Symmetrical
Components
Generation
-(K p IˆnL + K i ò IˆnL )
IˆnL
-
+
S
r
InL 0
-IˆnL
STATCOM ´ PI
virtual load with the same phase angle as the true load. The current magnitude
drawn by the STATCOM increases (due to the integral action of the controller)
until the effective impedance magnitude of the STATCOM is very low (ideally
zero). Therefore almost all of the negative sequence voltage is dropped across
the line impedance. n
Remark 3.45 The other important observation is that if the load is resistive in
nature, then the negative sequence current is in phase with the negative sequence
voltage. Therefore the STATCOM will be absorbing negative sequence three
phase real power. This would mean that the capacitor voltages would increase
as a result of this absorption of power. It may be that it is more sensible for
the current being absorbed by the STATCOM to be 90◦ phase shifted from the
negative sequence voltage. n
line impedance.12 Similar arguments can be carried out regardless of the phase
of the load.
Remark 3.46 Clearly the line impedance from the source to the PCC has a
large effect on the magnitude of the current required to drop the negative sequence
voltage to zero. If one is trying to compensate for a single phase voltage dip,
then the impedance between the fault location and the PCC is important with
respect to the magnitude of the compensator current. n
*********************
Need to calculate the STATCOM rating implications of supporting a
dip.
*********************
The other important issue is the phase powers of the STATCOM. In Sec-
tion 3.2.1 the expressions were derived for the zero sequence current required
to make the individual phase powers of a Delta connected STATCOM equal at
zero. When the voltage balance at the PCC has been established these same
expressions would still apply since the only significant voltage present at this
point (which is the voltage across the STATCOM), is the positive sequence volt-
age. One difference between the two situations is that the current taken by the
STATCOM would be 180◦ out of phase with the currents required for the load
current re-balance application which was the subject of the previous analysis.
However the expressions summarised in Summary 3.3 on page 33 were derived
using a generic phase angle for the negative sequence current, and therefore are
application to this situation.
An alternative control strategy is to use the negative sequence voltage to
drive the feedback process. If the load is balanced and resistive, then logically
this is equivalent to the previous strategy. One advantage of this approach is
that is can be used in situations where the load is not balanced. This will be
explored in the Section 3.6.2.3 below.
Remark 3.47 If the compensator is operated so that the negative sequence cur-
rent into the compensator is in phase (or 180◦ out of phase) with the negative
sequence voltage, and the negative sequence voltage is used to derive the refer-
ence currents, then the feedback control does not seem to work well. The feedback
gains have to be set very low. If any reasonable gain is used, the compensator
currents become unstable. Operation with a 90◦ phase difference between the
negative sequence voltage and current (which means that there is no three phase
negative sequence power flowing into or out of the STATCOM) appears to make
the control system more stable, and higher gains can be used. n
can no longer be used to detect the presence of unbalanced voltages at the PCC.
Similarly, detection of unbalanced voltage at the PCC is not indicative of unbal-
anced source voltages, since if the load in unbalanced then unbalanced currents
through balanced line impedances will lead to unbalanced voltages. Similarly
there are other combinations when the line impedances are also unbalanced.
70 Implementation
Chapter 4
Simulation Studies
current sources.
Symmetrical Components Symmetrical Components
Load side of PCC source side of PCC
Ia_ampl Ia_ampl
Est_amplitude_0 Ia_pos_ampl Ia_pos_ampl est_ia_src_amp Ia_pos_ampl
Ia_angle Ia_angle
This file is designed to test the extraction of symmetrical
ia_phase Ia_pos_angle ia_phase_src Ia_pos_angle
Ia_pos_angle
Ib_ampl Ib_ampl
components from the data that is output from the
Karimi−Ghartemani signal extraction algorithms. Est_amplitude_120 Ib_pos_ampl Ib_pos_ampl est_ib_src_amp Ib_pos_ampl
Ib_angle Ib_angle
Ib_neg_angle Ib_neg_angle
Ib_neg_angle
Ic_neg_angle Ic_neg_angle
Ic_neg_angle
iap iapiap_src
iap
Current
phase_ibc to
Control
l2
phase_b Interface Compensator
Current i2var
to l:0.001
Control ib_source_side r:0.01
Interface
i2var
0.01
0.01
ia phase info Est_waveform_0 Phase b Phase a 10e6 10e6
lag
ref:vb ref:va
amplitude:100 amplitude:100 K
frequency:50 frequency:50 5 1e6 ibn
phase:−120 phase:0.0 (s/w) + 1
gnd
phase:−240
Artifical neutral
frequency:50
amplitude:100
gnd lag var2i
0.01
Phase c Control cn
K to k:1
icn cccs_4p
(s/w) + 1 Current
10e6 cp
k:−1 phase_icc
phase_c
i2var 5
ic_source_side
Current
l3 to
Control
phase_icc Interface
l:0.001
r:0.01
Current
to
Control
Interface
i2var ic phase info
Base_freq
c_dc Base_freq Est_freq Est_freq_240
Initial_phase
−4.1887902048
va amplitude and phase
Est_phase
Est_phase_240
c_dc
Karimi− Base_freq
c_dc Base_freq Est_freq
Initial_amplitude Est_freq_va
15
Ghartemani Initial_phase
PLL3 0
Est_amplitude Est_amplitude_240 Est_phase
PLL Karimi− Est_phase_va
Signal_input c_dc
Source side current sensors Est_waveform Initial_amplitude
Est_waveform_240 100
Ghartemani
Base_freq
c_dc Base_freq Est_freq PLL4 Est_amplitude Est_ampl_va
+ Voltage
Initial_phase phase_iac Signal_input
PLL
0 to
Est_phase Control Est_waveform
est_ia_src_phase − Est_waveform_va
c_dc
Karimi− Interface
v2var
Initial_amplitude
15
Ghartemani
PLL5 Est_amplitude
PLL est_ia_src_amp
Signal_input
ia_source_side Est_waveform
Est_phase_va
diff
Base_freq Est_phase_va
c_dc Base_freq Est_freq est_ib_src_phase ib_phase_src
diff
Initial_phase
−4.1887902048 Est_phase
Karimi− est_ic_src_phase Est_phase_240 ic_phase
c_dc
Initial_amplitude Est_phase_va
15
Ghartemani
diff
PLL7 Est_amplitude
PLL est_ic_src_amp
Signal_input est_ic_src_phase ic_phase_src
Est_phase_va
ic_source_side Est_waveform
Est_phase_va
Figure 4.1: Schematic of the Saberr simulation used for the Wye connected
Simulation Studies
4.1 Wye Connected Current Sources 73
phase_iac
phase_ibc
Compensator
lag
K
ibn (s/w) + 1
lag var2i
cn
K Control
to k:1
icn (s/w) + 1 Current cccs_4p
cp
phase_icc
k:−1
Karimi− Est_phase
Initial_amplitude Ghartemani
PLL
PLL4 Est_amplitude
Signal_input
Figure 4.2: Wye connected current sources in Saberr simulation.
Est_waveform
Figure 4.3 show the main result of the operation of this circuit. As can be
seen there is a negative sequence load current of approximately 8 Amp ampli-
tude, and on the source side of the compensator this current is very small (< 0.2
Amp on expanded scale) – i.e the compensator current sources are supplying
the negative sequence into to compensator connection point, so that to the left
of this point (i.e. the source side of the connection point) the only current left
is the positive sequence. The positive sequence currents on the load and source
sides of the compensator are the same, as can be seen from Figure 4.4. This is
the expected result as the compensator is only compensating for the negative
sequence.
The final proof that the supply is now symmetrical can be seen from Fig-
ure 4.5 which shows the phase currents into the load and the phase currents on
the source side of the compensator. Note that the currents on the source side
are now balanced three phase currents.
The final plot of particular interest is the real power in each of the sources
and the three phase total real power into the compensator. Figure 4.6 shows
the relevant plots. As can be seen from this figure, one of the sources has a
average positive real power, another a negative real power, and one an average
zero real power. The total three phase power oscillates (as predicted in (1.63)),
and has an average value of zero.
Remark 4.1 The presence of average real power in two of the current sources
is a significant problem if the current sources are implemented using H-bridge
cascaded converters, since it would mean that the inverter capacitors in these
legs would continually increase or decrease in voltage. This would proclude the
H-bridge being used unless a technique can be found to eliminate this. n
74 Simulation Studies
(−) : t(s)
10.0
icn_src
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
icn
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
ibn_src
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
ibn
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
ian_src
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
ian
5.0
(−)
0.0
−5.0
−10.0
0.375 0.4 0.425 0.45 0.475 0.5 0.525 0.55 0.575 0.6 0.625 0.65 0.675 0.7
t(s)
Figure 4.3: Negative sequence currents on the load and source sides of the
compensator connection point.
(−) : t(s)
20.0
icp_src
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
icp
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
ibp_src
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
ibp
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
iap_src
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
iap
10.0
(−)
0.0
−10.0
−20.0
0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65
t(s)
Figure 4.4: Positive sequence current on the load and source sides of the com-
pensator connection point.
4.1 Wye Connected Current Sources 75
(−) : t(s)
10.0
ic_source_side
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
ib_source_side
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
10.0
ia_source_side
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
20.0
phase_c_ld
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
phase_b_ld
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
phase_a_ld
10.0
(−)
0.0
−10.0
−20.0
0.18 0.2 0.22 0.24 0.26 0.28 0.3 0.32 0.34 0.36 0.38 0.4
t(s)
Figure 4.5: Phase current on the load and source side of the wye connected
compensator.
(W) : t(s)
1.5k
3phase_power
1.0k
500.0
(W)
0.0
−500.0
−1.0k
−1.5k
(W) : t(s)
600.0
power(cccs_4p.cccs_4p4)
400.0
200.0
(W)
0.0
−200.0
−400.0
−600.0
(W) : t(s)
200.0
power(cccs_4p.cccs_4p3)
0.0
−200.0
(W)
−400.0
−600.0
−800.0
(W) : t(s)
800.0
power(cccs_4p.cccs_4p2)
600.0
400.0
(W)
200.0
0.0
−200.0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(s)
Figure 4.6: Power in Wye connected current sources with no zero sequence
voltage injection.
76 Simulation Studies
c_dc 314.159265359
-2.0943951024 c_dc
15
c_time
Current
to
Control
l2 Interface
Current
i2var
to
l:0.001
Control r:0.01 i2var
Interface
Current
to
i2var Control
Interface
c_dc
0.0
c_dc
0.01
0.01
10e6 10e6
ref:vb ref:va
amplitude:100 amplitude:100
frequency:50 frequency:50 5 1e6
phase:-120 phase:0.0
gnd
phase:-240 i2var
frequency:50
Current
amplitude:100 to
Control
gnd Interface var2i
Current
1000e6
cccs_4p4
0.01
to
Control
Interface Control cn
to k:1
Current
i2var 10e6
gnd cp
k:1
i2var 5
Current
l3 to
Control
Interface
l:0.001
r:0.01
Current
to
Control
Interface
i2var
c_dc
-4.1887902048
c_dc
4.2 Delta Connected Current Sources
15
c_dc
0
c_dc
100
+ Voltage
to
c_dc Control
- Interface
0 v2var
c_dc
15 diff
c_pwl
diff
pwl:[0,0,0.499999,0,0.5,1,1,1]
c_dc
c_dc
-2.0943951024
c_dc 0
c_dc
15 diff
100
+
Voltage
to
Control
- Interface
v2var
c_dc
-4.1887902048
c_dc
15
diff
c_dc
diff
0
c_dc
100
+
Voltage
diff to
Control
- Interface
v2var
Figure 4.7: Saberr simulation for Delta connected current sources with zero
77
Ia_ampl Ia_ampl
Ia_pos_ampl Ia_pos_ampl
Ia_angle Ia_angle
Ia_pos_angle Ia_pos_angle
Ib_ampl Ib_ampl
Ib_pos_ampl Ib_pos_ampl
Ib_angle Ib_angle
Ib_pos_angle Ib_pos_angle
Ic_ampl Ic_ampl
Ic_pos_ampl Ic_pos_ampl
symmetrical_components1 symmetrical_components2
Ic_angle Ic_angle
Ic_pos_angle Ic_pos_angle
t t
Ia_neg_ampl Ia_neg_ampl
freq freq
Ia_neg_angle Ia_neg_angle
Ib_neg_ampl Ib_neg_ampl
Ib_neg_angle Ib_neg_angle
Ic_neg_ampl Ic_neg_ampl
78 Ic_neg_angle
iap
Ic_neg_angle
iap
Simulation Studies
ibp ibp
icp icp
ian ian
ibn ibnibn_src
ibn
icn icnicn_src
icn
phase_a_c
phase_b_c
phase_a_c
phase_b_c
iab
var2i
cp
cccs_4p2 var2i ibc cp
cccs_4p3
Control Control
to to
iab_ref Current k:1 ibc_ref Current k:1
cn cn
gnd gnd
k:1 k:1
10e6
Artificial_neutral
Artifical neutral
gnd
var2i
ica
1000e6 cccs_4p4
ica_ref Control cn
to k:1
Current
cp
gnd
phase_c_c
k:1
phase_c_c
addition a zero sequence current is established in the delta as per the calculations
in Section 3.2.1.
Figure 4.9 shows the source side line currents for the system. Notice for
the first 0.2 seconds that there is no current in phase ‘a’, and then from 0.2
seconds there are balanced currents in the three phases as the negative sequence
compensation has started. Also note that there is no change to the balanced
three phase currents at 0.5 seconds when the Delta zero sequence current is
applied.
The negative sequence current on the source side of the point of common
coupling of the compensator is shown in Figure 4.10. Note that the negative
sequence currents are very nearly zero once the compensation is applied at 0.2
seconds, and there is no change at 0.5 seconds when the zero sequence current
is applied.
The ratings of the current sources are also of particular interest. As one
might surmise, if a zero sequence current is injected into the Delta then this may
result in a change of the current rating√of the individual current sources. The
use of a Delta has already resulted in a 3 higher voltage rating as compared to
wye connected sources. Figure 4.11 shows the currents in the individual current
sources of the Delta. As can be seen form the figure the introduction of the zero
sequence current at 0.5 seconds results in a considerable increase in the current
through one of the current sources. Figure 4.12 shows the actual zero sequcne
current and its relative phase to the phase ‘a’ current. The zero sequence current
clearly has significant amplitude, as could be deduced from Figure 4.11.
Finally, Figure 4.13 shows the power in the current sources, and is the dia-
gram that demonstrates that the zero sequence current strategy is able to give
zero average real power into each of the current sources. Notice that prior to
0.5 seconds that there is average real power flow into one current source, and
average real power flow out of another, whilst the third has an average real
power of zero. The zero sequence current is introduced at 0.5 seconds and the
average real powers for all the current sources go to zero, as predicted by the
theory of Section 3.2.1.
4.2 Delta Connected Current Sources 79
Graph0
(−) : t(s)
20.0
ic_source_side
15.0
10.0
5.0
(−)
0.0
−5.0
−10.0
−15.0
−20.0
(−) : t(s)
20.0 ib_source_side
15.0
10.0
5.0
(−)
0.0
−5.0
−10.0
−15.0
−20.0
(−) : t(s)
20.0
ia_source_side
15.0
10.0
5.0
(−)
0.0
−5.0
−10.0
−15.0
−20.0
0.0 50.0m 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7
t(s)
Figure 4.9: Source side line currents for the Delta connected current sources.
Graph0
(−) : t(s)
10.0
icn_src
(−)
0.0
−10.0
(−) : t(s)
10.0
ibn_src
(−)
0.0
−10.0
(−) : t(s)
10.0
ian_src
(−)
0.0
−10.0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(s)
Figure 4.10: Negative sequence currents on the source side with Delta compen-
sator.
80 Simulation Studies
Graph0
(A) : t(s)
5.0
i(cccs_4p.cccs_4p4)
0.0
(A)
−5.0
(A) : t(s)
10.0
i(cccs_4p.cccs_4p3)
0.0
(A)
−10.0
(A) : t(s)
10.0
i(cccs_4p.cccs_4p2)
0.0
(A)
−10.0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(s)
Figure 4.11: Currents in the individual current sources for a Delta connected
compensator.
Graph0
(−) : t(s)
10.0
ian
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
6.0
i0
4.0
2.0
(−)
0.0
−2.0
−4.0
−6.0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(s)
Figure 4.12: Zero sequence current injected into the Delta compensator.
4.3 Wye Connected Current Sources and Voltage Source 81
Graph0
(W) : t(s)
1.0k
power(cccs_4p.cccs_4p4)
(W)
0.0
−1.0k
(W) : t(s)
1.0k
power(cccs_4p.cccs_4p3)
(W)
0.0
−1.0k
(W) : t(s)
1.0k
power(cccs_4p.cccs_4p2)
(W)
0.0
−1.0k
0.4 0.425 0.45 0.475 0.5 0.525 0.55 0.575 0.6 0.625 0.65 0.675 0.7 0.725
t(s)
Figure 4.13: Current source powers in Delta compensator with zero sequence
current applied at 0.5 seconds.
Ib_ampl Ib_ampl
Est_amplitude_120 Ib_pos_ampl Ib_pos_ampl est_ib_src_amp Ib_pos_ampl
Ib_angle Ib_angle
t t
Ib_neg_angle Ib_neg_angle
Ib_neg_angle
This file is designed to test the extraction of symmetrical
components from the data that is output from the Ic_neg_ampl Ic_neg_ampl Ic_neg_ampl
Karimi−Ghartemani signal extraction algorithms. Ic_neg_angle Ic_neg_angle
Ic_neg_angle
iap iapiap_src
iap
The file uses the symmetrical components extracted as the
icp icpicp_src
icp
Have added a section around the load of passive circuits to see if ian ianian_src
ian
these circuits can balance the load. Two different passive loads ibn
ibn
ibnibn_src
are included − the delta connected compensator, and the wye icn icnicn_src
icn
connected compensator. Note that the current source gains c_dc ib phase info
Base_freq
c_dc 314.159265359 Est_freq
Base_freq
are set to zero under this condition so that they play no part in the Est_freq_120
Initial_phase
−2.0943951024 Est_phase
simulation. c_dc
Est_phase_120
Karimi−
15
Initial_amplitude Ghartemani
I did run into considerable problenms when I had the artificial_neutral c_time
time PLL2 Est_amplitude
PLL Est_amplitude_120
connected via a 200MOhm resistor to ground − removed this and all Signal_input
Est_waveform
worked OK. Est_waveform_120
LOAD phase_iac
phase_ibc
The simulation seems to work OK.
phaseb phaseb Current
to
Active compensator.
Control
l2 Interface
phase_b
vb Current i2var
to l:0.001
Control ib_source_side r:0 Compensator
Interface i2var
i2var Current
to
Control comp_ib Base_freq
Interface Est_freq
phase_ibc c_dc Base_freq Est_freq_0
Initial_phase
Filters required in order
0.0 Est_phase
Est_phase_0
c_dc
Karimi− to overcome numerical est_ic_src_amp
Initial_amplitude Ghartemani Controlled
15
l1 phase_a
problems with the
PLL1 Est_amplitude
phasea simulation
l:0.001
PLL Est_amplitude_0 var2i
voltage src var2i
Current Current Signal_input Phase b ref:cccs_4p3
r:0
to to cp cp
Control Control Est_waveform
ia_source_side Control ref:ccvs_4p1 Control cccs_4p
Interface Interface to to
phase_a ccvs_4p k:1 k:1
Current cn Current cn
i2var i2var
Est_waveform_0 gnd gnd
ia phase info Phase a 100e6 100e6 k:1 n_1116 k:−1
va ref:r3
ref:r2 10
15
ref:vb ref:va
amplitude:100 amplitude:100
frequency:50 frequency:50 lag
phase:−120 phase:0.0
Load_neutral Artifical_neutral K
i2var
ibn (s/w) + 1
phase:−240 Current
Artifical neutral
frequency:50 to
amplitude:100 Control comp_ia n_1116
Interface
phase_iac
gnd Phase c
5 100e6
ref:r12 var2i
lag
vc
K Control cn
to k:1
icn (s/w) + 1 Current cccs_4p ref:cccs_4p4
phase_c cp
i2var
ic_source_side phase_icc
k:−1 gnd
Current phase_c
l3 to
Control
Interface
phasec
l:0.001
r:0
Current comp_ic
to i2var
Control
Interface
Current
to
i2var Control ic phase info
Interface Voltage source reference generator
phase_icc
Base_freq
c_dc Base_freq Est_freq Est_freq_240
Initial_phase
−4.1887902048 Est_phase
Est_phase_240
c_dc
Karimi−
msin
Initial_amplitude Ghartemani zero_sequence
15 in1 out Two passive compemsators
PLL3 Est_amplitude Est_amplitude_240 in1 out k1*in1*sin(k2*in2) Σ va_volt_ref
k1:1
Signal_input
PLL Ia_neg_angle Σ − delta connected and wye
Est_waveform k1:2
Est_waveform_240 in2
k2:+1
in2 Est_waveform_va
k2:+1
connected.
Est_phase_va
Phase Referencing
0 Est_phase
est_ia_src_phase
Karimi−
ref:l9
c_dc
0.101077
diff
Base_freq
Passive Wye Compensation Network
c_dc Base_freq Est_freq est_ib_src_phase ib_phase_src − be careful about the DC initial conditions.
Initial_phase
−2.0943951024 Est_phase
est_ib_src_phase
c_dc
Karimi−
Initial_amplitude Ghartemani Est_phase_va
15
PLL6 Est_amplitude diff
PLL est_ib_src_amp
Signal_input est_ic_src_phase ic_phase_src
ib_source_side Est_waveform
phase_iac_nc Current
to
Control passive_delta_comp_ia
Interface
Est_phase_va
Base_freq i2var
c_dc Base_freq Est_freq
Initial_phase
−4.1887902048 Est_phase
est_ic_src_phase
c_dc
Karimi− passive_delta_comp_ic
Initial_amplitude Ghartemani 0.000033
15 Current phases relative to va at load
ref:c6
PLL7 Est_amplitude Current Current
est_ic_src_amp phase_ibc_nc ref:c4 phase_icc_nc
diff to to
Signal_input
PLL Control passive_delta_comp_ib
0.000033 Control
Est_waveform Interface Interface
ic_source_side Est_phase_0 ia_phase
i2var i2var
ref:l15
Est_phase_va 0.151615
diff
Est_phase_120 ib_phase
Passive Delta Compensation Network
Est_phase_va
diff
Est_phase_240 ic_phase
Est_phase_va
0 Est_phase
Karimi− Est_phase_va
c_dc
Initial_amplitude
100
Ghartemani
PLL4 Est_amplitude
phasea PLL Est_ampl_va
+ Voltage Signal_input
to
Control Est_waveform
− Interface Est_waveform_va
v2var
Figure 4.14: Saberr schematic of wye connected compensator with zero se-
Simulation Studies
4.3 Wye Connected Current Sources and Voltage Source 83
phase_iac
phase_ibc
Active compensator.
Compensator
lag
K
ibn (s/w) + 1
n_1116
lag var2i
K Control
to
cn
k:1
icn (s/w) + 1 Current cccs_4p ref:cccs_4p4
cp
Figure 4.15: Close-up of compensator showing voltage source for zero sequence
voltage injection.
phase_c
msin
Est_ampl_va zero_sequence
in1 out
in1 out k1*in1*sin(k2*in2) Σ va_volt_ref
k1:1
Ia_neg_angle
Σ
k1:2
in2
k2:+1
k2:+1
in2 Est_waveform_va
Est_phase_va
Phase Referencing
Figure 4.16: Voltage source reference generator for zero sequence voltage injec-
tion for a wye connected compensator.
84 Simulation Studies
Wye connected − two cur srcs, one voltage src. Ra=10 Ohm, Rb=15 Ohm, Rc=5 Ohm
(−) : t(s)
0.2
icn_src
0.1
(−)
0.0
−0.1
−0.2
(−) : t(s)
10.0
icn
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
0.2
ibn_src
0.1
(−)
0.0
−0.1
−0.2
(−) : t(s)
10.0
ibn
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
0.2
ian_src
0.1
(−)
0.0
−0.1
−0.2
(−) : t(s)
10.0
ian
5.0
(−)
0.0
−5.0
−10.0
0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0
t(s)
Figure 4.17: Negative sequence currents with a zero sequence voltage injection
wye connected compensator.
Figure 4.18 shows various voltages in the compensator. Note the the star
point voltage is equal to the phase ‘a’ voltage, except that it is 180◦ out of phase
with it. This means that the voltage across phase ‘a’ will be double the normal
phase voltage. This can be seen in the phase ‘a’ plot. The magnitude of the
voltages across the other phases will be the normal phase voltages, but their
phase angle will be different.
Figure 4.19 shows the powers across the sources in the wye connected com-
pensator. One can see that the average power across each source is zero, as
expected from the theory developed earlier with respect to zero sequence volt-
age injection.
Remark 4.4 Compare Figure 4.19 with Figure 4.6 which is for the case when
no zero sequence voltage is injected. n
The simulations thus-far have used a real unbalanced load. The theory
developed in Chapter 2 however is not specific to these types of loads. The
very essence of the algorithm itself does not assume any characteristic of the
unbalance – it does not attempt to identify the load in any way. Therefore the
algorithms should work with a more general unbalance. To test that this is true
the load used to generate the next set of simulation results is:
Za = 10 + jω(0.001) (4.1)
Zb = 15 + jω(0.1) (4.2)
Zc = 5 + jω(0.0001) (4.3)
The relevant results for the same wye connected compensator as the previous
cases is shown in Figures 4.20, 4.21 and 4.22. Figure 4.20 shows that under
4.3 Wye Connected Current Sources and Voltage Source 85
Wye connected − two cur srcs, one voltage src. Ra=10 Ohm, Rb=15 Ohm, Rc=5 Ohm
(V) : t(s)
200.0
volt_src_pha_voltage
150.0
100.0
50.0
(V)
0.0
−50.0
−100.0
−150.0
−200.0
(V) : t(s)
200.0
cur_src_phc_voltage
150.0
100.0
50.0
(V)
0.0
−50.0
−100.0
−150.0
−200.0
(V) : t(s)
150.0
cur_src_phb_voltage
100.0
50.0
0.0
(V)
−50.0
−100.0
−150.0
−200.0
(V) : t(s)
compensator_star_v
150.0
100.0
50.0 phase_a_v
(V)
0.0
−50.0
−100.0
−150.0
0.4 0.42 0.44 0.46 0.48 0.5 0.52 0.54 0.56 0.58 0.6 0.62 0.64 0.66
t(s)
Figure 4.18: Voltages across the compensator sources and star point for a zero
sequence voltage injection wye connected compensator.
Wye connected − two cur srcs, one voltage src. Ra=10 Ohm, Rb=15 Ohm, Rc=5 Ohm
(W) : t(s)
pwr_Vsrc_pha
250.0
(W)
0.0
−250.0
(W) : t(s)
200.0
pwer_Csrc_phc
(W)
0.0
−200.0
(W) : t(s)
200.0
pwr_Csrc_phb
(W)
0.0
−200.0
0.4 0.425 0.45 0.475 0.5 0.525 0.55 0.575 0.6 0.625 0.65 0.675 0.7 0.725 0.75 0.775 0.8
t(s)
Figure 4.19: Powers in the sources for a zero sequence voltage injection wye
connected compensator.
86 Simulation Studies
Wye connection − Ra=10 Ohm, La=0.001H, Rb=15 Ohm, Lb=0.1H, Rc=5 Ohm, Lc=0.0001H
(−) : t(s)
0.2
icn_src
0.1
(−)
0.0
−0.1
−0.2
(−) : t(s)
10.0
icn
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
0.2
ibn_src
0.1
(−)
0.0
−0.1
−0.2
(−) : t(s)
10.0
ibn
5.0
(−)
0.0
−5.0
−10.0
(−) : t(s)
0.2
ian_src
0.1
(−)
0.0
−0.1
−0.2
(−) : t(s)
10.0
ian
5.0
(−)
0.0
−5.0
−10.0
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
t(s)
Figure 4.20: Negative sequence currents for wye connected compensator with
zero sequence injection and general unbalanced admittances.
the general load condition that the negative sequence currents are eliminated as
previously – i.e the compensator still performs its basic function.
Figure 4.21 shows the new voltages across each of the sources in the com-
pensator. Note that they are considerably different in this case as compared
to the same plots for the resistive load case in Figure 4.18. Note the totally
different phase relationship between the ‘a’ phase voltage and the compensator
star voltage for the general case as compared to the resistive case.
Remark 4.5 An implication of the Figures 4.21 and 4.18 is that the H-bridges
that form the compensator sources in reality would need to be rated at twice the
phase voltage to be able to handle an arbitrary unbalance situation. n
Figure 4.22 shows the power in the individual sources when there is zero
sequence voltage injection. Notice that, as in the previous case shown in Fig-
ure 4.19, the average power is zero. Therefore the zero sequence injection is still
doing its job.
Wye connection − Ra=10 Ohm, La=0.001H, Rb=15 Ohm, Lb=0.1H, Rc=5 Ohm, Lc=0.0001H
(V) : t(s)
comp_star_pt
150.0
100.0
50.0 phase_a_volt
(V)
0.0
−50.0
−100.0
−150.0
(V) : t(s)
200.0
volt_Csrc_phc
150.0
100.0
50.0
(V)
0.0
−50.0
−100.0
−150.0
−200.0
(V) : t(s)
50.0
volt_Csrc_phb
25.0
(V)
0.0
−25.0
−50.0
(V) : t(s)
volt_Vsrc_pha
200.0
150.0
100.0
50.0
(V)
0.0
−50.0
−100.0
−150.0
−200.0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75
t(s)
Figure 4.21: Voltages for a wye connected compensator with zero sequence
voltage injection and general unbalanced load.
Wye connection − Ra=10 Ohm, La=0.001H, Rb=15 Ohm, Lb=0.1H, Rc=5 Ohm, Lc=0.0001H
(W) : t(s)
1.0k
pwr_pha_volt_src
(W)
0.0
−1.0k
(W) : t(s)
1.0k
pwr_phc_cur_src
(W)
0.0
−1.0k
(W) : t(s)
200.0
pwr_phb_cur_src
(W)
0.0
−200.0
0.3 0.32 0.34 0.36 0.38 0.4 0.42 0.44 0.46 0.48 0.5 0.52
t(s)
Figure 4.22: Powers for a wye connected compensator with zero sequence voltage
injection and a general load.
88 Simulation Studies
(W) : t(s)
600.0
Total Current source powers
400.0
200.0
(W)
0.0
−200.0
−400.0
(W) : t(s)
200.0
Cur src Pca
100.0
(W)
0.0
−100.0
(W) : t(s)
100.0
Cur src Pbc
0.0
(W)
−100.0
−200.0
−300.0
(W) : t(s)
300.0
Cur src Pab
200.0
(W)
100.0
0.0
−100.0
(−) : t(s)
1.0
i0
0.5
(−)
0.0
−0.5
−1.0
(−) : t(s)
30.0
cur_ia_source_side
20.0
cur_ib_source_side
10.0
(−)
0.0 cur_ic_source_side
−10.0
−20.0
(−) : t(s)
20.0
cur_a_load
15.0
10.0
5.0
cur_b_load
(−)
0.0
−5.0 cur_c_load
−10.0
−15.0
−20.0
0.44 0.45 0.46 0.47 0.48 0.49 0.5 0.51 0.52 0.53 0.54 0.55 0.56
t(s)
there is a 20% dip in the phase ‘a’ voltage. The load is a simple resistive load
consisting of 5Ω resistors. The control strategy is attempting to balance the
unbalanced currents flowing to the load – i.e. the control strategy is the normal
negative sequence control that has been applied in the previous simulations in
this chapter.
Figure 4.23 shows the plot obtained from this situation. As can be seen the
source side currents are balanced as with the balanced voltage case. Similarly the
load side currents are not balanced, as was the case with the previous balanced
situations. This later point means that the voltage at the STATCOM connection
point is unbalanced, and the resultant negative sequence currents flowing as a
consequence of this are being absorbed/produced by the STATCOM. From the
perspective of the H-bridge, the powers into/out of the current sources do not
have an average of zero regardless of whether there is zero sequence injection or
not.
Remark 4.6 The fact that the current source powers are not zero under the
unbalanced voltage conditions with or without zero sequence injection should not
be surprising. The theory for the zero sequence injection was developed assuming
that balanced three phase source voltages. n
4.4 Unbalanced Source Voltages 89
jXs
PCC
r Balanced
Vs
r r r r r r Load
Is = Ips + Ins IL = IpL + InL
Symmetrical
Components
Generation
-(K p IˆnL + K i ò IˆnL )
IˆnL
-
+
S
r
InL 0
-IˆnL
STATCOM ´ PI
Remark 4.7 One can see from the top plot that the instantaneous three phase
power is oscillating at twice the supply frequency, and it has an average value of
near zero, but in actual fact is not zero. It has an average value of -13.1 Watts.
This outcome was predicted from equation (1.63), where was have an average
power term due to the negative sequence voltage interacting with the negative
sequence current. In this case the later is injected into line from the STATCOM.
n
Remark 4.8 The fact the STATCOM is absorbing a scaled version of the neg-
ative sequence load current means that the STATCOM effectively looks like a
virtual load with the same phase angle as the true load. The current magnitude
1 This explanation is from Section 3.6.2.2 and is a repeated here for convenience.
90 Simulation Studies
Figure 4.25: From the top plot: load currents, negative sequence load current,
positive and negative sequence voltages, STATCOM compensator currents with
a balanced resistive load and a 20% different voltage in phase ‘a’ (14.3% unbal-
ance). STATCOM re-balancing occurs from 0.7 seconds.
drawn by the STATCOM increases (due to the integral action of the controller)
until the effective impedance magnitude of the STATCOM is very low (ideally
zero). Therefore almost all of the negative sequence voltage is dropped across
the line impedance. n
The other important issue with respect to the H-bridge STATCOM is the
phase powers that are absorbed or generated under these conditions. Because
the phase of the current drawn by the STATCOM is π radians from that in the
unbalanced load case (due to the fact that the STATCOM is current in this case,
as compared to the unbalanced load compensator case where the compensator is
supplying the negative sequence currents required by the unbalance load), then
the same power relationships still hold. In this case the voltages involved are the
negative sequence voltage, but other than these differences the same expressions
still hold. It was shown in (1.62) that the positive sequence component of voltage
multiplied by the negative sequence of current (and vice-versa) only results in
oscillating power with an average value of zero. Therefore the interaction of the
negative sequence current of the STATCOM with the positive sequence voltage
at the PCC does not result in any real average power flow. Therefore expressions
in Summary 3.3 on Page 33 still hold without alteration.
In order to test this idea a simulation was implemented. The results of this
are shown in Figures 4.25, 4.26 and 4.27. The load in this case was a balanced 5Ω
delta connected resistive load, and the source voltage amplitude V̂a = 0.8V̂b,c .
Under the definition of unbalance of equation (1.1) this is 14.3% unbalance. The
4.4 Unbalanced Source Voltages 91
(−) : t(s)
20.0
cur_a_load
15.0
10.0
5.0
cur_b_load
(−)
0.0
−5.0 cur_c_load
−10.0
−15.0
−20.0
(−) : t(s)
60.0m
ian
40.0m
20.0m ibn
0.0
(−)
icn
−20.0m
−40.0m
−60.0m
(−) : t(s)
100.0
vap_pcc
75.0
50.0
25.0
vbp_pcc
(−)
0.0
−25.0 vcp_pcc
−50.0
−75.0
−100.0
(−) : t(s)
0.1
van_pcc
50.0m
vbn_pcc
0.0
(−)
−50.0m vcn_pcc
−0.1
−0.15
(−) : t(s)
comp_cur_a
75.0
50.0
25.0 comp_cur_b
(−)
0.0
−25.0
comp_cur_c
−50.0
−75.0
1.795 1.8 1.805 1.81 1.815 1.82 1.825 1.83 1.835 1.84 1.845 1.85 1.855
t(s)
Figure 4.26: Close-up of Figure 4.25 From the top plot: load currents, nega-
tive sequence load current, positive and negative sequence voltages, STATCOM
compensator currents with a balanced resistive load and a 20% different voltage
in phase ‘a’ (14.3% unbalance).
(W) : t(s)
5.0k
Total cursrc pwr
4.0k
3.0k
2.0k
1.0k
(W)
0.0
−1.0k
−2.0k
−3.0k
−4.0k
−5.0k
(W) : t(s)
1.5k
Cursrc 1 pwr
1.0k
500.0
0.0
−500.0
(W)
−1.0k
−1.5k
−2.0k
−2.5k
−3.0k
(W) : t(s)
2.5k
Cursrc 2 pwr
2.0k
1.5k
1.0k
500.0
(W)
0.0
−500.0
−1.0k
−1.5k
−2.0k
(W) : t(s)
2.5k
Cursrc 3 pwr
2.0k
1.5k
1.0k
(W)
500.0
0.0
−500.0
−1.0k
−1.5k
1.24 1.26 1.28 1.3 1.32 1.34 1.36 1.38 1.4 1.42 1.44 1.46
t(s)
Figure 4.27: Total three phase power and the individual current source powers
under the conditions of figures 4.25 and 4.26.
Appendix A
If one is going to connect a phase leg based STATCOM to the electrical net-
work then one has the choice of whether to connect it as a Star connection,
or a Delta connection. Generally speaking the technical literature appears to
concentrate on the former of these two connections. The reason for this is that
for a given system voltage the individual phase leg voltages will be lower with
the Star connection, since the phase voltage is √13 of the line-to-line system
voltage. However, if imbalance is to be compensated for the Star connection is
not suitable, and therefore one has to use the Delta connection.
Figure A.1 shows a delta connection of some arbitrary devices/loads. Note
the convention used for the directions of the currents and voltages. The conven-
tion used for currents is that the arrow indicates the direction of current flow.
Note the ~Iab corresponds to current flowing from node “a” to node “b”. For the
voltages the arrow head points voltage that is measured relative to the other
end of the arrow. Therefore V~ ab means V ~ a−V ~ b . Therefore zero phase current
flowing into the arrow head end of the voltage corresponds to positive power (as
per the convention in the Saber simulation package).
In all of the following analysis current flowing into a node is defined as
positive.
2
x= (xa + axb + a2 xc ) (A.1)
3
where xa,b,c denote instantaneous time domain values of a sinusoidally spatial
variable.
Realising that the space vector operators a and a2 are defined as follows:
94 STATCOM Delta Connection Relationships
ia
Phase a
vca
vab
iab ica
Phase b c
b
ib ibc
vbc
Phase c
ic
√
2π 1 3
a = ej 3 =− +j (A.2)
2 2 √
4π 2π 1 3
a2 = ej 3 = e−j 3 =− −j (A.3)
2 2
then we can write:
√ √
2 1 3 1 3
x= (xa + (− + j )xb + (− − j )xc ) (A.4)
3 2 2 √ 2 2
2 1 1 3
= (xa − xb − xc + j (xb − xc )) (A.5)
3 2 2 2
2 1 1 1
∴ x = xd + jxq = (xa − xb − xc ) + j √ (xb − xc ) (A.6)
3 2 2 3
If we assume that there are no zero sequences – i.e. that xa + xb + xc = 0
then we can get the following expressions for the phase values directly from the
space vector representation. From the zero sequence assumption and we can
write:
xb = −xa − xc
2 1 1
⇒ <{x} = (xa − (−xa − xc ) − xc )
3 2 2
A.2 Star-Delta Current Conversion 95
xa = <{x} (A.7)
Similarly:
2 2
a2 x =
(a xa + xb + axc ) (A.8)
3 √ √
2 1 3 1 3
= (− xa − j xa + xb − xc + j xc ) (A.9)
3 2 2 2 2
Using xa = −xb − xc and after some simple manipulations, one can write the
previous expression as:
√
2 3 3
a2 x = ( xb + j (xb + 2xc )) (A.10)
3 2 2
Therefore one can see that:
xb = <{a2 x} (A.11)
A similar process can be carried out to get the xc expression. Starting out
with:
2
(axa + a2 xb + xc )
ax = (A.12)
3
and going through the same type of manipulations gives:
xc = <{ax} (A.13)
Remark A.1 Note that in a Star connection the line current is the same as
the phase current. n
Therefore:
Substituting (A.18)– (A.20) into (A.14) one can write the following expres-
sion:
2
iL = (iab − ica + a(ibc − iab ) + a2 (ica − ibc )) (A.21)
3
2
= ((1 − a)iab + (a − a2 )ibc + (a2 − 1)ica ) (A.22)
3
We can write:
2π 2π
1 − a = 1 − (cos + j sin ) (A.23)
3√ 3
3
= 1 + 0.5 − j (A.24)
√ 2
3 3
= −j (A.25)
2 2
Similarly
2π 4π
a − a2 = ej − ej 3
3 (A.26)
2π 2π 4π 4π
= cos + j sin − cos − j sin (A.27)
3 √ 3 √ 3 3
3 3
= −0.5 + j + 0.5 + j (A.28)
√ 2 2
=j 3 (A.29)
and
4π
a2 − 1 = ej 3−1 (A.30)
4π 4π
= cos + j sin −1 (A.31)
3 √ 3
1 3
=− −j −1 (A.32)
2 √2
3 3
=− −j (A.33)
2 2
A.2 Star-Delta Current Conversion 97
where i∆ is the space vector of the delta currents – i.e. the actual currents in
the individual phases of the delta.
Equation (A.37) allows one to write the following expression for the delta
currents:
i
i∆ = −j √L (A.38)
3
Using the normal relationship between the space vector and the individual phase
currents, we can write:
i 1
ibc = <{i∆ } = <{−j √L } = √ ={iL } (A.39)
3 3
i L 1
ica = <{a2 i∆ } = <{−ja2 √ } = √ ={a2 iL } (A.40)
3 3
iL 1
iab = <{ai∆ } = <{−ja √ } = √ ={aiL } (A.41)
3 3
These expressions can be expanded to get the precise values of the delta
current values in terms of the line currents. Using the space vector current
2π
expression (A.14) and substituting for aj 3 one can write:
√
2 3
iL = (ia − 0.5ib − 0.5ic + j (ib − ic )) (A.42)
3 2
Using (A.42) and (A.39) one can see that:
1
ibc = (ib − ic ) (A.43)
3
Similarly, one can write:
√
2 2 3
a iL = (−0.5ia + ib − 0.5ic + (ic − ia )) (A.44)
3 2
and hence, using (A.40) one can write:
1
ica = (ic − ia ) (A.45)
3
One can also calculate the last current as:
1
iab = (ia − ib ) (A.46)
3
98 STATCOM Delta Connection Relationships
Summary A.1 The conversion from the line currents to the Delta phase cur-
rent is:
1
iab = (ia − ib ) (A.47)
3
1
ibc = (ib − ic ) (A.48)
3
1
ica = (ic − ia ) (A.49)
3
n
Figure A.2 shows the relationship between the line and phase current space
vectors. Note that the abc axis are in the space vector frame and do not relate to
the phasor frame in this diagram. However, the projections of the space vectors
onto the abc axes will give the instantaneous values of the currents as shown.
iL
Â
a
iab
iD
1
Note that i D = i
3 L
Figure A.2: Relationship between line and phase space vectors for a delta con-
nection.
Phase a
ia
va
vab vca
vb
vc
Phase b
ib
vbc
Phase c
ic
Figure A.3: Conventions used for voltages in Star and Delta load.
Applying KVL to the voltages on Figure A.3 one can write the following:
vab = va − vb (A.50)
vbc = vb − vc (A.51)
vca = vc − va (A.52)
Consistent with the definition of the space vector for the line currents in
(A.36), we have:
2
vL = (vbc + avca + a2 vab ) (A.53)
3
Substituting for vab , vbc and vca we can write:
2
vL = (a − a2 )(va + avb + a2 vc ) (A.54)
3
which can be written as:
√
v L = −j 3v ph (A.55)
where:
2
v ph = (va + avb + a2 vc ) (A.56)
3
As with the currents we can write the individual line voltages in terms of the
phase voltages as follows:
100 STATCOM Delta Connection Relationships
√ √
vbc = <{v L } = <{−j 3v ph } = 3={v ph } (A.57)
√ √
vca = <{a2 v L } = <{−ja2 3v ph } = 3={a2 v ph } (A.58)
√ √
vab = <{av L } = <{−ja 3v ph } = 3={av ph } (A.59)
j
v ph = √ v L (A.60)
3
j
va = < v ph = < √ vL (A.61)
3
( " √ √ #)
j 2 1 3 1 3
=< √ (vbc + (− + j )vca + (− − j )vab ) (A.62)
3 3 2 2 2 2
1
∴ va = (vab − vca ) (A.63)
3
One can similarly carry out the manipulations for:
j
vb = < a2 v ph = < a2 √ v L
(A.64)
3
j
vc = < av ph = < a √ v L (A.65)
3
1
va = (vab − vca ) (A.66)
3
1
vb = (vbc − vab ) (A.67)
3
1
vc = (vca − vbc ) (A.68)
3
A.4 Standard Star-Delta, Delta-Star Transformations 101
One of the crucial components in the simulations, and also in the rela imple-
mentation of the symmetrical component system is the algorithm/circuit that
measures the phasor quantities for the system.
After some initial research on this matter, it was decided to use a Phase
Locked Loop system based by Karimi-Ghartemani etal [5]. This system enables
the estimation of:
• the synchronised fundamental component of the input.
• a 90◦ phase-shifted version of the fundamental component.
• the amplitude of the fundamental component.
• the phase angle of the fundamental component.
• the frequency of the fundamental component.
• the time derivatives of the amplitude, frequency and phase of the funda-
mental component.
• the harmonics in the input.
I have not carried out a comprehensive analysis of this particular circuit, but
I have carried out extensive simulations of its performance, and it appears to
perform very well. In the presence of distorted inputs only the fundamental
component is extracted, with the distorted components significantly suppressed.
Some more analysis and testing of this circuit will be required before final real
world implementation.
Remark B.1 One issue that emerged when using the circuit in unbalanced
source voltage simulations of the STATCOM was that when the input ampli-
tude of the waveform to the circuit gets large and the initial estimate of the
input amplitude is in error (and even if it is not in error), the estimated out-
put waveform develops a distortion near the positive and negative peaks. The
104 Current and Voltage Measurement Instrumentation
analysis of the circuit to understand why this occurs is very difficult because of
its non-linear dynamics. However, one simple way of avoiding this issue is to
drive the circuit with per-unit values instead of absolute values. In this way,
regardless of amplitude, the circuit will perform the same. n
The block diagram of the Saberr implementation of the Karimi-Ghartemani
PLL is shown in Figure B.1. As can be seen from this diagram this PLL is a
significant variation from a conventional PLL. The clever part of the PLL is the
section that is able to extract the amplitude information from the input signal.
Figure B.2 shows the performance of the phase locked loop with a highly
distorted input – a square wave. Notice that within three cycles the output
waveform is phase locked with the input. Note that the output is only the
fundamental component of the input. The output has been subtracted from the
input to give only the harmonic components in the input. This process could
perhaps be used in an active filtering application to get the harmonics. This
will require further testing to ascertain the quality of the filtering properties of
this circuit.
Initial_phase
sor quantities.
Initial_phase
lag integ
mult k:50 +1
diff +1
in1 Est_freq
K k in2
Signal_input +1 Σ (s/w) + 1 +1
Signal_input
s
in2 constant mod Σ
integ +1 in1 out
k 999
s Est_phase
k:10
Est_phase
cos
Est_phase
in1
out in
mult
sin
in2
Est_amplitude
Est_amplitude
integ lag in2
in1 out
k K
in1
(s/w) + 1 Σ
Est_waveform
s Est_amplitude +1 mult
k:70 in2
+1 Est_waveform
Initial_amplitude
Est_waveform
Est_waveform
Initial_amplitude
Figure B.1: The Karimi-Ghartemani Phase Locked Loop for estimation of pha-
105
106 Current and Voltage Measurement Instrumentation
Karimi−Ghartemani PLL
(−) : t(s)
Harmonics
20.0
10.0
(−)
0.0
−10.0
−20.0
(−) : t(s)
20.0
y_t
Input
10.0
(−)
0.0
−10.0
−20.0
25.0m 50.0m 75.0m 0.1 0.125 0.15 0.175 0.2 0.225 0.25 0.275 0.3 0.325 0.35 0.375
t(s)
Software Listings
#
# S y m me t r ic a l Components Template
#
# Written by : Robert Betz
# C r e a t e d : 17/5/2005
#
###############################################################################
###############################################################################
#
# DESCRIPTION
#
# This MAST code c a l c u l a t e s t h e p o s i t i v e and n e g a t i v e s e q u e n c e
components
# o f t h e AC s i n u s o i d a l a m p l i t u d e and phase data f e d t o i t .
#
# The data r e t u r n e d from t h e r o u t i n e i s t h e p h a s o r s f o r t h e
p o s i t i v e and
# n e g a t i v e s y m m e t r i c a l components , a s w e l l a s t h e time domain
versions of
# t h e s e component waveforms .
#
###############################################################################
# Notes :
# The I ? _angle p a r a m e t e r s below a r e t h e p h a s o r a n g l e s f o r t h e
various
# c u r r e n t s . S i m i l a r y f o r t h e o ut pu t s y m m e t r i c a l component v a l u e s
the
# I ? _pos/ neg_angle i s t h e r e l a t i v e phase o f t h e p h a s o r s f o r t h e s e
108 Software Listings
# components .
#
# The f r e q p a r a m e t e r i s t h e s u p p l y f r e q u e n c y .
#
# The i a , i b and i c ou tp ut p a r a m e t e r s a r e t h e time domain v e r s i o n s
of the
# r e s p e c t i v e waveforms .
{
f o r e i g n atan2_c
# d e c l a r e l o c a l v e r s i o n s o f a l l t h e o ut pu t v a r i a b l e s
v a l nu l_Ia_pos_ampl , l_Ia_pos_angle , l_Ib_pos_ampl ,
l_Ib_pos_angle , \
l_Ic_pos_ampl , l_Ic_pos_angle , l_Ia_neg_ampl ,
l_Ia_neg_angle , \
l_Ib_neg_ampl , l_Ib_neg_angle , l_Ic_neg_ampl ,
l_Ic_neg_angle , \
l_iap , l_ibp , l _ i c p , l_ian , l_ibn , l _ i c n , math_pi , two_pi ,
four_pi
v a l nu r e a l _ I a p , imag_Iap , r e al _ I bp , imag_Ibp , r e a l _ I c p ,
imag_Icp
v a l nu r e a l _ I a n , imag_Ian , r e al _ I bn , imag_Ibn , r e a l _ I c n ,
imag_Icn
#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
values {
# c a l c u l a t e t h e r e a l and i m a g i n a r y components o f t h e
p o s i t i v e sequence
math_pi = 3 . 1 4 1 5 9 2 6 5 3 6
two_pi = 2 ∗ math_pi
f o u r _ p i = 4 ∗ math_pi
r e a l _ I a p = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ c o s ( I a _ a n g l e ) + Ib_ampl ∗
\
C.1 Symmetrical Components Evaluation using MAST 109
r e a l _ I b p = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ c o s ( I a _ a n g l e + f o u r _ p i
/ 3 . 0 ) +\
Ib_ampl ∗ c o s ( Ib_angle ) + Ic_ampl ∗ c o s ( I c _ a n g l e +
two_pi / 3 . 0 ) )
imag_Ibp = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ s i n ( I a _ a n g l e + f o u r _ p i
/ 3 . 0 ) +\
Ib_ampl ∗ s i n ( Ib_angle ) + Ic_ampl ∗ s i n ( I c _ a n g l e +
two_pi / 3 . 0 ) )
r e a l _ I c p = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ c o s ( I a _ a n g l e + two_pi
/ 3 . 0 ) +\
Ib_ampl ∗ c o s ( Ib_angle + f o u r _ p i / 3 . 0 ) + Ic_ampl ∗ c o s (
Ic_angle ) )
# c a l c u l a t e t h e r e a l and i m a g i n a r y components o f t h e
negative sequence
r e a l _ I a n = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ c o s ( I a _ a n g l e ) + Ib_ampl ∗
\
c o s ( Ib_angle + f o u r _ p i / 3 . 0 ) + Ic_ampl ∗ c o s ( I c _ a n g l e +
two_pi / 3 . 0 ) )
r e a l _ I b n = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ c o s ( I a _ a n g l e + two_pi
/ 3 . 0 ) +\
Ib_ampl ∗ c o s ( Ib_angle ) + Ic_ampl ∗ c o s ( I c _ a n g l e +
four_pi / 3 . 0 ) )
r e a l _ I c n = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ c o s ( I a _ a n g l e + f o u r _ p i
/ 3 . 0 ) +\
Ib_ampl ∗ c o s ( Ib_angle + two_pi / 3 . 0 ) + Ic_ampl ∗ c o s (
Ic_angle ) )
imag_Icn = 1 . 0 / 3 . 0 ∗ ( Ia_ampl ∗ s i n ( I a _ a n g l e + f o u r _ p i
/ 3 . 0 ) +\
Ib_ampl ∗ s i n ( Ib_angle + two_pi / 3 . 0 ) + Ic_ampl ∗ s i n (
Ic_angle ) )
110 Software Listings
# negative sequence
l_Ia_neg_ampl = s q r t ( r e a l _ I a n ∗∗2 + imag_Ian ∗ ∗ 2 )
l_Ia_neg_angle = atan2_c ( r e a l _ I a n , imag_Ian )
l _ i a n = l_Ia_neg_ampl ∗ c o s ( f r e q ∗ t + l_Ia_neg_angle −
math_pi / 2 . 0 )
l_ibn = l_Ib_neg_ampl ∗ c o s ( f r e q ∗ t + l_Ib_neg_angle −
math_pi / 2 . 0 )
l _ i c n = l_Ic_neg_ampl ∗ c o s ( f r e q ∗ t + l_Ic_neg_angle −
math_pi / 2 . 0 )
} # end o f v a l u e s s e c t i o n
#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
equations {
# now copy t h e e v a l u a t e d v a l u e s i n t h e p r e v i o u s s e c t i o n t o
the
# a c t u a l ou tp ut v a r i a b l e s
Ia_pos_ampl = l_Ia_pos_ampl
Ia_pos_angle = l_Ia_pos_angle
Ib_pos_ampl = l_Ib_pos_angle
Ib_pos_angle = l_Ib_pos_angle
Ic_pos_ampl = l_Ic_pos_angle
Ic_pos_angle = l_Ic_pos_angle
Ia_neg_ampl = l_Ia_neg_ampl
Ia_neg_angle = l_Ia_neg_angle
Ib_neg_ampl = l_Ib_neg_angle
Ib_neg_angle = l_Ib_neg_angle
C.2 MAST Delta Current Reference Generator using RMS Values 111
Ic_neg_ampl = l_Ic_neg_angle
Ic_neg_angle = l_Ic_neg_angle
iap = l_iap
i b p = l_ibp
icp = l_icp
ian = l_ian
i b n = l_ibn
icn = l_icn
} # end o f e q u a t i o n s s e c t i o n
The above MAST file uses a “C” routine called atan2_c to implement 4
quadrant arctan in MAST (which does not have one as a standard part of the
language).
#i n c l u d e <s t d i o . h>
#i n c l u d e <math . h>
/∗ S p e c i f y t h e c o m p l e t e path t o s a b e r A p i . h ∗/
#i n c l u d e " c : \ s y n o p s y s \w−2004.12\ Saber \ i n c l u d e \ s a b e r A p i . h"
_ d e c l s p e c ( d l l e x p o r t ) v o i d _ s t d c a l l ATAN2_C ( d o u b l e ∗ inp , l o n g ∗
ninp , l o n g ∗ i f l , l o n g ∗ n i f l
,
d o u b l e ∗ out , l o n g ∗ nout ,
long ∗ ofl , long ∗ nofl ,
d o u b l e ∗ aundef , l o n g ∗ i e r )
{
double x , y ;
x = inp [ 0 ] ;
y = inp [ 1 ] ;
out [ 0 ] = atan2 ( y , x ) ;
}
#
# D e l t a C u r r e n t C a l c u l a t o r Template
#
# Written by : Robert Betz
# C r e a t e d : 25/5/2005
#
############################################################################
############################################################################
112 Software Listings
# DESCRIPTION
############################################################################
# This t e m p l a t e c a l c u l a t e s t h e c u r r e n t s o u r c e v a l u e s t o g i v e t h e
# r e f e r e n c e c u r r e n t s r e q u i r e d out o f t h e t h r e e nodes o f t h e d e l t a
# connected current sources .
# This f i l e c a l c u l a t e s t h e r e f e r e n c e c u r r e n t s f o r t h e t h r e e
# current s o u r c e s in the Delta so that the e x t e r n a l c o n d i t i o n s
# f o r t h e r e f e r e n c e c u r r e n t s a r e s a t i s f i e d , and a t t h e same time
# t h e a v e r a g e powers a r e b a l a n c e d around t h e l o o p . The v a l u e s
# p a s s e d i n t o t h i s f i l e a r e t h e p h a s o r v a l u e s o f t h e phase
# v o l t a g e s and t h e d e s i r e d c u r r e n t . Only t h e c u r r e n t r e f e r e n c e
# f o r one o f t h e d e s i r e d phase has t o be p a s s e d i n s i n c e t h e
# o t h e r s can be s i m p l y d e r i v e d from t h i s a s t h e y a r e by
# d e f i n i t i o n a balanced s e t of currents .
# Note t h a t t h e c u r r e n t and v o l t a g e p h a s o r s a r e e x p r e s s e d i n t h e
# i n p u t s a s AMPLITUDES, and NOT a s t h e rms v a l u e s a s p e r a normal
# phasor .
##############################################################################
ou tp u t nu i a b _ r e f , i b c _ r e f , i c a _ r e f , i 0 , i0_amp , i0_phase
f o r e i g n atan2_c
# d e c l a r e l o c a l v e r s i o n s o f a l l t h e o ut pu t v a r i a b l e s
v a l nu l _ i a b _ r e f , l _ i c a _ r e f , l _ i b c _ r e f , l _ i 0 , l_i0_amp ,
l_i0_phase
#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
values {
math_pi = 3 . 1 4 1 5 9 2 6 5 3 6
two_pi = 2 ∗ math_pi
l_i0 = 0.0
i f ( time >= 0 . 2 ) {
i f ( zero_seq_bool == 1 ) {
C.2 MAST Delta Current Reference Generator using RMS Values 113
# n o t e t h a t t h e vba a n g l e i s 30 d e g r e e s f o r 120
degree
# p o s i t i v e sequence voltages .
theta_ba = math_pi /6
gamma = atan2_c ( s q r t ( 3 ) ∗ ( y + z ) , ( z− y ) )
l_i0_amp = −(y + z ) / c o s (gamma) ∗ I n
l_i0_phase = theta_ba − gamma
# now c h e c k t o s e e i f t h e a m p l i t u d e i s n e g a t i v e −−
i f so
# then add p i t o t h e phase
i f ( l_i0_amp < 0 ) {
l_i0_phase = l_i0_phase + math_pi
l_i0_amp = abs ( l_i0_amp )
}
# c a l c u l a t e t h e time domain v e r s i o n s o f t h e z e r o
sequence
# waveforms .
# Note : a s i n e wave t o c o r r e s p o n d with t h e d r i v i n g
sine
# v o l t a g e waveforms .
l _ i 0 = −l_i0_amp ∗ s i n ( f r e q ∗ time + l_i0_phase )
} # end o f i f ( zero_seq_bool == 1 )
# now c a l c u l a t e t h e c o m p e n s a t i n g c u r r e n t r e f e r e n c e s t o
c a n c e l out
# t h e n e g a t i v e s e q u e n c e a t t h e p o i n t o f common c o u p l i n g
.
# NOTE t h a t t h e s e c a l c u l a t i o n s a r e c a r r i e d out u s i n g
only the
# n e g a t i v e s e q u e n c e ’ a ’ phase and t h e f a c t t h a t t h e
negative
# s e q u e n c e c u r r e n t s a r e a b a l a n c e d phase s e q u e n c e ( a t
least
# in steady s t a t e ) .
# Note : a s i n e wave t o c o r r e s p o n d with t h e d r i v i n g s i n e
# v o l t a g e waveforms .
l _ i a b _ r e f = ian_amp / s q r t ( 3 ) ∗ s i n ( f r e q ∗ time +
ian_phase − \
7 ∗ math_pi / 6 ) + l _ i 0
l _ i b c _ r e f = ian_amp / s q r t ( 3 ) ∗ s i n ( f r e q ∗ time +
ian_phase − \
math_pi / 2 ) + l _ i 0
l _ i c a _ r e f = ian_amp / s q r t ( 3 ) ∗ s i n ( f r e q ∗ time +
ian_phase − \
11 ∗ math_pi / 6 ) + l _ i 0
l_ibc_ref = 0
l_ica_ref = 0
l_i0 = 0
l_i0_amp = 0
l_i0_phase = 0
}
} # end o f v a l u e s s e c t i o n
#−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
equations {
iab_ref = l_iab_ref
ica_ref = l_ica_ref
ibc_ref = l_ibc_ref
i0 = l_i0
i0_amp = l_i0_amp
i0_phase = l_i0_phase
} # end o f e q u a t i o n s s e c t i o n
// c l e a r a l l the v a r i a b l e s
clear
C.3 Various SciLab Files 115
// E s t a b l i s h t h e r a n g e o f v a l u e s f o r t h e z e r o s e q u e n c e phase
a l p h a = [ 0 : 0 . 0 1 : 4 ∗ %p i ] ;
// s e t up t h e a n g l e o f t h e \ theta_ { ba } v o l t a g e p h a s o r
theta_ba = 0 . 5 2 3 6 ;
// Now w r i t e t h e e x p r e s s i o n s f o r t h e r e q u i r e d n e g a t i v e s e q u e n c e
current
theta_an = 2 . 5 7 5 7 ;
theta_bn = theta_an − 4∗% p i . / 3 . 0 ;
theta_cn = theta_an − 2∗% p i . / 3 . 0 ;
In_m = 8 . 2 6 7 9 ;
b = theta_ba − theta_an ;
// c a l c u l a t e t h e v a l u e i n t h e n o t e s c a l l e d \ theta_ { ba } − \ theta_ { an
}
// i . e . t h e d i f f e r e n c e between one o f t h e l i n e −to−l i n e v o l t a g e s and
the
// n e g a t i v e s e q u e n c e ’ a ’ phase a n g l e .
// Now c o n v e r t t h e s e t o r e c t a n g u l a r form s o t h a t K i r c h o f f ’ s C u r r e n t
Law can
// be c a r r i e d out .
g e t f ( ’ . / polar_to_rect . s c i ’ )
I a n = p o l a r _ t o _ r e c t (In_m , theta_an )
Ibn = p o l a r _ t o _ r e c t (In_m , theta_bn )
I c n = p o l a r _ t o _ r e c t (In_m , theta_cn )
// now w r i t e t h e e x p r e s s i o n s f o r t h e t h r e e r e l e v a n t components o f
the
// r e a l power e x p r e s s i o n s f o r each phase
x = 1 . 0 . / s q r t ( 3 . 0 ) . ∗ c o s ( b − ( 5 . 0 . ∗ %p i ) . / 6 )
y = 1 . 0 . / s q r t ( 3 . 0 ) . ∗ c o s ( b − (% p i ) . / 6 )
z = 1 . 0 . / s q r t ( 3 . 0 ) . ∗ c o s ( b + %p i . / 2 )
// c a l c u l a t e t h e e x p r e s s i o n f o r t h e c r o s s o v e r p o i n t
gam = atan ( ( y − z ) , −( s q r t ( 3 . 0 ) . ∗ ( y + z ) ) )
I_0_n = −(y+z ) . / c o s ( gam )
alpha_0_2 = alpha_0_1 + 2 . 0 . ∗ %p i
// work out t h e a c t u a l a m p l i t u d e o f t h e z e r o s e q u e n c e c u r r e n t .
I_0_m = I_0_n . ∗ In_m ;
// c o n v e r t t h e z e r o s e q u e n c e c u r r e n t t o r e c t a n g u l a r form
I_0 = p o l a r _ t o _ r e c t (I_0_m, alpha_0_1 ) ;
a = theta_ba − a l p h a ;
scf (0) ;
c l f (0) ;
p l o t ( alpha , pr1 , ’ k − ’)
p l o t ( alpha , pr2 , ’ k−−’)
p l o t ( alpha , pr2 , ’ r − . ’ )
xgrid
x t i t l e ( [ ’ Real Power Components ’ ; ’ f o r t h r e e l e g s ’ ] , ’ Alpha phase (
rad ) ’ , ’ Component v a l u e ’ )
// p l o t ( alpha , total_power , ’ b − ’)
//
// This f i l e c a l c u l a t e s t h e d e l t a c o n n e c t e d a d m i t t a n c e s r e q u i r e d t o
// b a l a n c e a wye c o n n e c t e d l o a d with a r b i t r a r y c o n d u c t a n c e s . Note
that
// t h e wye c o n n e c t e d l o a d o n l y c o n s i d e r s c o n d u c t a n c e s , s i n c e an
arbtrary
C.3 Various SciLab Files 117
/////////////////////////////////////////////////////////////////////////
//
// CAVEATS
//
// Because t h i s program works i n a d m i t t a n c e s , then t h e r e i s t h e
p o s s i b i l i t y of
// g e t t i n g d i v i d e by z e r o e r r o r s −− f o r example i f a phase i s open
c i r c u i t then
// we end up with an a d m i t t a n c e o f z e r o , and hence t h e p o s s i b i l i t y
o f 0/0 t y p e e r r o r s
// i n some o f t h e c a l c u l a t i o n s . T h e r e f o r e i f an impedance i s
i n f i n i t y represent it
// with a v e r y s m a l l , BUT NOT ZERO impedance .
//
//
/////////////////////////////////////////////////////////////////////////
// c l e a r all variables
clear
// s u p p l y f r e q u e n c y i n Hz
f = 50;
omega = 2 .∗% p i . ∗ f ;
// rms v a l u e o f t h e v o l t a g e s
Vrms = 1 0 0 . 0 . / s q r t ( 2 ) ;
// f i r s t l y c a l c u l a t e t h e l i n e t o l i n e v o l t a g e s
Vabrms = Varms − Vbrms
Vbcrms = Vbrms − Vcrms
118 Software Listings
// i n p u t t h e r e s i s t a n c e s o f t h e wye c o n n e c t e d l o a d
Ra = i n p u t ( " \ n I n p u t Ra" ) ;
Rb = i n p u t ( " I n p u t Rb" ) ;
Rc = i n p u t ( " I n p u t Rc " ) ;
// c a l c u l a t e t h e phase c u r r e n t u s i n g phase r e s i s t a n c e v a l u e s
Ib_l_ph = ( Vbcrms . ∗ Ra − Vabrms . ∗ Rc ) . / ( Rc . ∗ Ra + Rc . ∗ Rb +
Ra . ∗ Rb)
Vb_l_ph = Rb . ∗ Ib_l_ph
// work out t h e p o l a r c o o r d i n a t e s
[ Ib_l_ph_mag , Ib_l_ph_theta ] = p o l a r ( Ib_l_ph ) ;
p r i n t f ( ’ \ nB phase l o a d c u r r e n t rms magnitude = %f \n ’ , Ib_l_ph_mag )
p r i n t f ( ’ \ nB phase l o a d c u r r e n t a n g l e = %f \n ’ , Ib_l_ph_theta . ∗ 180
. / %p i )
p r i n t f ( ’ \ n\n
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\
n\n ’ )
// Now a p p l y t h e wye−>d e l t a t r a n s f o r m a t i o n t o t h e s e v a l u e s
p r i n t f ( ’THE DELTA EQUIVALENT CONDUCTANCES\n ’ )
p r i n t f(’−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\n ’ )
Gt = Ga + Gb + Gc
Gab = Ga . ∗ Gb . / Gt
Gbc = Gb . ∗ Gc . / Gt
Gca = Gc . ∗ Ga . / Gt
// As a c h e c k u s e t h e d e l t a t o wye t r a n s f o r m a t i o n t o make s u r e t h a t
// we g e t back t h e o r i g i n a l a d m i t t a n c e s
Zab = 1 . / Gab ;
Zbc = 1 . / Gbc ;
Zca = 1 . / Gca ;
// Now a p p l y t h e e x p r e s s i o n s t o c a l c u l a t e t h e b a l a n c i n g a d m i t t a n c e s
p r i n t f ( ’ \ n\n ’ )
p r i n t f ( ’THE DELTA BALANCING SUSCEPTANCES\n ’ )
p r i n t f(’−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\n ’ )
Bab = %i . ∗ ( Gca − Gbc ) . / s q r t ( 3 )
Bbc = %i . ∗ ( Gab − Gca ) . / s q r t ( 3 )
C.3 Various SciLab Files 119
// now c a l c u l a t e t h e b a l a n c i n g c u r r e n t s
// f i r s t l y c a l c u l a t e t h e l i n e t o l i n e v o l t a g e s
Vabrms = Varms − Vbrms
Vbcrms = Vbrms − Vcrms
Vcarms = Vcrms − Varms
// now c a l c u l a t e t h e c u r r e n t s f l o w i n g i n t o t h e d e l t a network
p r i n t f ( ’ \ n C u r r e n t s c a l c u l a t e d from s u s c e p t a n c e s \n\n ’ )
Iarms = Vabrms . ∗ Bab − Vcarms . ∗ Bca
Ibrms = Vbcrms . ∗ Bbc − Vabrms . ∗ Bab
I c r m s = Vcarms . ∗ Bca − Vbcrms . ∗ Bbc
// [ Ia , theta_a ] = p o l a r ( Iarms )
// [ Ib , theta_b ] = p o l a r ( Ibrms )
// [ I c , theta_c ] = p o l a r ( I c r m s )
// now c a l c u l a t e t h e c o m b i n a t i o n o f t h e u n b a l a n c e d c u r r e n t and t h e
balanced
// c u r r e n t
p r i n t f ( ’ \ n\nThe t o t a l c u r r e n t s f l o w i n g ( under s u s c e p t a n c e c a l c ) a r e
: \ n\n ’ )
I a t = Iarms + Iuarms
I b t = Ibrms + Iubrms
I c t = I c r m s + Iucrms
// now c a l c u l a t e t h e c u r r e n t p h a s o r s
p r i n t f ( ’ \ n\ n C u r r e n t s a s p h a s o r s ( under s u s c e p t a n c e c a l c ) \n\n ’ )
[ Ia , theta_a ] = p o l a r ( I a t ) ;
[ Ib , theta_b ] = p o l a r ( I b t ) ;
[ I c , theta_c ] = p o l a r ( I c t ) ;
// Now c a l c u l a t e t h e component v a l u e s f o r t h e d e l t a c o n n e c t e d l o a d .
i f imag ( Bab ) < 0 then
La_d = 1 . 0 . / ( omega . ∗ abs ( imag ( Bab ) ) ) ;
p r i n t f ( ’ D e l t a i n d u c t o r Lab = %f \n ’ , La_d )
p r i n t f ( ’ Za=%f \n\n ’ , omega . ∗ La_d )
else
// Bab >= 0
i f Bab == 0 then
p r i n t f ( ’ Bab i s z e r o \n ’ )
e l s e // Bab >0
Ca_d = abs ( imag ( Bab ) ) . / omega ;
p r i n t f ( ’ D e l t a c a p a c i t o r Cab = %f \n ’ , Ca_d)
p r i n t f ( ’ Za=%f \n\n ’ , 1 . / ( omega . ∗ Ca_d) )
end
end
p r i n t f ( ’ Bbc i s z e r o \n ’ )
e l s e // Bbc > 0
Cb_d = abs ( imag ( Bbc ) ) . / omega ;
p r i n t f ( ’ D e l t a c a p a c i t o r Cbc = %f \n ’ , Cb_d)
p r i n t f ( ’ Zb=%f \n\n ’ , 1 . / ( omega . ∗ Cb_d) )
end
end
// Now c a l c u l a t e t h e v a l u e s o f t h e b a l a n c i n g c u r r e n t s from t h e
impedances
// c a l c u l a t e d from t h e components c a l c u l a t e d −− NOTE f o r d e l t a
circuit
// f i r s t l y c a l c u l a t e t h e impedances
i f imag ( Bab ) < 0 then
// i n d u c t o r
Zab = %i . ∗ omega . ∗ La_d
e l s e // Bab >= 0
i f Bab == 0 then
p r i n t f ( ’ Bab i s z e r o \n ’ )
else
// c a p a c i t o r
Zab = −%i . ∗ 1 . / ( omega . ∗ Ca_d)
end
end
// now c a l c u l a t e t h e c u r r e n t s u s i n g t h e impedance v a l u e s c a l c u l a t e d
from t h e
// component v a l u e s worked out .
// now c a l c u l a t e t h e c o m b i n a t i o n o f t h e u n b a l a n c e d c u r r e n t and t h e
balanced
// c u r r e n t
p r i n t f ( ’ \ n\nThe t o t a l c u r r e n t s f l o w i n g from impedance c a l c u l a t i o n
a r e : \ n\n ’ )
I a t = Iarms + Iuarms
I b t = Ibrms + Iubrms
I c t = I c r m s + Iucrms
// now c a l c u l a t e t h e c u r r e n t p h a s o r s
p r i n t f ( ’ \ n\ n C u r r e n t s under impedance c a l c u l a t i o n a s p h a s o r s : \ n\n ’ )
[ Ia , theta_a ] = p o l a r ( I a t ) ;
[ Ib , theta_b ] = p o l a r ( I b t ) ;
[ I c , theta_c ] = p o l a r ( I c t ) ;
// Now c a l c u l a t e t h e e q u i v a l e n t wye c o n n e c t e d l o a d f o r t h e
balancing c i r c u i t
// Check t o make s u r e t h a t t h e denominator i s not z e r o
B_temp = Bab . ∗ Bbc + Bbc . ∗ Bca + Bca . ∗ Bab ;
p r i n t f ( ’ \ n\n ’ )
p r i n t f ( ’THE WYE BALANCING SUSCEPTANCES\n ’ )
p r i n t f(’−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−\n ’ )
i f ( Bbc <> 0 . 0 ) then
Ba = B_temp . / Bbc
else
p r i n t f ( ’ Bbc i s z e r o ! \ n ’ )
i f B_temp == 0 then
p r i n t f ( ’ Ba = 0 => Xa = i n f i n i t y \n\n ’ )
Ba = −%i . ∗ 1 e −10;
else
// e n t e r h e r e i f Bbc = 0 , B_temp <>0
p r i n t f ( ’ Ba = i n f i n i t y => Xa = 0\n\n ’ )
// make Ba a l a r g e number
Ba = −%i . ∗ 1 e8 ;
end
end
p r i n t f ( ’ Bb = 0 => Xa = i n f i n i t y \n\n ’ )
Bb = −%i . ∗ 1 e −10;
else
// e n t e r h e r e i f Bca = 0 , B_temp <>0
p r i n t f ( ’ Bb = i n f i n i t y => Xa = 0\n\ ns ’ )
// make Bb a l a r g e number
Bb = −%i . ∗ 1 e8 ;
end
end
p r i n t f ( ’ \ n\n
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
n\n ’ )
//
// R e v i s i o n 1 . 2 2005/09/05 1 1 : 5 2 : 4 4 reb538
// j u s t a t e s t t o s e e i f v e r s i n c o n t r o l working OK
//
// R e v i s i o n 1 . 1 2005/09/05 1 1 : 5 0 : 5 8 reb538
// I n i t i a l r e v i s i o n
//
//
/////////////////////////////////////////////////////////////////////////////////
clear
// s e t up any c o n s t a n t s
// a n g l e o f Vab p h a s o r
theta_ab = 0 . 0 ;
// s e t up t h e r a n g e o f a n g l e s f o r t h e n e g a t i v e s e q u e n c e
theta_an = [ 0 : 0 . 1 : 2 . ∗ %p i ] ;
y = 1 . / s q r t ( 3 ) . ∗ c o s ( theta_ab − theta_an − %p i . / 6 ) ;
z = 1 . / s q r t ( 3 ) . ∗ c o s ( theta_ab − theta_an + %p i . / 2 ) ;
gam = atan ( ( z − y ) , s q r t ( 3 ) . ∗ ( y + z ) ) ;
// a n g l e o f t h e z e r o s e q u e n c e c u r r e n t
alpha_0 = theta_ab − gam ;
// n o r m a l i s e d a m p l i t u d e o f t h e z e r o s e q u e n c e c u r r e n t .
I_0d = − ( y + z ) . / c o s ( gam ) ;
c l f (0) ;
f 0=s c f ( 0 ) ;
p l o t 2 d ( theta_an , alpha_0 ) ;
124 Software Listings
c l f (1) ;
f 1=s c f ( 1 ) ;
p l o t 2 d ( theta_an , I_0d ) ;
// g e n e r a t e e x p r e s s i o n s f o r t h e n e g a t i v e s e q u e n c e c u r r e n t s .
g e t f ( ’ . / polar_to_rect . s c i ’ )
Iann = p o l a r _ t o _ r e c t ( 1 , theta_an ) ;
Ibnn = p o l a r _ t o _ r e c t ( 1 , theta_an + 2 . ∗ %p i . / 3 ) ;
I c n n = p o l a r _ t o _ r e c t ( 1 , theta_an + 4 . ∗ %p i . / 3 ) ;
// g e n e r a t e r e c t a n u l a r e x p r e s s i o n s f o r t h e z e r o s e q u e n c e c u r r e n t
I0_d = p o l a r _ t o _ r e c t ( I_0d , alpha_0 ) ;
// now g e n e r a t e t h e magnitudes o f t h e c u r r e n t s
c l f (2) ;
f2 = scf (2) ;
p l o t ( theta_an , I_ab0_m , ’ k − ’) ;
p l o t ( theta_an , I_bc0_m , ’ k−−’) ;
p l o t ( theta_an , I_ca0_m , ’k −. ’) ;
%
% I d : wye_power_bal_zero_seq_volt_inj .m, v 1 . 2 2007/01/14 1 4 : 3 8 : 3 6
e c t \ r e b 5 3 8 Exp
%
% Zero s e q u e n c e v o l t a g e i n j e c t i o n program f o r t h e WYE c o n n e c t e d
% S t a t i c Compensator (STATCOM) .
%
% Revision : 1.2
%
% C r e a t e d on : January 1 2 , 2007
% C r e a t e d by : Robert Betz
C.3 Various SciLab Files 125
%
% L a s t m o d i f i e d : Date : 2007/01/14 1 4 : 3 8 : 3 6
% M o d i f i e d by : Author : e c t \ r e b 5 3 8
%
% This program a l l o w s t h e i n p u t o f an a r b i t r a r y s e t o f t h r e e
% phase v a l u e s , then g e n e r a t e s t h e s y m m e t r i c a l components o f
% t h i s waveform . Using t h e s e s y m m e t r i c a l components , t h e
% program then c a l c u l a t e s t h e z e r o s e q u e n c e v o l t a g e p h a s o r
% t h a t would need t o be i n j e c t e d i n t o t h e wye c o n n e c t e d STATCOM
% system t o e n s u r e t h a t t h e i n d i v i d u a l a v e r a g e phase powers o f t h e
% STATCOM t o z e r o −− i . e . t h a t r e a l power t o t h e STATCOM i s z e r o .
%
% NB: The wye c o n n e c t e d STATCOM i s assumed t o NOT have a n e u t r a l
% connection . T h e r e f o r e t h e r e can be no z e r o s e q u e n c e c u r r e n t s
% f l o w i n g i n t o t h e STATCOM.
%
% I t i s assumed i n t h e e x p r e s s i o n s below t h a t t h e STATCOM c o n t r o l
% i s such t h a t i t i s d e l i v e r i n g both p o s i t i v e and n e g a t i v e s e q u e n c e
% c u r r e n t s , and t h e r e a r e p o s i t i v e and n e g a t i v e s e q u e n c e v o l t a g e s
% p r e s e n t on t h e t e r m i n a l s o f t h e STATCOM. No p a r t i c u l a r v a l u e s
for
% t h e s e c u r r e n t s a r e assumed . The c a l c u l a t i o n s a r e c a r r i e d out f o r
% g e n e r a l v a l u e s o f t h e s e q u a n t i t i e s , s i n c e t h e p o s i t i v e and
negative
% s e q u e n c e c u r r e n t s a r e d e f i n e d by t h e o b j e c t i v e s o f t h e c o n t r o l
% s t r a t e g i e s b e i n g employed .
%
% The b a s i c a s s u m p t i o n made i n t h i s work i s t h a t t h e t r a d i t i o n a l
% r e a l power b a l a n c e i s s e t t o be z e r o −− i . e . t h a t VI\ c o s \ p h i
% e q u i v a l e n t f o r both t h e p o s i t i v e and n e g a t i v e s e q u e n c e components
% a r e z e r o , and t h e STATCOM i s s u p p l y i n g VArs t o t h e system .
%
% The s y m m e t r i c a l component c a l c u l a t i o n s a r e c a r r i e d out u s i n g
% a m a t r i x form o f t h e s y m m e t r i c a l components t r a n s f o r m a t i o n
% as developed in :
%
% " Elements o f Power System A n a l y s i s "
%
% by William D. S t e v e n s o n J r . ISBN 0−07−061285−4
%
%
% Log : wye_power_bal_zero_seq_volt_inj .m, v
% Revision 1.2 2007/01/14 1 4 : 3 8 : 3 6 ect \ reb538
% Have c a r r i e d out major c h a n g e s t o t h i s f i l e t o c a l c u l a t e t h e z e r o
sequence
% i n j e c t i o n t o e q u a l i s e t h e powers i n t h e phase l e g s when t h e r e a r e
% u n b a l a n c e d v o l t a g e s a t t h e s o u r c e . The f i l e seems t o work a f t e r
considerable
% a l t e r a t i o n s . One o f t h e key c h a n g e s was t h e c o n v e r s i o n o f t h e
source
% s e q u e n c e phase v o l t a g e s t o l i n e v o l t a g e s , and then back a g a i n .
This
% p r o c e s s e l i m i n a t e s t h e z e r o s e q u e n c e from t h e STATCOM and c h a n g e s
the
% calculations .
%
% Revision 1.1 2007/01/12 0 6 : 2 3 : 4 3 ect \ reb538
% F i r s t Matlab v e r s i o n o f t h e s e f i l e s . Have been t e s t e s s o t h a t
they perform
% t h e same a s t h e S c i l a b v e r s i o n , but minus t h e S c i l a b numeric
problem
% of course .
126 Software Listings
%
% Revision 1.2 2007/01/12 0 5 : 2 8 : 2 6 ect \ reb538
% Have o n l y g o t p a r t o f t h e way i n t o d e b u g g i n g t h i s f i l e and have
found what
% a p p e a r s t o be a major bug i n S c i l a b t h a t means t h a t any work I m
doing
% with i t i s p o t e n t i a l l y f l a w e d . The bug i s :
%
% −−>20 ∗ exp(% i ∗ 2 ∗ %p i / 3 )
% ans =
%
% −11. + 1 7 . 3 2 0 5 0 8 i
%
% which i s i n c o r r e c t . The r e a l p a r t s h o u l d be − 1 0 . 0 .
%
% Revision 1.1 2007/01/12 0 2 : 2 9 : 4 6 ect \ reb538
% I n i t i a l v e r s i o n o f t h i s program . Has some c o n t e n t , but i t i s
incomplete at
% t h e moment .
%
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Clear a l l the v a r i a b l e s
%
clear
% D e f i n e a few c o n s t a n t s used
%
a = exp ( i ∗ 2 ∗ p i / 3 ) ;
% Now d e f i n e t h e v o l t a g e s t h a t ap pe ar on t h e t e r m i n a l s o f t h e
% STATCOM.
%
% NB: THE A−PHASE VOLTAGE I S THE REFERENCE FOR ALL THE PHASORS
% IN THE SYSTEM.
%
v a s = va_rms ;
vbs = vb_rms ∗ a ^ 2 ;
v c s = vc_rms ∗ a ;
%
V = [ vas , vbs , v c s ] ;
ph_to_line_n = s q r t ( 3 ) ∗ exp ( i ∗ − p i / 6 ) ;
line_to_ph_n = 1 / ( ph_to_line_n ) ;
% P o s i t i v e sequence l i n e voltages
%
Vsym_line ( : , 1 ) = Vsym ( : , 1 ) ∗ ph_to_line_p ;
% Negative sequence l i n e v o l t a g e s
%
Vsym_line ( : , 2 ) = Vsym ( : , 2 ) ∗ ph_to_line_n ;
% An i m p o r t a n t p o i n t h e r e i s t h e t h e r e i s not no z e r o z e q u e n c e
component
128 Software Listings
% Now g e t t h e r e f e r e n c e a n g l e f o r t h e p o s i t i v e s e q u e n c e
theta_pv = a n g l e (Vsym_ph ( 1 , 1 ) ) ;
% Get t h e r e f e r e n c e a n g l e f o r t h e n e g a t i v e s e q u e n c e .
%
theta_nv = a n g l e (Vsym_ph ( 1 , 2 ) ) ;
% We r e q u i r e t h e p o s i t i v e and n e g a t i v e s e q u e n c e component
% amplitudes
%
vp_rms = abs (Vsym_ph ( 1 , 1 ) ) ;
vn_rms = abs (Vsym_ph ( 1 , 2 ) ) ;
v0_rms = abs (Vsym_ph ( 1 , 3 ) ) ;
alpha_v0 = a n g l e (Vsym_ph ( 1 , 3 ) ) ;
% Now d e f i n e v a l u e s f o r t h e p o s i t i v e and n e g a t i v e s e q u e n c e c u r r e n t s
% t h a t a r e f o l l o w i n g i n t o t h e STATCOM. Note t h a t i t i s assumed
that
% t h e WYE c o n n e c t e d STATCOM has no n e u t r a l p o i n t c o n n e c t i o n ,
therefore
% t h e r e can be no z e r o s e q u e n c e c u r r e n t s f l o w i n g i n t o t h e STATCOM.
%
% F i r s t l y d e f i n e t h e a m p l i t u d e o f t h e s e q u e n c e components .
%
ip_rms = 3 0 ;
in_rms = 2 0 ;
% D e f i n e t h e phase a n g l e s o f t h e p o s i t i v e and n e g a t i v e s e q u e n c e
phasors .
% These a r e d e f i n e d r e l a t i v e t o t h e a−phase v o l t a g e .
%
% t h e t a _ p i = exp ( i . ∗ [ 0 : 0 . 0 1 : 2 ∗ p i ] ) ;
% t h e t a _ n i = exp ( i . ∗ [ 0 : 0 . 0 1 : 2 ∗ p i ] ) ;
% t h e t a _ p i = theta_pv − p i / 2 ;
% S e t an a r b i t r a r y n e g a t i v e s e q u e n c e c u r r e n t a n g l e
theta_ni = pi / 5 ;
C.3 Various SciLab Files 129
% The f o l l o w i n g e x p r e s s i o n s e t s t h e p o s i t i v e s e q u e n c e power a n g l e
to
% compensate f o r any n e g a t i v e s e q u e n c e t h r e e phase power f l o w i n g .
This
% w i l l mean t h a t t h e t h r e e phase power w i l l be z e r o .
%
t h e t a _ p i = theta_pv − a c o s (−vn_rms ∗ in_rms / ( vp_rms ∗ ip_rms )
∗...
c o s ( theta_nv − t h e t a _ n i ) ) ;
% Now d e f i n e t h e p o s i t i v e and n e g a t i v e s e q u e n c e p h a s o r s .
%
iap = ip_rms . ∗ exp ( i ∗ t h e t a _ p i ) ;
ibp = ip_rms . ∗ a^2 . ∗ exp ( i ∗ t h e t a _ p i ) ;
icp = ip_rms . ∗ a . ∗ exp ( i ∗ t h e t a _ p i ) ;
i a n = in_rms . ∗ exp ( i ∗ t h e t a _ n i ) ;
i b n = in_rms . ∗ a . ∗ exp ( i ∗ t h e t a _ n i ) ;
i c n = in_rms . ∗ a^2 . ∗ exp ( i ∗ t h e t a _ n i ) ;
% Now c a l c u l a t e t h e f u l l r e a l power e x p r e s s i o n s a s a c h e c k t h a t
everything
% i s OK.
%
p a _ f u l l = v0_rms ∗ ip_rms ∗ c o s ( alpha_v0 − t h e t a _ p i ) + v0_rms ∗
in_rms ∗ . . .
c o s ( alpha_v0 − t h e t a _ n i ) + vp_rms ∗ in_rms ∗ c o s ( theta_pv −
theta_ni ) + . . .
+ vn_rms ∗ ip_rms ∗ c o s ( theta_nv − t h e t a _ p i ) + vp_rms ∗ ip_rms
∗ ...
c o s ( theta_pv − t h e t a _ p i ) + vn_rms ∗ in_rms ∗ c o s ( theta_nv −
theta_ni ) ;
% Apply a c h e c k t o t h e Pa , Pb e x p r e s s i o n s a f t e r m a n i p u l a t i o n
%
pa_full_man = v0_rms ∗ ( ip_rms ∗ c o s ( t h e t a _ p i ) + . . .
in_rms ∗ c o s ( t h e t a _ n i ) ) ∗ c o s ( alpha_v0 ) + . . .
130 Software Listings
v0_rms ∗ ( ip_rms ∗ s i n ( t h e t a _ p i ) + . . .
in_rms ∗ s i n ( t h e t a _ n i ) ) ∗ s i n ( alpha_v0 ) + . . .
vp_rms ∗ in_rms ∗ c o s ( theta_pv − t h e t a _ n i ) + . . .
vn_rms ∗ ip_rms ∗ c o s ( theta_nv − t h e t a _ p i ) + . . .
vp_rms ∗ ip_rms ∗ c o s ( theta_pv − t h e t a _ p i ) + . . .
vn_rms ∗ in_rms ∗ c o s ( theta_nv − t h e t a _ n i ) ;
% Now c a l c u l a t e t h e v a l u e s r e q u i r e d f o r t h e z e r o s e q u e n c e magnitude
% and a n g l e t o d r i v e t h e i n d i v i d u a l powers d i f f e r e n c e t o z e r o
between
% the i n d i v i d u a l phases .
%
% F i r s t l y c a l c u l a t e the constants involved .
%
% C o n s t a n t s f o r t h e e q u a t i o n a s s o c i a t e d with t h e Pa e q u a t i o n
%
k1 = ip_rms ∗ c o s ( t h e t a _ p i ) + in_rms ∗ c o s ( t h e t a _ n i ) ;
k2 = ip_rms ∗ s i n ( t h e t a _ p i ) + in_rms ∗ s i n ( t h e t a _ n i ) ;
k3 = vp_rms ∗ in_rms ∗ c o s ( theta_pv − t h e t a _ n i ) + . . .
vn_rms ∗ ip_rms ∗ c o s ( theta_nv − t h e t a _ p i ) ;
% Now f o r t h e c o n s t a n t s a s s o c i a t e d with t h e Pb e q u a t i o n
%
k4 = ip_rms ∗ c o s ( t h e t a _ p i + 4 ∗ p i / 3 ) + . . .
in_rms ∗ c o s ( t h e t a _ n i + 2 ∗ p i / 3 ) ;
k5 = ip_rms ∗ s i n ( t h e t a _ p i + 4 ∗ p i / 3 ) + . . .
in_rms ∗ s i n ( t h e t a _ n i + 2 ∗ p i / 3 ) ;
k6 = vp_rms ∗ in_rms ∗ c o s ( theta_pv − t h e t a _ n i + 2 ∗ p i / 3 ) + . . .
vn_rms ∗ ip_rms ∗ c o s ( theta_nv − t h e t a _ p i − 2 ∗ p i / 3 ) ;
% Now c a l c u l a t e t h e s o l u t i o n t o t h e s i m u l t a n e o u s e q u a t i o n
%
alpha_0 = atan2 ( ( k6 ∗ k1 − k3 ∗ k4 ) , ( k3 ∗ k5 − k6 ∗ k2 ) ) ;
% Now l o o k f o r t h e l e s s i l l −c o n d i t i o n e d e x p r e s s i o n t o c a l c u l a t e t h e
% magnitude o f t h e z e r o s e q u e n c e v o l t a g e
%
i f ( k4 ∗ c o s ( alpha_0 ) + k5 ∗ s i n ( alpha_0 ) ) > . . .
( k1 ∗ c o s ( alpha_0 ) + k2 ∗ s i n ( alpha_0 ) )
v0rms = −k6 / ( k4 ∗ c o s ( alpha_0 ) + k5 ∗ s i n ( alpha_0 ) ) ;
else
v0rms = −k3 / ( k1 ∗ c o s ( alpha_0 ) + k2 ∗ s i n ( alpha_0 ) ) ;
end
C.3 Various SciLab Files 131
Sa_new = va_new . ∗ c o n j ( i a ) ;
Sb_new = vb_new . ∗ c o n j ( i b ) ;
Sc_new = vc_new . ∗ c o n j ( i c ) ;
% C a l c u l a t e t h e n e g a t i v e s e q u e n c e power f o r i n t e r e s t
%
Sa_neg = Vsym_ph ( 1 , 2 ) ∗ c o n j ( i a ) ;
Sb_neg = Vsym_ph ( 2 , 2 ) ∗ c o n j ( i b ) ;
Sc_neg = Vsym_ph ( 3 , 2 ) ∗ c o n j ( i c ) ;
132 Software Listings
Bibliography
[6] P. Vas, Electrical Machines and Drives - A Space Vector Theory Approach.
Monographs in Electrical and Electronic Engineering, Oxford Univeristy
Press, 1992. ISBN: 0 19 859378 3.
[7] C. Hochgraf and R. H. Lasseter, “Statcom controls for operation with unbal-
anced voltages,” IEEE Transactions on Power Delivery, vol. 13, pp. 538–
544, Apr. 1998.
[8] H.-J. Jung, I.-Y. Suh, B.-S. Kim, R.-Y. Kim, S.-Y. Choi, and J.-H. Song,
“A study on DVR control for unbalanced voltage compensation,” in Applied
Power Electronics Conference and Exposition, 2002. APEC 2002. Seven-
teenth Annual IEEE, vol. 2, (Dallas, TX), pp. 1068–1073, Mar. 2002.
[12] K. Li, J. Liu, B. Wei, and Z. Wang, “Comparison of two control approaches
of static VAr generators for compensating source voltage unbalance in
three-phase three-wire systems,” in Power Electronics and Motion Control
Conference, 2004. IPEMC 2004. The 4th International, vol. 3, pp. 1213–
1218, Aug. 2004.