mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added default u-value option to room roofs
This commit is contained in:
parent
968be2d3d1
commit
d9a82984f8
1 changed files with 17 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue