Skip to content

Commit 77941e4

Browse files
dschuermansDirk Schuermans
andauthored
Add WarpingMomentOfInertia (m^6) (#843)
Co-authored-by: Dirk Schuermans <[email protected]>
1 parent 93ae492 commit 77941e4

File tree

17 files changed

+2571
-0
lines changed

17 files changed

+2571
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"Name": "WarpingMomentOfInertia",
3+
"BaseUnit": "MeterToTheSixth",
4+
"XmlDoc": "A geometric property of an area that is used to determine the warping stress.",
5+
"BaseDimensions": {
6+
"L": 6
7+
},
8+
"Units": [
9+
{
10+
"SingularName": "MeterToTheSixth",
11+
"PluralName": "MetersToTheSixth",
12+
"BaseUnits": {
13+
"L": "Meter"
14+
},
15+
"FromUnitToBaseFunc": "x",
16+
"FromBaseToUnitFunc": "x",
17+
"Localization": [
18+
{
19+
"Culture": "en-US",
20+
"Abbreviations": [ "m⁶", "m^6" ]
21+
}
22+
]
23+
},
24+
{
25+
"SingularName": "DecimeterToTheSixth",
26+
"PluralName": "DecimetersToTheSixth",
27+
"BaseUnits": {
28+
"L": "Decimeter"
29+
},
30+
"FromUnitToBaseFunc": "x/1e6",
31+
"FromBaseToUnitFunc": "x*1e6",
32+
"Localization": [
33+
{
34+
"Culture": "en-US",
35+
"Abbreviations": [ "dm⁶", "dm^6" ]
36+
}
37+
]
38+
},
39+
{
40+
"SingularName": "CentimeterToTheSixth",
41+
"PluralName": "CentimetersToTheSixth",
42+
"BaseUnits": {
43+
"L": "Centimeter"
44+
},
45+
"FromUnitToBaseFunc": "x/1e12",
46+
"FromBaseToUnitFunc": "x*1e12",
47+
"Localization": [
48+
{
49+
"Culture": "en-US",
50+
"Abbreviations": [ "cm⁶", "cm^6" ]
51+
}
52+
]
53+
},
54+
{
55+
"SingularName": "MillimeterToTheSixth",
56+
"PluralName": "MillimetersToTheSixth",
57+
"BaseUnits": {
58+
"L": "Millimeter"
59+
},
60+
"FromUnitToBaseFunc": "x/1e18",
61+
"FromBaseToUnitFunc": "x*1e18",
62+
"Localization": [
63+
{
64+
"Culture": "en-US",
65+
"Abbreviations": [ "mm⁶", "mm^6" ]
66+
}
67+
]
68+
},
69+
{
70+
"SingularName": "FootToTheSixth",
71+
"PluralName": "FeetToTheSixth",
72+
"BaseUnits": {
73+
"L": "Foot"
74+
},
75+
"FromUnitToBaseFunc": "x*Math.Pow(0.3048, 6)",
76+
"FromBaseToUnitFunc": "x/Math.Pow(0.3048, 6)",
77+
"Localization": [
78+
{
79+
"Culture": "en-US",
80+
"Abbreviations": [ "ft⁶", "ft^6" ]
81+
}
82+
]
83+
},
84+
{
85+
"SingularName": "InchToTheSixth",
86+
"PluralName": "InchesToTheSixth",
87+
"BaseUnits": {
88+
"L": "Inch"
89+
},
90+
"FromUnitToBaseFunc": "x*Math.Pow(2.54e-2, 6)",
91+
"FromBaseToUnitFunc": "x/Math.Pow(2.54e-2, 6)",
92+
"Localization": [
93+
{
94+
"Culture": "en-US",
95+
"Abbreviations": [ "in⁶", "in^6" ]
96+
}
97+
]
98+
}
99+
]
100+
}

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

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

UnitsNet.NumberExtensions/GeneratedCode/NumberToWarpingMomentOfInertiaExtensions.g.cs

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 WarpingMomentOfInertiaTests : WarpingMomentOfInertiaTestsBase
25+
{
26+
// Override properties in base class here
27+
protected override double CentimetersToTheSixthInOneMeterToTheSixth => 1e12;
28+
protected override double DecimetersToTheSixthInOneMeterToTheSixth => 1e6;
29+
protected override double FeetToTheSixthInOneMeterToTheSixth => 1247.12569;
30+
protected override double InchesToTheSixthInOneMeterToTheSixth => 3.72389734e9;
31+
protected override double MetersToTheSixthInOneMeterToTheSixth => 1;
32+
protected override double MillimetersToTheSixthInOneMeterToTheSixth => 1e18;
33+
}
34+
}

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)