Skip to content

Add StandardVolumeFlow quantity #870

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 1 commit into from
Jan 18, 2021
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
119 changes: 119 additions & 0 deletions Common/UnitDefinitions/StandardVolumeFlow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"Name": "StandardVolumeFlow",
"BaseUnit": "StandardCubicMeterPerSecond",
"XmlDoc": "The molar flow rate of a gas corrected to standardized conditions of temperature and pressure thus representing a fixed number of moles of gas regardless of composition and actual flow conditions.",
"BaseDimensions": {
"M": 1,
"T": -1
},
"Units": [
{
"SingularName": "StandardCubicMeterPerSecond",
"PluralName": "StandardCubicMetersPerSecond",
"FromUnitToBaseFunc": "x",
"FromBaseToUnitFunc": "x",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Sm³/s" ]
}
]
},
{
"SingularName": "StandardCubicMeterPerMinute",
"PluralName": "StandardCubicMetersPerMinute",
"FromUnitToBaseFunc": "x/60",
"FromBaseToUnitFunc": "x*60",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Sm³/min" ]
}
]
},
{
"SingularName": "StandardCubicMeterPerHour",
"PluralName": "StandardCubicMetersPerHour",
"FromUnitToBaseFunc": "x/3600",
"FromBaseToUnitFunc": "x*3600",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Sm³/h" ]
}
]
},
{
"SingularName": "StandardCubicMeterPerDay",
"PluralName": "StandardCubicMetersPerDay",
"FromUnitToBaseFunc": "x/86400",
"FromBaseToUnitFunc": "x*86400",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Sm³/d" ]
}
]
},
{
"SingularName": "StandardCubicCentimeterPerMinute",
"PluralName": "StandardCubicCentimetersPerMinute",
"FromUnitToBaseFunc": "x/6e7",
"FromBaseToUnitFunc": "x*6e7",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "sccm" ]
}
]
},
{
"SingularName": "StandardLiterPerMinute",
"PluralName": "StandardLitersPerMinute",
"FromUnitToBaseFunc": "x/60000",
"FromBaseToUnitFunc": "x*60000",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "slm" ]
}
]
},
{
"SingularName": "StandardCubicFootPerSecond",
"PluralName": "StandardCubicFeetPerSecond",
"FromUnitToBaseFunc": "x/35.314666721",
"FromBaseToUnitFunc": "x*35.314666721",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Sft³/s" ]
}
]
},
{
"SingularName": "StandardCubicFootPerMinute",
"PluralName": "StandardCubicFeetPerMinute",
"FromUnitToBaseFunc": "x/2118.88000326",
"FromBaseToUnitFunc": "x*2118.88000326",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "scfm" ]
}
]
},
{
"SingularName": "StandardCubicFootPerHour",
"PluralName": "StandardCubicFeetPerHour",
"FromUnitToBaseFunc": "x*7.8657907199999087346816086183876e-6",
"FromBaseToUnitFunc": "x/7.8657907199999087346816086183876e-6",
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "scfh" ]
}
]
}
]
}

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

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

38 changes: 38 additions & 0 deletions UnitsNet.Tests/CustomCode/StandardVolumeFlowTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \generate-code.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step will regenerate the code on each local build.
//
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
//
// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
//
// </auto-generated>
//------------------------------------------------------------------------------

// Licensed under MIT No Attribution, see LICENSE file at the root.
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.

using System;

namespace UnitsNet.Tests.CustomCode
{
public class StandardVolumeFlowTests : StandardVolumeFlowTestsBase
{
// Override properties in base class here
protected override bool SupportsSIUnitSystem { get; }
protected override double StandardCubicCentimetersPerMinuteInOneStandardCubicMeterPerSecond => 6e7;
protected override double StandardCubicFeetPerHourInOneStandardCubicMeterPerSecond => 1.271328001973604e+5;
protected override double StandardCubicFeetPerMinuteInOneStandardCubicMeterPerSecond => 2.11888E3;
protected override double StandardCubicFeetPerSecondInOneStandardCubicMeterPerSecond => 35.314666721489;
protected override double StandardCubicMetersPerDayInOneStandardCubicMeterPerSecond => 8.64e4;
protected override double StandardCubicMetersPerHourInOneStandardCubicMeterPerSecond => 3.6e3;
protected override double StandardCubicMetersPerMinuteInOneStandardCubicMeterPerSecond => 6.0e1;
protected override double StandardCubicMetersPerSecondInOneStandardCubicMeterPerSecond => 1;
protected override double StandardLitersPerMinuteInOneStandardCubicMeterPerSecond => 60000;
}
}
4 changes: 4 additions & 0 deletions UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

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

Loading