Skip to content

Commit 426ea00

Browse files
andrewmeservyAndrew Meservyangularsen
authored
Add Thermal Resistance (KelvinPerWatt and DegreesCelsiusPerWatt) (#1560)
- Add Thermal Resistance with KelvinPerWatt and DegreesCelsiusPerWatt Related discussion: #1558 --------- Co-authored-by: Andrew Meservy <[email protected]> Co-authored-by: Andreas Gullberg Larsen <[email protected]>
1 parent da9f7dc commit 426ea00

File tree

17 files changed

+2046
-6
lines changed

17 files changed

+2046
-6
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"Name": "ThermalResistance",
3+
"BaseUnit": "KelvinPerWatt",
4+
"XmlDocSummary": "Thermal resistance (R) measures the opposition to the heat current in a material or system. It is measured in units of kelvins per watt (K/W) and indicates how much temperature difference (in kelvins) is required to transfer a unit of heat current (in watts) through the material or object. It is essential to optimize the building insulation, evaluate the efficiency of electronic devices, and enhance the performance of heat sinks in various applications.",
5+
"BaseDimensions": {
6+
"L": -2,
7+
"M": -1,
8+
"T": 3,
9+
"Θ": 1
10+
},
11+
"Units": [
12+
{
13+
"SingularName": "KelvinPerWatt",
14+
"PluralName": "KelvinsPerWatt",
15+
"BaseUnits": {
16+
"L": "Meter",
17+
"M": "Kilogram",
18+
"T": "Second",
19+
"Θ": "Kelvin"
20+
},
21+
"FromUnitToBaseFunc": "{x}",
22+
"FromBaseToUnitFunc": "{x}",
23+
"Localization": [
24+
{
25+
"Culture": "en-US",
26+
"Abbreviations": [ "K/W" ]
27+
}
28+
]
29+
},
30+
{
31+
"SingularName": "DegreeCelsiusPerWatt",
32+
"PluralName": "DegreesCelsiusPerWatt",
33+
"BaseUnits": {
34+
"L": "Meter",
35+
"M": "Kilogram",
36+
"T": "Second",
37+
"Θ": "DegreeCelsius"
38+
},
39+
"FromUnitToBaseFunc": "{x}",
40+
"FromBaseToUnitFunc": "{x}",
41+
"Localization": [
42+
{
43+
"Culture": "en-US",
44+
"Abbreviations": [ "°C/W" ]
45+
}
46+
]
47+
}
48+
]
49+
}

