Skip to content

Commit

Permalink
Added Dose Area Product (DAP) quantity (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagailo authored Dec 26, 2024
1 parent 842fa20 commit fa4cedd
Show file tree
Hide file tree
Showing 18 changed files with 4,264 additions and 0 deletions.
120 changes: 120 additions & 0 deletions Common/UnitDefinitions/DoseAreaProduct.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"Name": "DoseAreaProduct",
"BaseUnit": "GraySquareMeter",
"XmlDocSummary": "It is defined as the absorbed dose multiplied by the area irradiated.",
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Dose_area_product",
"BaseDimensions": {
"L": 4,
"T": -2
},
"Units": [
{
"SingularName": "GraySquareMeter",
"PluralName": "GraySquareMeters",
"BaseUnits": {
"L": "Meter",
"T": "Second"
},
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"Prefixes": [
"Micro",
"Milli",
"Centi",
"Deci"
],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [
"Gy·m²"
]
},
{
"Culture": "ru-RU",
"Abbreviations": [
"Гр·м²"
]
}
]
},
{
"SingularName": "GraySquareDecimeter",
"PluralName": "GraySquareDecimeters",
"FromUnitToBaseFunc": "{x} / 100",
"FromBaseToUnitFunc": "{x} * 100",
"Prefixes": [
"Micro",
"Milli",
"Centi",
"Deci"
],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [
"Gy·dm²"
]
},
{
"Culture": "ru-RU",
"Abbreviations": [
"Гр·дм²"
]
}
]
},
{
"SingularName": "GraySquareCentimeter",
"PluralName": "GraySquareCentimeters",
"FromUnitToBaseFunc": "{x} / 10000",
"FromBaseToUnitFunc": "{x} * 10000",
"Prefixes": [
"Micro",
"Milli",
"Centi",
"Deci"
],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [
"Gy·cm²"
]
},
{
"Culture": "ru-RU",
"Abbreviations": [
"Гр·см²"
]
}
]
},
{
"SingularName": "GraySquareMillimeter",
"PluralName": "GraySquareMillimeters",
"FromUnitToBaseFunc": "{x} / 1000000",
"FromBaseToUnitFunc": "{x} * 1000000",
"Prefixes": [
"Micro",
"Milli",
"Centi",
"Deci"
],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [
"Gy·mm²"
]
},
{
"Culture": "ru-RU",
"Abbreviations": [
"Гр·мм²"
]
}
]
}
]
}
22 changes: 22 additions & 0 deletions Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1881,5 +1881,27 @@
"MicrosievertPerSecond": 17,
"MillisievertPerSecond": 14,
"NanosievertPerSecond": 9
},
"DoseAreaProduct": {
"CentigraySquareCentimeter": 6,
"CentigraySquareDecimeter": 3,
"CentigraySquareMeter": 7,
"CentigraySquareMillimeter": 2,
"DecigraySquareCentimeter": 9,
"DecigraySquareDecimeter": 1,
"DecigraySquareMeter": 4,
"DecigraySquareMillimeter": 8,
"GraySquareCentimeter": 10,
"GraySquareDecimeter": 5,
"GraySquareMeter": 19,
"GraySquareMillimeter": 16,
"MicrograySquareCentimeter": 13,
"MicrograySquareDecimeter": 20,
"MicrograySquareMeter": 15,
"MicrograySquareMillimeter": 18,
"MilligraySquareCentimeter": 14,
"MilligraySquareDecimeter": 17,
"MilligraySquareMeter": 11,
"MilligraySquareMillimeter": 12
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<NanoFrameworkProjectSystemPath>$(MSBuildExtensionsPath)\nanoFramework\v1.0\</NanoFrameworkProjectSystemPath>
</PropertyGroup>
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.Default.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectTypeGuids>{11A8DD76-328B-46DF-9F39-F559912D0360};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{e074adae-f19a-6b69-67b0-b4fb425b39ce}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<FileAlignment>512</FileAlignment>
<RootNamespace>UnitsNet</RootNamespace>
<AssemblyName>UnitsNet.DoseAreaProduct</AssemblyName>
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
<DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.props" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.props')" />
<ItemGroup>
<Compile Include="..\Quantities\DoseAreaProduct.g.cs" />
<Compile Include="..\Units\DoseAreaProductUnit.g.cs" />
<Compile Include="..\Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib, Version=1.15.6.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.CoreLibrary.1.15.5\lib\mscorlib.dll</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" Condition="Exists('$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets')" />
<ProjectExtensions>
<ProjectCapabilities>
<ProjectConfigurationsDeclaredAsItems />
</ProjectCapabilities>
</ProjectExtensions>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>UnitsNet.nanoFramework.DoseAreaProduct</id>
<version>5.63.0</version>
<title>Units.NET DoseAreaProduct - nanoFramework</title>
<authors>Andreas Gullberg Larsen,nanoframework</authors>
<owners>UnitsNet</owners>
<license type="expression">MIT-0</license>
<projectUrl>https://github.com/angularsen/UnitsNet</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Adds DoseAreaProduct units for Units.NET on .NET nanoFramework. For .NET or .NET Core, use UnitsNet instead.</description>
<iconUrl>https://raw.githubusercontent.com/angularsen/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</iconUrl>
<releaseNotes>
</releaseNotes>
<copyright>Copyright 2013 Andreas Gullberg Larsen ([email protected]).</copyright>
<language>en-US</language>
<tags>nanoframework doseareaproduct unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable</tags>
<dependencies>
<dependency id="nanoFramework.CoreLibrary" version="1.15.5" />
</dependencies>
</metadata>
<files>
<file src="..\..\..\Artifacts\UnitsNet.NanoFramework\DoseAreaProduct\UnitsNet.*" target="lib" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="nanoFramework.CoreLibrary" version="1.15.5" targetFramework="netnanoframework10" />
</packages>
Loading

0 comments on commit fa4cedd

Please sign in to comment.