feat: Updates to home / landing page.
All checks were successful
CI / Linux Tests (push) Successful in 6m32s
All checks were successful
CI / Linux Tests (push) Successful in 6m32s
This commit is contained in:
20
Sources/ProjectClient/Internal/Room+loadPerRegister.swift
Normal file
20
Sources/ProjectClient/Internal/Room+loadPerRegister.swift
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user