Common/UnitEnumValues.g.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,12 +1485,8 @@
14851485
"WattPerMeterKelvin": 2
14861486
},
14871487
"ThermalResistance": {
1488-
"HourSquareFeetDegreeFahrenheitPerBtu": 1,
1489-
"SquareCentimeterHourDegreeCelsiusPerKilocalorie": 2,
1490-
"SquareCentimeterKelvinPerWatt": 3,
1491-
"SquareMeterDegreeCelsiusPerWatt": 4,
1492-
"SquareMeterKelvinPerKilowatt": 5,
1493-
"SquareMeterKelvinPerWatt": 6
1488+
"DegreeCelsiusPerWatt": 10,
1489+
"KelvinPerWatt": 11
14941490
},
14951491
"Torque": {
14961492
"GramForceCentimeter": 1,

UnitsNet.NanoFramework/GeneratedCode/Quantities/ThermalResistance.g.cs

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Globals">
4+
<NanoFrameworkProjectSystemPath>$(MSBuildExtensionsPath)\nanoFramework\v1.0\</NanoFrameworkProjectSystemPath>
5+
</PropertyGroup>
6+
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props')" />
7+
<PropertyGroup>
8+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
9+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
10+
<ProjectTypeGuids>{11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
11+
<ProjectGuid>{c69bdd4d-3ebd-4b8e-cffb-650903da3872}</ProjectGuid>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<FileAlignment>512</FileAlignment>
15+
<RootNamespace>UnitsNet</RootNamespace>
16+
<AssemblyName>UnitsNet.ThermalResistance</AssemblyName>
17+
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
18+
<DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
19+
</PropertyGroup>
20+
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.props')" />
21+
<ItemGroup>
22+
<Compile Include="..\Quantities\ThermalResistance.g.cs" />
23+
<Compile Include="..\Units\ThermalResistanceUnit.g.cs" />
24+
<Compile Include="..\Properties\AssemblyInfo.cs" />
25+
</ItemGroup>
26+
<ItemGroup>
27+
<Reference Include="mscorlib, Version=1.15.6.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
28+
<HintPath>..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll</HintPath>
29+
<Private>True</Private>
30+
<SpecificVersion>True</SpecificVersion>
31+
</Reference>
32+
</ItemGroup>
33+
<ItemGroup>
34+
<None Include="packages.config" />
35+
</ItemGroup>
36+
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
37+
<ProjectExtensions>
38+
<ProjectCapabilities>
39+
<ProjectConfigurationsDeclaredAsItems />
40+
</ProjectCapabilities>
41+
</ProjectExtensions>
42+
</Project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
3+
<metadata>
4+
<id>UnitsNet.nanoFramework.ThermalResistance</id>
5+
<version>6.0.0-pre014</version>
6+
<title>Units.NET ThermalResistance - nanoFramework</title>
7+
<authors>Andreas Gullberg Larsen,nanoframework</authors>
8+
<owners>UnitsNet</owners>
9+
<license type="expression">MIT-0</license>
10+
<projectUrl>https://github.com/angularsen/UnitsNet</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Adds ThermalResistance units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.</description>
13+
<iconUrl>https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</iconUrl>
14+
<releaseNotes>
15+
</releaseNotes>
16+
<copyright>Copyright 2013 Andreas Gullberg Larsen ([email protected]).</copyright>
17+
<language>en-US</language>
18+
<tags>nanoframework thermalresistance unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable</tags>
19+
<dependencies>
20+
<dependency id="nanoFramework.CoreLibrary" version="1.15.5" />
21+
</dependencies>
22+
</metadata>
23+
<files>
24+
<file src="..\..\..\Artifacts\UnitsNet.NanoFramework\ThermalResistance\UnitsNet.*" target="lib" />
25+
</files>
26+
</package>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="nanoFramework.CoreLibrary" version="1.15.5" targetFramework="netnanoframework10" />
4+
</packages>

UnitsNet.NanoFramework/GeneratedCode/Units/ThermalResistanceUnit.g.cs

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/UnitsNet.nanoFramework.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ThermalConductivity", "Ther
236236
EndProject
237237
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ThermalInsulance", "ThermalInsulance\ThermalInsulance.nfproj", "{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}"
238238
EndProject
239+
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "ThermalResistance", "ThermalResistance\ThermalResistance.nfproj", "{c69bdd4d-3ebd-4b8e-cffb-650903da3872}"
240+
EndProject
239241
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Torque", "Torque\Torque.nfproj", "{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}"
240242
EndProject
241243
Project("{d608a2b1-6ead-4383-a205-ad1ce69d9ef7}") = "Turbidity", "Turbidity\Turbidity.nfproj", "{05ac8aed-49a4-5c9f-d8c2-8d2debf64791}"
@@ -964,6 +966,12 @@ Global
964966
{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Release|Any CPU.ActiveCfg = Release|Any CPU
965967
{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Release|Any CPU.Build.0 = Release|Any CPU
966968
{0194c08d-ffcd-78bd-9e14-66634fe6d4ea}.Release|Any CPU.Deploy.0 = Release|Any CPU
969+
{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
970+
{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Debug|Any CPU.Build.0 = Debug|Any CPU
971+
{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
972+
{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Release|Any CPU.ActiveCfg = Release|Any CPU
973+
{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Release|Any CPU.Build.0 = Release|Any CPU
974+
{c69bdd4d-3ebd-4b8e-cffb-650903da3872}.Release|Any CPU.Deploy.0 = Release|Any CPU
967975
{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
968976
{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Debug|Any CPU.Build.0 = Debug|Any CPU
969977
{3b6bbc8a-1b22-deff-2980-53b77b6f3e5f}.Debug|Any CPU.Deploy.0 = Debug|Any CPU

0 commit comments

Comments
 (0)