Skip to content

Power Flow Input Data

Mirsad Cosovic edited this page Mar 17, 2019 · 17 revisions

The input data are located in the data_power_grid directory, as the mat-file with the struct variable data. The power system data is given in the variable data.system, with variables bus, generator, line, inTransformer, shiftTransformer, and baseMVA.

The minimum amount of information with each instance of the data structure to run the module requires bus and one of the variables line, inTransformer and shiftTransformer.

First, the system base power is defined in (MVA) using data.system.baseMVA, and in the following, we describe the structure of other variables involved in data.system.


Bus data is located in data.system.bus with the structure as follows.

Column Description Unit
1 bus number
2 bus type
3 initial voltage angle degree
4 initial voltage magnitude per-unit
5 load real power injection MW
6 load reactive power injection MVAr
7 shunt element (equivalent active power) MW
8 shunt element (equivalent reactive power) MVAr
9 minimum voltage magnitude per-unit
10 maximum voltage magnitude per-unit

Generator data is located in data.system.generator with the structure as follows.

Column Description Unit
1 bus number
2 real power injection MW
3 reactive power injection MVAr
4 minimum reactive power injection MVAr
5 maximum reactive power injection MVAr
6 voltage magnitude per-unit
7 on/off status

Transmission line data is located in data.system.line with the structure as follows.

Column Description Unit
1 from bus number
2 to bus number
3 resistance per-unit
4 reactance per-unit
5 total charging susceptance per-unit
6 on/off status

In-phase transformer data is located in data.system.inTransformer with the structure as follows.

Column Description Unit
1 from bus number
2 to bus number
3 resistance per-unit
4 reactance per-unit
5 total charging susceptance per-unit
6 turns ratio
7 on/off status

Phase-shifting transformer data is located in data.system.shiftTransformer with the structure as follows.

Column Description Unit
1 from bus number
2 to bus number
3 resistance per-unit
4 reactance per-unit
5 total charging susceptance per-unit
6 turns ratio
7 shift angle degree
8 on/off status