Model/datatypes/epc/domain
Khalim Conn-Kowlessar 1928e5a2d6 Cohort residual slice 13: Detailed §3.10 RR geometry — per-surface lodgement
Adds `SapRoomInRoofSurface` dataclass (kind + area + insulation thickness
+ insulation type) and an optional `detailed_surfaces` list on
`SapRoomInRoof`. When `detailed_surfaces` is present, the Simplified
A_RR formula is bypassed and the calculator iterates each surface,
applying the appropriate Table 17 / Table 4 U-value:

  slope         → roof_w_per_k   via u_rr_slope        (Table 17 col 1)
  flat_ceiling  → roof_w_per_k   via u_rr_flat_ceiling (Table 17 col 2)
  stud_wall     → roof_w_per_k   via u_rr_stud_wall    (Table 17 col 3)
  gable_wall    → party_walls_w_per_k at U=0.25         (Table 4 "as
                                                        common wall")

This mapping mirrors the U985 worksheet for 000477 where RR stud walls
+ slope + flat-ceiling lines sit under (30) and RR gable walls sit
under (32). The §3.9 deduction of `A_RR_floor` from the storey-below
roof area still applies.

Synthetic test pins a 1-storey + RR dwelling with 4 detailed surfaces
(slope/stud_wall/flat_ceiling/gable_wall) at hand-computed U-values
from Table 17 and Table 4, abs=0.001 tolerance.

Reference: RdSAP 10 (10-06-2025) §3.10 page 24-25; Figure 4; Table 17
page 44; Table 4 page 22.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 19:36:10 +00:00
..
tests SAP calculator entry point + cert→inputs adapter + strict P6.1 identifiers 2026-05-20 09:54:30 +00:00
__init__.py fix broken imports and rename mapper class 2026-04-13 16:36:13 +00:00
epc.py added ucl corrected peui 2026-05-16 14:39:24 +00:00
epc_codes.csv slice 8a: window physics and orientation aggregates 2026-05-16 15:32:45 +00:00
epc_property_data.py Cohort residual slice 13: Detailed §3.10 RR geometry — per-surface lodgement 2026-05-22 19:36:10 +00:00
field_mappings.py insulation thickness can be string 🟥 2026-04-15 14:26:09 +00:00
historic_epc.py demo generated for use in address2uprn 2026-05-08 14:48:15 +00:00
historic_epc_matching.py rank address similiarity 2026-05-12 16:02:01 +00:00
mapper.py SAP calculator entry point + cert→inputs adapter + strict P6.1 identifiers 2026-05-20 09:54:30 +00:00