Skip to content

Commit

Permalink
Fix capacity and power of thermal storages
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Oct 6, 2023
1 parent 3f82cc3 commit b333024
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions digiplan/map/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,19 @@ def adapt_heat_settings(scenario: str, data: dict, request: HttpRequest) -> dict
)
delta_solar = solar_thermal_energy - total_demand
solar_peak = delta_solar[delta_solar > 0].max()
capacity = max(capacity, solar_peak)

tech_mapping = {"central": "large", "decentral": "small"}
power = (
capacity
* config.TECHNOLOGY_DATA["hot_water_storages"][tech_mapping[distribution]][
"nominal_power_per_storage_capacity"
]
)
power = max(power, solar_peak)

data[f"ABW-heat_{distribution}-storage"] = {
"capacity": capacity,
"storage_capacity": capacity,
"capacity": power,
}

# Adapt biomass to biogas plant size
Expand Down

0 comments on commit b333024

Please sign in to comment.