Package pypower :: Package t :: Module t_case9_pfv2
[hide private]
[frames] | no frames]

Source Code for Module pypower.t.t_case9_pfv2

 1  # Copyright (C) 1996-2011 Power System Engineering Research Center (PSERC) 
 2  # Copyright (C) 2011 Richard Lincoln 
 3  # 
 4  # PYPOWER is free software: you can redistribute it and/or modify 
 5  # it under the terms of the GNU General Public License as published 
 6  # by the Free Software Foundation, either version 3 of the License, 
 7  # or (at your option) any later version. 
 8  # 
 9  # PYPOWER is distributed in the hope that it will be useful, 
10  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
12  # GNU General Public License for more details. 
13  # 
14  # You should have received a copy of the GNU General Public License 
15  # along with PYPOWER. If not, see <http://www.gnu.org/licenses/>. 
16   
17  """Power flow data for 9 bus, 3 generator case. 
18  """ 
19   
20  from numpy import array 
21   
22   
23 -def t_case9_pfv2():
24 """Power flow data for 9 bus, 3 generator case. 25 Please see L{caseformat} for details on the case file format. 26 27 @return: Power flow data for 9 bus, 3 generator case, no OPF data. 28 """ 29 ppc = {} 30 31 ## PYPOWER Case Format : Version 2 32 ppc['version'] = '2' 33 34 ##----- Power Flow Data -----## 35 ## system MVA base 36 ppc['baseMVA'] = 100.0 37 38 ## bus data 39 # bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin 40 ppc['bus'] = array([ 41 [1, 3, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 42 [2, 2, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 43 [30, 2, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 44 [4, 1, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 45 [5, 1, 90, 30, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 46 [6, 1, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 47 [7, 1, 100, 35, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 48 [8, 1, 0, 0, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9], 49 [9, 1, 125, 50, 0, 0, 1, 1, 0, 345, 1, 1.1, 0.9] 50 ]) 51 52 ## generator data 53 # bus, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, Pc1, Pc2, 54 # Qc1min, Qc1max, Qc2min, Qc2max, ramp_agc, ramp_10, ramp_30, ramp_q, apf 55 ppc['gen'] = array([ 56 [1, 0, 0, 300, -300, 1, 100, 1, 250, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 57 [2, 163, 0, 300, -300, 1, 100, 1, 300, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 58 [30, 85, 0, 300, -300, 1, 100, 1, 270, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 59 ], float) 60 61 ## branch data 62 # fbus, tbus, r, x, b, rateA, rateB, rateC, ratio, angle, status, angmin, angmax 63 ppc['branch'] = array([ 64 [1, 4, 0, 0.0576, 0, 250, 250, 250, 0, 0, 1, -360, 360], 65 [4, 5, 0.017, 0.092, 0.158, 250, 250, 250, 0, 0, 1, -360, 360], 66 [5, 6, 0.039, 0.17, 0.358, 150, 150, 150, 0, 0, 1, -360, 360], 67 [30, 6, 0, 0.0586, 0, 300, 300, 300, 0, 0, 1, -360, 360], 68 [6, 7, 0.0119, 0.1008, 0.209, 40, 150, 150, 0, 0, 1, -360, 360], 69 [7, 8, 0.0085, 0.072, 0.149, 250, 250, 250, 0, 0, 1, -360, 360], 70 [8, 2, 0, 0.0625, 0, 250, 250, 250, 0, 0, 1, -360, 360], 71 [8, 9, 0.032, 0.161, 0.306, 250, 250, 250, 0, 0, 1, -360, 360], 72 [9, 4, 0.01, 0.085, 0.176, 250, 250, 250, 0, 0, 1, -360, 360] 73 ]) 74 75 return ppc
76