Skip to content

Commit 9ce4ffb

Browse files
authored
Added KilopoundForceFeetPerDegrees variant to RotationalStiffness (#749)
* Added KilopoundForceFeetPerDegrees variant to RotationalStiffness, along with PoundForceFeetPerDegrees * Updated abbreviations according to PR remarks
1 parent 12d2085 commit 9ce4ffb

File tree

11 files changed

+143
-7
lines changed

11 files changed

+143
-7
lines changed

Common/UnitDefinitions/RotationalStiffness.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,30 @@
2020
"Abbreviations": [ "N·m/rad", "Nm/rad" ]
2121
}
2222
]
23+
},
24+
{
25+
"SingularName": "PoundForceFootPerDegrees",
26+
"PluralName": "PoundForceFeetPerDegrees",
27+
"FromUnitToBaseFunc": "x*77.6826",
28+
"FromBaseToUnitFunc": "x/77.6826",
29+
"Localization": [
30+
{
31+
"Culture": "en-US",
32+
"Abbreviations": [ "lbf·ft/deg" ]
33+
}
34+
]
35+
},
36+
{
37+
"SingularName": "KilopoundForceFootPerDegrees",
38+
"PluralName": "KilopoundForceFeetPerDegrees",
39+
"FromUnitToBaseFunc": "x*77682.6",
40+
"FromBaseToUnitFunc": "x/77682.6",
41+
"Localization": [
42+
{
43+
"Culture": "en-US",
44+
"Abbreviations": [ "kipf·ft/°", "kip·ft/°g", "k·ft/°", "kipf·ft/deg", "kip·ft/deg", "k·ft/deg" ]
45+
}
46+
]
2347
}
2448
]
2549
}

UnitsNet.Tests/CustomCode/RotationalStiffnessTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ namespace UnitsNet.Tests.CustomCode
2828
public class RotationalStiffnessTests : RotationalStiffnessTestsBase
2929
{
3030
protected override double NewtonMetersPerRadianInOneNewtonMeterPerRadian => 1;
31+
protected override double PoundForceFeetPerDegreesInOneNewtonMeterPerRadian => 0.0128729;
32+
protected override double KilopoundForceFeetPerDegreesInOneNewtonMeterPerRadian => 0.0128729e-3;
3133
protected override double MeganewtonMetersPerRadianInOneNewtonMeterPerRadian => 1e-6;
3234
protected override double KilonewtonMetersPerRadianInOneNewtonMeterPerRadian => 1e-3;
3335
}

UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.Tests/GeneratedCode/TestsBase/RotationalStiffnessTestsBase.g.cs

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Quantities/RotationalStiffness.g.cs

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/UnitAbbreviationsCache.g.cs

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

UnitsNet.WindowsRuntimeComponent/GeneratedCode/Units/RotationalStiffnessUnit.g.cs

Lines changed: 2 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)