Skip to content

Commit

Permalink
Merge branch 'bright' into add_biofuels
Browse files Browse the repository at this point in the history
  • Loading branch information
cpschau authored Oct 21, 2024
2 parents f609b52 + fe66179 commit 39dcfd0
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 278 deletions.
54 changes: 34 additions & 20 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -849,25 +849,37 @@ rule build_industrial_distribution_key: #default data
"scripts/build_industrial_distribution_key.py"


rule build_base_industry_totals: #default data
params:
base_year=config["demand_data"]["base_year"],
countries=config["countries"],
other_industries=config["demand_data"]["other_industries"],
input:
#industrial_production_per_country="data/industrial_production_per_country.csv",
#unsd_path="data/demand/unsd/data/",
energy_totals_base="data/energy_totals_base.csv",
transactions_path="data/unsd_transactions.csv",
output:
base_industry_totals="resources/demand/base_industry_totals_{planning_horizons}_{demand}.csv",
threads: 1
resources:
mem_mb=1000,
benchmark:
"benchmarks/build_base_industry_totals_{planning_horizons}_{demand}"
script:
"scripts/build_base_industry_totals.py"
if config["custom_data"]["industry_demand"]:

rule copy_industry_demand:
input:
source="data_custom/industry_demand_{demand}_{planning_horizons}.csv",
output:
destination="resources/demand/industry_demand_{demand}_{planning_horizons}.csv",
shell:
"cp {input.source} {output.destination}"

else:

rule build_base_industry_totals: #default data
params:
base_year=config["demand_data"]["base_year"],
countries=config["countries"],
other_industries=config["demand_data"]["other_industries"],
input:
#industrial_production_per_country="data/industrial_production_per_country.csv",
#unsd_path="data/demand/unsd/data/",
energy_totals_base="data/energy_totals_base.csv",
transactions_path="data/unsd_transactions.csv",
output:
base_industry_totals="resources/demand/base_industry_totals_{planning_horizons}_{demand}.csv",
threads: 1
resources:
mem_mb=1000,
benchmark:
"benchmarks/build_base_industry_totals_{planning_horizons}_{demand}"
script:
"scripts/build_base_industry_totals.py"


rule build_industry_demand: #default data
Expand All @@ -881,7 +893,9 @@ rule build_industry_demand: #default data
industrial_distribution_key="resources/demand/industrial_distribution_key_elec_s{simpl}_{clusters}_{planning_horizons}.csv",
#industrial_production_per_country_tomorrow="resources/demand/industrial_production_per_country_tomorrow_{planning_horizons}_{demand}.csv",
#industrial_production_per_country="data/industrial_production_per_country.csv",
base_industry_totals="resources/demand/base_industry_totals_{planning_horizons}_{demand}.csv",
base_industry_totals=lambda wildcards: "resources/demand/base_industry_totals_{planning_horizons}_{demand}.csv"
if not config["custom_data"]["industry_demand"]
else [],
industrial_database="data/industrial_database.csv",
costs=CDIR + "costs_{planning_horizons}.csv",
industry_growth_cagr="data/demand/industry_growth_cagr.csv",
Expand Down
102 changes: 44 additions & 58 deletions config.bright_BI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fossil_reserves:


export:
h2export: [200] #[10,20,30,40,50,60,70,80,90,100] # Yearly export demand in TWh
h2export: [10] #,20,30,40,50,60,70,80,90,100] # Yearly export demand in TWh
store: false # [True, False] # specifies wether an export store to balance demand is implemented
store_capital_costs: "no_costs" # ["standard_costs", "no_costs"] # specifies the costs of the export store. "standard_costs" takes CAPEX of "hydrogen storage tank type 1 including compressor"
export_profile: "constant" # use "ship" or "constant"
Expand Down Expand Up @@ -311,56 +311,46 @@ sector:
Co2L0.00: 0.01

land_transport_fuel_cell_share: # 1 means all FCEVs HERE
BU_2030: 0.00
BI_2030: 0.00
GH_2030: 0.20
BI_2030: 0.006
GH_2030: 0.036
DE_2030: 0.00
AP_2030: 0.004
NZ_2030: 0.02
DF_2030: 0.01
AB_2030: 0.01
BU_2050: 0.00
AP_2050: 0.06
NZ_2050: 0.28
DF_2050: 0.08
BI_2035: 0.001
GH_2035: 0.039
BI_2035: 0.023
GH_2035: 0.133
DE_2035: 0.00
BI_2040: 0.002
GH_2040: 0.099
BI_2040: 0.055
GH_2040: 0.266
DE_2040: 0.00
BI_2045: 0.010
GH_2045: 0.197
DE_2045: 0.00
BI_2050: 0.039
GH_2050: 0.336
DE_2050: 0.00
BI_2045: 0.102
GH_2045: 0.410
DE_2045: 0.021
BI_2050: 0.188
GH_2050: 0.584
DE_2050: 0.056

land_transport_electric_share: # 1 means all EVs # This leads to problems when non-zero HERE
BU_2030: 0.00
BI_2030: 0.002
GH_2030: 0.002
DE_2030: 0.005
AP_2030: 0.075
NZ_2030: 0.13
DF_2030: 0.01
BI_2030: 0.022
GH_2030: 0.018
DE_2030: 0.038
AB_2030: 0.01
BU_2050: 0.00
AP_2050: 0.42
NZ_2050: 0.68
DF_2050: 0.011
BI_2035: 0.014
GH_2035: 0.031
DE_2035: 0.053
BI_2040: 0.044
GH_2040: 0.092
DE_2040: 0.152
BI_2045: 0.066
GH_2045: 0.197
DE_2045: 0.332
BI_2050: 0.090
GH_2050: 0.320
DE_2050: 0.593
BI_2035: 0.065
GH_2035: 0.054
DE_2035: 0.133
BI_2040: 0.112
GH_2040: 0.090
DE_2040: 0.264
BI_2045: 0.183
GH_2045: 0.164
DE_2045: 0.457
BI_2050: 0.287
GH_2050: 0.263
DE_2050: 0.742

