Simplify integration of unsustainable solid biomass (#1275)
* remove extra bus and link; remove redundant addition of oil carrier_bus * remove redundant addition of oil carrier buses * changed PyPSA requirement in envs/environment.yaml
This commit is contained in:
parent
e6d4dd67dc
commit
65054ae903
@ -11,7 +11,7 @@ dependencies:
|
|||||||
- pip
|
- pip
|
||||||
|
|
||||||
- atlite>=0.2.9
|
- atlite>=0.2.9
|
||||||
- pypsa>=0.29
|
- pypsa>=0.30.2
|
||||||
- linopy
|
- linopy
|
||||||
- dask
|
- dask
|
||||||
|
|
||||||
|
@ -2812,7 +2812,6 @@ def add_biomass(n, costs):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if biomass_potentials.filter(like="unsustainable").sum().sum() > 0:
|
if biomass_potentials.filter(like="unsustainable").sum().sum() > 0:
|
||||||
add_carrier_buses(n, "oil")
|
|
||||||
# Create timeseries to force usage of unsustainable potentials
|
# Create timeseries to force usage of unsustainable potentials
|
||||||
e_max_pu = pd.DataFrame(1, index=n.snapshots, columns=spatial.gas.biogas)
|
e_max_pu = pd.DataFrame(1, index=n.snapshots, columns=spatial.gas.biogas)
|
||||||
e_max_pu.iloc[-1] = 0
|
e_max_pu.iloc[-1] = 0
|
||||||
@ -2830,14 +2829,6 @@ def add_biomass(n, costs):
|
|||||||
e_max_pu=e_max_pu,
|
e_max_pu=e_max_pu,
|
||||||
)
|
)
|
||||||
|
|
||||||
n.madd(
|
|
||||||
"Bus",
|
|
||||||
spatial.biomass.nodes_unsustainable,
|
|
||||||
location=spatial.biomass.locations,
|
|
||||||
carrier="unsustainable solid biomass",
|
|
||||||
unit="MWh_LHV",
|
|
||||||
)
|
|
||||||
|
|
||||||
e_max_pu = pd.DataFrame(
|
e_max_pu = pd.DataFrame(
|
||||||
1, index=n.snapshots, columns=spatial.biomass.nodes_unsustainable
|
1, index=n.snapshots, columns=spatial.biomass.nodes_unsustainable
|
||||||
)
|
)
|
||||||
@ -2846,7 +2837,7 @@ def add_biomass(n, costs):
|
|||||||
n.madd(
|
n.madd(
|
||||||
"Store",
|
"Store",
|
||||||
spatial.biomass.nodes_unsustainable,
|
spatial.biomass.nodes_unsustainable,
|
||||||
bus=spatial.biomass.nodes_unsustainable,
|
bus=spatial.biomass.nodes,
|
||||||
carrier="unsustainable solid biomass",
|
carrier="unsustainable solid biomass",
|
||||||
e_nom=unsustainable_solid_biomass_potentials_spatial,
|
e_nom=unsustainable_solid_biomass_potentials_spatial,
|
||||||
marginal_cost=costs.at["fuelwood", "fuel"],
|
marginal_cost=costs.at["fuelwood", "fuel"],
|
||||||
@ -2855,16 +2846,6 @@ def add_biomass(n, costs):
|
|||||||
e_max_pu=e_max_pu,
|
e_max_pu=e_max_pu,
|
||||||
)
|
)
|
||||||
|
|
||||||
n.madd(
|
|
||||||
"Link",
|
|
||||||
spatial.biomass.nodes_unsustainable,
|
|
||||||
bus0=spatial.biomass.nodes_unsustainable,
|
|
||||||
bus1=spatial.biomass.nodes,
|
|
||||||
carrier="unsustainable solid biomass",
|
|
||||||
efficiency=1,
|
|
||||||
p_nom=unsustainable_solid_biomass_potentials_spatial,
|
|
||||||
)
|
|
||||||
|
|
||||||
n.madd(
|
n.madd(
|
||||||
"Bus",
|
"Bus",
|
||||||
spatial.biomass.bioliquids,
|
spatial.biomass.bioliquids,
|
||||||
@ -3024,7 +3005,7 @@ def add_biomass(n, costs):
|
|||||||
n.madd(
|
n.madd(
|
||||||
"Generator",
|
"Generator",
|
||||||
spatial.biomass.nodes_unsustainable,
|
spatial.biomass.nodes_unsustainable,
|
||||||
bus=spatial.biomass.nodes_unsustainable,
|
bus=spatial.biomass.nodes,
|
||||||
carrier="unsustainable solid biomass",
|
carrier="unsustainable solid biomass",
|
||||||
p_nom=10000,
|
p_nom=10000,
|
||||||
marginal_cost=costs.at["fuelwood", "fuel"]
|
marginal_cost=costs.at["fuelwood", "fuel"]
|
||||||
|
Loading…
Reference in New Issue
Block a user