Skip to content

Fix free sink for hydrogen and biogas in the SE balance (audit result) - #2544

Open
tonnrueter wants to merge 2 commits into
remindmodel:developfrom
tonnrueter:fix/B40-demSeOth-csp
Open

tonnrueter wants to merge 2 commits into
remindmodel:developfrom
tonnrueter:fix/B40-demSeOth-csp

Conversation

@tonnrueter

@tonnrueter tonnrueter commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

q_balSe contains vm_demSeOth for the csp entries of demSeOth2te (seh2, segabio, segafos). These were tied to CSP co-firing by q32_H2cofiring, which was removed with RLDC in #1769. Since then they have no equation, bound or cost, so the model can dump secondary energy there for free. It mainly dumps hydrogen from gas-H2 plants built in 2030, the last year they can be built (0.56–0.64 EJ/yr worldwide), and some biogas.

This PR fixes these entries to zero. In NPi, NDC, rollBack and EcBudg500, gas-H2 capacity w/o CC drops by about 30 % from 2030 onwards and SE|Hydrogen by about 0.4–0.5 EJ/yr in 2030. Totals barely change. The biochar entry, which also uses vm_demSeOth, is not touched.

Deleting the csp entries from demSeOth2te would be cleaner than the bound, but remind2 reads them. Should we do that in a follow-up together with a remind2 PR?

Purpose of this PR

Please explain your PR here.

Type of change

Indicate the items relevant for your PR by replacing ◻️ with ☑️.
Do not delete any lines. This makes it easier to understand which areas are affected by your changes and which are not.

Parts concerned

  • ☑️ GAMS Code
  • ◻️ R-scripts
  • ◻️ Documentation (GAMS incode documentation, comments, tutorials)
  • ◻️ Input data / CES parameters
  • ◻️ Tests, CI/CD (continuous integration/deployment)
  • ◻️ Configuration (switches in main.gms, default.cfg, and scenario_config*.csv files)
  • ◻️ Other (please give a description)

Impact

  • ☑️ Bug fix
  • ◻️ Refactoring
  • ◻️ Deletion
  • ◻️ Documentation / comments
  • ◻️ New feature
  • ◻️ Change of parameter values or input data (including CES parameters)
  • ◻️ Minor change (default scenarios show only small differences)
  • ◻️ Fundamental change of results of default scenarios

Checklist

Do not delete any line. Leave unfinished elements unchecked so others know how far along you are.
In the end all checkboxes must be ticked before you can merge
.

Note: This is not required for documentation PRs that only touch tutorials/ or *.md/*.Rmd files.

  • I executed the automated model tests (make test) after my final commit and all tests pass (FAIL 0)
  • I adjusted the reporting in remind2 if and where it was needed
  • I adjusted the madrat packages (mrremind and other packages involved) for input data generation if and where it was needed
  • My code follows the coding etiquette
  • I explained my changes within the PR, particularly in hard-to-understand areas
  • I checked that the in-code documentation is up-to-date
  • I adjusted forbiddenColumnNames in readCheckScenarioConfig.R in case the PR leads to deprecated switches
  • I updated the CHANGELOG.md correctly (added, changed, fixed, removed, input data/calibration)

Further information (optional)

  • Runs with these changes are here (after = this PR, before = develop at 1e2dbd9):
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-NPi2025-B40-before_2026-11-17_13.50.52
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-NPi2025-B40-after_2026-11-17_14.32.31
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-NDC-B40-before_2026-11-17_17.39.55
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-NDC-B40-after_2026-11-17_17.42.56
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-rollBack-B40-before_2026-11-17_17.40.50
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-rollBack-B40-after_2026-11-18_13.28.11
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-EcBudg500-B40-before_2026-11-17_17.40.27
    • /p/tmp/tonnru/bye-module/another-remind/output/SSP2-EcBudg500-B40-after_2026-11-17_17.43.22 (EcBudg500 does not converge, with or without this PR)
  • Comparison of results (what changes by this PR?):
    • /p/tmp/tonnru/bye-module/another-remind/output/compScen-B40-before-after-2026-11-17_16.55.53-H12.pdf (NPi)
    • /p/tmp/tonnru/bye-module/another-remind/output/compScen-B40-NDC-rollBack-after-before-2026-11-18_16.10.30-H12.pdf (NDC, rollBack)

When the RLDC power realization was removed (`6a1f2ab0b`, remindmodel#1769), the equation `q32_H2cofiring` went with it. It tied the demand variable `vm_demSeOth` to solar thermal plants (csp). The csp entries of `demSeOth2te` (`seh2`, `segabio`, `segafos`) stayed in the secondary energy balance `q_balSe`, without any bound or cost. The model used them to throw away surplus hydrogen, mostly from gas plants (`gash2`) built for 2030.

Fix vm_demSeOth to zero for the csp entries in `core/bounds.gms`.  The biochar entry (`sebiochar.biocharuse`) is not changed.
@tonnrueter tonnrueter self-assigned this Nov 20, 2026
@tonnrueter
tonnrueter requested a review from lecfab November 20, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant