Professional Documents
Culture Documents
s
IS
VLGS
VLG1
Reg
IR
VLGR
I3 ld
I4
ld
Y Load
Line
I2
Motor
I3
VLG2
Delta Load
I4
It
VLG3
VLL 4
IM abc
Symmetrical Component
transformation matrix
as := 1 e
ts :=
j 120 deg
1 1 1
2
As := 1 as as
1 a s a s2
j 30 deg
T := 0
0
0 0
ts 0
0 ts
2 1 0
W := 0 2 1
3
1 0 2
1
1 1 0
Matrix used to convert line-to-neutral D := 0 1 1
Unity matrix
1 0 0
U := 0 1 0
0 0 1
1 0 1
DI := 1 1 0
0 1 1
Line data:
2.5'
a
4.5'
c
3.0'
Neutral Conductor: 4/0 6/1 ACSR
4.0'
miles
n
25.0'
d := 2.5 + j 29
d := 7.0 + j 29
d := 4.0 + j 25
Dx
Sx
n, m
n, m
m := 1 .. 4
:= d d
n
2.5
0
2.5
0
Dx =
7
4.5
5.6569 4.272
5.6569
4.5 4.272
0
58.0539
58
58.1743 54.0208
Sx =
58.4209 58.1743
58
54.0833
54.1479 54.0208 54.0833
50
:= d d
n
Dia
i := 1 .. 3
GMR := .0244
r := .306
Dia := 0.741
RD :=
j := 1 .. 3
GMR := .00814
r := .592
Dia := 0.563
RD :=
Dia
4
24
RD = 0.0309
1
24
4
RD = 0.0235
4
i, i
:= GMR
Dx
4, 4
:= GMR
Dx =
7
4.5 0.0244
5
5.6569 4.272
5
0.0081
ft.
Carson's equations:
zp
:= 0.0953 + j .12134 ln
zp
:= r + zp
n, m
n, n
+ 7.93402
Dx
n, m
n, n
0.4013 +
0.0953 +
zp =
0.0953 +
0.0953 +
zij := submatrix( zp , 1 , 3 , 1 , 3 )
zin := submatrix( zp , 1 , 3 , 4 , 4 )
0.0953 + 0.7524j
zin = 0.0953 + 0.7865j
0.0953 + 0.7674j
znj := submatrix( zp , 4 , 4 , 1 , 3 )
znn := submatrix( zp , 4 , 4 , 4 , 4 )
Kron Reduction:
znj
n, m
Sxn , m
Dxn , m
:= 11.17689 ln
n, n
Sxn , n
RDn
:= 11.17689 ln
84.2542
35.1522
P=
23.7147
25.2469
pij := submatrix( P , 1 , 3 , 1 , 3 )
pin := submatrix( P , 1 , 3 , 4 , 4 )
25.2469
pin = 28.359
26.6131
pnj := submatrix( P , 4 , 4 , 1 , 3 )
pnn := submatrix( P , 4 , 4 , 4 , 4 )
pnn = ( 85.6659 )
Kron reduction:
Pabc := pij pin pnn
pnj
Cabc := Pabc
F/mile
S/mile
Z012 := As
Zabc As
aline := U +
1
2
6
6
5
2.3575j 10
1.0832j 10
1.4159j 10
Zabc Yabc
b line := Zabc
cline := Yabc +
13
6
12
6
11
5
1.4159j 10
2.3575j 10
+ 1.0832j 10
4.0481 10
2.2962 10
1.5637 10
d line := aline
Aline := aline
Bline := aline
b line
kVLLlo
kVLNlo = 7.1996
Zbaselo :=
kVLLlo 1000
Zbaselo = 12.9584
kVA
Define Zt matrix:
0
Zsub 0
Zsubabc := 0 Zsub 0
0
0 Zsub
kVLLhi
n t = 15.9732
kVLNlo
0 2 1
asub :=
1 0 2
3
2 1 0
n t
10.6488 5.3244
0
0
10.6488
asub = 5.3244
0
10.6488 5.3244
0.69 6.8996j
0
1.3799 13.7992j
b sub =
0
1.3799 13.7992j 0.69 6.8996j
0 0 0
csub := 0 0 0
0 0 0
C:\Milsoft 2009 Evaluation\Student test feeder\Try 2.xmcd
1 1 0
d sub := 0 1 1
nt
1 0 1
0.0626 0.0626
0
0.0626 0.0626
d sub =
0
0.0626
0.0626
Bsub := asub
0
0
0.1296 + 1.2958j
0
0.1296 + 1.2958j
0
Bsub =
0
0
0.1296 + 1.2958j
b sub
1 0 1
Asub := 1 1 0
nt
0 1 1
0
0.0626
0.0626
0
Asub = 0.0626 0.0626
0.0626 0.0626
0
CTc := 0.1
CT :=
CTp
CTc
CT = 5000
Compensator settings:
RComp := 4.9
Zohms :=
XComp := 10.0
RComp + j XComp
CTc
volts
Zohms = 49 + 100j
Ohms
Vset
Vlevel := Vset
V
set
Set initial tap positions:
0
Tap := 0
0
Compute initial matrices:
ar := 1 .00625 Tap
i
1
ar = 1
1
ar1 0 0
0
0
a
r
aR :=
2
0 0 ar
3
d R := aR
1 0 0
aR = 0 1 0
0 0 1
1 0 0
dR = 0 1 0
0 0 1
1 0 0
AR = 0 1 0
0 0 1
AR := d R
kVLNs :=
kVLLs
3
kVLNs = 66.3953
Vpu s := 1.05000
Z1 sys := 5.6261 + j 27.408
on 115 kV side
on 115 kV side
Z1 sys 0
Zsys 012 := 0
0
0
Z1 sys
0
0
18.5865 + 122.4028j
0
5.6261 + 27.408j
0
Zsys 012 =
0
0
5.6261 + 27.408j
Zsys abc := As
Zsys 012 As
1 0 0
asys = 0 1 0
0 0 1
0 0 0
csys := 0 0 0
0 0 0
d sys := asys
Asys := U
Bsys := b sys
Input node 3 wye connected load data:
kW3 := 2000
PF 3 := .95
Lagging
kW3 := 1500
PF 3 := .95
Lagging
kW3 := 1000
PF 3 := .90
Lagging
SL3 :=
kW3
PF 3
( )
2000 + 657.3682j
SL3 = 1500 + 493.0262j
1000 + 484.3221j
j acos PF3
kVLLx hi := 12.470Y
kVLLx lo := .480 Y
n x :=
kVLLx hi
3
kVLNxhi
kVLNxlo :=
kVLLx lo
3
n x = 25.9792
kVLNxlo
ax :=
kVLLx hi
kVLLx lo
ax = 25.9792
Zbase :=
kVLLx lo 1000
kVAx
Zbase = 0.0922
Zt := Zpux Zbase
Zt = 0.0009 + 0.0046j
Zt 0 0
Zt abc := 0 Zt 0
0 0 Z
t
0
0
0.0009 + 0.0046j
0
0.0009 + 0.0046j
0
Zt abc =
0
0
0.0009 + 0.0046j
10
AV := n x U
0
0
25.9792
AV =
0
25.9792
0
0
25.9792
0
ax := AV
0
0
25.9792
0
25.9792
0
ax =
0
25.9792
0
d x := ax
0
0.0385 0
0
0.0385
0
dx =
0
0.0385
0
0
0
0.0239 + 0.1197j
0
0.0239
+
0.1197j
0
bx =
0
0
0.0239 + 0.1197j
b x := AV Zt abc
0 0 0
cx := 0 0 0
0 0 0
Ax := AV
0
0.0385 0
0
0.0385
0
Ax =
0
0.0385
0
0
0
0.0009 + 0.0046j
Bx =
0
0.0009 + 0.0046j
0
0
0
0.0009 + 0.0046j
Bx := Zt abc
PF 4 := .9
Lagging
kVA4 := 500
PF 4 := .85
Lagging
kVA4 := 300
PF 4 := .95
Lagging
1
2
SL4 := kVA4 e
i
1
2
( )
j acos PF4
360 + 174.356j
SL4 = 425 + 263.3913j
285 + 93.675j
11
Input the three-phase Hp (kVA) and line-to-line voltage rating of the machine
kVA := 1200
VLL := 480
Prot := 0
Rs := 0.0053
Xs := 0.106
per-unit
Rr := 0.007
Xr := 0.12
per-unit
Xm := 4.0
per-unit
Zbase :=
VLL
kVA 1000
Zbase = 0.192
Rs := Rs Zbase
Rs = 0.001018
Xs := Xs Zbase
Xs = 0.020352
Rr := Rr Zbase
Rr = 0.001344
Xr := Xr Zbase
Xr = 0.02304
Xm := Xm Zbase
Xm = 0.768
Define impedances:
Zs := Rs + j Xs
Zs = 0.001 + 0.0204j
Zr := Rr + j Xr
Zr = 0.0013 + 0.023j
Ym := j
Zm :=
Ym = 1.3021j
Xm
Zm = 0.768j
Ym
RL :=
1 s1
R
s1 r
s := 2 s
2
s = 1.995
RL = 0.2675
1
1s
RL :=
2
Rr
RL = 0.0007
2
ZR := Zr + RL
1
ZR := Zr + RL
2
12
ZR = 0.2688 + 0.023j
ZM := Zs +
1
ZM := Zs +
2
Zm ZR
ZM = 0.2282 + 0.1199j
Zm + ZR
Zm ZR
Zm + ZR
Zm = 0.768j
ZR = 0.0007 + 0.023j
ZM = 0.0017 + 0.0427j
2
1
ZM
YM :=
2
1
ZM
0
0
1
0
YT := 0 ts YM1
0
0
ts YM
2
YMabc := As YT As
ELL := 115000 e
operating PU voltage:
Epu := 1.05
j 30 deg
arg( ELL)
ELL = 120750
deg
= 30
ELL
2
ELLABC := as ELL
a ELL
s
ELLABC
arg ELLABC
deg
120750
120750
30
-90
120750
150
)=
13
ELGABC := W ELLABC
ELGABC
0
Istart := 0
0
Iter :=
arg ELGABC
deg
69715.045
69715.045
0
-120
69715.045
120
)=
Tol := .0000001
IS Istart
IR Istart
I2 Istart
I3 Istart
I4 Istart
Vold 0 ELGABC
0
Told 0
0
for m 1 .. 3
for n 1 .. 200
VRLG Asub ELGABC Bsub IR
V2LG AR VRLG
V3LG Aline V2LG Bline I3
V4LG Ax V3LG Bx I4
V4LL D V4LG
3
break if
V4LL Vold
k
k= 1
< Tol
Vold V4LL
for i 1 .. 3
IMabc YMabc V4LL
SL3 1000
i
I3ld
i
V3LG
i
I4del
i
SL4 1000
i
V4
14
V4LL
I4ld DI I4del
I4 IMabc + I4ld
It cx V4LG + d x I4
I3 It + I3ld
I2 cline V3LG + d line I3
IR d R I2
IS csub V2LG + d sub I2
nm n m
V2LG
Vcomp
Icomp
Npt
I2
CT
Vrelay
( k)
ar 1 .00625 Tap
k
1 0 0
ar
1
0
AR 0
ar
2
1
0 0 ar
3
d R AR
Told Tap
Out
1, 1
VRLG
Out
1, 2
Vrelay
Out
1, 3
Out
2, 1
V2LG
Out
2, 2
V3LG
Out
2, 3
V4LG
Out
Tap
V4
15
V4LL
Out
2, 4
Out
3, 1
Out
3, 2
IR
Out
3, 3
I2
Out
3, 4
I3
Out
3, 5
I3ld
Out
3, 6
It
Out
3, 7
I4
Out
3, 8
I4ld
Out
3, 9
I4del
Out
3 , 10
IMabc
Out
3 , 11
Vcomp
Out
3 , 12
Icomp
Out
4, 1
Out
4, 2
IS
nm
AR
Out
16
Final Results
Iterations:
Iterationstotal := Iter
Iterationstotal = 39
4, 1
Compensator results:
Vcomp := Iter
3 , 11
Icomp := Iter
3 , 12
Vrelay := Iter
1, 2
Vcomp
arg Vcomp
deg
)=
131.4111
129.6442
-33.5411
-152.8346
129.0842
87.954
Icomp
arg Icomp
deg
)=
0.0754
0.0621
-56.1665
-176.3531
0.0487
57.5493
Vrelay
125.2262
124.4575
124.5935
arg Vrelay
deg
)=
-36.0745
-154.8971
86.5765
Tap := Iter
1, 3
12
Tap = 10
8
AR := Iter
0
1.0811 0
0
1.0667
0
AR =
0
1.0526
0
d R := AR
0
1.0811 0
0
1.0667
0
dR =
0
1.0526
0
4, 2
17
Node Voltages:
VRLG := Iter
1, 1
VRLG
arg VRLG
deg
)=
7293.3183
7341.1016
-33.5411
-152.8346
7357.8005
87.954
VRLG
Npt
121.5553
122.3517
122.63
V2LG := Iter
2, 1
V3LG := Iter
2, 2
V2LG
arg V2LG
deg
)=
7884.6685
7778.6507
-33.5411
-152.8346
7745.0531
87.954
V3LG
arg V3LG
deg
)=
7341.6238
7611.8194
-36.5216
-155.3708
7484.1398
87.1687
V2LG
Npt
131.4111
129.6442
129.0842
V3LG
Npt
122.3604
126.8637
124.7357
NLNpt :=
120
NLNpt = 2.3094
480
NLLpt :=
120
NLLpt = 4
V4LG := Iter
2, 3
V4LG
arg V4LG
deg
)=
276.3107
285.3829
-38.3838
-157.3778
279.6403
85.5233
V4LG
NLNpt
119.646
123.5744
121.0878
18
V4LL := Iter
2, 4
arg V4LL
V4LL
deg
)=
483.9787
482.0254
-7.3357
-126.2834
490.6663
113.3869
V4LL
NLLpt
120.9947
120.5063
122.6666
Line currents:
( i)
arg IS
IS := Iter
3, 1
IR := Iter
3, 2
I2 := Iter
3, 3
I3 := Iter
3, 4
It := Iter
3, 6
I4 := Iter
3, 7
IS
deg
37.3522
30.9828
-29.4378
-152.9058
32.8437
98.6629
IR
( )=
arg IR
deg
407.3344
328.9488
-56.1665
-176.3531
256.5368
57.5493
I2
( )=
arg I2
deg
376.7843
310.4454
-56.1665
-176.3531
243.71
57.5493
I3
( )=
arg I3
deg
376.8376
310.4806
-56.1807
-176.3733
243.7526
57.5288
It
( )=
arg It
deg
90.4713
103.7945
-60.8263
178.0088
96.121
51.6566
I4
( )=
arg I4
deg
2350.3688
2696.4947
-60.8263
178.0088
2497 1423
51 6566
19
2497.1423
Load currents:
I3ld := Iter
3, 5
I4ld := Iter
3, 8
I4del := Iter
3, 9
IMabc := Iter
3 , 10
I3ld
( )=
arg I3ld
51.6566
deg
286.7572
207.4336
-54.7165
-173.5657
148.4621
61.3268
I4ld
( )=
arg I4
deg
1297.7829
1655.2656
-60.8263
178.0088
1347.2413
51.6566
I4del
arg I4del
deg
)=
826.4827
1037.2898
-33.1776
-158.0718
611.4134
95.1921
IMabc
arg IMabc
deg
)=
1068.1972
1041.272
-68.0882
178.4162
1156.8943
56.2792
20
V4LG := W V4LL
SM :=
V4LG IMabc
i
258.8482 + 154.8569j
SM = 262.382 + 120.7152j
288.4544 + 150.5724j
1000
( i)
0.8582
PF = 0.9085
0.8865
Re SM
PF :=
i
SM
SMtotal :=
SM
k= 1
SMtotal = 914.9799
PF total :=
Re( SMtotal)
PF total = 0.8849
SMtotal
ST :=
V4LG I4
608.0488 + 266.0076j
ST = 677.229 + 317.4288j
594.4067 + 374.1303j
1000
STtotal :=
ST
k= 1
STtotal = 2109.5374
21
ELGABC
Epu
Eth2
arg Eth2
7199.5579
7199.5579
7199.5579
deg
)=
-30
-150
90
Eth3
arg Eth3
deg
)=
7199.6249
7199.615
-30.0002
-150.0003
7199.6193
89.9998
22
Eth4 := Ax Eth3
Eth4
arg Eth4
deg
)=
277.1307
277.1303
-30.0002
-150.0003
277.1305
89.9998
Y := Zth4
IP abc
arg IP abc
deg
)=
30249.8889
31040.9507
-104.993
132.7553
30004.7781
12.6243
Ys :=
i
k= 1
i, k
11.3824 52.527j
IM =
Ys =i 11.5194 52.2611j
12.1495 53.8874j
23
IPabc1
IPabc2
IPabc3
IP s :=
0
0
0
0
Define coefficient matrix for three-phase fault:
0
C :=
0
0
0
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
2, 2
3, 2
1, 3
Ys
3
0
0
2, 3
3, 3
0 0
0 0
0 0
1 1
Solve Equation:
X := C
IP s
arg Ifabc4
deg
)=
30323.7013
31095.0381
-105.2026
132.9785
29868.831
12.5949
Ifabcline := d x Ifabc4
Ifabcline
arg Ifabcline
deg
1167.2315
1196.9221
-105.2026
132.9785
1149.7224
12.5949
)=
24
Ifabcsource
arg Ifabcsource
deg
129.3399
127.4826
-75.7117
162.1265
124.2033
43.9574
)=
0
C :=
0
0
1
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
2, 2
3, 2
1, 3
2, 3
3, 3
0 0
0 0
1 0
0 1
Ys
3
0
0
Solve
Equation:
X := C
IP s
Define primary
currents:
Ifab4 := X
arg Ifab4
deg
) = 76.266
26892.9605
26892.9605
0
Ifabline := d x Ifab4
Ifabline
arg Ifabline
deg
) = 76.266
1035.1741
1035.1741
0
25
arg Ifabsource
Ifabsource
deg
129.6138
64.8069
-76.266
103.734
64.8069
103.734
)=
0
C :=
0
0
1
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
2, 2
3, 2
1, 3
2, 3
3, 3
0 0
0 0
0 0
1 1
Ys
3
0
0
Solve
Equation:
1
X := C IP s
Define primary
currents:
Ifbc4 := X
arg Ifbc4
deg
) = 163.4164
0
26286.1799
26286.1799
Ifbcline := d x Ifbc4
Ifbcline
arg Ifbcline
deg
) = 163.4164
0
1011.8177
1011.8177
Ifbcsource
arg Ifbcsource
deg
63.3447
126.6894
-16.5836
163.4164
63 3447
-16 5836
)=
26
63.3447
16.5836
0
C :=
0
0
0
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
2, 2
3, 2
1, 3
Ys
3
0
0
2, 3
3, 3
0 0
0 0
1 0
0 1
Solve Equation:
X := C
IP s
arg Ifca4
deg
) = 136.8115
25848.2264
0
25848.2264
Ifcaline := d x Ifca4
Ifcaline
arg Ifcaline
deg
) = 136.8115
994.9598
0
994.9598
Ifcasource
arg Ifcasource
deg
62.2893
62.2893
-136.8115
-136.8115
124.5786
43.1885
)=
27
0
C :=
0
0
0
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
2, 2
3, 2
1, 3
2, 3
3, 3
0 0
0 0
1 0
0 1
Ys
3
1
0
Solve
Equation:
X := C
IP s
Define primary
currents:
Ifag4 := X
arg Ifag4
deg
) = 107.1576
22590.118
0
0
Ifagline := d x Ifag4
Ifagline
arg Ifagline
deg
) = 107.1576
869.5474
0
0
Ifagsource
arg Ifagsource
deg
) = 107.1576
54.4379
0
54.4379
28
0
C :=
0
0
1
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
2, 2
3, 2
1, 3
2, 3
3, 3
0 0
0 0
0 0
0 1
Ys
3
1
0
Solve
Equation:
1
X := C IP s
Define primary
currents:
Ifbg4 := X
arg Ifbg4
deg
) = 133.0582
0
22738.8125
0
Ifbgline := d x Ifbg4
arg Ifbgline
Ifbgline
deg
) = 133.0582
0
875.271
0
Ifbgsource
arg Ifbgsource
) = 46.9418
deg
54.7962
54.7962
0
29
0
C :=
0
0
1
0 0 Y
Ys
1 0 Y
Ys
0 1 Y
1, 1
2, 1
3, 1
1, 2
1, 3
2, 2
Ys
3
1
0
2, 3
3, 2
3, 3
0 0
0 0
0 0
1 0
Solve Equation:
X := C
IP s
arg Ifcg4
) = 12.9355
deg
0
0
22654.536
Ifcgline := d x Ifcg4
Ifcgline
arg Ifcgline
deg
) = 12.9355
0
0
872.027
Ifcgsource
arg Ifcgsource
deg
) = 167.0645
0
54.5931
54.5931
30
Ifabc4
30323.7013
31095.0381
26892.9605
26892.9605
0
26286.1799
25848.2264
0
29868.831
26286.1799
25848.2264
Ifag4
Ifbg4
Ifcg4
22590.118
0
0
22738.8125
0
0
22654.536
Ifabline
Ifbcline
Ifcaline
1167.2315
1196.9221
1035.1741
1035.1741
0
1011.8177
994.9598
0
1149.7224
1011.8177
994.9598
Ifagline
Ifbgline
869.5474
0
0
875.271
Ifcgline
0
0
872.027
Ifabcsource
Ifabsource
Ifbcsource
Ifcasource
129.3399
127.4826
129.6138
64.8069
63.3447
126.6894
62.2893
62.2893
124.2033
64.8069
63.3447
124.5786
Ifagsource
Ifbgsource
54.4379
0
54.7962
54.7962
54.4379
Ifcgsource
0
54.5931
54 5931
31
54.5931
32