|
14 | 14 | OHM_PER_MILE_TO_OHM_PER_METER = 1 / 1609.344 |
15 | 15 |
|
16 | 16 |
|
17 | | -class ABCN_geometry_line(): |
| 17 | +class ACBN_geometry_line(): |
18 | 18 | """ IEEE 13 Configuration 601 Line Geometry """ |
19 | 19 | @property |
20 | 20 | def resistance(self): |
21 | 21 | return { |
22 | 22 | 'A': 0.000115575, |
23 | | - 'B': 0.000115575, |
24 | 23 | 'C': 0.000115575, |
| 24 | + 'B': 0.000115575, |
25 | 25 | 'N': 0.000367852, |
26 | 26 | } |
27 | 27 |
|
28 | 28 | @property |
29 | 29 | def geometric_mean_radius(self): |
30 | 30 | return { |
31 | 31 | 'A': 0.00947938, |
32 | | - 'B': 0.00947938, |
33 | 32 | 'C': 0.00947938, |
| 33 | + 'B': 0.00947938, |
34 | 34 | 'N': 0.00248107, |
35 | 35 | } |
36 | 36 |
|
37 | 37 | @property |
38 | 38 | def wire_positions(self): |
39 | 39 | return { |
40 | 40 | 'A': (0.762, 8.5344), |
41 | | - 'B': (2.1336, 8.5344), |
42 | | - 'C': (0, 8.5344), |
| 41 | + 'C': (2.1336, 8.5344), |
| 42 | + 'B': (0, 8.5344), |
43 | 43 | 'N': (1.2192, 7.3152), |
44 | 44 | } |
45 | 45 |
|
46 | 46 | @property |
47 | 47 | def phases(self): |
48 | 48 | return [ |
49 | 49 | 'A', |
50 | | - 'B', |
51 | 50 | 'C', |
| 51 | + 'B', |
52 | 52 | 'N', |
53 | 53 | ] |
54 | 54 |
|
@@ -160,15 +160,15 @@ def phases(self): |
160 | 160 | ] |
161 | 161 |
|
162 | 162 |
|
163 | | -def ABCN_line_geometry_phase_impedance(): |
| 163 | +def ACBN_line_geometry_phase_impedance(): |
164 | 164 | """ IEEE 13 Configuration 601 Impedance Solution """ |
165 | 165 | return OHM_PER_MILE_TO_OHM_PER_METER * array([ |
166 | 166 | [0.3465 + 1.0179j, 0.1560 + 0.5017j, 0.1580 + 0.4236j], |
167 | 167 | [0.1560 + 0.5017j, 0.3375 + 1.0478j, 0.1535 + 0.3849j], |
168 | 168 | [0.1580 + 0.4236j, 0.1535 + 0.3849j, 0.3414 + 1.0348j]]) |
169 | 169 |
|
170 | 170 |
|
171 | | -def ABCN_line_z_primitive(): |
| 171 | +def ACBN_line_z_primitive(): |
172 | 172 | return array([ |
173 | 173 | [1.74792626e-04+0.00085989j, |
174 | 174 | 5.92176264e-05+0.00052913j, |
@@ -272,19 +272,18 @@ def expected_z_abc_three_neutrals(): |
272 | 272 |
|
273 | 273 | @pytest.mark.parametrize( |
274 | 274 | "line,expected_impedance", |
275 | | - [(ABCN_geometry_line(), ABCN_line_geometry_phase_impedance()), |
| 275 | + [(ACBN_geometry_line(), ACBN_line_geometry_phase_impedance()), |
276 | 276 | (CBN_geometry_line(), CBN_line_geometry_phase_impedance()), |
277 | 277 | (CN_geometry_line(), CN_line_geometry_phase_impedance())]) |
278 | 278 | def test_converts_geometry_to_phase_impedance(line, expected_impedance): |
279 | 279 | actual_impedance = convert_geometric_model(line) |
280 | 280 | assert_array_almost_equal(expected_impedance, |
281 | | - actual_impedance, |
282 | | - decimal=4) |
| 281 | + actual_impedance) |
283 | 282 |
|
284 | 283 |
|
285 | 284 | @pytest.mark.parametrize( |
286 | 285 | "line,z_primitive_expected", |
287 | | - [(ABCN_geometry_line(), ABCN_line_z_primitive()), |
| 286 | + [(ACBN_geometry_line(), ACBN_line_z_primitive()), |
288 | 287 | (CN_geometry_line(), CN_line_z_primitive())]) |
289 | 288 | def test_unbalanced_carsons_equations(line, z_primitive_expected): |
290 | 289 | model = CarsonsEquations(line) |
|
0 commit comments