-
Notifications
You must be signed in to change notification settings - Fork 16
Power Flow Run Settings
Mirsad Cosovic edited this page Apr 11, 2020
·
50 revisions
The power flow settings should be given as input arguments of the function runpf
. Although the syntax is given in a certain order, for methodological reasons, only DATA
must appear as the first input argument, and the order of other inputs is arbitrary, as well as their appearance.
runpf(DATA, METHOD);
runpf(DATA, METHOD, LIMIT);
runpf(DATA, METHOD, LIMIT, ATTACH);
runpf(DATA, METHOD, LIMIT, ATTACH, DISPLAY, EXPORT);
runpf(DATA, METHOD) computes power flow problem
runpf(DATA, METHOD, LIMIT) sets reactive power and voltage magnitude limits
runpf(DATA, METHOD, LIMIT, ATTACH) sets the maximum number of iterations
runpf(DATA, METHOD, LIMIT, ATTACH, DISPLAY, EXPORT) shows results and exports models
[result, data] = runpf(...) returns results of the power flow analysis and DATA input
runpf('ieee14_20', 'nr', 'main');
runpf('ieee14_20', 'fdnr', 'main');
runpf('ieee14_20', 'gs', 'reactive', 'main');
runpf('ieee14_20', 'dc', 'main', 'branch' 'save');
Example | Description |
---|---|
'ieee30_41' |
loads the power system data (first input argument in the runpf function) |
METHOD
Command | Description |
---|---|
'nr' |
runs the AC power flow analysis using Newton-Raphson algorithm |
'gs' |
runs the AC power flow analysis using Gauss-Seidel algorithm |
'dnr' |
runs the AC power flow analysis using decoupled Newton-Raphson algorithm |
'fdnr' |
runs the AC power flow analysis using fast decoupled Newton-Raphson algorithm |
'dc' |
runs the DC power flow analysis |
LIMITS
Command | Description |
---|---|
'reactive' |
forces reactive power constraints |
'voltage' |
forces voltage magnitude constraints |
ATTACH
Command | Description |
---|---|
'maxIter',value |
specifies the maximum number of iterations x for the AC power flow value = x, default setting: 500
|
DISPLAY
Command | Description |
---|---|
'main' |
shows main bus data display |
'flow' |
shows power flow data display |
EXPORT
Command | Description |
---|---|
'save' |
saves data display |
The power flow flowchart depicts the algorithm process according to user settings.
MATGRID is licensed under the terms of the MIT License.