Skip to content

Add more BTU units#1671

Merged
angularsen merged 7 commits into
angularsen:masterfrom
SCAR7B:master
Jul 17, 2026
Merged

Add more BTU units#1671
angularsen merged 7 commits into
angularsen:masterfrom
SCAR7B:master

Conversation

@SCAR7B

@SCAR7B SCAR7B commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Adds additional BTU-based units for power density, thermal conductivity, and heat transfer coefficient.

Changes

  • Added BtuPerSecondCubicInch and BtuPerSecondCubicFoot to PowerDensity.
  • Added BtuPerSecondInchFahrenheit to ThermalConductivity.
  • Added BtuPerSecondSquareInchDegreeFahrenheit to HeatTransferCoefficient.
  • Regenerated UnitsNet source, resources, number extensions, and generated tests.
  • Fixed the per-second heat transfer coefficient abbreviations to avoid invalid hour-based aliases.

Validation

  • Ran focused tests for HeatTransferCoefficientTests, PowerDensityTests, and ThermalConductivityTests on net9.0: 1600 passed.

@SCAR7B
SCAR7B marked this pull request as ready for review June 2, 2026 08:06
@SCAR7B SCAR7B closed this Jun 2, 2026
@SCAR7B SCAR7B reopened this Jun 2, 2026
heaster82 and others added 3 commits June 2, 2026 10:26
Added btu per second quare inch to heat transfer coefficients
Added Btu per second inch Fahrenheit to thermal conductivity.
@SCAR7B SCAR7B changed the title Added more power density units Added more BTU based units Jun 2, 2026
protected override double WattsPerSquareMeterCelsiusInOneWattPerSquareMeterKelvin => 1;
protected override double WattsPerSquareMeterKelvinInOneWattPerSquareMeterKelvin => 1;
protected override double BtusPerHourSquareFootDegreeFahrenheitInOneWattPerSquareMeterKelvin => 1.7611018368230584e-1;
protected override double BtusPerSecondSquareInchDegreeFahrenheitInOneWattPerSquareMeterKelvin => 3.3971871852296651e-7;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protected override double TerawattsPerLiterInOneWattPerCubicMeter => 1e-15;

protected override double BtusPerSecondCubicInchInOneWattPerCubicMeter => 1.5531939811e-8;
protected override double BtusPerSecondCubicFootInOneWattPerCubicMeter => 2.6839191993e-5;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
protected override double WattsPerMeterKelvinInOneWattPerMeterKelvin => 1;
protected override double BtusPerHourFootFahrenheitInOneWattPerMeterKelvin => 5.77789317e-1;
protected override double BtusPerSecondInchFahrenheitInOneWattPerMeterKelvin => 1.33747527e-5;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angularsen angularsen changed the title Added more BTU based units Add more BTU units Jul 17, 2026
@angularsen
angularsen enabled auto-merge (squash) July 17, 2026 11:56
@angularsen
angularsen merged commit 532d0ef into angularsen:master Jul 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants