Skip to content

Add compressibility quantity #1037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 4, 2022
Merged
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
101 changes: 101 additions & 0 deletions Common/UnitDefinitions/Compressibility.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"Name": "Compressibility",
"BaseUnit": "InversePascal",
"XmlDoc": "Compressibility is the measure of the relative volume change of a fluid or solid in response to pressure changes.",
"BaseDimensions": {
"L": 1,
"M": -1,
"T": 2
},
"Units": [
{
"SingularName": "InversePascal",
"PluralName": "InversePascals",
"BaseUnits": {
"L": "Meter",
"M": "Kilogram",
"T": "Second"
},
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Pa⁻¹", "1/Pa" ]
}
]
},
{
"SingularName": "InverseKilopascal",
"PluralName": "InverseKilopascals",
"FromUnitToBaseFunc": "{x} * 1e3",
"FromBaseToUnitFunc": "{x} / 1e3",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "kPa⁻¹", "1/kPa" ]
}
]
},
{
"SingularName": "InverseMegapascal",
"PluralName": "InverseMegapascals",
"FromUnitToBaseFunc": "{x} * 1e6",
"FromBaseToUnitFunc": "{x} / 1e6",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "kPa⁻¹", "1/kPa" ]
}
]
},
{
"SingularName": "InverseAtmosphere",
"PluralName": "InverseAtmospheres",
"FromUnitToBaseFunc": "{x} * 101325",
"FromBaseToUnitFunc": "{x} / 101325",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "atm⁻¹", "1/atm" ]
}
]
},
{
"SingularName": "InverseMillibar",
"PluralName": "InverseMillibars",
"FromUnitToBaseFunc": "{x} * 100",
"FromBaseToUnitFunc": "{x} / 100",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "mbar⁻¹", "1/mbar" ]
}
]
},
{
"SingularName": "InverseBar",
"PluralName": "InverseBars",
"FromUnitToBaseFunc": "{x} * 1e5",
"FromBaseToUnitFunc": "{x} / 1e5",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "bar⁻¹", "1/bar" ]
}
]
},
{
"SingularName": "InversePoundForcePerSquareInch",
"PluralName": "InversePoundsForcePerSquareInch",
"FromUnitToBaseFunc": "{x} * 6.894757293168361e3",
"FromBaseToUnitFunc": "{x} / 6.894757293168361e3",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "psi⁻¹", "1/psi" ]
}
]
}
]
}
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>$(MSBuildToolsPath)..\..\..\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>{daf647be-be87-88b9-ee92-dece21fe0dff}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<FileAlignment>512</FileAlignment>
<RootNamespace>UnitsNet</RootNamespace>
<AssemblyName>UnitsNet.Compressibility</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\Compressibility.g.cs" />
<Compile Include="..\Units\CompressibilityUnit.g.cs" />
<Compile Include="..\Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib, Version=1.12.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.CoreLibrary.1.12.0-preview.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.Compressibility</id>
<version>4.121.0</version>
<title>Units.NET Compressibility - nanoFramework</title>
<authors>Andreas Gullberg Larsen,nanoFramework project contributors</authors>
<owners>UnitsNet</owners>
<license type="expression">MIT</license>
<projectUrl>https://github.com/angularsen/UnitsNet</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Adds Compressibility 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 unit units measurement si metric imperial abbreviation abbreviations convert conversion parse c# .net immutable uwp uap winrt win10 windows runtime component compressibility</tags>
<dependencies>
<dependency id="nanoFramework.CoreLibrary" version="1.12.0-preview.5" />
</dependencies>
</metadata>
<files>
<file src="..\..\..\Artifacts\UnitsNet.NanoFramework\Compressibility\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.12.0-preview.5" targetFramework="netnanoframework10" />
</packages>
Loading