pypsa_spain module

Contents

pypsa_spain module#

Features included in PyPSA-Spain are configured in a new module within the config/config_ES.yaml file.

pypsa_spain#

pypsa_spain:
  q2q_transform:   ##### See https://github.com/cristobal-GC/Q2Q_repository for details
    enable: true
    onwind: data_ES/q2q/q2q_onwind_REF_v2.pkl
    offwind-ac: ''
    offwind-dc: ''
    offwind-float: ''
    solar: ''
    solar-hsat: ''
  electricity_demand:
    enable: true
    annual_value: 270   ##### TWh / 344 (2030): PNIEC final version 2024 (11.98 GW ELYs -> requires 90 TWh , generates 1.62 MtH2 aprox.) / 316.5 (2030): PNIEC 2nd draft 2023 (10.88 GW ELYs -> requires 82 TWh , generates 1.45 MtH2 aprox.) / 263 (2030): PNIEC 1st draft 2022 (no ELYs) / 235.5 (2022) real data according to REE: https://www.sistemaelectrico-ree.es/informe-del-sistema-electrico/demanda/evolucion-demanda
    profiles: data_ES/electricity_demand/electricity_demand_profiles_NUTS3_by_economicSector_2022.csv
    percentages: data_ES/electricity_demand/electricity_demand_percentages_NUTS3_by_economicSector_2022.csv
  interconnections:
    enable: true
    nc_ES_file: data_ES/interconnections/neighbouring_countries.yaml
    ic_ES_file: data_ES/interconnections/interconnections.yaml
  update_elec_capacities:
    enable: false
    carriers_to_update:
      onwind: data_ES/esios/esios_onwind_capacity_2023.csv
      solar: data_ES/esios/esios_solar_capacity_2023.csv
      # solar-hsat: data_ES/esios/esios_solar_capacity_2023.csv   ##### Update either solar or solar-hsat
  ISA_class:
    enable: true
    ISA_onwind:
      grid_codes: [4, 3]
    ISA_solar:
      grid_codes: [4, 3]
    ISA_solar_hsat:   
      grid_codes: [4, 3]
    ISA_offwind_float: False   ##### ISA is only for land
  H2_valley_demands:
    enable: true   ##### If enabled, remove the electricity for H2 included in the electricity demand to avoid double counting.
    file: data_ES/H2/H2_valley_demands.yaml
  H2_imports_exports:
    enable: true   ##### If enabled, defines H2 imports/exports through cross-border points (must-run generator/load + link to closest H2 bus).
    file: data_ES/H2/H2_imports_exports.yaml
  regional_network_focus:
    enable: false
    region_NUTS: 'ES511'
    k_focus: 50
  pop_layouts_HR:
    enable: true
    file: data_ES/pop/2023/pop_ES_2023_LR.geojson
    urban_fraction: 0.806
  industry_scenario:
    enable: false
    industry_scenario_file: data_ES/industry/industrial_production_per_country_alternative.csv

Unit

Values

Description

q2q_transform

– enable

bool

{true, false}

Q2Q transforms improve the estimation of the renewable profiles based on historical data. A repository and additional explanation an analyses can be found at the Q2Q_repository

– {carrier}

str

Path of the file with the q2q transform for this carrier. See data_ES/q2q/.

electricity_demand

– enable

bool

{true, false}

Allows to customise the electricity demand.

– annual_value

TWh

int/float

Annual demand.

– profiles

str

Path of the file with the electricity demand profiles. See data_ES/electricity_demand/.

– percentages

str

Path of the file with the electricity demand percentages. See data_ES/electricity_demand/.

interconnections

– enable

bool

{true, false}

Allows to include user-defined interconnections with neighbouring countries.

– nc_ES_file

str

Path of the file with the configuration of the neighbouring countries.

– ic_ES_file

str

Path of the file with the configuration of the interconnections.

update_elec_capacities

– enable

bool

{true, false}

Allows to impose the installed capacity at NUTS-2 level.

– carriers_to_update

costs_update

– enable

bool

{true, false}

Allows to introduce modifications in the cost file.

– costs_update_file

ISA_class

– enable

bool

{true, false}

Allows to use the Spanish ‘Indice de Sostenibilidad Ambiental’ for solar and onwind land elegibility.

ISA_{carrier}

– grid_codes

{4,3,2,1,0}

Level 0 means highest ambiental sensitivity, level 4 means lowest. For example, to set sensitivity threshold 2, select {4, 3, 2}

H2_valley_demands

– enable

bool

{true, false}

Allows to include discrete H2 demands.

– file

str

Path of the file with the definition of the discrete H2 demands.

regional_network_focus

– enable

bool

{true, false}

Allows to cluster the network with more focus on a specific region NUTS-2 or NUTS-3. Clustering mode should be set to busmap, and cluster algorithm to k-means.

– region_NUTS

str

NUTS-2 or NUTS-3 code of the region.

– k_focus

int/float

Intensity of the weighting applied to the focus region. Higher values increase the weights of its buses, leading the clustering algorithm to allocate more clusters there. Very large values may increase runtime.