Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Common/UnitDefinitions/Fluence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"Name": "Fluence",
"BaseUnit": "NeutronPerSquareCentimeter",
"XmlDocSummary": "In nuclear physics, fluence is the time-integrated flux of particles (typically neutrons) passing through a unit area. It is commonly measured in neutrons per square centimeter (n/cm²) for reactor vessel wall exposure.",
"BaseDimensions": {
"L": -2
},
"Units": [
{
"SingularName": "NeutronPerSquareCentimeter",
"PluralName": "NeutronsPerSquareCentimeter",
"BaseUnits": {
"L": "Centimeter"
},
"XmlDocSummary": "The fluence of neutrons measured per square centimeter (n/cm²). Example: A reactor vessel may receive 6×10¹⁹ n/cm² over its lifetime.",
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "n/cm²", "n·cm⁻²" ]
}
]
}
]
}
13 changes: 13 additions & 0 deletions Common/UnitDefinitions/Power.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@
}
]
},
{
"SingularName": "PascalCubicMeterPerSecond",
"PluralName": "PascalCubicMeterPerSecond",
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"Prefixes": [ "Femto", "Pico", "Nano", "Micro", "Milli", "Deci", "Deca", "Kilo", "Mega", "Giga", "Tera", "Peta" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Pa.m³/s" ]
}
]
},
{
"SingularName": "MechanicalHorsepower",
"PluralName": "MechanicalHorsepower",
Expand Down
38 changes: 38 additions & 0 deletions Common/UnitDefinitions/Pressure.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@
}
]
},
{
"SingularName": "PascalG",
"PluralName": "PascalsG",
"XmlDocSummary": "The Pa(g) is a metric unit of gauge pressure, where the pressure is relative to atmospheric pressure (approximately 101325 Pa).",
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Pressure_measurement#Gauge_pressure",
"FromUnitToBaseFunc": "{x} + 101325",
"FromBaseToUnitFunc": "{x} - 101325",
"Prefixes": [ "Micro", "Milli", "Deca", "Hecto", "Kilo", "Mega", "Giga" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Pa(g)" ]
},
{
"Culture": "ru-RU",
"Abbreviations": [ "Па(g)" ]
}
]
},
{
"SingularName": "Atmosphere",
"PluralName": "Atmospheres",
Expand Down Expand Up @@ -67,6 +86,25 @@
}
]
},
{
"SingularName": "BarG",
"PluralName": "BarsG",
"XmlDocSummary": "The bar(g) is a metric unit of gauge pressure, where the pressure is relative to atmospheric pressure (approximately 1.01325 bar).",
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Pressure_measurement#Gauge_pressure",
"FromUnitToBaseFunc": "({x} * 1e5) + 101325",
"FromBaseToUnitFunc": "({x} - 101325) / 1e5",
"Prefixes": [ "Micro", "Milli", "Centi", "Deci", "Kilo", "Mega" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "bar(g)" ]
},
{
"Culture": "ru-RU",
"Abbreviations": [ "бар(g)" ]
}
]
},
{
"SingularName": "KilogramForcePerSquareMeter",
"PluralName": "KilogramsForcePerSquareMeter",
Expand Down
35 changes: 33 additions & 2 deletions Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,20 @@
"Picowatt": 24,
"Terawatt": 25,
"Watt": 26,
"TonOfRefrigeration": 29
"TonOfRefrigeration": 29,
"DecapascalCubicMeterPerSecond": 35,
"DecipascalCubicMeterPerSecond": 36,
"FemtopascalCubicMeterPerSecond": 34,
"GigapascalCubicMeterPerSecond": 32,
"KilopascalCubicMeterPerSecond": 28,
"MegapascalCubicMeterPerSecond": 27,
"MicropascalCubicMeterPerSecond": 37,
"MillipascalCubicMeterPerSecond": 30,
"NanopascalCubicMeterPerSecond": 31,
"PascalCubicMeterPerSecond": 33,
"PetapascalCubicMeterPerSecond": 45,
"PicopascalCubicMeterPerSecond": 47,
"TerapascalCubicMeterPerSecond": 42
},
"PowerDensity": {
"DecawattPerCubicFoot": 1,
Expand Down Expand Up @@ -1188,7 +1201,22 @@
"Torr": 47,
"MeterOfWaterColumn": 57,
"CentimeterOfWaterColumn": 48,
"Millitorr": 52
"Millitorr": 52,
"BarG": 53,
"CentibarG": 58,
"DecapascalG": 50,
"DecibarG": 55,
"GigapascalG": 54,
"HectopascalG": 59,
"KilobarG": 51,
"KilopascalG": 49,
"MegabarG": 60,
"MegapascalG": 56,
"MicrobarG": 67,
"MicropascalG": 65,
"MillibarG": 62,
"MillipascalG": 68,
"PascalG": 69
},
"PressureChangeRate": {
"AtmospherePerSecond": 1,
Expand Down Expand Up @@ -2018,5 +2046,8 @@
"SquareMeterKelvinPerKilowatt": 5,
"SquareMeterKelvinPerWatt": 4,
"SquareMillimeterKelvinPerWatt": 13
},
"Fluence": {
"NeutronPerSquareCentimeter": 4
}
}
42 changes: 42 additions & 0 deletions UnitsNet.NanoFramework/GeneratedCode/Fluence/Fluence.nfproj
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>{2e4fbb82-e5b9-73cd-399b-0941478e1f53}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<FileAlignment>512</FileAlignment>
<RootNamespace>UnitsNet</RootNamespace>
<AssemblyName>UnitsNet.Fluence</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\Fluence.g.cs" />
<Compile Include="..\Units\FluenceUnit.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.Fluence</id>
<version>6.0.0-pre019</version>
<title>Units.NET Fluence - 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 Fluence 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 (andreas.larsen84@gmail.com).</copyright>
<language>en-US</language>
<tags>nanoframework fluence 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\Fluence\UnitsNet.*" target="lib" />
</files>
</package>
4 changes: 4 additions & 0 deletions UnitsNet.NanoFramework/GeneratedCode/Fluence/packages.config
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>
157 changes: 157 additions & 0 deletions UnitsNet.NanoFramework/GeneratedCode/Quantities/Fluence.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading