-
Notifications
You must be signed in to change notification settings - Fork 331
Description
Version Checks (indicate both or one)
-
I have confirmed this bug exists on the lastest release of PyPSA-Eur.
-
I have confirmed this bug exists on the current
master
branch of PyPSA-Eur.
Issue Description
This issue describes a bug first reported in #1540 concerning inconsistent modelling of nuclear power plants as both generators
and links
through the different foresight options (i.e. overnight, myopic and perfect) and the electricity only configuration. Depending on the configuration, the nuclear power plants are modelled as Generator
(added in scripts/add_electricity.py
) or Link
(added in scripts/add_existing_baseyear.py
). The configuration section pypsa_eur:generator
currently includes nuclear
. This is an issue for myopic and perfect foresight optimisation. A second issue is the p_max_pu
value. When using Generator, the workflow uses by default the country specific values given in data/nuclear_p_max_pu.csv
. This is not the case for Link
, where the value is set to 1 by default.
See description of #1540 for more detail on the issue and how to reproduce it.
Additionally, when nuclear is being modelled as a Link, the corresponding uranium
generator is missing as only fossil fuel generators for coal
, gas
, oil
and lignite
are added to the model in prepare_sector_network
here. This issue was addressed for the ariadne2
branch of pypsa-eur
here but never made it to the master branch.
To summarize, the currently existing issues with nuclear power plants encompass the following bugs:
- inconsistency in modelling that leads to existing nuclear power plants twice, both as
generators
andlinks
, for myopic and perfect foresight optimization (fix presented in Improve consistency of nuclear modelling #1540) - missing country specific
p_max_pu
for nuclear links added inadd_existing_baseyear
(fix presented in Improve consistency of nuclear modelling #1540) - missing
uranium
generator for nuclear links (fix presented in include uranium to carriers for which EU generator is created #1303 but never introduced into master)
Reproducible Example
See description of #1540 for more detail on how to reproduce the issue.
Expected Behavior
Expected behaviour would be to exclusively model nuclear power plants as either Link or Generator and if modelled as Link to include both country-specific p_max_pu
and Uranium generator for the fuel.