Source code for sap2012.SAP_tables.heating_requirement_table_9c

# -*- coding: utf-8 -*-


[docs]def heating_requirement_table_9c ( temperature_reduction_when_heating_is_off_1_weekday_living_room, temperature_reduction_when_heating_is_off_2_weekday_living_room, temperature_reduction_when_heating_is_off_1_weekend_living_room, temperature_reduction_when_heating_is_off_2_weekend_living_room, temperature_reduction_when_heating_is_off_1_weekday_rest_of_dwelling, temperature_reduction_when_heating_is_off_2_weekday_rest_of_dwelling, temperature_reduction_when_heating_is_off_1_weekend_rest_of_dwelling, temperature_reduction_when_heating_is_off_2_weekend_rest_of_dwelling, temperature_during_heating_living_room, temperature_during_heating_rest_of_dwelling, temperature_adjustment_table_4e ): """Calculates the heating requirement as given in Table 9c. :param temperature_reduction_when_heating_is_off_1_weekday_living_room: :type temperature_reduction_when_heating_is_off_1_weekday_living_room: list(float) :param temperature_reduction_when_heating_is_off_2_weekday_living_room: :type temperature_reduction_when_heating_is_off_2_weekday_living_room: list(float) :param temperature_reduction_when_heating_is_off_1_weekend_living_room: :type temperature_reduction_when_heating_is_off_1_weekend_living_room: list(float) :param temperature_reduction_when_heating_is_off_2_weekend_living_room: :type temperature_reduction_when_heating_is_off_2_weekend_living_room: list(float) :param temperature_reduction_when_heating_is_off_1_weekday_rest_of_dwelling: :type temperature_reduction_when_heating_is_off_1_weekday_rest_of_dwelling: list(float) :param temperature_reduction_when_heating_is_off_2_weekday_rest_of_dwelling: :type temperature_reduction_when_heating_is_off_2_weekday_rest_of_dwelling: list(float) :param temperature_reduction_when_heating_is_off_1_weekend_rest_of_dwelling: :type temperature_reduction_when_heating_is_off_1_weekend_rest_of_dwelling: list(float) :param temperature_reduction_when_heating_is_off_2_weekend_rest_of_dwelling: :type temperature_reduction_when_heating_is_off_2_weekend_rest_of_dwelling: list(float) :param temperature_during_heating_living_room: :type temperature_during_heating_living_room: float :param temperature_during_heating_rest_of_dwelling: :type temperature_during_heating_rest_of_dwelling: list(float) :param temperature_adjustment_table_4e: :type temperature_adjustment_table_4e: float :returns: A dictionary with keys ( T_weekday_living_room, T_weekend_living_room, mean_internal_temperature_living_room_T1_Table_9c, T_weekday_rest_of_dwelling, T_weekend_rest_of_dwelling, mean_internal_temperature_rest_of_dwelling_T2_table_9c ) - **T_weekday_living_room** (`list` (`float`)) - - **T_weekend_living_room** (`list` (`float`)) - - **mean_internal_temperature_living_room_T1_Table_9c** (`list` (`float`)) - - **T_weekday_rest_of_dwelling** (`list` (`float`)) - - **T_weekend_rest_of_dwelling** (`list` (`float`)) - - **mean_internal_temperature_rest_of_dwelling_T2_table_9c** (`list` (`float`)) - :rtype: dict """ T_weekday_living_room = [] for i in range(12): T_weekday_living_room.append(temperature_during_heating_living_room - (temperature_reduction_when_heating_is_off_1_weekday_living_room[i] + temperature_reduction_when_heating_is_off_2_weekday_living_room[i])) T_weekend_living_room = [] for i in range(12): T_weekend_living_room.append(temperature_during_heating_living_room - (temperature_reduction_when_heating_is_off_1_weekend_living_room[i] + temperature_reduction_when_heating_is_off_2_weekend_living_room[i])) mean_internal_temperature_living_room_T1_Table_9c = [] for i in range(12): mean_internal_temperature_living_room_T1_Table_9c.append((5 * T_weekday_living_room[i] + 2 * T_weekend_living_room[i] ) / 7) T_weekday_rest_of_dwelling = [] for i in range(12): T_weekday_rest_of_dwelling.append(temperature_during_heating_rest_of_dwelling[i] - (temperature_reduction_when_heating_is_off_1_weekday_rest_of_dwelling[i] + temperature_reduction_when_heating_is_off_2_weekday_rest_of_dwelling[i])) T_weekend_rest_of_dwelling = [] for i in range(12): T_weekend_rest_of_dwelling.append(temperature_during_heating_rest_of_dwelling[i] - (temperature_reduction_when_heating_is_off_1_weekend_rest_of_dwelling[i] + temperature_reduction_when_heating_is_off_2_weekend_rest_of_dwelling[i])) mean_internal_temperature_rest_of_dwelling_T2_table_9c = [] for i in range(12): mean_internal_temperature_rest_of_dwelling_T2_table_9c.append(((5 * T_weekday_rest_of_dwelling[i] + 2 * T_weekend_rest_of_dwelling[i]) / 7) + temperature_adjustment_table_4e) return dict(T_weekday_living_room=T_weekday_living_room, T_weekend_living_room=T_weekend_living_room, mean_internal_temperature_living_room_T1_Table_9c=mean_internal_temperature_living_room_T1_Table_9c, T_weekday_rest_of_dwelling=T_weekday_rest_of_dwelling, T_weekend_rest_of_dwelling=T_weekend_rest_of_dwelling, mean_internal_temperature_rest_of_dwelling_T2_table_9c=mean_internal_temperature_rest_of_dwelling_T2_table_9c )