PyPSA / pypsa-eur

PyPSA-Eur: A Sector-Coupled Open Optimisation Model of the European Energy System
https://pypsa-eur.readthedocs.io/
338 stars 239 forks source link

Set lifetime for conventional powerplants #48

Closed Heronimonimo closed 4 years ago

Heronimonimo commented 5 years ago

The powerplants.csv already includes a 'YearCommisioned' and 'Retrofit' column. This could be used, combined with a Fueltype and Technology to for example remove all plants older than x for CCGT, y for Hydro, z for Coal, etc.

Would def attach_conventional_generators(n, costs, ppl): in add_electricity.py be the right place to do this? And could the year from costs specifier in config.yaml be used to calculate all plant ages?

Furthermore a .csv with lifetime per Technology and Fueltype should be included. ALso in the powerplant dataset a lot of values are missing. Are there currently plans to update this set?

FabianHofmann commented 5 years ago

Hey, after long time:

fneum commented 4 years ago

Is this possible with the powerplantmatching update and the pd.query?

FabianHofmann commented 4 years ago

yes, it is :) I'll make a PR for this tomorrow.

Heronimonimo commented 4 years ago

Cool to see so much activity. This addition would be very much appreciated!