bio_transport_share: # 1 means all EVs # This leads to problems when non-zero HERE
BI_2035: 0.356
GH_2035: 0.237
DE_2035: 0.253


bio_transport_share: # 1 means all EVs # This leads to problems when non-zero HERE
BI_2035: 0.356
Expand All @@ -375,24 +365,21 @@ sector:
shipping_average_efficiency: 0.575 #For conversion of fuel oil to propulsion in 2011

shipping_hydrogen_share: #1.0
BU_2030: 0.00
BI_2030: 0.00
BI_2030: 0.0
GH_2030: 0.0
DE_2030: 0.0
BI_2035: 0.014
GH_2030: 0.00
GH_2035: 0.014
DE_2030: 0.00
DE_2035: 0.014
AP_2030: 0.00
NZ_2030: 0.10
DF_2030: 0.05
AB_2030: 0.05
BU_2050: 0.00
BI_2050: 0.24
BI_2040: 0.064
GH_2040: 0.064
DE_2040: 0.065
BI_2045: 0.128
GH_2045: 0.130
DE_2045: 0.131
BI_2050: 0.240
GH_2050: 0.248
DE_2050: 0.254
AP_2050: 0.25
NZ_2050: 0.36
DF_2050: 0.12

gadm_level: 1
marginal_cost_storage: 0
Expand Down Expand Up @@ -654,4 +641,3 @@ plotting:
oil pipeline: "grey"
agriculture biomass: "green"
biomass to liquid: "green"

94 changes: 38 additions & 56 deletions config.bright_BI_ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,56 +311,40 @@ sector:
Co2L0.00: 0.01

land_transport_fuel_cell_share: # 1 means all FCEVs HERE
BU_2030: 0.00
BI_2030: 0.00
GH_2030: 0.20
BI_2030: 0.006
GH_2030: 0.036
DE_2030: 0.00
AP_2030: 0.004
NZ_2030: 0.02
DF_2030: 0.01
AB_2030: 0.01
BU_2050: 0.00
AP_2050: 0.06
NZ_2050: 0.28
DF_2050: 0.08
BI_2035: 0.001
GH_2035: 0.039
BI_2035: 0.023
GH_2035: 0.133
DE_2035: 0.00
BI_2040: 0.002
GH_2040: 0.099
BI_2040: 0.055
GH_2040: 0.266
DE_2040: 0.00
BI_2045: 0.010
GH_2045: 0.197
DE_2045: 0.00
BI_2050: 0.039
GH_2050: 0.336
DE_2050: 0.00
BI_2045: 0.102
GH_2045: 0.410
DE_2045: 0.021
BI_2050: 0.188
GH_2050: 0.584
DE_2050: 0.056

land_transport_electric_share: # 1 means all EVs # This leads to problems when non-zero HERE
BU_2030: 0.00
BI_2030: 0.002
GH_2030: 0.002
DE_2030: 0.005
AP_2030: 0.075
NZ_2030: 0.13
DF_2030: 0.01
BI_2030: 0.022
GH_2030: 0.018
DE_2030: 0.038
AB_2030: 0.01
BU_2050: 0.00
AP_2050: 0.42
NZ_2050: 0.68
DF_2050: 0.011
BI_2035: 0.014
GH_2035: 0.031
DE_2035: 0.053
BI_2040: 0.044
GH_2040: 0.092
DE_2040: 0.152
BI_2045: 0.066
GH_2045: 0.197
DE_2045: 0.332
BI_2050: 0.090
GH_2050: 0.320
DE_2050: 0.593
BI_2035: 0.065
GH_2035: 0.054
DE_2035: 0.133
BI_2040: 0.112
GH_2040: 0.090
DE_2040: 0.264
BI_2045: 0.183
GH_2045: 0.164
DE_2045: 0.457
BI_2050: 0.287
GH_2050: 0.263
DE_2050: 0.742

bio_transport_share: # 1 means all EVs # This leads to problems when non-zero HERE
BI_2035: 0.356
Expand All @@ -375,24 +359,21 @@ sector:
shipping_average_efficiency: 0.575 #For conversion of fuel oil to propulsion in 2011

shipping_hydrogen_share: #1.0
BU_2030: 0.00
BI_2030: 0.00
BI_2030: 0.0
GH_2030: 0.0
DE_2030: 0.0
BI_2035: 0.014
GH_2030: 0.00
GH_2035: 0.014
DE_2030: 0.00
DE_2035: 0.014
AP_2030: 0.00
NZ_2030: 0.10
DF_2030: 0.05
AB_2030: 0.05
BU_2050: 0.00
BI_2050: 0.24
BI_2040: 0.064
GH_2040: 0.064
DE_2040: 0.065
BI_2045: 0.128
GH_2045: 0.130
DE_2045: 0.131
BI_2050: 0.240
GH_2050: 0.248
DE_2050: 0.254
AP_2050: 0.25
NZ_2050: 0.36
DF_2050: 0.12

gadm_level: 1
marginal_cost_storage: 0
Expand Down Expand Up @@ -653,3 +634,4 @@ plotting:
high-temp electrolysis: "magenta"
oil pipeline: "grey"
agriculture biomass: "green"
land transport biomass: "green"
Loading

0 comments on commit 39dcfd0

Please sign in to comment.