Update prepare_sector_network.py
bug fix when calculating urban central heat demand
This commit is contained in:
parent
76f36d0a1a
commit
0127c47035
@ -1229,7 +1229,7 @@ def add_heat(n, costs):
|
|||||||
heat_load = heat_demand[[sector + " water",sector + " space"]].groupby(level=1,axis=1).sum()[nodes[name]].multiply(factor)
|
heat_load = heat_demand[[sector + " water",sector + " space"]].groupby(level=1,axis=1).sum()[nodes[name]].multiply(factor)
|
||||||
|
|
||||||
if name == "urban central":
|
if name == "urban central":
|
||||||
heat_load = heat_demand.groupby(level=1,axis=1).sum()[nodes[name]].multiply(urban_fraction[nodes[name]] * (1 + options['district_heating_loss']))
|
heat_load = heat_demand.groupby(level=1,axis=1).sum()[nodes[name]].multiply(factor * (1 + options['district_heating_loss']))
|
||||||
|
|
||||||
n.madd("Load",
|
n.madd("Load",
|
||||||
nodes[name],
|
nodes[name],
|
||||||
|
Loading…
Reference in New Issue
Block a user