feat: Adds duct sizing calculations.

This commit is contained in:
2025-12-21 14:40:36 -05:00
parent b3502fc79b
commit 861ff3bfd6
4 changed files with 120 additions and 0 deletions

View File

@@ -22,6 +22,17 @@ struct ManualDClientTests {
return formatter
}
@Test
func ductSize() async throws {
let response = try await manualD.ductSize(
.init(designCFM: 88, frictionRate: 0.06)
)
#expect(numberFormatter.string(for: response.ductulatorSize) == "6.07")
#expect(response.finalSize == 7)
#expect(response.flexSize == 7)
#expect(response.velocity == 329)
}
@Test
func frictionRate() async throws {
let response = try await manualD.frictionRate(