1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """Power flow data for 4 bus, 2 gen case from Grainger & Stevenson.
18 """
19
20 from numpy import array
21
23 """Power flow data for 4 bus, 2 gen case from Grainger & Stevenson.
24 Please see L{caseformat} for details on the case file format.
25
26 This is the 4 bus example from pp. 337-338 of I{"Power System Analysis"},
27 by John Grainger, Jr., William Stevenson, McGraw-Hill, 1994.
28
29 @return: Power flow data for 4 bus, 2 gen case from Grainger & Stevenson.
30 """
31 ppc = {"version": '2'}
32
33
34
35 ppc["baseMVA"] = 100.0
36
37
38
39 ppc["bus"] = array([
40 [0, 3, 50, 30.99, 0, 0, 1, 1, 0, 230, 1, 1.1, 0.9],
41 [1, 1, 170, 105.35, 0, 0, 1, 1, 0, 230, 1, 1.1, 0.9],
42 [2, 1, 200, 123.94, 0, 0, 1, 1, 0, 230, 1, 1.1, 0.9],
43 [3, 2, 80, 49.58, 0, 0, 1, 1, 0, 230, 1, 1.1, 0.9]
44 ])
45
46
47
48
49 ppc["gen"] = array([
50 [3, 318, 0, 100, -100, 1.02, 100, 1, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
51 [0, 0, 0, 100, -100, 1, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
52 ])
53
54
55
56 ppc["branch"] = array([
57 [0, 1, 0.01008, 0.0504, 0.1025, 250, 250, 250, 0, 0, 1, -360, 360],
58 [0, 2, 0.00744, 0.0372, 0.0775, 250, 250, 250, 0, 0, 1, -360, 360],
59 [1, 3, 0.00744, 0.0372, 0.0775, 250, 250, 250, 0, 0, 1, -360, 360],
60 [2, 3, 0.01272, 0.0636, 0.1275, 250, 250, 250, 0, 0, 1, -360, 360]
61 ])
62
63 return ppc
64