Skip to content

Commit 1e1f21b

Browse files
authored
Add compressibility quantity (#1037)
1 parent 165bfc3 commit 1e1f21b

File tree

20 files changed

+3113
-0
lines changed

20 files changed

+3113
-0
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"Name": "Compressibility",
3+
"BaseUnit": "InversePascal",
4+
"XmlDoc": "Compressibility is the measure of the relative volume change of a fluid or solid in response to pressure changes.",
5+
"BaseDimensions": {
6+
"L": 1,
7+
"M": -1,
8+
"T": 2
9+
},
10+
"Units": [
11+
{
12+
"SingularName": "InversePascal",
13+
"PluralName": "InversePascals",
14+
"BaseUnits": {
15+
"L": "Meter",
16+
"M": "Kilogram",
17+
"T": "Second"
18+
},
19+
"FromUnitToBaseFunc": "{x}",
20+
"FromBaseToUnitFunc": "{x}",
21+
"Localization": [
22+
{
23+
"Culture": "en-US",
24+
"Abbreviations": [ "Pa⁻¹", "1/Pa" ]
25+
}
26+
]
27+
},
28+
{
29+
"SingularName": "InverseKilopascal",
30+
"PluralName": "InverseKilopascals",
31+
"FromUnitToBaseFunc": "{x} * 1e3",
32+
"FromBaseToUnitFunc": "{x} / 1e3",
33+
"Localization": [
34+
{
35+
"Culture": "en-US",
36+
"Abbreviations": [ "kPa⁻¹", "1/kPa" ]
37+
}
38+
]
39+
},
40+
{
41+
"SingularName": "InverseMegapascal",
42+
"PluralName": "InverseMegapascals",
43+
"FromUnitToBaseFunc": "{x} * 1e6",
44+
"FromBaseToUnitFunc": "{x} / 1e6",
45+
"Localization": [
46+
{
47+
"Culture": "en-US",
48+
"Abbreviations": [ "kPa⁻¹", "1/kPa" ]
49+
}
50+
]
51+
},
52+
{
53+
"SingularName": "InverseAtmosphere",
54+
"PluralName": "InverseAtmospheres",
55+
"FromUnitToBaseFunc": "{x} * 101325",
56+
"FromBaseToUnitFunc": "{x} / 101325",
57+
"Localization": [
58+
{
59+
"Culture": "en-US",
60+
"Abbreviations": [ "atm⁻¹", "1/atm" ]
61+
}
62+
]
63+
},
64+
{
65+
"SingularName": "InverseMillibar",
66+
"PluralName": "InverseMillibars",
67+
"FromUnitToBaseFunc": "{x} * 100",
68+
"FromBaseToUnitFunc": "{x} / 100",
69+
"Localization": [
70+
{
71+
"Culture": "en-US",
72+
"Abbreviations": [ "mbar⁻¹", "1/mbar" ]
73+
}
74+
]
75+
},
76+
{
77+
"SingularName": "InverseBar",
78+
"PluralName": "InverseBars",
79+
"FromUnitToBaseFunc": "{x} * 1e5",
80+
"FromBaseToUnitFunc": "{x} / 1e5",
81+
"Localization": [
82+
{
83+
"Culture": "en-US",
84+
"Abbreviations": [ "bar⁻¹", "1/bar" ]
85+
}
86+
]
87+
},
88+
{
89+
"SingularName": "InversePoundForcePerSquareInch",
90+
"PluralName": "InversePoundsForcePerSquareInch",
91+
"FromUnitToBaseFunc": "{x} * 6.894757293168361e3",
92+
"FromBaseToUnitFunc": "{x} / 6.894757293168361e3",
93+
"Localization": [
94+
{
95+
"Culture": "en-US",
96+
"Abbreviations": [ "psi⁻¹", "1/psi" ]
97+
}
98+
]
99+
}
100+
]
101+
}
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>$(MSBuildToolsPath)..\..\..\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>{daf647be-be87-88b9-ee92-dece21fe0dff}</ProjectGuid>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<FileAlignment>512</FileAlignment>
15+
<RootNamespace>UnitsNet</RootNamespace>
16+
<AssemblyName>UnitsNet.Compressibility</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\Compressibility.g.cs" />
23+
<Compile Include="..\Units\CompressibilityUnit.g.cs" />
24+
<Compile Include="..\Properties\AssemblyInfo.cs" />
25+
</ItemGroup>
26+
<ItemGroup>
27+
<Reference Include="mscorlib, Version=1.12.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
28+
<HintPath>..\packages\nanoFramework.CoreLibrary.1.12.0-preview.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.Compressibility</id>
5+
<version>4.121.0</version>
6+
<title>Units.NET Compressibility - nanoFramework</title>
7+
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
8+
<owners>UnitsNet</owners>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/angularsen/UnitsNet</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Adds Compressibility 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 unit units measurement si metric imperial abbreviation abbreviations convert conversion parse c# .net immutable uwp uap winrt win10 windows runtime component compressibility</tags>
19+
<dependencies>
20+
<dependency id="nanoFramework.CoreLibrary" version="1.12.0-preview.5" />
21+
</dependencies>
22+
</metadata>
23+
<files>
24+
<file src="..\..\..\Artifacts\UnitsNet.NanoFramework\Compressibility\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.12.0-preview.5" targetFramework="netnanoframework10" />
4+
</packages>

0 commit comments

Comments
 (0)