add Biochar as carbon removal technology#2231
Open
BertoGBG wants to merge 5 commits into
Open
Conversation
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>
Author
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes # (if applicable).
Changes proposed in this Pull Request
This PR introduces Biochar as a Carbon Dioxide Removal (CDR) technology, based on #2141.
Biochar is a land-based CDR technology and its technical potential is related to land availability. As with enhanced rock weathering, the land available is calculated from the CORINE Land Cover dataset using the shared build_available_land.py script, which aggregates a per-bus land-eligibility availability matrix into eligible land area pernetwork node (in km²). That availability matrix is itself produced by a new determine_carbon_dioxide_removal_availability_matrix rule, which reuses the existing scripts/determine_availability_matrix.py unchanged (the same script already used for onwind/offwind/solar). Eligibility is governed by CORINE codes for non-irrigated arable land (potential biochar feedstock land).
#NOTE: biochar's land-eligibility settings (corine, natura, cutout, excluder_resolution) live under renewable: rather than a CDR-specific namespace, for the same reason discussed in the enhanced rock weathering CDR PR: build_available_land.py/determine_availability_matrix.py reuse the same atlite ExclusionContainer machinery and config shape already used for onwind/offwind/solar, read generically via config_provider("renewable", w.technology,
...). It's a pragmatic reuse of existing land-eligibility infrastructure, not a claim that biochar is a power-generation technology. Open to moving it to a separate namespace if preferred — worth deciding consistently across all land-based CDR technologies (rock weathering, biochar, and afforestation to follow) rather than per-PR.
The actual implementation of the CDR technology is part of scripts/prepare_sector_network.py (add_biochar()), which adds biochar as Bus/Store/Link components sharing a single co2 biochar carrier, the Link converts solid biomass
and electricity into squestered biochar-carbon (drawn from the atmosphere), and optionally exports pyrolysis waste heat to the urban central heating system (config by sector.biochar.heat_output).
The config.default.yaml contains the main parameters for calculating the CDR potential (application_per_sqkm, max_land_usage, number_years, under a top-level biochar: block), and sets sector.biochar.enable (and sector.biochar.heat_output) to false by default.
NOTE on Technology-data version
Data dependency note (technology-data)
add_biochar() requires a "biochar pyrolysis" cost entry with biomass-input, electricity-input, heat-output, capital_cost, and VOM parameters. Unlike enhanced rock weathering's data (already released in technology-data v0.15.0), biochar's cost data is not yet part of any released technology-data version, not v0.14.0 (currently pinned as "latest supported" in data/versions.csv), nor v0.15.0. It is currently only available in the PR PyPSA/technology-data#258.
Hence, running with sector.biochar.enable: true today will raise a KeyError.
Checklist
Required:
doc/release_notes.md.If applicable:
scripts/lib/validation.doc/*.mdfiles.