pypsa-meets-earth / pypsa-earth

PyPSA-Earth: A flexible Python-based open optimisation model to study energy system futures around the world.
https://pypsa-earth.readthedocs.io/en/latest/
207 stars 167 forks source link

Improve equivalent transformation calculations in base.nc #978

Closed ekatef closed 4 months ago

ekatef commented 4 months ago

A suggestion on a possible to partially address #862 and #887 to decrease errors introduced by base.nc.

Changes proposed in this Pull Request

Currently, we are using voltage rebase in base.nc which purpose is to map all the voltages to a few "standard" values. However, information on the original voltage is lost during this rebase transformation.

The suggestion is: 1) keep the original voltage before mapping the voltage; 2) adjust num_parallel for the lines after the voltage rebase to compensate an effect of the voltage increase on the transmission capacity introduced during rebase.

Checklist

ekatef commented 4 months ago

As a comment, there is also an effect of i_nom which may significantly impact the result for the transmission capacity and is determined by the wire design.

E.g. for Al-steel wires *-AL1/*-ST1A, i_nom varies between 0.21 and 1.15 across the types which can be used for 100kV (data taken from pandapower). Not sure there is a way to account for the size types which are really in use in one or another power system. Probably, it may be a good idea to add an empiric coefficient which accounts for an average difference between the i_nom values calculated according to the line types we assume and real i_nom values across the power system.

Obviously, that is a purely data-based perspective ideally should can be adjusted according to the real-world operation of the existing power grids.

ekatef commented 4 months ago

A quick demonstration of the effect of the linetype definition of the transmision capacity using the notebook by @GbotemiB (thanks for the handy tool!):

image image
ekatef commented 4 months ago

Thanks katia! It seems this PR is ready, but could you please explain the image you posted? I don't see how much we improve or so.

I believe it is also worth adding a release_note in this case

Thank you, Davide :)

The image was in fact rather a problem statement, not testing results. The point is, the PR is dealing with a part of uncertainty which relates to the voltage mapping, while we need some other approach to deal with the uncertainty linked with definition of the line type. The picture above demonstrates this effect of the linetype. (Sorry for messing things up!)

Testing results for the PR itself are as follows. When looking into data for Norway:

So, we are still two times off, but I'd say that is quite an improvement :D

The topology comparison looks like that:

image