Skip to content

Commit 8da15d0

Browse files
authored
Add StandardVolumeFlow quantity (#870)
1 parent 5c2eebc commit 8da15d0

File tree

17 files changed

+2818
-0
lines changed

17 files changed

+2818
-0
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"Name": "StandardVolumeFlow",
3+
"BaseUnit": "StandardCubicMeterPerSecond",
4+
"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.",
5+
"BaseDimensions": {
6+
"M": 1,
7+
"T": -1
8+
},
9+
"Units": [
10+
{
11+
"SingularName": "StandardCubicMeterPerSecond",
12+
"PluralName": "StandardCubicMetersPerSecond",
13+
"FromUnitToBaseFunc": "x",
14+
"FromBaseToUnitFunc": "x",
15+
"Localization": [
16+
{
17+
"Culture": "en-US",
18+
"Abbreviations": [ "Sm³/s" ]
19+
}
20+
]
21+
},
22+
{
23+
"SingularName": "StandardCubicMeterPerMinute",
24+
"PluralName": "StandardCubicMetersPerMinute",
25+
"FromUnitToBaseFunc": "x/60",
26+
"FromBaseToUnitFunc": "x*60",
27+
"Localization": [
28+
{
29+
"Culture": "en-US",
30+
"Abbreviations": [ "Sm³/min" ]
31+
}
32+
]
33+
},
34+
{
35+
"SingularName": "StandardCubicMeterPerHour",
36+
"PluralName": "StandardCubicMetersPerHour",
37+
"FromUnitToBaseFunc": "x/3600",
38+
"FromBaseToUnitFunc": "x*3600",
39+
"Localization": [
40+
{
41+
"Culture": "en-US",
42+
"Abbreviations": [ "Sm³/h" ]
43+
}
44+
]
45+
},
46+
{
47+
"SingularName": "StandardCubicMeterPerDay",
48+
"PluralName": "StandardCubicMetersPerDay",
49+
"FromUnitToBaseFunc": "x/86400",
50+
"FromBaseToUnitFunc": "x*86400",
51+
"Localization": [
52+
{
53+
"Culture": "en-US",
54+
"Abbreviations": [ "Sm³/d" ]
55+
}
56+
]
57+
},
58+
{
59+
"SingularName": "StandardCubicCentimeterPerMinute",
60+
"PluralName": "StandardCubicCentimetersPerMinute",
61+
"FromUnitToBaseFunc": "x/6e7",
62+
"FromBaseToUnitFunc": "x*6e7",
63+
"Localization": [
64+
{
65+
"Culture": "en-US",
66+
"Abbreviations": [ "sccm" ]
67+
}
68+
]
69+
},
70+
{
71+
"SingularName": "StandardLiterPerMinute",
72+
"PluralName": "StandardLitersPerMinute",
73+
"FromUnitToBaseFunc": "x/60000",
74+
"FromBaseToUnitFunc": "x*60000",
75+
"Localization": [
76+
{
77+
"Culture": "en-US",
78+
"Abbreviations": [ "slm" ]
79+
}
80+
]
81+
},
82+
{
83+
"SingularName": "StandardCubicFootPerSecond",
84+
"PluralName": "StandardCubicFeetPerSecond",
85+
"FromUnitToBaseFunc": "x/35.314666721",
86+
"FromBaseToUnitFunc": "x*35.314666721",
87+
"Localization": [
88+
{
89+
"Culture": "en-US",
90+
"Abbreviations": [ "Sft³/s" ]
91+
}
92+
]
93+
},
94+
{
95+
"SingularName": "StandardCubicFootPerMinute",
96+
"PluralName": "StandardCubicFeetPerMinute",
97+
"FromUnitToBaseFunc": "x/2118.88000326",
98+
"FromBaseToUnitFunc": "x*2118.88000326",
99+
"Localization": [
100+
{
101+
"Culture": "en-US",
102+
"Abbreviations": [ "scfm" ]
103+
}
104+
]
105+
},
106+
{
107+
"SingularName": "StandardCubicFootPerHour",
108+
"PluralName": "StandardCubicFeetPerHour",
109+
"FromUnitToBaseFunc": "x*7.8657907199999087346816086183876e-6",
110+
"FromBaseToUnitFunc": "x/7.8657907199999087346816086183876e-6",
111+
"Localization": [
112+
{
113+
"Culture": "en-US",
114+
"Abbreviations": [ "scfh" ]
115+
}
116+
]
117+
}
118+
]
119+
}

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToStandardVolumeFlowExtensionsTest.g.cs

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NumberExtensions/GeneratedCode/NumberToStandardVolumeFlowExtensions.g.cs

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by \generate-code.bat.
4+
//
5+
// Changes to this file will be lost when the code is regenerated.
6+
// The build server regenerates the code before each build and a pre-build
7+
// step will regenerate the code on each local build.
8+
//
9+
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
10+
//
11+
// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
12+
// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
13+
//
14+
// </auto-generated>
15+
//------------------------------------------------------------------------------
16+
17+
// Licensed under MIT No Attribution, see LICENSE file at the root.
18+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
19+
20+
using System;
21+
22+
namespace UnitsNet.Tests.CustomCode
23+
{
24+
public class StandardVolumeFlowTests : StandardVolumeFlowTestsBase
25+
{
26+
// Override properties in base class here
27+
protected override bool SupportsSIUnitSystem { get; }
28+
protected override double StandardCubicCentimetersPerMinuteInOneStandardCubicMeterPerSecond => 6e7;
29+
protected override double StandardCubicFeetPerHourInOneStandardCubicMeterPerSecond => 1.271328001973604e+5;
30+
protected override double StandardCubicFeetPerMinuteInOneStandardCubicMeterPerSecond => 2.11888E3;
31+
protected override double StandardCubicFeetPerSecondInOneStandardCubicMeterPerSecond => 35.314666721489;
32+
protected override double StandardCubicMetersPerDayInOneStandardCubicMeterPerSecond => 8.64e4;
33+
protected override double StandardCubicMetersPerHourInOneStandardCubicMeterPerSecond => 3.6e3;
34+
protected override double StandardCubicMetersPerMinuteInOneStandardCubicMeterPerSecond => 6.0e1;
35+
protected override double StandardCubicMetersPerSecondInOneStandardCubicMeterPerSecond => 1;
36+
protected override double StandardLitersPerMinuteInOneStandardCubicMeterPerSecond => 60000;
37+
}
38+
}

UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)