Good evening,
Thank you for this amazing code first of all !!!
The Issue about calculation of ΦHC,nd10 (energy_floorAx10)
Calculate ΦHC,nd,un (unrestricted heating or cooling need to reach the required set-point temperature;
ΦHC,nd,un is positive for heating and negative for cooling).
ΦHC,nd,un = ΦHC,nd10 (θair,set − θair,0)/(θair,10 − θair,0) (C.13)
In code it is needed to have NEGATIVE multiplicator
In case of only positive x10 it returns wrong results
(I checked also by mannual calculation)
My suggestion:
if self.has_heating_demand:
t_air_set = self.t_set_heating
# Set a heating case where the heating load is 10x the floor area (10 W/m2)
energy_floorAx10 = 10 * self.floor_area
elif self.has_cooling_demand:
t_air_set = self.t_set_cooling
energy_floorAx10 = -10 * self.floor_area
else:
raise NameError(
'heating function has been called even though no heating is required')
Good evening,
Thank you for this amazing code first of all !!!
The Issue about calculation of ΦHC,nd10 (energy_floorAx10)
Calculate ΦHC,nd,un (unrestricted heating or cooling need to reach the required set-point temperature;
ΦHC,nd,un is positive for heating and negative for cooling).
ΦHC,nd,un = ΦHC,nd10 (θair,set − θair,0)/(θair,10 − θair,0) (C.13)
In code it is needed to have NEGATIVE multiplicator
In case of only positive x10 it returns wrong results
(I checked also by mannual calculation)
My suggestion: