feat: Updates to home / landing page.
All checks were successful
CI / Linux Tests (push) Successful in 6m32s

This commit is contained in:
2026-02-08 19:12:52 -05:00
parent bb88d48eb3
commit e4ddec0d53
10 changed files with 354 additions and 208 deletions

View File

@@ -0,0 +1,20 @@
import Foundation
import ManualDCore
extension Room {
public func heatingLoadPerRegister(delegatedRooms: [Room]? = nil) -> Double {
(heatingLoad + (delegatedRooms?.totalHeatingLoad ?? 0)) / Double(registerCount)
}
public func coolingSensiblePerRegister(
projectSHR: Double,
delegatedRooms: [Room]? = nil
) throws -> Double {
let sensible =
try coolingLoad.ensured(shr: projectSHR).sensible
+ (delegatedRooms?.totalCoolingSensible(shr: projectSHR) ?? 0)
return sensible / Double(registerCount)
}
}