Rule cluster_network
#
Creates networks clustered to {cluster}
number of zones with aggregated
buses, generators and transmission corridors.
Relevant Settings#
clustering:
aggregation_strategies:
focus_weights:
solving:
solver:
name:
lines:
length_factor:
See also
Documentation of the configuration file config.yaml
at
Top-level configuration, renewable, solving, lines
Inputs#
resources/regions_onshore_elec_s{simpl}.geojson
: confer Rule simplify_networkresources/regions_offshore_elec_s{simpl}.geojson
: confer Rule simplify_networkresources/busmap_elec_s{simpl}.csv
: confer Rule simplify_networknetworks/elec_s{simpl}.nc
: confer Rule simplify_networkdata/custom_busmap_elec_s{simpl}_{clusters}.csv
: optional input
Outputs#
resources/regions_onshore_elec_s{simpl}_{clusters}.geojson
:resources/regions_offshore_elec_s{simpl}_{clusters}.geojson
:resources/busmap_elec_s{simpl}_{clusters}.csv
: Mapping of buses fromnetworks/elec_s{simpl}.nc
tonetworks/elec_s{simpl}_{clusters}.nc
;resources/linemap_elec_s{simpl}_{clusters}.csv
: Mapping of lines fromnetworks/elec_s{simpl}.nc
tonetworks/elec_s{simpl}_{clusters}.nc
;networks/elec_s{simpl}_{clusters}.nc
:
Description#
Note
Why is clustering used both in simplify_network
and cluster_network
?
Consider for example a network
networks/elec_s100_50.nc
in whichsimplify_network
clusters the network to 100 buses and in a second stepcluster_network`
reduces it down to 50 buses.In preliminary tests, it turns out, that the principal effect of changing spatial resolution is actually only partially due to the transmission network. It is more important to differentiate between wind generators with higher capacity factors from those with lower capacity factors, i.e. to have a higher spatial resolution in the renewable generation than in the number of buses.
The two-step clustering allows to study this effect by looking at networks like
networks/elec_s100_50m.nc
. Note the additionalm
in the{cluster}
wildcard. So in the example network there are still up to 100 different wind generators.In combination these two features allow you to study the spatial resolution of the transmission network separately from the spatial resolution of renewable generators.
Is it possible to run the model without the simplify_network
rule?
No, the network clustering methods in the PyPSA module pypsa.clustering.spatial do not work reliably with multiple voltage levels and transformers.
Tip
The rule cluster_all_networks
runs
for all scenario
s in the configuration file
the rule cluster_network
.
Exemplary unsolved network clustered to 512 nodes:
Exemplary unsolved network clustered to 256 nodes:
Exemplary unsolved network clustered to 128 nodes:
Exemplary unsolved network clustered to 37 nodes: