PyPSA / pypsa-eur

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

Length_factor multiplied twice #1412

Open lindnemi opened 1 week ago

lindnemi commented 1 week ago

I just had a thorough look with @p-glaum at the length_factor. As far as we understand, in the clustered network, the length of all lines is set to the haversine distance between the buses multiplied by length_factor.

https://github.com/PyPSA/PyPSA/blob/068ca0b3397194390493ccc140ad0c79a2ea7310/pypsa/clustering/spatial.py#L397-L400

However, the capital costs in add_electricity consider the length factor a second time:

https://github.com/PyPSA/pypsa-eur/blob/35050d9f840a4d1a51247cc12d9c804553a88e8f/scripts/add_electricity.py#L433-L437

Thus we might be overestimating the capital_cost of lines, with the default setting by 25%. The same probably also applies to links.