Skip to content

Commit

Permalink
Merge pull request #854 from openego/fixes/#847_gas_costs
Browse files Browse the repository at this point in the history
Fixes gas costs
  • Loading branch information
AmeliaNadal committed Aug 4, 2022
2 parents eac8f2e + 54841ed commit 513bf72
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ Bug Fixes
`#776 <https://github.com/openego/eGon-data/issues/776>`_
* Fix model load timeseries in motorized individual travel
`#830 <https://github.com/openego/eGon-data/issues/830>`_
* Fix gas costs
`#830 <https://github.com/openego/eGon-data/issues/847>`_
* Add imports that have been wrongly deleted
`#849 <https://github.com/openego/eGon-data/issues/849>`_
* Fix final demand of heat demand timeseries
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/scenario_parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ScenarioParameters(Dataset):
def __init__(self, dependencies):
super().__init__(
name="ScenarioParameters",
version="0.0.9",
version="0.0.10",
dependencies=dependencies,
tasks=(
create_table,
Expand Down
47 changes: 40 additions & 7 deletions src/egon/data/datasets/scenario_parameters/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ def gas(scenario):
"CH4_to_H2": read_costs(costs, "SMR", "investment"), # CC?
"H2_to_CH4": read_costs(costs, "methanation", "investment"),
# what about H2 compressors?
"H2_feedin": 0,
"H2_underground": read_costs(
costs, "hydrogen storage underground", "investment"
),
Expand All @@ -521,6 +522,7 @@ def gas(scenario):
costs, "hydrogen storage tank incl. compressor", "lifetime"
),
"H2_pipeline": read_costs(costs, "H2 (g) pipeline", "lifetime"),
"H2_feedin": read_costs(costs, "CH4 (g) pipeline", "lifetime"),
}

# Insert annualized capital costs
Expand Down Expand Up @@ -569,17 +571,16 @@ def gas(scenario):
"power_to_H2": read_costs(costs, "electrolysis", "efficiency"),
"H2_to_power": read_costs(costs, "fuel cell", "efficiency"),
"CH4_to_H2": read_costs(costs, "SMR", "efficiency"), # CC?
"H2_feedin": 1,
"H2_to_CH4": read_costs(costs, "methanation", "efficiency"),
"OCGT": read_costs(costs, "OCGT", "efficiency"),
}
# Insert costs
parameters["capital_cost"] = {
# Insert overnight investment costs
parameters["overnight_cost"] = {
"power_to_H2": read_costs(costs, "electrolysis", "investment"),
"H2_to_power": read_costs(costs, "fuel cell", "investment"),
"CH4_to_H2": read_costs(costs, "SMR", "investment"), # CC?
"H2_feedin": 0,
"H2_to_CH4": read_costs(costs, "methanation", "investment"),
# what about H2 compressors?
"H2_underground": read_costs(
costs, "hydrogen storage underground", "investment"
),
Expand All @@ -593,11 +594,43 @@ def gas(scenario):
costs, "H2 (g) pipeline repurposed", "investment"
), # [EUR/MW/km]
}

# Insert lifetime
parameters["lifetime"] = {
"power_to_H2": read_costs(costs, "electrolysis", "lifetime"),
"H2_to_power": read_costs(costs, "fuel cell", "lifetime"),
"CH4_to_H2": read_costs(costs, "SMR", "lifetime"), # CC?
"H2_to_CH4": read_costs(costs, "methanation", "lifetime"),
# what about H2 compressors?
"H2_underground": read_costs(
costs, "hydrogen storage underground", "lifetime"
),
"H2_overground": read_costs(
costs, "hydrogen storage tank incl. compressor", "lifetime"
),
"H2_pipeline": read_costs(costs, "H2 (g) pipeline", "lifetime"),
"H2_pipeline_retrofit": read_costs(
costs, "H2 (g) pipeline repurposed", "lifetime"
),
}

# Insert costs
parameters["capital_cost"] = {}

for comp in parameters["overnight_cost"].keys():
parameters["capital_cost"][comp] = annualize_capital_costs(
parameters["overnight_cost"][comp],
parameters["lifetime"][comp],
global_settings("eGon2035")["interest_rate"],
)

parameters["marginal_cost"] = {
"CH4": global_settings(scenario)["fuel_costs"]["gas"]
+ global_settings(scenario)["co2_costs"]
* global_settings(scenario)["co2_emissions"]["gas"],
# "CH4": global_settings(scenario)["fuel_costs"]["gas"]
# + global_settings(scenario)["co2_costs"]
# * global_settings(scenario)["co2_emissions"]["gas"],
"OCGT": read_costs(costs, "OCGT", "VOM"),
"biogas": global_settings(scenario)["fuel_costs"]["gas"],
"chp_gas": read_costs(costs, "central gas CHP", "VOM"),
}

else:
Expand Down

0 comments on commit 513bf72

Please sign in to comment.