Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ renewable:
slope: 35.0
azimuth: 180.0
tracking:
dc_ac_ratio: 1.25
resource_classes: 1
capacity_per_sqkm: 5.1
correction_factor: 1.0
Expand Down Expand Up @@ -370,6 +371,7 @@ renewable:
slope: 35.0
azimuth: 180.0
tracking: horizontal
dc_ac_ratio: 1.25
resource_classes: 1
capacity_per_sqkm: 4.43
correction_factor: 1.0
Expand Down Expand Up @@ -1026,6 +1028,7 @@ sector:
use_electrolysis_waste_heat: 0.25
electricity_transmission_grid: true
electricity_distribution_grid: true
solar_rooftop_dc_ac_ratio: 1.075
electricity_grid_connection: true
transmission_efficiency:
enable:
Expand Down
58 changes: 53 additions & 5 deletions config/schema.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -4531,6 +4531,12 @@
],
"default": null,
"description": "Tracking type (e.g., 'horizontal')."
},
"dc_ac_ratio": {
"default": 1.25,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
"minimum": 1,
"type": "number"
}
}
},
Expand All @@ -4541,7 +4547,7 @@
},
"capacity_per_sqkm": {
"default": 5.1,
"description": "Allowable density of solar panel placement.",
"description": "Allowable density of solar panel placement (MW AC per sqkm).",
"type": "number"
},
"correction_factor": {
Expand Down Expand Up @@ -4655,6 +4661,12 @@
],
"default": null,
"description": "Tracking type (e.g., 'horizontal')."
},
"dc_ac_ratio": {
"default": 1.25,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
"minimum": 1,
"type": "number"
}
}
},
Expand All @@ -4665,7 +4677,7 @@
},
"capacity_per_sqkm": {
"default": 5.1,
"description": "Allowable density of solar panel placement.",
"description": "Allowable density of solar panel placement (MW AC per sqkm).",
"type": "number"
},
"correction_factor": {
Expand Down Expand Up @@ -5844,6 +5856,12 @@
"description": "Add a simplified representation of the exchange capacity between transmission and distribution grid level through a link.",
"type": "boolean"
},
"solar_rooftop_dc_ac_ratio": {
"default": 1.075,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity of rooftop solar PV. The availability time series of utility-scale solar PV is rescaled from its own ratio to this one.",
"minimum": 1,
"type": "number"
},
"electricity_grid_connection": {
"default": true,
"description": "Add the cost of electricity grid connection for onshore wind and solar.",
Expand Down Expand Up @@ -9765,6 +9783,12 @@
],
"default": null,
"description": "Tracking type (e.g., 'horizontal')."
},
"dc_ac_ratio": {
"default": 1.25,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
"minimum": 1,
"type": "number"
}
}
},
Expand All @@ -9775,7 +9799,7 @@
},
"capacity_per_sqkm": {
"default": 5.1,
"description": "Allowable density of solar panel placement.",
"description": "Allowable density of solar panel placement (MW AC per sqkm).",
"type": "number"
},
"correction_factor": {
Expand Down Expand Up @@ -9871,6 +9895,12 @@
],
"default": null,
"description": "Tracking type (e.g., 'horizontal')."
},
"dc_ac_ratio": {
"default": 1.25,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
"minimum": 1,
"type": "number"
}
}
},
Expand Down Expand Up @@ -12012,6 +12042,12 @@
],
"default": null,
"description": "Tracking type (e.g., 'horizontal')."
},
"dc_ac_ratio": {
"default": 1.25,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
"minimum": 1,
"type": "number"
}
}
},
Expand All @@ -12022,7 +12058,7 @@
},
"capacity_per_sqkm": {
"default": 5.1,
"description": "Allowable density of solar panel placement.",
"description": "Allowable density of solar panel placement (MW AC per sqkm).",
"type": "number"
},
"correction_factor": {
Expand Down Expand Up @@ -12136,6 +12172,12 @@
],
"default": null,
"description": "Tracking type (e.g., 'horizontal')."
},
"dc_ac_ratio": {
"default": 1.25,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
"minimum": 1,
"type": "number"
}
}
},
Expand All @@ -12146,7 +12188,7 @@
},
"capacity_per_sqkm": {
"default": 5.1,
"description": "Allowable density of solar panel placement.",
"description": "Allowable density of solar panel placement (MW AC per sqkm).",
"type": "number"
},
"correction_factor": {
Expand Down Expand Up @@ -13819,6 +13861,12 @@
"description": "Add a simplified representation of the exchange capacity between transmission and distribution grid level through a link.",
"type": "boolean"
},
"solar_rooftop_dc_ac_ratio": {
"default": 1.075,
"description": "Ratio of module (DC) capacity to inverter (AC) capacity of rooftop solar PV. The availability time series of utility-scale solar PV is rescaled from its own ratio to this one.",
"minimum": 1,
"type": "number"
},
"electricity_grid_connection": {
"default": true,
"description": "Add the cost of electricity grid connection for onshore wind and solar.",
Expand Down
1 change: 1 addition & 0 deletions doc/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<!-- Upcoming Release -->
<!-- ================= -->
* Fix: Solar PV costs from `technology-data` refer to AC capacity, but the availability time series referred to DC capacity, which made solar PV too expensive. New options `renewable: solar: resource: dc_ac_ratio` and `sector: solar_rooftop_dc_ac_ratio` give the availability per unit of AC capacity with inverter clipping in each weather grid cell. Capacities and potentials of solar PV now refer to AC capacity. This changes default results. Requires `atlite` with `dc_ac_ratio` support, see [atlite#550](https://github.com/PyPSA/atlite/pull/550) ([#2078](https://github.com/PyPSA/pypsa-eur/pull/2078)).
* Fix: Gas pipelines ending in regions without an onshore region, e.g. offshore junctions at high resolution, now get gas and H2 buses instead of leaving the network inconsistent ([#2429](https://github.com/PyPSA/pypsa-eur/pull/2429)).
* Fix: Offshore wind profiles no longer fail for clustered buses without an onshore region; the nearest onshore regions then serve as the shoreline ([#2425](https://github.com/PyPSA/pypsa-eur/pull/2425)).
* Fix: Hydro reservoir storage (`renewable: hydro: hydro_max_hours`) no longer depends on the first unit of each country, and the default now matches the country totals. This changes default results ([#2428](https://github.com/PyPSA/pypsa-eur/pull/2428)).
Expand Down
7 changes: 6 additions & 1 deletion scripts/lib/validation/config/renewable.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class _SolarResourceConfig(BaseModel):
None,
description="Tracking type (e.g., 'horizontal').",
)
dc_ac_ratio: float = Field(
1.25,
description="Ratio of module (DC) capacity to inverter (AC) capacity. The availability time series is given per unit of AC capacity and clipped at the inverter limit in each weather grid cell. Capacities, potentials and costs of solar PV refer to AC capacity. The ratio must match the one assumed in the cost data.",
ge=1,
)


class _CorineConfig(BaseModel):
Expand Down Expand Up @@ -208,7 +213,7 @@ class _SolarConfig(BaseModel):
1, description="Number of resource classes per clustered region."
)
capacity_per_sqkm: float = Field(
5.1, description="Allowable density of solar panel placement."
5.1, description="Allowable density of solar panel placement (MW AC per sqkm)."
)
correction_factor: float = Field(
1.0,
Expand Down
5 changes: 5 additions & 0 deletions scripts/lib/validation/config/sector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,11 @@ class SectorConfig(BaseModel):
True,
description="Add a simplified representation of the exchange capacity between transmission and distribution grid level through a link.",
)
solar_rooftop_dc_ac_ratio: float = Field(
1.075,
description="Ratio of module (DC) capacity to inverter (AC) capacity of rooftop solar PV. The availability time series of utility-scale solar PV is rescaled from its own ratio to this one.",
ge=1,
)
electricity_grid_connection: bool = Field(
True,
description="Add the cost of electricity grid connection for onshore wind and solar.",
Expand Down
17 changes: 15 additions & 2 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,7 @@ def insert_electricity_distribution_grid(
options: dict,
pop_layout: pd.DataFrame,
solar_rooftop_potentials_fn: str,
solar_dc_ac_ratio: float,
) -> None:
"""
Insert electricity distribution grid components into the network.
Expand All @@ -1662,6 +1663,10 @@ def insert_electricity_distribution_grid(
Population data per node with at least:
- 'total' column containing population in thousands
Index should match network nodes
solar_rooftop_potentials_fn : str
Path to the rooftop solar potentials; empty if there are none
solar_dc_ac_ratio : float
DC/AC ratio of the utility-scale solar availability time series

Returns
-------
Expand Down Expand Up @@ -1752,6 +1757,9 @@ def insert_electricity_distribution_grid(
potential = pd.read_csv(fn, index_col=["bus", "bin"]).squeeze(axis=1)
potential.index = potential.index.map(flatten) + " solar"

dc_ac_scaling = options["solar_rooftop_dc_ac_ratio"] / solar_dc_ac_ratio
p_max_pu = dc_ac_scaling * n.generators_t.p_max_pu[solar]

n.add(
"Generator",
solar,
Expand All @@ -1763,7 +1771,7 @@ def insert_electricity_distribution_grid(
marginal_cost=n.generators.loc[solar, "marginal_cost"],
capital_cost=costs.at["solar-rooftop", "capital_cost"],
efficiency=n.generators.loc[solar, "efficiency"],
p_max_pu=n.generators_t.p_max_pu[solar],
p_max_pu=p_max_pu.clip(upper=1),
lifetime=costs.at["solar-rooftop", "lifetime"],
)

Expand Down Expand Up @@ -6962,7 +6970,12 @@ def main(

if options["electricity_distribution_grid"]:
insert_electricity_distribution_grid(
n, costs, options, pop_layout, inputs.solar_rooftop_potentials
n,
costs,
options,
pop_layout,
inputs.solar_rooftop_potentials,
params.renewable["solar"]["resource"]["dc_ac_ratio"],
)

if options["enhanced_geothermal"].get("enable", False):
Expand Down
Loading