Professional Documents
Culture Documents
Transporta2on
and
Electrical
Power
Systems
Universidad
de
Oviedo
Base Magnitudes
39
12AC
16AC
13AC
15AC
9link
8link
AC/DC
14AC
AC/DC
AC/DC
6DC 7DC
4DC
10link
1DC
2DC
3DC
5DC
Base Currents :
Sb
Ib1 =
Base Current in AC subsystem
3V1b
Sb
Ib 2 =
Base Current in link subsystem
3V2b
S
Ib1 = b
Base Current in DC subsystem
Vdb
Bases :
Base Impedances :
Sb
Power
V1b2
es 3,Base
luego los
nodos de la topologa de DC comenzarn en 4
anterior el nt ahora
Z b1 =
Base Impedance in AC subsystem
y as se seguir con el criterio de numeracin ya explicado.
15AC
AC/DC
iLEk
V12Vcc
Z cc _ t =
100Sn
S
I1 = n
3V1
P
Rcc _ t = cu2
3I1
V22
4DC
Z eq = X eq =
Scc Figura 4.9: Detalle de ecuaciones del rectificador.
Conmutation Reactance Estimation
As pues la funcin que rige el frenado de un tren i es:
Z eq _ total = Z eq + Z cc + Rdiode
_ on
I2 =
Sn
3V2
X cc _ t = Z cc2 _ t Rcc2 _ t
edge k
iDC
ti
Pi
DC
vNi
DC
= m(vN
i Vmax )
Donde m = I0 /(Vmax V0 ).
DC
vN
i
DC
vN
i Vc
DC
Vc vN
i Vmax
DC
vN i Vmax
(4.28)
Input
data
All
input
data
will
be
in
a
folder
called
input
Input
folder
will
contain
the
next
txt
les:
bases.txt
lines_ac_IS.txt
lines_dc_IS.txt
links_acdc_IS.txt
nodes_ac_IS.txt
bases.txt
2e6
%Sb
(Base
Power)
24e3
%V1b
(Base
voltage,
primary
side)
1221
%V2b
(Base
voltage,
secondary
side)
1648.93
%Vdb=3*sqrt(2)*V2b/pi
(Base
Voltage,
DC
side)
500e6
%Scc
(Short
circuit
power
in
the
substa2ons)
50
%a
(Rated
frequency)
lines_ac_IS.txt
%number
from
to
R
(ohm)
X
(ohm)
1
1
2
7.21249
37.24256
2
1
4
7.69066
39.71168
3
1
6
6.47530
33.43600
4
2
5
1.99240
10.28800
5
3
4
4.00472
20.67888
6
3
5
1.89278
9.77360
Depending
of
the
kind
of
rec2er
lines_dc_IS.txt
%number
from
to
R(ohm)
1
1
2
0.59
2
2
3
1.18
3
2
4
0.354
4
3
4
0.59
links_acdc_IS.txt
%n
dc_node
ac_node
Sn
V1
V2
Pcu
Vcc
Rdiode_on
%
(from)
(to)
(VA)
(V)
(V)
(W)
(%)
(ohm)
1
1
2
1315e3
24000
1221
13300
5.5
1e-3
2
3
3
1315e3
24000
1221
13300
5.5
1e-3
3
4
4
1315e3
24000
1221
13300
5.5
1e-3
nodes_ac_IS.txt
%Type
1=PQ
(P
y
Q
(-)
generated
(+)
consumed),
2=PV,3=slack.
%Sub
|Type
|
Vd
|
Vq
|
P
|
Q
|
|V|
%num
|
|
V
|
V
|
W
|
VAr
|
V
1
3
25000
0
0
0
0
2
1
0
0
0
0
0
3
1
0
0
0
0
0
4
1
0
0
0
0
0
5
1
0
0
400000
0
0
6
1
0
0
1000000
800000
0
accumarray
ones
zeros
eye
transpose
or
horzcat
vertcat
blkdiag
diag
Number of equa2ons
n BDC R DC
B
R AC
B
X AC
B
n BAC
n BAC
( )
DC
n NDC
n NAC
n NAC
X AC
B
R AC
B
-I
AC T
( )
n BAC
n BAC
AC
S
AC T
( )
n BDC
DC
-I
n NDC n NAC n NAC n NDC
n NAC
Number of unknowns
iDC
E
AC
iEd
iAC
Eq
DC
it
iLE
AC iL
Ed = 0
iAC
Nd
iL
Eq
iAC
Nq
v DC
N
AC
nN
v AC
Nd
AC
v Nq
train_pos
deni2on:
train_pos=
[1
4
5
0.5
443e3/Sb
2
4
5
0.8
380e3/Sb
3
4
6
0.7
-80e3/Sb];
Each
row
represent
a
train,
it
must
contain
all
the
trains
in
the
system,
the
columns
will
represent:
rst
->
the
train
index
Second
->from
bus
(always
a
real
dc
node)
third
->
to
bus
(always
a
real
dc
node)
fourth
->
distance
in
(%)
from
the
train
to
the
from
node
sh
->
train
power
in
p.u.
(+
=
trac2on,
-=braking)
If
al
columns
except
the
rst
one
are
zero,
this
means
that
the
train
is
not
ac2ve
train_pos=
[1
0
0
0
443e3/Sb
2
10
11
0.9999
0
3
10
11
0.5
-80e3/Sb
Trains
1
and
6
must
4
11
12
0.5
-80e3/Sb
be
located
near
node
5
12
13
0
0
10.
6
0
0
0
-80e3/Sb
Trains
7
is
in
the
7
10
11
0.9999
-80e3/Sb
same
posi2on
as2
8
12
13
0.5
0
a n d
w h e n
i t s
9
12
13
0.3
-80e3/Sb];
r e a l l o c a t e d
t h e
distance
will
be
equal
or
greater
than
one
T r a i n
5
i s
i n
substa2on
12
so
it
should
be
reallocated
near
it
10
12
1
6
5
4
11
3
2 7
13
9 8
12
1
6
5
4
11
3
7 2
13
9 8
train_pos
=
1
10
11
0.0002
0.2215
6
10
11
0.0004
-0.0400
3
10
11
0.5000
-0.0400
7
10
11
0.9997
-0.0400
2
10
11
0.9998
0
4
11
12
0.5000
-0.0400
5
12
13
0.0001
0
9
12
13
0.3000
-0.0400
8
12
13
0.5000
0
length(aux)=0;
In
this
case
we
have
to
ac2vate
the
real
DC
line,
this
is
the
case
of
the
third
DC
lline
(11,13),
so
the
edge
75
should
be
ac2vated.
length(aux)=1;
Just
one
train
in
the
line,
for
instance
the
second
line
(11,12).
Is
the
row
number
6
in
the
train
pos
matrix,
using
the
matrix
Ady_dc_n_ts
and
the
indices
in
the
row
number
six
I
obtain
the
edges:
Ady_dc_n_ts(train_pos(6,1),
train_pos(6,2)
)
is
the
rst
edge
and
the
second
one
should
be
Ady_dc_n_ts(train_pos(6,1),
train_pos(6,3)
)
.
train_pos
=
1
10
11
0.0002
0.2215
6
10
11
0.0004
-0.0400
3
10
11
0.5000
-0.0400
7
10
11
0.9997
-0.0400
2
10
11
0.9998
0
4
11
12
0.5000
-0.0400
5
12
13
0.0001
0
9
12
13
0.3000
-0.0400
8
12
13
0.5000
0
Ady_dc_n_ts(train_pos(6,1),
train_pos(6,2)
)=
Ady_dc_n_ts(4,11)=40
Ady_dc_n_ts(train_pos(6,1),
train_pos(6,3)
)=
Ady_dc_n_ts(4,11)=41
10
13
12
5
1
6
Edge
41
4
9
8
Edge
40
11
3
7 2
train_pos
=
1
10
11
0.0002
0.2215
6
10
11
0.0004
-0.0400
3
10
11
0.5000
-0.0400
7
10
11
0.9997
-0.0400
2
10
11
0.9998
0
4
11
12
0.5000
-0.0400
5
12
13
0.0001
0
9
12
13
0.3000
-0.0400
8
12
13
0.5000
0
10
9
5
13
12
5
4
6
26
27
17
21
11
3
9 8
We
have
to
obtain
a
variable
with
two
rows
called
dc_ac2v,
the
rst
row
will
indicate
the
ac2ve
edges,
and
the
second
row
the
resistance
of
the
edges.
For
calcula2ng
the
resistance
we
have
to
calculate
the
distances
between
the
trains
and
the
trains
and
substa2ons
in
p.u.
and
then
mul2ply
this
value
by
the
resistance
of
the
DC
lines
in
the
matrix
line_dc.
For
instance,
the
resistance
of
line
26
between
trains
3
and
6
will
be
(0.5-0.0004)*0.4340
For
instance,
the
resistance
of
line
9
between
train
one
and
substa2on
10
will
be
(0.0002-0)*0.4340
lines_dc
=
73
10
11
0.4340
74
11
12
0.8680
75
11
13
0.2604
76
12
13
0.4340
train_pos
=
1
10
11
0.0002
0.2215
6
10
11
0.0004
-0.0400
3
10
11
0.5000
-0.0400
7
10
11
0.9997
-0.0400
2
10
11
0.9998
0
4
11
12
0.5000
-0.0400
5
12
13
0.0001
0
9
12
13
0.3000
-0.0400
8
12
13
0.5000
0
10
9
5
41
12
49
6
40
26
27
17
21
11
13
5
68
46
64
4
8
9
75
2
3
7
Finally
we
use
these
indices
and
values
to
correct
M
dc_ac2v
=
9
21
5
26
27
17
40
41
75
49
68
46
64
0.0001
0.0001
0.0001
0.2168
0.2169
0.0001
0.4339
0.4340
0.2604
0.0001
0.2170
0.1302
0.0868
TASK
8
SOLVER
fmincon
min f (x) = X A2 + X B2 + X C2
g1 (x) = 2X A + 5X B 5
g2 (x) = X A + X C 2
g3 (x) = X A2 + 2X B + X C 10
h1 (x) = 2X A 2X B + X C = 2
h2 (x) = 10X A + 8X B 14 X C = 26
h3 (x) = 4 X A + 5X B 6X C2 = 6
0 X A 10
1 XB 5
5 X C 8
X A 0 = X B 0 = X C 0 = 1
[SOL,fval,exi{lag]=fmincon(@myfun,X0,A,b,Ae
q,beq,lb,ub,@mycon,op2ons);
2 1 0
5
A =
b =
1
0
1
2
2 2 1
-2
Aeq =
b
=
eq
10 8 14
26
lb = (0,1,5)
ub = (10,5,8)
TASK
8
SOLVER
func2on
example_fmincom
param1=10;
param2=6;
XA=-1;
XB=-1;
XC=-1;
X0=[XA
XB
XC];
A=[2
1
0;
1
0
1];
b=[5
2];
Aeq=[2
-2
1;
10
8
-14];
beq=[-2
26];
lb=[0
1
-5];
ub=[10
5
8];
op2ons=op2mset('Algorithm','interior-point','TolFun',1e-6,'TolCon',1e-6,'TolX',1e-10,'MaxFunEvals',5e6,'MaxIter',5e6);
[SOL,fval,exi{lag,output,lambda]=fmincon(@myfun,X0,A,b,Aeq,beq,lb,ub,@mycon,op2ons);
func2on
F
=
myfun(X)
XA=X(1);
XB=X(2);
XC=X(3);
F=[XA^2+XB^2+XC^2];
end
func2on
[c,ceq]=mycon(X)
XA=X(1);
XB=X(2);
XC=X(3);
c=[];
c=[c
XA^2+2*XB+XC-param1];
ceq=[];
ceq=[ceq
-4*XA+5*XB-6*XC^2-param2];
end
end
Task
9:
Postprocesor
Use
a
procedure
similar
to
the
one
described
in
task
8
to
be
able
to
obtain
directly
from
the
solu2on
all
the
varaibles
described
in
the
previous
slides.