From d9a82984f8f76968d8498429c1aba980a2a88bab Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 8 Oct 2024 15:55:28 +0100 Subject: [PATCH] added default u-value option to room roofs --- recommendations/RoofRecommendations.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/recommendations/RoofRecommendations.py b/recommendations/RoofRecommendations.py index c86c5b30..03136547 100644 --- a/recommendations/RoofRecommendations.py +++ b/recommendations/RoofRecommendations.py @@ -416,7 +416,7 @@ class RoofRecommendations: self.recommendations = recommendations - def recommend_room_roof_insulation(self, u_value, phase): + def recommend_room_roof_insulation(self, u_value, phase, default_u_values): """ This method recommends room in roof insulation for properties that have been identified to possess a room in roof. @@ -455,6 +455,8 @@ class RoofRecommendations: - Flat ceilings can be insulated like a standard loft. :param u_value: Current u-value of the roof + :param phase: Phase of the recommendation + :param default_u_values: Use default u-values :return: """ @@ -495,7 +497,7 @@ class RoofRecommendations: sap_points = rir_non_invasive_recommendation.get("sap_points", None) # Could also be Roof room(s), ceiling insulated - new_descriptin = "Pitched, insulated at rafters" + new_descriptin = "Roof room(s), insulated" roof_ending_config = RoofAttributes(new_descriptin).process() roof_simulation_config = check_simulation_difference( new_config=roof_ending_config, old_config=self.property.roof, prefix="roof_" @@ -505,6 +507,19 @@ class RoofRecommendations: else: new_efficiency = self.property.data["roof-energy-eff"] + if default_u_values: + new_u_value = get_roof_u_value( + insulation_thickness="average", + has_dwelling_above=self.property.roof["has_dwelling_above"], + is_loft=self.property.roof["is_loft"], + is_roof_room=self.property.roof["is_roof_room"], + is_thatched=self.property.roof["is_thatched"], + age_band=self.property.age_band, + is_flat=self.property.roof["is_flat"], + is_pitched=self.property.roof["is_pitched"], + is_at_rafters=self.property.roof["is_at_rafters"], + ) + simulation_config = { **roof_simulation_config, "roof_thermal_transmittance_ending": new_u_value,