Rule prepare_network

Rule prepare_network#

digraph snakemake_dag {
    graph [bgcolor=white,
        margin=0,
        size="8,5"
    ];
    node [fontname=sans,
        fontsize=10,
        penwidth=2,
        shape=box,
        style=rounded
    ];
    edge [color=grey,
        penwidth=2
    ];
    0        [color="0.53 0.6 0.85",
        label=solve_network];
    1        [color="0.50 0.6 0.85",
        fillcolor=gray,
        label=prepare_network,
        style=filled];
    1 -> 0;
    2        [color="0.36 0.6 0.85",
        label=cluster_network];
    2 -> 1;
}

Prepare PyPSA network for solving according to The {opts} wildcard and The {ll} wildcard, such as.

  • adding an annual limit of carbon-dioxide emissions,

  • adding an exogenous price per tonne emissions of carbon-dioxide (or other kinds),

  • setting an N-1 security margin factor for transmission line capacities,

  • specifying an expansion limit on the cost of transmission expansion,

  • specifying an expansion limit on the volume of transmission expansion, and

  • reducing the temporal resolution by averaging over multiple hours or segmenting time series into chunks of varying lengths using tsam.

Relevant Settings#

costs:
    year:
    version:
    rooftop_share:
    USD2013_to_EUR2013:
    dicountrate:
    emission_prices:

electricity:
    co2limit:
    max_hours:

See also

Documentation of the configuration file config.yaml at costs, electricity

Inputs#

  • resources/costs.csv.: The database of cost assumptions for all included technologies for specific years from various sources; e.g. discount rate, lifetime, investment (CAPEX), fixed operation and maintenance (FOM), variable operation and maintenance (VOM), fuel costs, efficiency, carbon-dioxide intensity.

  • networks/elec_s{simpl}_{clusters}.nc: confer Rule cluster_network

Outputs#

  • networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc: Complete PyPSA network that will be handed to the solve_network rule.

Description#

Tip

The rule prepare_all_networks runs for all scenario s in the configuration file the rule prepare_network.