myopic: ensure all links with capital costs have lifetime (#1319)
* myopic: ensure all links with capital costs have lifetime * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
343aba1db9
commit
8ed7654294
@ -953,6 +953,7 @@ def add_methanol_to_kerosene(n, costs):
|
||||
/ costs.at[tech, "methanol-input"],
|
||||
efficiency3=costs.at["oil", "CO2 intensity"] / costs.at[tech, "methanol-input"],
|
||||
p_nom_extendable=True,
|
||||
lifetime=costs.at[tech, "lifetime"],
|
||||
)
|
||||
|
||||
|
||||
@ -2772,6 +2773,7 @@ def add_biomass(n, costs):
|
||||
efficiency=costs.at["biogas", "efficiency"],
|
||||
efficiency2=-costs.at["gas", "CO2 intensity"],
|
||||
p_nom_extendable=True,
|
||||
lifetime=costs.at["biogas", "lifetime"],
|
||||
)
|
||||
|
||||
if options["biogas_upgrading_cc"]:
|
||||
@ -2799,6 +2801,7 @@ def add_biomass(n, costs):
|
||||
- costs.at["biogas CC", "CO2 stored"]
|
||||
* costs.at["biogas CC", "capture rate"],
|
||||
p_nom_extendable=True,
|
||||
lifetime=costs.at["biogas CC", "lifetime"],
|
||||
)
|
||||
|
||||
if options["biomass_transport"]:
|
||||
@ -3155,6 +3158,7 @@ def add_biomass(n, costs):
|
||||
+ costs.at["biomass CHP capture", "fixed"]
|
||||
* costs.at["solid biomass", "CO2 intensity"],
|
||||
marginal_cost=0.0,
|
||||
lifetime=25, # TODO: add value to technology-data
|
||||
)
|
||||
|
||||
|
||||
@ -4466,6 +4470,7 @@ def add_enhanced_geothermal(n, egs_potentials, egs_overlap, costs):
|
||||
p_nom_max=p_nom_max.set_axis(well_name) / efficiency_orc,
|
||||
capital_cost=capital_cost.set_axis(well_name) * efficiency_orc,
|
||||
efficiency=bus_eta,
|
||||
lifetime=costs.at["geothermal", "lifetime"],
|
||||
)
|
||||
|
||||
# adding Organic Rankine Cycle as a single link
|
||||
@ -4478,6 +4483,7 @@ def add_enhanced_geothermal(n, egs_potentials, egs_overlap, costs):
|
||||
carrier="geothermal organic rankine cycle",
|
||||
capital_cost=orc_capital_cost * efficiency_orc,
|
||||
efficiency=efficiency_orc,
|
||||
lifetime=costs.at["organic rankine cycle", "lifetime"],
|
||||
)
|
||||
|
||||
if as_chp and bus + " urban central heat" in n.buses.index:
|
||||
@ -4493,6 +4499,7 @@ def add_enhanced_geothermal(n, egs_potentials, egs_overlap, costs):
|
||||
/ 100.0,
|
||||
efficiency=efficiency_dh,
|
||||
p_nom_extendable=True,
|
||||
lifetime=costs.at["geothermal", "lifetime"],
|
||||
)
|
||||
elif as_chp and not bus + " urban central heat" in n.buses.index:
|
||||
n.links.at[bus + " geothermal organic rankine cycle", "efficiency"] = (
|
||||
|
Loading…
Reference in New Issue
Block a user