industrial prod: use EU28 total for denominator for distribution key

This makes sure the distribution key is correct when only subsets of
countries are used. This is then consistent with the HVC, MeOH and Cl
totals being EU28 totals.

Without this change, industry production is overestimated when using
subsets of countries.

Or the user has to adjust the totals for industrial production
themselves.
This commit is contained in:
Tom Brown 2024-02-14 10:33:50 +01:00 committed by Fabian Neumann
parent cbf7ed0d38
commit cc57952402
2 changed files with 2 additions and 1 deletions

View File

@ -637,6 +637,7 @@ industry:
2045: 0.16
2050: 0.20
basic_chemicals_without_NH3_energy_demand_today: 1138. #TWh/a
basic_chemicals_without_NH3_production_today: 69. #Mt/a
HVC_production_today: 52.
MWh_elec_per_tHVC_mechanical_recycling: 0.547
MWh_elec_per_tHVC_chemical_recycling: 6.9

View File

@ -261,7 +261,7 @@ def separate_basic_chemicals(demand, year):
demand["Basic chemicals"].clip(lower=0.0, inplace=True)
# assume HVC, methanol, chlorine production proportional to non-ammonia basic chemicals
distribution_key = demand["Basic chemicals"] / demand["Basic chemicals"].sum()
distribution_key = demand["Basic chemicals"] / params["basic_chemicals_without_NH3_production_today"] / 1e3
demand["HVC"] = params["HVC_production_today"] * 1e3 * distribution_key
demand["Chlorine"] = params["chlorine_production_today"] * 1e3 * distribution_key
demand["Methanol"] = params["methanol_production_today"] * 1e3 * distribution_key