-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
I found out from this EMHASS discussion that there's a "sense" parameter you can add to "def_load_config", using either 'sense': 'heat' or 'sense': 'cool'.
Copilot helped me understand what this parameter does:
In EMHASS's Deferrable Load Thermal Model, the "sense" setting tells the system whether the load is for heating or cooling:
'sense': 'heat' means the system treats it as a heating device (like a heat pump or electric heater).
'sense': 'cool' means it's treated as a cooling device (like an air conditioner).
It would be great if this parameter could be added to the official EMHASS documentation.
'def_load_config': {
{},
{'thermal_config': {
'heating_rate': 5.0,
'sense': 'heat' or 'sense': 'cool'
'cooling_constant': 0.1,
'overshoot_temperature': 24.0,
'start_temperature': 20,
'desired_temperatures': [...]
}}
}
From optimization.py
def_load_config = self.optim_conf["def_load_config"][k]
if def_load_config and "thermal_config" in def_load_config:
hc = def_load_config["thermal_config"]
start_temperature = hc["start_temperature"]
cooling_constant = hc["cooling_constant"]
heating_rate = hc["heating_rate"]
overshoot_temperature = hc["overshoot_temperature"]
outdoor_temperature_forecast = data_opt["outdoor_temperature_forecast"]
desired_temperatures = hc["desired_temperatures"]
sense = hc.get("sense", "heat")
sense_coeff = 1 if sense == "heat" else -1
self.logger.debug(f"Load {k}: Thermal parameters: start_temperature={start_temperature}, cooling_constant={cooling_constant}, heating_rate={heating_rate}, overshoot_temperature={overshoot_temperature}")
Metadata
Metadata
Assignees
Labels
No labels
Activity