feat: Adds heat pump heating interpolation.
All checks were successful
CI / Ubuntu (push) Successful in 11m46s

This commit is contained in:
2025-03-13 10:55:15 -04:00
parent ec787b9f4d
commit bd33827e53
9 changed files with 182 additions and 26 deletions

View File

@@ -138,6 +138,27 @@ struct ManualSTests {
}
}
@Test
func heatPumpHeatingInterpolation() async throws {
try await withDependencies {
$0.manualS = .liveValue
} operation: {
@Dependency(\.manualS) var manualS
let response = try await manualS.heatPumpHeatingInterpolation(.init(
winterDesignTemperature: 5,
heatLoss: 49667,
climateType: .mildWinterOrLatentLoad,
capacity: .mock
))
#expect(response.finalCapacity == .mock)
#expect(response.capacityAtDesign == 11308)
#expect(response.balancePointTemperature == 38)
#expect(response.supplementalHeatRequired == 11)
}
}
@Test
func balancePoint() async throws {
try await withDependencies {
@@ -351,3 +372,7 @@ extension Capacity.Cooling {
extension DesignInfo.Summer {
static let mock = Self(outdoorTemperature: 90, indoorTemperature: 75, indoorHumidity: 50)
}
extension Capacity.HeatPumpHeating {
static let mock = Self(at47: 24600, at17: 15100)
}