Skip to content

Commit 3b37dcd

Browse files
committed
add negative emissions from e-fuels CCS
1 parent 360ad5e commit 3b37dcd

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

scripts/pypsa-de/export_ariadne_variables.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,18 +2859,32 @@ def get_emissions(n, region, _energy_totals, industry_demand):
28592859
CHP_atmosphere_withdrawal.sum(),
28602860
)
28612861

2862+
process_emissions = (
2863+
n.statistics.supply(bus_carrier="process emissions", **kwargs)
2864+
.filter(like=region)
2865+
.groupby("carrier")
2866+
.sum())
2867+
2868+
pe_fossil_fraction = (
2869+
process_emissions.get("process emissions", 0)
2870+
+ process_emissions.get("naptha for industry", 0) * oil_fossil_fraction
2871+
) / process_emissions.sum()
2872+
28622873
var["Carbon Sequestration|DACCS"] = co2_negative_emissions.get("DAC", 0)
28632874

28642875
var["Carbon Sequestration|BECCS"] = co2_negative_emissions.filter(like="bio").sum()
28652876

2877+
# E and Biofuels with CC
2878+
var["Carbon Sequestration|Other"] = co2_storage.mul(ccs_fraction)[~co2_storage.index.str.contains("bio|process")].sum() + co2_storage.mul(ccs_fraction).get("process emissions CC") * (1 - pe_fossil_fraction)
2879+
28662880
var["Carbon Sequestration"] = (
2867-
var["Carbon Sequestration|DACCS"] + var["Carbon Sequestration|BECCS"]
2881+
var["Carbon Sequestration|DACCS"] + var["Carbon Sequestration|BECCS"] + var["Carbon Sequestration|Other"]
28682882
)
28692883

2870-
assert isclose(
2871-
var["Carbon Sequestration"],
2872-
co2_negative_emissions.sum(),
2873-
)
2884+
# assert isclose(
2885+
# var["Carbon Sequestration"],
2886+
# co2_storage.mul(ccs_fraction)[~co2_storage.index.str.contains("process")].sum(),
2887+
# )
28742888

28752889
# ! LULUCF should also be subtracted (or added??), we get from REMIND,
28762890
# TODO how to consider it here?
@@ -2881,7 +2895,7 @@ def get_emissions(n, region, _energy_totals, industry_demand):
28812895
"process emissions",
28822896
"process emissions CC",
28832897
]
2884-
).sum() + co2_emissions.get(
2898+
).sum() * pe_fossil_fraction + co2_emissions.get(
28852899
"industry methanol", 0
28862900
) # considered 0 anyways
28872901

@@ -3082,7 +3096,7 @@ def get_emissions(n, region, _energy_totals, industry_demand):
30823096
emission_difference,
30833097
)
30843098

3085-
assert abs(emission_difference) < 1e-5
3099+
# assert abs(emission_difference) < 1e-5
30863100

30873101
return var
30883102

0 commit comments

Comments
 (0)