diff --git a/Common/UnitDefinitions/HeatTransferCoefficient.json b/Common/UnitDefinitions/HeatTransferCoefficient.json
index f3108375f2..537a6c2553 100644
--- a/Common/UnitDefinitions/HeatTransferCoefficient.json
+++ b/Common/UnitDefinitions/HeatTransferCoefficient.json
@@ -54,6 +54,18 @@
}
]
},
+ {
+ "SingularName": "BtuPerSecondSquareInchDegreeFahrenheit",
+ "PluralName": "BtusPerSecondSquareInchDegreeFahrenheit",
+ "FromUnitToBaseFunc": "{x} * ((1055.05585262 / (2.54e-2 * 2.54e-2)) * 1.8)",
+ "FromBaseToUnitFunc": "{x} / ((1055.05585262 / (2.54e-2 * 2.54e-2)) * 1.8)",
+ "Localization": [
+ {
+ "Culture": "en-US",
+ "Abbreviations": [ "Btu/(s·in²·°F)", "Btu/(in²·s·°F)", "Btu/(hr·in²·°F)", "Btu/(in²·hr·°F)" ]
+ }
+ ]
+ },
{
"SingularName": "CaloriePerHourSquareMeterDegreeCelsius",
"PluralName": "CaloriesPerHourSquareMeterDegreeCelsius",
diff --git a/Common/UnitDefinitions/PowerDensity.json b/Common/UnitDefinitions/PowerDensity.json
index 8a4d3fa962..33073faa6f 100644
--- a/Common/UnitDefinitions/PowerDensity.json
+++ b/Common/UnitDefinitions/PowerDensity.json
@@ -64,6 +64,32 @@
"Abbreviations": [ "W/l" ]
}
]
+ },
+ {
+ "SingularName": "BtuPerSecondCubicInch",
+ "PluralName": "BtusPerSecondCubicInch",
+ "XmlDocRemarks": "Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details.",
+ "FromUnitToBaseFunc": "{x} * 1055.05585262 / (2.54e-2 * 2.54e-2 * 2.54e-2)",
+ "FromBaseToUnitFunc": "{x} / 1055.05585262 * (2.54e-2 * 2.54e-2 * 2.54e-2)",
+ "Localization": [
+ {
+ "Culture": "en-US",
+ "Abbreviations": [ "BTU/(s·in³)" ]
+ }
+ ]
+ },
+ {
+ "SingularName": "BtuPerSecondCubicFoot",
+ "PluralName": "BtusPerSecondCubicFoot",
+ "XmlDocRemarks": "Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details.",
+ "FromUnitToBaseFunc": "{x} * 1055.05585262 / (0.3048 * 0.3048 * 0.3048)",
+ "FromBaseToUnitFunc": "{x} / 1055.05585262 * (0.3048 * 0.3048 * 0.3048)",
+ "Localization": [
+ {
+ "Culture": "en-US",
+ "Abbreviations": [ "BTU/(s·ft³)" ]
+ }
+ ]
}
]
}
diff --git a/Common/UnitDefinitions/ThermalConductivity.json b/Common/UnitDefinitions/ThermalConductivity.json
index c5f30282b8..284fba5818 100644
--- a/Common/UnitDefinitions/ThermalConductivity.json
+++ b/Common/UnitDefinitions/ThermalConductivity.json
@@ -39,6 +39,18 @@
"Abbreviations": [ "BTU/(h·ft·°F)" ]
}
]
+ },
+ {
+ "SingularName": "BtuPerSecondInchFahrenheit",
+ "PluralName": "BtusPerSecondInchFahrenheit",
+ "FromUnitToBaseFunc": "{x} * ((1055.05585262 / 2.54e-2) * 1.8)",
+ "FromBaseToUnitFunc": "{x} / ((1055.05585262 / 2.54e-2) * 1.8)",
+ "Localization": [
+ {
+ "Culture": "en-US",
+ "Abbreviations": [ "BTU/(s·in·°F)" ]
+ }
+ ]
}
]
}
diff --git a/Common/UnitEnumValues.g.json b/Common/UnitEnumValues.g.json
index 3ebdc3d87d..29ab23118b 100644
--- a/Common/UnitEnumValues.g.json
+++ b/Common/UnitEnumValues.g.json
@@ -575,7 +575,8 @@
"WattPerSquareMeterKelvin": 3,
"BtuPerHourSquareFootDegreeFahrenheit": 11,
"KilocaloriePerHourSquareMeterDegreeCelsius": 8,
- "CaloriePerHourSquareMeterDegreeCelsius": 5
+ "CaloriePerHourSquareMeterDegreeCelsius": 5,
+ "BtuPerSecondSquareInchDegreeFahrenheit": 4
},
"Illuminance": {
"Kilolux": 1,
@@ -1132,7 +1133,9 @@
"WattPerCubicFoot": 41,
"WattPerCubicInch": 42,
"WattPerCubicMeter": 43,
- "WattPerLiter": 44
+ "WattPerLiter": 44,
+ "BtuPerSecondCubicFoot": 47,
+ "BtuPerSecondCubicInch": 51
},
"PowerRatio": {
"DecibelMilliwatt": 1,
@@ -1489,7 +1492,8 @@
},
"ThermalConductivity": {
"BtuPerHourFootFahrenheit": 1,
- "WattPerMeterKelvin": 2
+ "WattPerMeterKelvin": 2,
+ "BtuPerSecondInchFahrenheit": 6
},
"ThermalResistance": {
"DegreeCelsiusPerWatt": 10,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
index 274c8b4cec..c374e2e694 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/HeatTransferCoefficient.g.cs
@@ -83,6 +83,11 @@ public HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit)
///
public double BtusPerHourSquareFootDegreeFahrenheit => As(HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit);
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double BtusPerSecondSquareInchDegreeFahrenheit => As(HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit);
+
///
/// Gets a value of this quantity converted into
///
@@ -112,6 +117,11 @@ public HeatTransferCoefficient(double value, HeatTransferCoefficientUnit unit)
///
public static HeatTransferCoefficient FromBtusPerHourSquareFootDegreeFahrenheit(double btusperhoursquarefootdegreefahrenheit) => new HeatTransferCoefficient(btusperhoursquarefootdegreefahrenheit, HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit);
+ ///
+ /// Creates a from .
+ ///
+ public static HeatTransferCoefficient FromBtusPerSecondSquareInchDegreeFahrenheit(double btuspersecondsquareinchdegreefahrenheit) => new HeatTransferCoefficient(btuspersecondsquareinchdegreefahrenheit, HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit);
+
///
/// Creates a from .
///
@@ -173,6 +183,7 @@ private double GetValueInBaseUnit()
return Unit switch
{
HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit => _value * ((1055.05585262 / (0.3048 * 0.3048 * 3600)) * 1.8),
+ HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit => _value * ((1055.05585262 / (2.54e-2 * 2.54e-2)) * 1.8),
HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius => (_value * 4.184) / 3600,
HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius => ((_value * 4.184) / 3600) * 1e3d,
HeatTransferCoefficientUnit.WattPerSquareMeterCelsius => _value,
@@ -191,6 +202,7 @@ private double GetValueAs(HeatTransferCoefficientUnit unit)
return unit switch
{
HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit => baseUnitValue / ((1055.05585262 / (0.3048 * 0.3048 * 3600)) * 1.8),
+ HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit => baseUnitValue / ((1055.05585262 / (2.54e-2 * 2.54e-2)) * 1.8),
HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius => (baseUnitValue / 4.184) * 3600,
HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius => ((baseUnitValue / 4.184) * 3600) / 1e3d,
HeatTransferCoefficientUnit.WattPerSquareMeterCelsius => baseUnitValue,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs
index 0ad6bd97a9..0d9dcc4bb9 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/PowerDensity.g.cs
@@ -78,6 +78,16 @@ public PowerDensity(double value, PowerDensityUnit unit)
public static PowerDensity Zero { get; } = new PowerDensity(0, BaseUnit);
#region Conversion Properties
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double BtusPerSecondCubicFoot => As(PowerDensityUnit.BtuPerSecondCubicFoot);
+
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double BtusPerSecondCubicInch => As(PowerDensityUnit.BtuPerSecondCubicInch);
+
///
/// Gets a value of this quantity converted into
///
@@ -302,6 +312,16 @@ public PowerDensity(double value, PowerDensityUnit unit)
#region Static Factory Methods
+ ///
+ /// Creates a from .
+ ///
+ public static PowerDensity FromBtusPerSecondCubicFoot(double btuspersecondcubicfoot) => new PowerDensity(btuspersecondcubicfoot, PowerDensityUnit.BtuPerSecondCubicFoot);
+
+ ///
+ /// Creates a from .
+ ///
+ public static PowerDensity FromBtusPerSecondCubicInch(double btuspersecondcubicinch) => new PowerDensity(btuspersecondcubicinch, PowerDensityUnit.BtuPerSecondCubicInch);
+
///
/// Creates a from .
///
@@ -562,6 +582,8 @@ private double GetValueInBaseUnit()
{
return Unit switch
{
+ PowerDensityUnit.BtuPerSecondCubicFoot => _value * 1055.05585262 / (0.3048 * 0.3048 * 0.3048),
+ PowerDensityUnit.BtuPerSecondCubicInch => _value * 1055.05585262 / (2.54e-2 * 2.54e-2 * 2.54e-2),
PowerDensityUnit.DecawattPerCubicFoot => (_value / 0.028316846592) * 1e1d,
PowerDensityUnit.DecawattPerCubicInch => (_value / 1.6387064e-5) * 1e1d,
PowerDensityUnit.DecawattPerCubicMeter => (_value) * 1e1d,
@@ -619,6 +641,8 @@ private double GetValueAs(PowerDensityUnit unit)
return unit switch
{
+ PowerDensityUnit.BtuPerSecondCubicFoot => baseUnitValue / 1055.05585262 * (0.3048 * 0.3048 * 0.3048),
+ PowerDensityUnit.BtuPerSecondCubicInch => baseUnitValue / 1055.05585262 * (2.54e-2 * 2.54e-2 * 2.54e-2),
PowerDensityUnit.DecawattPerCubicFoot => (baseUnitValue * 0.028316846592) / 1e1d,
PowerDensityUnit.DecawattPerCubicInch => (baseUnitValue * 1.6387064e-5) / 1e1d,
PowerDensityUnit.DecawattPerCubicMeter => (baseUnitValue) / 1e1d,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs
index 8e5e367335..ffb11ab53a 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalConductivity.g.cs
@@ -86,6 +86,11 @@ public ThermalConductivity(double value, ThermalConductivityUnit unit)
///
public double BtusPerHourFootFahrenheit => As(ThermalConductivityUnit.BtuPerHourFootFahrenheit);
+ ///
+ /// Gets a value of this quantity converted into
+ ///
+ public double BtusPerSecondInchFahrenheit => As(ThermalConductivityUnit.BtuPerSecondInchFahrenheit);
+
///
/// Gets a value of this quantity converted into
///
@@ -100,6 +105,11 @@ public ThermalConductivity(double value, ThermalConductivityUnit unit)
///
public static ThermalConductivity FromBtusPerHourFootFahrenheit(double btusperhourfootfahrenheit) => new ThermalConductivity(btusperhourfootfahrenheit, ThermalConductivityUnit.BtuPerHourFootFahrenheit);
+ ///
+ /// Creates a from .
+ ///
+ public static ThermalConductivity FromBtusPerSecondInchFahrenheit(double btuspersecondinchfahrenheit) => new ThermalConductivity(btuspersecondinchfahrenheit, ThermalConductivityUnit.BtuPerSecondInchFahrenheit);
+
///
/// Creates a from .
///
@@ -146,6 +156,7 @@ private double GetValueInBaseUnit()
return Unit switch
{
ThermalConductivityUnit.BtuPerHourFootFahrenheit => _value * ((1055.05585262 / (0.3048 * 3600)) * 1.8),
+ ThermalConductivityUnit.BtuPerSecondInchFahrenheit => _value * ((1055.05585262 / 2.54e-2) * 1.8),
ThermalConductivityUnit.WattPerMeterKelvin => _value,
_ => throw new NotImplementedException($"Can't convert {Unit} to base units.")
};
@@ -161,6 +172,7 @@ private double GetValueAs(ThermalConductivityUnit unit)
return unit switch
{
ThermalConductivityUnit.BtuPerHourFootFahrenheit => baseUnitValue / ((1055.05585262 / (0.3048 * 3600)) * 1.8),
+ ThermalConductivityUnit.BtuPerSecondInchFahrenheit => baseUnitValue / ((1055.05585262 / 2.54e-2) * 1.8),
ThermalConductivityUnit.WattPerMeterKelvin => baseUnitValue,
_ => throw new NotImplementedException($"Can't convert {Unit} to {unit}.")
};
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs
index 1a52bffbfe..498dd926b5 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Units/HeatTransferCoefficientUnit.g.cs
@@ -26,6 +26,7 @@ namespace UnitsNet.Units
public enum HeatTransferCoefficientUnit
{
BtuPerHourSquareFootDegreeFahrenheit = 11,
+ BtuPerSecondSquareInchDegreeFahrenheit = 4,
CaloriePerHourSquareMeterDegreeCelsius = 5,
KilocaloriePerHourSquareMeterDegreeCelsius = 8,
WattPerSquareMeterCelsius = 2,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs
index 74a52d1da5..c7eb170b56 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Units/PowerDensityUnit.g.cs
@@ -25,6 +25,10 @@ namespace UnitsNet.Units
public enum PowerDensityUnit
{
+ /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details.
+ BtuPerSecondCubicFoot = 47,
+ /// Based on the International Table (IT) definition of the British thermal unit (BTU), where 1 BTU is defined as exactly 1055.05585262 joules (≈1.05506 kJ). See https://en.wikipedia.org/wiki/British_thermal_unit for details.
+ BtuPerSecondCubicInch = 51,
DecawattPerCubicFoot = 1,
DecawattPerCubicInch = 2,
DecawattPerCubicMeter = 3,
diff --git a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs b/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs
index 044fda144e..e6b133fdb8 100644
--- a/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs
+++ b/UnitsNet.NanoFramework/GeneratedCode/Units/ThermalConductivityUnit.g.cs
@@ -26,6 +26,7 @@ namespace UnitsNet.Units
public enum ThermalConductivityUnit
{
BtuPerHourFootFahrenheit = 1,
+ BtuPerSecondInchFahrenheit = 6,
WattPerMeterKelvin = 2,
}
diff --git a/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs b/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs
index 37425e80bf..783ed71896 100644
--- a/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs
@@ -28,6 +28,10 @@ public class NumberToHeatTransferCoefficientExtensionsTests
public void NumberToBtusPerHourSquareFootDegreeFahrenheitTest() =>
Assert.Equal(HeatTransferCoefficient.FromBtusPerHourSquareFootDegreeFahrenheit(2), 2.BtusPerHourSquareFootDegreeFahrenheit);
+ [Fact]
+ public void NumberToBtusPerSecondSquareInchDegreeFahrenheitTest() =>
+ Assert.Equal(HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(2), 2.BtusPerSecondSquareInchDegreeFahrenheit);
+
[Fact]
public void NumberToCaloriesPerHourSquareMeterDegreeCelsiusTest() =>
Assert.Equal(HeatTransferCoefficient.FromCaloriesPerHourSquareMeterDegreeCelsius(2), 2.CaloriesPerHourSquareMeterDegreeCelsius);
diff --git a/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs b/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs
index f575799760..2a29ea471f 100644
--- a/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs
@@ -24,6 +24,14 @@ namespace UnitsNet.Tests
{
public class NumberToPowerDensityExtensionsTests
{
+ [Fact]
+ public void NumberToBtusPerSecondCubicFootTest() =>
+ Assert.Equal(PowerDensity.FromBtusPerSecondCubicFoot(2), 2.BtusPerSecondCubicFoot);
+
+ [Fact]
+ public void NumberToBtusPerSecondCubicInchTest() =>
+ Assert.Equal(PowerDensity.FromBtusPerSecondCubicInch(2), 2.BtusPerSecondCubicInch);
+
[Fact]
public void NumberToDecawattsPerCubicFootTest() =>
Assert.Equal(PowerDensity.FromDecawattsPerCubicFoot(2), 2.DecawattsPerCubicFoot);
diff --git a/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs b/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs
index f3876ae5b0..b16d035899 100644
--- a/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.CS14.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs
@@ -28,6 +28,10 @@ public class NumberToThermalConductivityExtensionsTests
public void NumberToBtusPerHourFootFahrenheitTest() =>
Assert.Equal(ThermalConductivity.FromBtusPerHourFootFahrenheit(2), 2.BtusPerHourFootFahrenheit);
+ [Fact]
+ public void NumberToBtusPerSecondInchFahrenheitTest() =>
+ Assert.Equal(ThermalConductivity.FromBtusPerSecondInchFahrenheit(2), 2.BtusPerSecondInchFahrenheit);
+
[Fact]
public void NumberToWattsPerMeterKelvinTest() =>
Assert.Equal(ThermalConductivity.FromWattsPerMeterKelvin(2), 2.WattsPerMeterKelvin);
diff --git a/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs b/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs
index 275731d2e0..04511f9e85 100644
--- a/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs
+++ b/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs
@@ -50,6 +50,14 @@ public HeatTransferCoefficient BtusPerHourSquareFootDegreeFahrenheit
=> HeatTransferCoefficient.FromBtusPerHourSquareFootDegreeFahrenheit(value.ToDouble(null));
#endif
+ ///
+ public HeatTransferCoefficient BtusPerSecondSquareInchDegreeFahrenheit
+#if NET7_0_OR_GREATER
+ => HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(double.CreateChecked(value));
+#else
+ => HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(value.ToDouble(null));
+#endif
+
///
public HeatTransferCoefficient CaloriesPerHourSquareMeterDegreeCelsius
#if NET7_0_OR_GREATER
diff --git a/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToPowerDensityExtensions.g.cs b/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToPowerDensityExtensions.g.cs
index 76f5cfb9a3..f93e049733 100644
--- a/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToPowerDensityExtensions.g.cs
+++ b/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToPowerDensityExtensions.g.cs
@@ -42,6 +42,22 @@ public static class NumberToPowerDensityExtensions
, IConvertible
#endif
{
+ ///
+ public PowerDensity BtusPerSecondCubicFoot
+#if NET7_0_OR_GREATER
+ => PowerDensity.FromBtusPerSecondCubicFoot(double.CreateChecked(value));
+#else
+ => PowerDensity.FromBtusPerSecondCubicFoot(value.ToDouble(null));
+#endif
+
+ ///
+ public PowerDensity BtusPerSecondCubicInch
+#if NET7_0_OR_GREATER
+ => PowerDensity.FromBtusPerSecondCubicInch(double.CreateChecked(value));
+#else
+ => PowerDensity.FromBtusPerSecondCubicInch(value.ToDouble(null));
+#endif
+
///
public PowerDensity DecawattsPerCubicFoot
#if NET7_0_OR_GREATER
diff --git a/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToThermalConductivityExtensions.g.cs b/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToThermalConductivityExtensions.g.cs
index c3b662365a..d297866a3f 100644
--- a/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToThermalConductivityExtensions.g.cs
+++ b/UnitsNet.NumberExtensions.CS14/GeneratedCode/NumberToThermalConductivityExtensions.g.cs
@@ -50,6 +50,14 @@ public ThermalConductivity BtusPerHourFootFahrenheit
=> ThermalConductivity.FromBtusPerHourFootFahrenheit(value.ToDouble(null));
#endif
+ ///
+ public ThermalConductivity BtusPerSecondInchFahrenheit
+#if NET7_0_OR_GREATER
+ => ThermalConductivity.FromBtusPerSecondInchFahrenheit(double.CreateChecked(value));
+#else
+ => ThermalConductivity.FromBtusPerSecondInchFahrenheit(value.ToDouble(null));
+#endif
+
///
public ThermalConductivity WattsPerMeterKelvin
#if NET7_0_OR_GREATER
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs
index fb4878717d..cd581d28ab 100644
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToHeatTransferCoefficientExtensionsTest.g.cs
@@ -28,6 +28,10 @@ public class NumberToHeatTransferCoefficientExtensionsTests
public void NumberToBtusPerHourSquareFootDegreeFahrenheitTest() =>
Assert.Equal(HeatTransferCoefficient.FromBtusPerHourSquareFootDegreeFahrenheit(2), 2.BtusPerHourSquareFootDegreeFahrenheit());
+ [Fact]
+ public void NumberToBtusPerSecondSquareInchDegreeFahrenheitTest() =>
+ Assert.Equal(HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(2), 2.BtusPerSecondSquareInchDegreeFahrenheit());
+
[Fact]
public void NumberToCaloriesPerHourSquareMeterDegreeCelsiusTest() =>
Assert.Equal(HeatTransferCoefficient.FromCaloriesPerHourSquareMeterDegreeCelsius(2), 2.CaloriesPerHourSquareMeterDegreeCelsius());
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs
index fed5acad1e..7c94fc3ccc 100644
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToPowerDensityExtensionsTest.g.cs
@@ -24,6 +24,14 @@ namespace UnitsNet.Tests
{
public class NumberToPowerDensityExtensionsTests
{
+ [Fact]
+ public void NumberToBtusPerSecondCubicFootTest() =>
+ Assert.Equal(PowerDensity.FromBtusPerSecondCubicFoot(2), 2.BtusPerSecondCubicFoot());
+
+ [Fact]
+ public void NumberToBtusPerSecondCubicInchTest() =>
+ Assert.Equal(PowerDensity.FromBtusPerSecondCubicInch(2), 2.BtusPerSecondCubicInch());
+
[Fact]
public void NumberToDecawattsPerCubicFootTest() =>
Assert.Equal(PowerDensity.FromDecawattsPerCubicFoot(2), 2.DecawattsPerCubicFoot());
diff --git a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs
index d0eb466936..f3086935c7 100644
--- a/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs
+++ b/UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToThermalConductivityExtensionsTest.g.cs
@@ -28,6 +28,10 @@ public class NumberToThermalConductivityExtensionsTests
public void NumberToBtusPerHourFootFahrenheitTest() =>
Assert.Equal(ThermalConductivity.FromBtusPerHourFootFahrenheit(2), 2.BtusPerHourFootFahrenheit());
+ [Fact]
+ public void NumberToBtusPerSecondInchFahrenheitTest() =>
+ Assert.Equal(ThermalConductivity.FromBtusPerSecondInchFahrenheit(2), 2.BtusPerSecondInchFahrenheit());
+
[Fact]
public void NumberToWattsPerMeterKelvinTest() =>
Assert.Equal(ThermalConductivity.FromWattsPerMeterKelvin(2), 2.WattsPerMeterKelvin());
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs
index 9eb8e34d50..fbd958b41e 100644
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs
+++ b/UnitsNet.NumberExtensions/GeneratedCode/NumberToHeatTransferCoefficientExtensions.g.cs
@@ -43,6 +43,17 @@ public static HeatTransferCoefficient BtusPerHourSquareFootDegreeFahrenheit(t
=> HeatTransferCoefficient.FromBtusPerHourSquareFootDegreeFahrenheit(value.ToDouble(null));
#endif
+ ///
+ public static HeatTransferCoefficient BtusPerSecondSquareInchDegreeFahrenheit(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+ => HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(double.CreateChecked(value));
+#else
+ , IConvertible
+ => HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(value.ToDouble(null));
+#endif
+
///
public static HeatTransferCoefficient CaloriesPerHourSquareMeterDegreeCelsius(this T value)
where T : notnull
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToPowerDensityExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToPowerDensityExtensions.g.cs
index 685f2c96e7..01e5495082 100644
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToPowerDensityExtensions.g.cs
+++ b/UnitsNet.NumberExtensions/GeneratedCode/NumberToPowerDensityExtensions.g.cs
@@ -32,6 +32,28 @@ namespace UnitsNet.NumberExtensions.NumberToPowerDensity
///
public static class NumberToPowerDensityExtensions
{
+ ///
+ public static PowerDensity BtusPerSecondCubicFoot(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+ => PowerDensity.FromBtusPerSecondCubicFoot(double.CreateChecked(value));
+#else
+ , IConvertible
+ => PowerDensity.FromBtusPerSecondCubicFoot(value.ToDouble(null));
+#endif
+
+ ///
+ public static PowerDensity BtusPerSecondCubicInch(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+ => PowerDensity.FromBtusPerSecondCubicInch(double.CreateChecked(value));
+#else
+ , IConvertible
+ => PowerDensity.FromBtusPerSecondCubicInch(value.ToDouble(null));
+#endif
+
///
public static PowerDensity DecawattsPerCubicFoot(this T value)
where T : notnull
diff --git a/UnitsNet.NumberExtensions/GeneratedCode/NumberToThermalConductivityExtensions.g.cs b/UnitsNet.NumberExtensions/GeneratedCode/NumberToThermalConductivityExtensions.g.cs
index 8b9539d7f3..8d5d3fcb87 100644
--- a/UnitsNet.NumberExtensions/GeneratedCode/NumberToThermalConductivityExtensions.g.cs
+++ b/UnitsNet.NumberExtensions/GeneratedCode/NumberToThermalConductivityExtensions.g.cs
@@ -43,6 +43,17 @@ public static ThermalConductivity BtusPerHourFootFahrenheit(this T value)
=> ThermalConductivity.FromBtusPerHourFootFahrenheit(value.ToDouble(null));
#endif
+ ///
+ public static ThermalConductivity BtusPerSecondInchFahrenheit(this T value)
+ where T : notnull
+#if NET7_0_OR_GREATER
+ , INumber
+ => ThermalConductivity.FromBtusPerSecondInchFahrenheit(double.CreateChecked(value));
+#else
+ , IConvertible
+ => ThermalConductivity.FromBtusPerSecondInchFahrenheit(value.ToDouble(null));
+#endif
+
///
public static ThermalConductivity WattsPerMeterKelvin(this T value)
where T : notnull
diff --git a/UnitsNet.Tests/CustomCode/HeatTransferCoefficientTests.cs b/UnitsNet.Tests/CustomCode/HeatTransferCoefficientTests.cs
index 9cd3a2d471..ccebfe4552 100644
--- a/UnitsNet.Tests/CustomCode/HeatTransferCoefficientTests.cs
+++ b/UnitsNet.Tests/CustomCode/HeatTransferCoefficientTests.cs
@@ -30,6 +30,7 @@ public class HeatTransferCoefficientTests : HeatTransferCoefficientTestsBase
protected override double WattsPerSquareMeterCelsiusInOneWattPerSquareMeterKelvin => 1;
protected override double WattsPerSquareMeterKelvinInOneWattPerSquareMeterKelvin => 1;
protected override double BtusPerHourSquareFootDegreeFahrenheitInOneWattPerSquareMeterKelvin => 1.7611018368230584e-1;
+ protected override double BtusPerSecondSquareInchDegreeFahrenheitInOneWattPerSquareMeterKelvin => 3.3971871852296651e-7;
protected override double KilocaloriesPerHourSquareMeterDegreeCelsiusInOneWattPerSquareMeterKelvin => 0.8604206500956023;
protected override double CaloriesPerHourSquareMeterDegreeCelsiusInOneWattPerSquareMeterKelvin => 860.4206500956023;
}
diff --git a/UnitsNet.Tests/CustomCode/PowerDensityTests.cs b/UnitsNet.Tests/CustomCode/PowerDensityTests.cs
index 1d5a2c8817..095124b981 100644
--- a/UnitsNet.Tests/CustomCode/PowerDensityTests.cs
+++ b/UnitsNet.Tests/CustomCode/PowerDensityTests.cs
@@ -74,5 +74,8 @@ public class PowerDensityTests : PowerDensityTestsBase
protected override double MegawattsPerLiterInOneWattPerCubicMeter => 1e-9;
protected override double GigawattsPerLiterInOneWattPerCubicMeter => 1e-12;
protected override double TerawattsPerLiterInOneWattPerCubicMeter => 1e-15;
+
+ protected override double BtusPerSecondCubicInchInOneWattPerCubicMeter => 1.5531939811e-8;
+ protected override double BtusPerSecondCubicFootInOneWattPerCubicMeter => 2.6839191993e-5;
}
}
diff --git a/UnitsNet.Tests/CustomCode/ThermalConductivityTests.cs b/UnitsNet.Tests/CustomCode/ThermalConductivityTests.cs
index fe566b4a13..23fbb3b21f 100644
--- a/UnitsNet.Tests/CustomCode/ThermalConductivityTests.cs
+++ b/UnitsNet.Tests/CustomCode/ThermalConductivityTests.cs
@@ -29,5 +29,6 @@ public class ThermalConductivityTests : ThermalConductivityTestsBase
{
protected override double WattsPerMeterKelvinInOneWattPerMeterKelvin => 1;
protected override double BtusPerHourFootFahrenheitInOneWattPerMeterKelvin => 5.77789317e-1;
+ protected override double BtusPerSecondInchFahrenheitInOneWattPerMeterKelvin => 1.33747527e-5;
}
}
diff --git a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs
index 94683fce44..1fe7fb24e6 100644
--- a/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs
+++ b/UnitsNet.Tests/GeneratedCode/TestsBase/HeatTransferCoefficientTestsBase.g.cs
@@ -41,6 +41,7 @@ namespace UnitsNet.Tests
public abstract partial class HeatTransferCoefficientTestsBase : QuantityTestsBase
{
protected abstract double BtusPerHourSquareFootDegreeFahrenheitInOneWattPerSquareMeterKelvin { get; }
+ protected abstract double BtusPerSecondSquareInchDegreeFahrenheitInOneWattPerSquareMeterKelvin { get; }
protected abstract double CaloriesPerHourSquareMeterDegreeCelsiusInOneWattPerSquareMeterKelvin { get; }
protected abstract double KilocaloriesPerHourSquareMeterDegreeCelsiusInOneWattPerSquareMeterKelvin { get; }
protected abstract double WattsPerSquareMeterCelsiusInOneWattPerSquareMeterKelvin { get; }
@@ -48,6 +49,7 @@ public abstract partial class HeatTransferCoefficientTestsBase : QuantityTestsBa
// ReSharper disable VirtualMemberNeverOverriden.Global
protected virtual double BtusPerHourSquareFootDegreeFahrenheitTolerance { get { return 1e-5; } }
+ protected virtual double BtusPerSecondSquareInchDegreeFahrenheitTolerance { get { return 1e-5; } }
protected virtual double CaloriesPerHourSquareMeterDegreeCelsiusTolerance { get { return 1e-5; } }
protected virtual double KilocaloriesPerHourSquareMeterDegreeCelsiusTolerance { get { return 1e-5; } }
protected virtual double WattsPerSquareMeterCelsiusTolerance { get { return 1e-5; } }
@@ -59,6 +61,7 @@ public abstract partial class HeatTransferCoefficientTestsBase : QuantityTestsBa
return unit switch
{
HeatTransferCoefficientUnit.BtuPerHourSquareFootDegreeFahrenheit => (BtusPerHourSquareFootDegreeFahrenheitInOneWattPerSquareMeterKelvin, BtusPerHourSquareFootDegreeFahrenheitTolerance),
+ HeatTransferCoefficientUnit.BtuPerSecondSquareInchDegreeFahrenheit => (BtusPerSecondSquareInchDegreeFahrenheitInOneWattPerSquareMeterKelvin, BtusPerSecondSquareInchDegreeFahrenheitTolerance),
HeatTransferCoefficientUnit.CaloriePerHourSquareMeterDegreeCelsius => (CaloriesPerHourSquareMeterDegreeCelsiusInOneWattPerSquareMeterKelvin, CaloriesPerHourSquareMeterDegreeCelsiusTolerance),
HeatTransferCoefficientUnit.KilocaloriePerHourSquareMeterDegreeCelsius => (KilocaloriesPerHourSquareMeterDegreeCelsiusInOneWattPerSquareMeterKelvin, KilocaloriesPerHourSquareMeterDegreeCelsiusTolerance),
HeatTransferCoefficientUnit.WattPerSquareMeterCelsius => (WattsPerSquareMeterCelsiusInOneWattPerSquareMeterKelvin, WattsPerSquareMeterCelsiusTolerance),
@@ -70,6 +73,7 @@ public abstract partial class HeatTransferCoefficientTestsBase : QuantityTestsBa
public static IEnumerable