-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsb.m
49 lines (48 loc) · 2.88 KB
/
tsb.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%% tsa: Test System B
% Provides bus and branch data for Test System B
function [busdata,branchdata]=tsb()
%%% Bus Data
%%% Bus Data 1 2 3 4 5 6 7 8 9 10
% Bus Type PG QG PL QL V Theta G B
busdata=[ 1 1 0 0 0 0 1.06 0 0 0;
2 3 40 0 21.7 12.7 1.045 0 0 0;
3 3 0 0 94.2 19 1.01 0 0 0;
4 2 0 0 47.8 -3.9 1.0 0 0 0;
5 2 0 0 7.6 1.6 1.0 0 0 0;
6 3 0 0 11.2 7.5 1.07 0 0 0;
7 2 0 0 0 0 1.0 0 0 0;
8 3 0 0 0 0 1.09 0 0 0.06125;
9 2 0 0 29.5 16.6 1.0 0 0 0.19;
10 2 0 0 9 5.8 1.0 0 0 0;
11 2 0 0 3.5 1.8 1.0 0 0 0;
12 2 0 0 6.1 1.6 1.0 0 0 0;
13 2 0 0 13.5 5.8 1.0 0 0 0;
14 2 0 0 14.9 5 1.0 0 0 0;
];
basemva=100;
basekv=230;
busdata(:,3:6)=busdata(:,3:6)/basemva;
%%% Branch Data
% From To R(pu) X(pu) G(pu) B(pu)
branchdata=[ 1 2 0.01938 0.05917 0 0.05280 ;
1 5 0.05403 0.22304 0 0.04920 ;
2 3 0.04699 0.19797 0 0.04380 ;
2 4 0.05811 0.17632 0 0.03400 ;
2 5 0.05695 0.17388 0 0.03460 ;
3 4 0.06701 0.17103 0 0.01280 ;
4 5 0.01335 0.04211 0 0 ;
4 7 0 0.20912 0 0 ;
4 9 0 0.55618 0 0 ;
5 6 0 0.25202 0 0 ;
6 11 0.09498 0.19890 0 0 ;
6 12 0.12291 0.25581 0 0 ;
6 13 0.06615 0.13027 0 0 ;
7 8 0 0.17615 0 0 ;
7 9 0 0.11001 0 0 ;
9 10 0.03181 0.08450 0 0 ;
9 14 0.12711 0.27038 0 0 ;
10 11 0.08205 0.19207 0 0 ;
12 13 0.22092 0.19988 0 0 ;
13 14 0.17093 0.34802 0 0 ;
];
end