Skip to content

Commit f4394fd

Browse files
voronizerangularsen
authored andcommitted
Add radiation equivalent dose rate (#1464)
Add radiation equivalent [dose rate](https://en.wikipedia.org/wiki/Dose_rate).
1 parent 53e5b84 commit f4394fd

22 files changed

+2594
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"Name": "RadiationEquivalentDoseRate",
3+
"BaseUnit": "SievertPerHour",
4+
"XmlDocSummary": "A dose rate is quantity of radiation absorbed or delivered per unit time.",
5+
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Dose_rate",
6+
"BaseDimensions": {
7+
"L": 2,
8+
"T": -3
9+
},
10+
"Units": [
11+
{
12+
"SingularName": "SievertPerHour",
13+
"PluralName": "SievertsPerHour",
14+
"FromUnitToBaseFunc": "{x}",
15+
"FromBaseToUnitFunc": "{x}",
16+
"Prefixes": [ "Nano", "Micro", "Milli" ],
17+
"Localization": [
18+
{
19+
"Culture": "en-US",
20+
"Abbreviations": [ "Sv/h" ]
21+
},
22+
{
23+
"Culture": "ru-RU",
24+
"Abbreviations": [ "Зв/ч" ]
25+
}
26+
]
27+
},
28+
{
29+
"SingularName": "RoentgenEquivalentManPerHour",
30+
"PluralName": "RoentgensEquivalentManPerHour",
31+
"FromUnitToBaseFunc": "{x} / 100",
32+
"FromBaseToUnitFunc": "{x} * 100",
33+
"Prefixes": [ "Milli" ],
34+
"Localization": [
35+
{
36+
"Culture": "en-US",
37+
"Abbreviations": [ "rem/h" ]
38+
}
39+
]
40+
}
41+
]
42+
}

Common/UnitEnumValues.g.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,14 @@
18631863
"Kilosievert": 3,
18641864
"Megasievert": 6
18651865
},
1866+
"RadiationEquivalentDoseRate": {
1867+
"MicrosievertPerHour": 1,
1868+
"MilliroentgenEquivalentManPerHour": 4,
1869+
"MillisievertPerHour": 3,
1870+
"NanosievertPerHour": 2,
1871+
"RoentgenEquivalentManPerHour": 5,
1872+
"SievertPerHour": 6
1873+
},
18661874
"ThermalInsulance": {
18671875
"HourSquareFeetDegreeFahrenheitPerBtu": 2,
18681876
"SquareCentimeterHourDegreeCelsiusPerKilocalorie": 6,

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

Lines changed: 217 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>{8eec9904-f4bb-c601-86ac-80fb153599f9}</ProjectGuid>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<FileAlignment>512</FileAlignment>
15+
<RootNamespace>UnitsNet</RootNamespace>
16+
<AssemblyName>UnitsNet.RadiationEquivalentDoseRate</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\RadiationEquivalentDoseRate.g.cs" />
23+
<Compile Include="..\Units\RadiationEquivalentDoseRateUnit.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>
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.RadiationEquivalentDoseRate</id>
5+
<version>6.0.0-pre012</version>
6+
<title>Units.NET RadiationEquivalentDoseRate - 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 RadiationEquivalentDoseRate 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 radiationequivalentdoserate 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\RadiationEquivalentDoseRate\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/RadiationEquivalentDoseRateUnit.g.cs

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

0 commit comments

Comments
 (0)