Skip to main content
Have a personal or library account? Click to login
PyPSA: Python for Power System Analysis Cover

PyPSA: Python for Power System Analysis

Open Access
|Jan 2018

Figures & Tables

Table 1

Nomenclature.

VariableUnitsDefinition
n, mBus labels
rGenerator energy carrier labels (e.g. wind, solar, gas, etc.)
sStorage energy carrier labels (e.g. battery, hydrogen, etc.)
κ, ℓBranch labels
cCycle labels
tSnapshot/time point labels
er/stCO2eq/MWhthCO2-equivalent emissions of energy carrier r or s
wthWeighting of snapshot in objective function
gn,r,tMWDispatch of generator at bus n with carrier r at time t
Gn,rMWPower capacity of generator n, r
n,r,tMW/MWPower availability per unit of generator capacity
ηn,rMWel/MWthEfficiency of generator
un,r,tOn/off binary status for generator unit commitment
Tn,rmin_downhGenerator minimum down time
Tn,rmin_uphGenerator minimum up time
run,r(MW/MW)/hGenerator ramp up limit per unit of capacity
rdn,r(MW/MW)/hGenerator ramp down limit per unit of capacity
cn,r€/MWGenerator capital (fixed) cost
on,r€/MWhGenerator operating (variable) cost
sucn,r(,t)Generator start up cost (in time t)
sdcn,r(,t)Generator shut down cost (in time t)
hn,s,tMWDispatch of storage at bus n with carrier s at time t
Hn,sMWPower capacity of storage n, s
en,s,tMWhStorage state of charge (energy level)
En,sMWhStorage energy capacity
cn,s€/MWStorage power capacity cost
ĉn,s€/MWhStorage energy capacity cost
on,s€/MWhStorage dispatch cost
dn,tMWElectrical load at bus n at time t
λn,t€/MWhMarginal price at bus n at time t
VnkVComplex voltage at bus n
θnradVoltage angle at bus n
InkAComplex current at bus n
PnMWTotal active power injection at bus n
QnMVArTotal reactive power injection at bus n
SnMVATotal apparent power injection at bus n
fℓ,tMWBranch active power flow
FMWBranch active power rating
c€/MWBranch capital cost
xBranch series reactance
rΩBranch series resistance
VariableUnitsDefinition
zΩBranch series impedance
ySBranch shunt admittance
τTransformer tap ratio
θshiftradTransformer phase shift
ηℓ,tMW/MWEfficiency loss of a link
KnℓN × L incidence matrix
CcL × (LN + 1) cycle matrix
YnmSBus admittance matrix
BkSDiagonal L × L matrix of branch susceptances
BODFkBranch Outage Distribution Factor
Table 2

PyPSA components.

NetworkContainer for all other network components.
BusFundamental nodes to which all other components attach.
CarrierEnergy carrier (e.g. wind, solar, gas, etc.).
LoadA consumer of energy.
GeneratorGenerator whose feed-in can be flexible subject to minimum loading or minimum down and up times, or variable according to a given time series of power availability.
Storage UnitA device which can shift energy from one time to another, subject to efficiency losses.
StoreA more fundamental storage object with no restrictions on charging or discharging power.
Shunt ImpedanceAn impedance in shunt to a bus.
LineA branch which connects two buses of the same voltage.
TransformerA branch which connects two buses of different voltages.
LinkA branch with a controllable power flow between two buses.
Figure 1

Electrical property definitions for passive branches (lines and transformers).

Figure 2

Example of the coupling in PyPSA between electricity (at top) and other energy sectors: transport, hydrogen, natural gas and heating. There is a bus for each energy carrier, to which different loads, energy sources and converters are attached.

Figure 3

Calculation times for performing a full load flow on the MATPOWER [6] standard cases using MATPOWER versus PyPSA.

Table 3

A comparison of selected features of selected software tools that are similar to PyPSA.

Power FlowContinuation Power FlowDynamic AnalysisTransport ModelLinear OPFSCLOPFNonlinear OPFMulti-Period OptimisationUnit CommitmentInvestment OptimisationOther Energy Sectors
Power system toolsMATPOWER6.0[6]
NEPLAN5.5.8[2]
pandapower1.4.0[9]
PowerFactory2017[1]
PowerWorld19[3]
PSAT2.1.10[7]
PSS/E33.10[4]
PSS/SINCAL13.5[5]
PYPOWER5.1.2[8]
PyPSA0.11.0
Energy system toolscalliope0.5.2[11]
minpower4.3.10[12]
MOST6.0[13]
oemof0.1.4[14]
OSeMOSYS2017[15]
PLEXOS7.400[16]
PowerGAMA1.1[17]
PRIMES2017[18]
TIMES2017[19]
urbs0.7[20]
Figure 4

Left: Locational marginal prices (λn,t from equation (12)) for Germany in an hour with high wind and low load; Middle: Line loading during this hour: highly loaded lines in the middle of Germany prevent the transport of cheap wind energy to consumers in the South; Right: Reactive power feed-in (positive in red, negative in blue) necessary to keep all buses at unit nominal voltage.

Figure 5

Results of optimisation of generation and storage capacities in Europe to reduce CO2 emissions in the European electricity sector by 95% compared to 1990 levels [32]. The grid topology is based on the GridKit network for Europe, clustered from 5000 buses to 256 buses.

DOI: https://doi.org/10.5334/jors.188 | Journal eISSN: 2049-9647
Language: English
Submitted on: Aug 2, 2017
Accepted on: Nov 12, 2017
Published on: Jan 16, 2018
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2018 Thomas Brown, Jonas Hörsch, David Schlachtberger, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.