Skip to content

Commit fa4cedd

Browse files
authored
Added Dose Area Product (DAP) quantity (#1471)
https://en.wikipedia.org/wiki/Dose_area_product
1 parent 842fa20 commit fa4cedd

File tree

18 files changed

+4264
-0
lines changed

18 files changed

+4264
-0
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"Name": "DoseAreaProduct",
3+
"BaseUnit": "GraySquareMeter",
4+
"XmlDocSummary": "It is defined as the absorbed dose multiplied by the area irradiated.",
5+
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Dose_area_product",
6+
"BaseDimensions": {
7+
"L": 4,
8+
"T": -2
9+
},
10+
"Units": [
11+
{
12+
"SingularName": "GraySquareMeter",
13+
"PluralName": "GraySquareMeters",
14+
"BaseUnits": {
15+
"L": "Meter",
16+
"T": "Second"
17+
},
18+
"FromUnitToBaseFunc": "{x}",
19+
"FromBaseToUnitFunc": "{x}",
20+
"Prefixes": [
21+
"Micro",
22+
"Milli",
23+
"Centi",
24+
"Deci"
25+
],
26+
"Localization": [
27+
{
28+
"Culture": "en-US",
29+
"Abbreviations": [
30+
"Gy·m²"
31+
]
32+
},
33+
{
34+
"Culture": "ru-RU",
35+
"Abbreviations": [
36+
"Гр·м²"
37+
]
38+
}
39+
]
40+
},
41+
{
42+
"SingularName": "GraySquareDecimeter",
43+
"PluralName": "GraySquareDecimeters",
44+
"FromUnitToBaseFunc": "{x} / 100",
45+
"FromBaseToUnitFunc": "{x} * 100",
46+
"Prefixes": [
47+
"Micro",
48+
"Milli",
49+
"Centi",
50+
"Deci"
51+
],
52+
"Localization": [
53+
{
54+
"Culture": "en-US",
55+
"Abbreviations": [
56+
"Gy·dm²"
57+
]
58+
},
59+
{
60+
"Culture": "ru-RU",
61+
"Abbreviations": [
62+
"Гр·дм²"
63+
]
64+
}
65+
]
66+
},
67+
{
68+
"SingularName": "GraySquareCentimeter",
69+
"PluralName": "GraySquareCentimeters",
70+
"FromUnitToBaseFunc": "{x} / 10000",
71+
"FromBaseToUnitFunc": "{x} * 10000",
72+
"Prefixes": [
73+
"Micro",
74+
"Milli",
75+
"Centi",
76+
"Deci"
77+
],
78+
"Localization": [
79+
{
80+
"Culture": "en-US",
81+
"Abbreviations": [
82+
"Gy·cm²"
83+
]
84+
},
85+
{
86+
"Culture": "ru-RU",
87+
"Abbreviations": [
88+
"Гр·см²"
89+
]
90+
}
91+
]
92+
},
93+
{
94+
"SingularName": "GraySquareMillimeter",
95+
"PluralName": "GraySquareMillimeters",
96+
"FromUnitToBaseFunc": "{x} / 1000000",
97+
"FromBaseToUnitFunc": "{x} * 1000000",
98+
"Prefixes": [
99+
"Micro",
100+
"Milli",
101+
"Centi",
102+
"Deci"
103+
],
104+
"Localization": [
105+
{
106+
"Culture": "en-US",
107+
"Abbreviations": [
108+
"Gy·mm²"
109+
]
110+
},
111+
{
112+
"Culture": "ru-RU",
113+
"Abbreviations": [
114+
"Гр·мм²"
115+
]
116+
}
117+
]
118+
}
119+
]
120+
}

Common/UnitEnumValues.g.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,5 +1881,27 @@
18811881
"MicrosievertPerSecond": 17,
18821882
"MillisievertPerSecond": 14,
18831883
"NanosievertPerSecond": 9
1884+
},
1885+
"DoseAreaProduct": {
1886+
"CentigraySquareCentimeter": 6,
1887+
"CentigraySquareDecimeter": 3,
1888+
"CentigraySquareMeter": 7,
1889+
"CentigraySquareMillimeter": 2,
1890+
"DecigraySquareCentimeter": 9,
1891+
"DecigraySquareDecimeter": 1,
1892+
"DecigraySquareMeter": 4,
1893+
"DecigraySquareMillimeter": 8,
1894+
"GraySquareCentimeter": 10,
1895+
"GraySquareDecimeter": 5,
1896+
"GraySquareMeter": 19,
1897+
"GraySquareMillimeter": 16,
1898+
"MicrograySquareCentimeter": 13,
1899+
"MicrograySquareDecimeter": 20,
1900+
"MicrograySquareMeter": 15,
1901+
"MicrograySquareMillimeter": 18,
1902+
"MilligraySquareCentimeter": 14,
1903+
"MilligraySquareDecimeter": 17,
1904+
"MilligraySquareMeter": 11,
1905+
"MilligraySquareMillimeter": 12
18841906
}
18851907
}
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>{e074adae-f19a-6b69-67b0-b4fb425b39ce}</ProjectGuid>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<FileAlignment>512</FileAlignment>
15+
<RootNamespace>UnitsNet</RootNamespace>
16+
<AssemblyName>UnitsNet.DoseAreaProduct</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\DoseAreaProduct.g.cs" />
23+
<Compile Include="..\Units\DoseAreaProductUnit.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.DoseAreaProduct</id>
5+
<version>5.63.0</version>
6+
<title>Units.NET DoseAreaProduct - 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 DoseAreaProduct 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 doseareaproduct 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\DoseAreaProduct\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>

0 commit comments

Comments
 (0)