Software Engineering Practical File Front Pages.pdf
Matpower machava
1. 29-04-2020 21:45 MATLAB Command Window 1 of 7
>> %
>> %% Resolução do Exercício 1
>> %% alínea, g)Usando Matlab e PowerWorld Simulator, simule:
%• Modelo DC
%• Modelo AC usando Newton
%• Modelo AC usando desacoplado rápido
>> %
>> %• Modelo DC; agora corremos o caso no modelo DC a partir do seguinte comando:
>> rundcpf('DC_exer_1')
MATPOWER Version 6.0, 16-Dec-2016 -- DC Power Flow
Converged in 0.00 seconds
================================================================================
| System Summary |
================================================================================
How many? How much? P (MW) Q (MVAr)
Buses 4 Total Gen Capacity 318.0 0.0 to 0.0
Generators 2 On-line Capacity 318.0 0.0 to 0.0
Committed Gens 2 Generation (actual) 500.0 0.0
Loads 4 Load 500.0 0.0
Fixed 4 Fixed 500.0 0.0
Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0
Shunts 0 Shunt (inj) -0.0 0.0
Branches 5 Losses (I^2 * Z) 0.00 0.00
Transformers 0 Branch Charging (inj) - 0.0
Inter-ties 0 Total Inter-tie Flow 0.0 0.0
Areas 1
Minimum Maximum
Voltage Magnitude 1.000 p.u. @ bus 1 1.000 p.u. @ bus 1
Voltage Angle -11.10 deg @ bus 3 0.00 deg @ bus 1
================================================================================
| Bus Data |
================================================================================
Bus Voltage Generation Load
# Mag(pu) Ang(deg) P (MW) Q (MVAr) P (MW) Q (MVAr)
1 1.000 0.000* 182.00 0.00 50.00 0.00
2 1.000 -7.435 - - 170.00 0.00
3 1.000 -11.100 - - 200.00 0.00
4 1.000 -3.812 318.00 0.00 80.00 0.00
Total: 500.00 0.00 500.00 0.00
================================================================================
| Branch Data |
================================================================================
Brnch From To From Bus Injection To Bus Injection Loss (I^2 * Z)
# Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q (MVAr)
2. 29-04-2020 21:45 MATLAB Command Window 2 of 7
1 1 2 0.00 0.00 -0.00 0.00 0.000 0.00
2 1 3 0.00 0.00 -0.00 0.00 0.000 0.00
3 1 4 132.00 0.00 -132.00 0.00 0.000 0.00
4 2 4 -170.00 0.00 170.00 0.00 0.000 0.00
5 3 4 -200.00 0.00 200.00 0.00 0.000 0.00
Total: 0.000 0.00
>> %
%• Modelo AC usando Newton
%
% Esse modelo é possivel segundo o seguinte comando:
runpf('DC_exer_1')
MATPOWER Version 6.0, 16-Dec-2016 -- AC Power Flow (Newton)
Newton's method power flow converged in 4 iterations.
Converged in 0.02 seconds
================================================================================
| System Summary |
================================================================================
How many? How much? P (MW) Q (MVAr)
Buses 4 Total Gen Capacity 318.0 -200.0 to 200.0
Generators 2 On-line Capacity 318.0 -200.0 to 200.0
Committed Gens 2 Generation (actual) 514.2 350.8
Loads 4 Load 500.0 309.9
Fixed 4 Fixed 500.0 309.9
Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0
Shunts 0 Shunt (inj) -0.0 0.0
Branches 5 Losses (I^2 * Z) 14.17 70.86
Transformers 0 Branch Charging (inj) - 29.9
Inter-ties 0 Total Inter-tie Flow 0.0 0.0
Areas 1
Minimum Maximum
Voltage Magnitude 0.900 p.u. @ bus 3 1.020 p.u. @ bus 4
Voltage Angle -11.51 deg @ bus 3 0.00 deg @ bus 1
P Losses (I^2*R) - 8.49 MW @ line 3-4
Q Losses (I^2*X) - 42.47 MVAr @ line 3-4
================================================================================
| Bus Data |
================================================================================
Bus Voltage
# Mag(pu) Ang(deg)
Generation
P (MW) Q (MVAr)
Load
P (MW) Q (MVAr)
1 1.000 0.000* 196.17 -36.82 50.00 30.99
2 0.966 -7.736 - - 170.00 105.35
3 0.900 -11.510 - - 200.00 123.94
4 1.020 -4.498 318.00 387.63 80.00 49.58
Total: 514.17 350.81 500.00 309.86
3. 29-04-2020 21:45 MATLAB Command Window 3 of 7
================================================================================
| Branch Data |
================================================================================
Brnch From To From Bus Injection To Bus Injection Loss (I^2 * Z)
# Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q (MVAr)
1 1 2 0.00 0.00 0.00 0.00 0.000 0.00
2 1 3 0.00 0.00 0.00 0.00 0.000 0.00
3 1 4 146.17 -67.81 -143.62 70.10 2.550 12.75
4 2 4 -170.00 -105.35 173.13 113.34 3.129 15.64
5 3 4 -200.00 -123.94 208.49 154.61 8.493 42.47
Total: 14.172 70.86
>> %
% A seguir apresetamos os resultados do fluxo de potência usando
% O Agorítimo Newton desacoplamento rápido na versão XB %
% desta vez apresento também o resumo do processo iterrativo%
% |
mpopt=mpoption('pf.alg','FDXB');
result=runpf('DC_exer_1',mpopt)
MATPOWER Version 6.0, 16-Dec-2016 -- AC Power Flow (fast-decoupled, XB)
Fast-decoupled power flow converged in 9 P-iterations and 8 Q-iterations.
Converged in 0.29 seconds
================================================================================
| System Summary |
================================================================================
How many? How much? P (MW) Q (MVAr)
Buses 4 Total Gen Capacity 318.0 -200.0 to 200.0
Generators 2 On-line Capacity 318.0 -200.0 to 200.0
Committed Gens 2 Generation (actual) 514.2 350.8
Loads 4 Load 500.0 309.9
Fixed 4 Fixed 500.0 309.9
Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0
Shunts 0 Shunt (inj) -0.0 0.0
Branches 5 Losses (I^2 * Z) 14.17 70.86
Transformers 0 Branch Charging (inj) - 29.9
Inter-ties 0 Total Inter-tie Flow 0.0 0.0
Areas 1
Minimum Maximum
Voltage Magnitude 0.900 p.u. @ bus 3 1.020 p.u. @ bus 4
Voltage Angle -11.51 deg @ bus 3 0.00 deg @ bus 1
P Losses (I^2*R) - 8.49 MW @ line 3-4
Q Losses (I^2*X) - 42.47 MVAr @ line 3-4
================================================================================
| Bus Data |
4. 29-04-2020 21:45 MATLAB Command Window 4 of 7
================================================================================
Bus Voltage Generation Load
# Mag(pu) Ang(deg) P (MW) Q (MVAr) P (MW) Q (MVAr)
1 1.000 0.000* 196.17 -36.82 50.00 30.99
2 0.966 -7.736 - - 170.00 105.35
3 0.900 -11.510 - - 200.00 123.94
4 1.020 -4.498 318.00 387.63 80.00 49.58
Total: 514.17 350.81 500.00 309.86
================================================================================
| Branch Data |
================================================================================
Brnch From To From Bus Injection To Bus Injection Loss (I^2 * Z)
# Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q (MVAr)
1 1 2 0.00 0.00 0.00 0.00 0.000 0.00
2 1 3 0.00 0.00 0.00 0.00 0.000 0.00
3 1 4 146.17 -67.81 -143.62 70.10 2.550 12.75
4 2 4 -170.00 -105.35 173.13 113.34 3.129 15.64
5 3 4 -200.00 -123.94 208.49 154.61 8.493 42.47
Total: 14.172 70.86
result =
version:
baseMVA:
bus:
'2'
100
[4x13 double]
gen:
branch:
[2x21
[5x17
double]
double]
order: [1x1 struct]
et: 0.2890
success: 1
iterations: 9
>> % Sintese do processo iterativo
mpopt=mpoption('pf.alg',2,'verbose',2,'out.all',0);
result=runpf('DC_exer_1',mpopt);