Skip to content

Commit 3a39b1b

Browse files
BertoGBGclaudepre-commit-ci[bot]fneummartavp
authored
Add CDR options: rock_weathering, biochar, afforestation, perennials (#2405)
* Add biochar as a carbon dioxide removal technology Ported from the a_CDRs development branch. Adds biochar production (biomass pyrolysis with stable-carbon soil storage) as an optional CDR technology: a single pyrolysis Link per node converting biomass and electricity into stored biochar-carbon, with optional district-heat export. Land potential comes from the shared CORINE-based availability- matrix machinery (determine_carbon_dioxide_removal_availability_matrix + build_available_land), reused here for biochar only. Off by default (sector.biochar.enable: false). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add perennialisation as a carbon dioxide removal technology Ported from the a_CDRs development branch. Adds perennialisation (conversion of 1st-generation biofuel cropland to perennial grasses) as an optional CDR technology: land area displaced from 1G biofuel production is backed out from existing biomass potentials and NUTS2 crop yields, converted to a CO2 sequestration potential, and dispatched via an April-October harvest profile. Retrieves NUTS2 Eurostat crop-yield data from the same Zenodo-archived CO2-removal data package afforestation will also depend on (rules/retrieve.smk: retrieve_co2_removal_data, kept byte-identical to avoid conflicts whichever PR merges first). Off by default (sector.perennials: false). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add enhanced rock weathering as a carbon dioxide removal technology Ported from the a_CDRs development branch. Adds enhanced rock weathering (CDR via accelerated mineral carbonation) as an optional CDR technology: a single Link per node draws electricity and atmospheric CO2 into a fixed-capacity Store representing the cumulative mineral-carbonation potential, dimensioned from CORINE-eligible land area filtered by an annual-mean-temperature threshold (atlite cutout), rather than a bioclimate-zone raster. Shares the build_available_land aggregation step with the biochar/afforestation PRs (kept byte-identical to avoid conflicts whichever merges first); the availability-matrix step itself is rock weathering's own script since it needs the temperature exclusion the shared determine_availability_matrix.py doesn't have. Off by default (sector.rock_weathering: false). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Remove check_biochar_pipeline.py diagnostic script from PR * Remove check_biochar_pipeline.py diagnostic script from PR * Remove check_perennials_pipeline.py diagnostic script from PR * delete check_pipeline_files * delete check_pipeline_files * 1G biofuels are substituted is are located in the not included biomass class * added determine availability matrix based on mean annual Tmin filtering * doc: release_note.md * updated technology-data version in versions.csv * Add config schema validation and docs for rock weathering * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix add_rock_weathering: pass inputs as parameters instead of reading global snakemake * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: update electricity grid connection cost lookup for technology-data v0.15.0 rename * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update config/schema.default.json Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update config/schema.default.json Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update scripts/lib/validation/config/rock_weathering.py Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update doc/release_notes.md Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * ERW PR update * Update config/config.default.yaml Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update config/config.default.yaml Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update config/config.default.yaml Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * biochar PR small fix variables names * all biochar params under sectors in config.default * pre PR changes * Add config schema validation for perennials; add release note Mirrors the pattern set by rock_weathering_PR (scripts/lib/validation/config/rock_weathering.py): - New scripts/lib/validation/config/perennials.py with PerennialsConfig (sequestration_co2), registered on the top-level ConfigSchema in _schema.py. - sector.py: added sector.perennials: bool (the CDR technology toggle). - data.py: added data.co2_removal_data as a _DataSourceConfig (feeds the retrieve_co2_removal_data rule's Eurostat crop yield inputs). - Regenerated config/config.default.yaml and config/schema.default.json from the new models; both config-schema sync tests now pass (they were failing before, same root cause as biochar_PR's still-open gap: perennials config wasn't covered by any pydantic model). Also added a release_notes.md entry matching rock_weathering_PR's "Upcoming Release" bullet style, referencing tracking issue #2143. This commit was preceded by a merge of upstream/master (57 commits behind at the time) to pull in the validation framework this depends on. That merge had exactly one conflict, in scripts/_helpers.py: both branches had independently appended unrelated functions to the end of the file (resolve_biomass_classes() here vs. _simplify_polys()/ load_data_versions() upstream) - resolved by keeping both. Full test suite (29 tests) and ruff both pass. Verified via Snakemake dry-run with sector.perennials temporarily set to true that the full 77-job DAG resolves end-to-end. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mh2EaBSg63Gsi4epA1Rmky * added release notes and schema * new rules documented in doc.md * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix add_perennials cost lookup: "perennials refining" -> "perennials gbr" The technology-data source (BertoGBG/technology-data pypsa-eur_AA branch) names this row "perennials gbr" (Grass BioRefinery), not "perennials refining". add_perennials() was looking up the wrong name, which would crash with KeyError: 'perennials refining' as soon as a run actually exercised this path. Already fixed on the `perennialisation` branch; ported here and to a_CDRs/heat_industry. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Rename biochar pyrolysis cost parameter yield-biochar to biochar-output Follows the rename in technology-data PR #258. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Unpack only the perennialisation inputs from the CO2-removal dataset The co2_removal_data dataset (now Zenodo v1.0.2) is shared with the afforestation and unsustainable biomass upstream emissions PRs. All of them add the same versions.csv row and data config entry and the same retrieve_co2_removal_data rule; each unpacks only its own files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * yield-biochar → biochar-output * Update scripts/build_perennials_yields.py Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update scripts/prepare_sector_network.py Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update scripts/prepare_sector_network.py Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update scripts/build_perennials_yields_eurostat_average.py Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Update scripts/prepare_sector_network.py Co-authored-by: martavp <30744159+martavp@users.noreply.github.com> * Add afforestation as a carbon dioxide removal technology New option sector: afforestation. Eligible land per node is CORINE transitional woodland-shrub (renewable: afforestation). The sequestration potential uses rotation-averaged rates per NUTS-2 region from the JRC forest yield tables, with FluxCom monthly profiles. Credited removal is the gross sequestration times afforestation: crcf_efficiency (0.8). In myopic runs, forests planted in earlier horizons reduce the remaining potential. Input data come from the co2_removal_data dataset (CO2-removal, Zenodo), unpacked by retrieve_co2_removal_data. Config schema, defaults, configuration docs and release note included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Derive the perennial land from ENSPRESO 2020 scaled to Eurostat, credit soil carbon only Land: the cropland available for perennials is the JRC ENSPRESO 1G biofuel potential of 2020 (NUTS2, crop and fuel mix), scaled with one factor so that its fuel energy matches the Eurostat unsustainable bioliquids of the model (the same data as the phase-out), freed by the phase-out (1 - r) and divided by the Eurostat crop yields as before. Crop energy is converted to fuel energy with the technology-data crop-to-fuel efficiencies (ethanol from wheat, ethanol from sugar beet, biodiesel from rapeseed) and the fuel heating values (new config entries biomass: unsustainable_bioliquids). The fixed ENSPRESO year replaces biofuels_1G_land_year. The new parameter perennials: land_multiplier (default 1) is a user-driven correction of the land available, e.g. to project it. Credit: grass-clover is fertilised like the 1G crops it replaces (DCA report 193, Jorgensen et al. 2021), so the field N2O and the ammonia demand do not change and the avoided-emissions credit and the ammonia coupling are removed. The credit is the soil carbon only: perennials: sequestration_co2_credited (renamed from sequestration_co2, default 2 tCO2/ha/yr, the credited share of the 2.2 tCO2/ha/yr soil carbon gain of grass-clover). add_perennials is back to the reviewed version; the link uses the technology-data entry "perennials refining". Data: CO2-removal v1.0.4 (https://doi.org/10.5281/zenodo.23954311). The co2_removal_data entry (versions.csv, data config) is shared with the afforestation PR and the PR on the upstream emissions of the unsustainable bioliquids; each PR's retrieve_co2_removal_data unpacks only its own files (here the Eurostat crop tables and the crop heating values). Perennialisation runs on its own and does not overlap with that option: the bioliquids factor covers the land still used for bioliquids, perennialisation only the freed land. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add upstream emissions of unsustainable bioliquids New option sector: unsustainable_biomass_upstream_emissions (default false) adds the cultivation emissions of the unsustainable bioliquids as exogenous emission factors from the new dataset co2_removal_data (CO2-removal v1.0.4, https://doi.org/10.5281/zenodo.23954311). The 1st-generation crops of the bioliquids (bioethanol from wheat, biodiesel from rapeseed; JRC input data for the RED default values, Edwards et al. 2019) on the land still used for bioliquids are allocated to the energy system. The factor counts their field emissions in full (N2O and soil acidification from the N fertiliser) and the production emissions of the imported N fertiliser (30%, made outside Europe from fossil fuels). The N fertiliser made in Europe is already in the industrial ammonia demand, which is not changed: land freed by the phase-out returns to food/feed with the same fertiliser per hectare, outside the model. Farm diesel is in the agriculture energy demand. This gives 0.091 (bioethanol) and 0.066 (biodiesel) tCO2eq/MWh of fuel, weighted per node by the country's Eurostat production mix and added to the CO2 balance of the unsustainable bioliquids link. Unsustainable solid biomass is not changed: in Eurostat it is about 93% fuelwood, wood residues and black liquor, without cultivation emissions. Its harvest, processing and transport energy in Europe is already in the energy demand (JRC, Giuntoli et al. 2017), and forest carbon stock changes belong to the LULUCF sink. The co2_removal_data entry (versions.csv, data config) is shared with the afforestation and perennialisation PRs; each PR's retrieve_co2_removal_data unpacks only its own files (here the upstream emissions table). * Document retrieve_co2_removal_data Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Document retrieve_co2_removal_data Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Document retrieve_co2_removal_data Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Release note: reasoning for no upstream factor on unsustainable solid biomass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * unify land-based carbon dioxide removal options Rock weathering, biochar and afforestation share one land eligibility rule and one config layout under sector. Removal is permanent, so the options draw from the atmosphere at a constant rate without extra buses or stores; the annual potential caps the capacity. * simplify upstream emissions of unsustainable bioliquids Carry the emissions as a column of the biomass potentials instead of a separate per-node table, and unpack the dataset into its data folder. * document land reuse after rotation age * apply land share once in available land; acknowledge funding * follow technology-data rename of afforestation; clearer config names * document land-based removal in the carbon management design page * rename land rule, add archive entry, limit link clipping to listed carriers * cite Fernandes et al. (2026) for the carbon dioxide removal dataset * update technology-data to v0.16.0 * replace regional yield chain by a lean perennials option * join perennial grass with the land-based removal options --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de> Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
1 parent 109fec0 commit 3a39b1b

23 files changed

Lines changed: 1396 additions & 19 deletions

‎config/config.default.yaml‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,50 @@ sector:
909909
coal_cc: false
910910
ccgt_cc: false
911911
dac: true
912+
rock_weathering:
913+
enable: false
914+
corine:
915+
- 12
916+
- 13
917+
- 14
918+
natura: false
919+
excluder_resolution: 250
920+
max_land_usage: 0.2
921+
min_mean_temp: 10
922+
co2_removal_per_sqkm: 309
923+
biochar:
924+
enable: false
925+
corine:
926+
- 12
927+
- 13
928+
- 14
929+
natura: false
930+
excluder_resolution: 250
931+
max_land_usage: 0.2
932+
application_per_sqkm: 1500
933+
application_years: 25
934+
use_waste_heat: 0.25
935+
afforestation:
936+
enable: false
937+
corine:
938+
- 29
939+
natura: false
940+
excluder_resolution: 250
941+
max_land_usage: 1.0
942+
credited_share: 0.8
943+
perennials:
944+
enable: false
945+
hectares_per_mwh: 0.06
946+
co2_removal_per_hectare: 2
947+
yield_per_hectare: 7.5
948+
harvest_months:
949+
- 4
950+
- 5
951+
- 6
952+
- 7
953+
- 8
954+
- 9
955+
- 10
912956
co2_vent: false
913957
heat_vent:
914958
urban central: true
@@ -1030,6 +1074,7 @@ sector:
10301074
gas_distribution_grid_cost_factor: 1.0
10311075
biomass_spatial: true
10321076
biomass_transport: false
1077+
unsustainable_biomass_upstream_emissions: false
10331078
biogas_upgrading: true
10341079
biogas_upgrading_cc: false
10351080
conventional_generation:
@@ -1452,6 +1497,9 @@ data:
14521497
instrat_co2_prices:
14531498
source: primary
14541499
version: latest
1500+
co2_removal_data:
1501+
source: primary
1502+
version: latest
14551503
co2stop:
14561504
source: archive
14571505
version: latest

‎config/plotting.default.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ plotting:
698698
CCS: "#f29dae"
699699
CO2 sequestration: "#f29dae"
700700
DAC: "#ff5270"
701+
perennials: "#008ffc"
701702
co2 stored: "#f2385a"
702703
co2 sequestered: "#f2682f"
703704
co2 dense: "#65334d"
@@ -746,3 +747,6 @@ plotting:
746747
import NH3: "#e2ed74"
747748
import oil: "#93eda2"
748749
import methanol: "#87d0e6"
750+
afforestation: "#22cc22"
751+
biochar: "#005000"
752+
rock weathering: "#ab6ae9"

0 commit comments

Comments
 (0)