pypsa-eur icon indicating copy to clipboard operation
pypsa-eur copied to clipboard

gaslimit has no effect on OCGT and CCGT power generation

Open JohannRB opened this issue 5 months ago • 1 comments

Version Checks (indicate both or one)

  • [x] I have confirmed this bug exists on the lastest release of PyPSA-Eur.

  • [x] I have confirmed this bug exists on the current master branch of PyPSA-Eur.

Issue Description

If I set gaslimit to 0.0 there are still OCGT and CCGT in my results. On the gas_balance graph I can still see a significant gas usage (no imported gas) für power generation via OCGT and CCGT.

My scenario:

Gasverbot: planning_horizons: [2045, 2050] electricity: gaslimit_enable: true gaslimit: 0.0 extendable_carriers: Generator: [ solar, solar-hsat, onwind, offwind-ac, offwind-dc, offwind-float, hydrogen_turbine] conventional_carriers: [oil, coal, lignite, geothermal, biomass]

in the prepare_network script I found this:

def add_gaslimit(n, gaslimit, Nyears=1.0): sel = n.carriers.index.intersection(["OCGT", "CCGT", "CHP"]) n.carriers.loc[sel, "gas_usage"] = 1.0 n.add( "GlobalConstraint", "GasLimit", carrier_attribute="gas_usage", sense="<=", constant=gaslimit * Nyears,)

the added Global constraint resulting from the gas limit apparently has no effect..

Does anybody know how to fix this?

I am using the Myopic-Setup

Reproducible Example

ni

Expected Behavior

ni

Installed Versions

Replace this line.

JohannRB avatar Jul 09 '25 13:07 JohannRB

Yes, that's a confirmed issue (leftover from electricity-only and sector-coupled model). Only applied to electricity-only models. Sorry.

fneum avatar Jul 10 '25 09:07 fneum