feat: Starts manual-d client and adds friction rate calculation and tests.

This commit is contained in:
2025-12-19 11:57:21 -05:00
parent 5b67792051
commit 0aabd612b2
11 changed files with 228 additions and 9 deletions

View File

@@ -2,6 +2,16 @@ import Foundation
public typealias ComponentPressureLosses = [String: Double]
extension ComponentPressureLosses {
public var totalLosses: Double { values.reduce(0) { $0 + $1 } }
}
#if DEBUG
extension ComponentPressureLosses {
public static var mock: Self {
[
"evaporator-coil": 0.2,
"filter": 0.1,
"supply-outlet": 0.03,
"return-grille": 0.03,
"balancing-damper": 0.03,
]
}
}
#endif