Repository navigation
ThermalConductance follow-up to #1753 - #1755
tmilnthorp wants to merge 1 commit into
Conversation
- Fix plural name: BtusPerHourDegreeFahrenheit (was same as singular). - Document the IT BTU definition in XmlDocRemarks, as for other BTU units. - Replace imprecise abbreviation "Btu/h·°F" with "Btu/(hr·°F)", matching HeatTransferCoefficient. - Add relations ThermalConductivity * Length and HeatTransferCoefficient * Area. - Tests: cite NIST SP 811 for the BTU test value, cover inverse for W/°C and BTU units, cover the new relations, and use the custom code file header.
|
@gdeepak02 I should have noticed some of this the other day, sorry |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1755 +/- ##
======================================
Coverage 98% 98%
======================================
Files 518 518
Lines 24196 24204 +8
======================================
+ Hits 23798 23806 +8
Misses 398 398
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the ThermalConductance API refinements.
No open issues 🎉
What changed in this PR
Refines the unreleased ThermalConductance API introduced in #1753, aligning its BTU naming and metadata with related quantities and expanding strongly typed thermal calculations.
Changes:
- Standardizes plural BTU names, clarifies abbreviations, and documents the International Table BTU definition.
- Adds conductance relations with thermal conductivity and length, and heat-transfer coefficient and area, including reverse divisions.
- Updates generated APIs and tests, adds inverse and relation coverage, and uses an independent NIST reference value for BTU conversion tests.
| File | Description |
|---|---|
UnitsNet/GeneratedCode/Units/ThermalConductanceUnit.g.cs |
Adds IT BTU documentation to the enum member. |
UnitsNet/GeneratedCode/Resources/ThermalConductance.restext |
Updates the plural resource key and abbreviation alias. |
UnitsNet/GeneratedCode/Quantities/ThermalConductivity.g.cs |
Adds multiplication by length to produce conductance. |
UnitsNet/GeneratedCode/Quantities/ThermalConductance.g.cs |
Renames BTU convenience APIs and adds division relations. |
UnitsNet/GeneratedCode/Quantities/Length.g.cs |
Adds multiplication by thermal conductivity. |
UnitsNet/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs |
Adds multiplication by area to produce conductance. |
UnitsNet/GeneratedCode/Quantities/Area.g.cs |
Adds multiplication by heat-transfer coefficient. |
UnitsNet.Tests/GeneratedCode/TestsBase/ThermalConductanceTestsBase.g.cs |
Updates generated naming, conversion, and parsing tests. |
UnitsNet.Tests/CustomCode/ThermalConductanceTests.cs |
Adds relation and inverse tests, updates the reference value, and removes stale boilerplate. |
UnitsNet.NumberExtensions/GeneratedCode/NumberToThermalConductanceExtensions.g.cs |
Renames the BTU numeric extension method. |
UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToThermalConductanceExtensionsTest.g.cs |
Updates the extension-method test for the plural name. |
UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToThermalConductanceExtensions.g.cs |
Renames the C# 14 BTU extension property. |
UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToThermalConductanceExtensionsTest.g.cs |
Updates the extension-property test for the plural name. |
Common/UnitRelations.json |
Defines the two new conductance relations for generation. |
Common/UnitDefinitions/ThermalConductance.json |
Updates source metadata for BTU naming, documentation, and aliases. |
Review effort: Balanced
|
Thanks @tmilnthorp. |
lipchev
left a comment
There was a problem hiding this comment.
One non-blocking documentation suggestion. For steady conduction through a uniform slab, clarify that the Length operand in ThermalConductivity * Length represents the cross-sectional area divided by the slab thickness (A / L).
Follow-up to #1753:
BtuPerHourDegreeFahrenheit→BtusPerHourDegreeFahrenheit, matchingBtusPerHourFootFahrenheitandBtusPerHourSquareFootDegreeFahrenheit.Btu/h·°F, which reads as (Btu/h)·°F, withBtu/(hr·°F), matching HeatTransferCoefficient.ThermalConductivity * LengthandHeatTransferCoefficient * Areanow giveThermalConductance, with the reverse divisions.<auto-generated>header and the unusedusing.Breaking only against unreleased API from #1753 (the plural name and one abbreviation).