first step add max_growth

This commit is contained in:
lisazeyen 2023-08-25 11:56:29 +02:00
parent 727aab92f5
commit e6d779a91f
2 changed files with 26 additions and 0 deletions

View File

@ -499,6 +499,11 @@ sector:
OCGT: gas
biomass_to_liquid: false
biosng: false
max_growth:
onwind: 16
solar: 28
offwind-ac: 35
offwind-dc 35
# docs in https://pypsa-eur.readthedocs.io/en/latest/configuration.html#industry
industry:

View File

@ -233,6 +233,25 @@ def add_carbon_neutral_constraint(n, snapshots):
n.model.add_constraints(lhs <= rhs, name=f"GlobalConstraint-{name}")
def add_max_growth(n):
"""Add maximum growth rates for different carriers"""
logger.info("set maximum growth rate of renewables.")
# solar max grow so far 28 GW in Europe https://www.iea.org/reports/renewables-2020/solar-pv
n.carriers.loc["solar", "max_growth"] = 280 * 1.3 * 1e3 # 70 * 1e3
# onshore max grow so far 16 GW in Europe https://www.iea.org/reports/renewables-2020/wind
n.carriers.loc["onwind", "max_growth"] = 160 * 1.3 * 1e3 # 40 * 1e3
# offshore max grow so far 3.5 GW in Europe https://windeurope.org/about-wind/statistics/offshore/european-offshore-wind-industry-key-trends-statistics-2019/
n.carriers.loc[["offwind-ac", "offwind-dc"], "max_growth"] = 35 * 1.3 * 1e3 # 8.75 * 1e3
res = ["solar", "onwind", "offwind-ac", "offwind-dc"]
n.carriers.loc[res, "max_relative_growth"] = 3
# # heating sector
# heat_c = n.carriers[n.carriers.index.str.contains("pump")].index
# n.carriers.loc[res, "max_relative_growth"] = 2
return n
def prepare_network(
n,
solve_opts=None,
@ -295,6 +314,7 @@ def prepare_network(
if foresight == "perfect":
n = add_land_use_constraint_perfect(n)
n = add_max_growth(n)
if n.stores.carrier.eq("co2 stored").any():
limit = co2_sequestration_potential
@ -665,6 +685,7 @@ def add_pipe_retrofit_constraint(n):
n.model.add_constraints(lhs == rhs, name="Link-pipe_retrofit")
def extra_functionality(n, snapshots):
"""
Collects supplementary constraints which will be passed to