Skip to content

Commit 30d5c63

Browse files
authored
Add millimeter of water column (mmH2O) pressure unit (#997)
1 parent 604244b commit 30d5c63

File tree

14 files changed

+137
-46
lines changed

14 files changed

+137
-46
lines changed

Common/UnitDefinitions/Pressure.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@
204204
{
205205
"Culture": "en-US",
206206
"Abbreviations": [ "psi", "lb/in²" ],
207-
"AbbreviationsForPrefixes": { "Kilo": [ "ksi", "kipf/in²" ]}
207+
"AbbreviationsForPrefixes": { "Kilo": [ "ksi", "kipf/in²" ] }
208208
},
209209
{
210210
"Culture": "ru-RU",
211211
"Abbreviations": [ "psi", "lb/in²" ],
212-
"AbbreviationsForPrefixes": { "Kilo": [ "ksi", "kipf/in²" ]}
212+
"AbbreviationsForPrefixes": { "Kilo": [ "ksi", "kipf/in²" ] }
213213
}
214214
]
215215
},
@@ -339,6 +339,18 @@
339339
}
340340
]
341341
},
342+
{
343+
"SingularName": "MillimeterOfWaterColumn",
344+
"PluralName": "MillimeterOfWaterColumn",
345+
"FromUnitToBaseFunc": "x*9.806650000000272e0",
346+
"FromBaseToUnitFunc": "x/9.806650000000272e0",
347+
"Localization": [
348+
{
349+
"Culture": "en-US",
350+
"Abbreviations": [ "mmH2O", "mm wc" ]
351+
}
352+
]
353+
},
342354
{
343355
"SingularName": "InchOfWaterColumn",
344356
"PluralName": "InchesOfWaterColumn",
@@ -347,7 +359,7 @@
347359
"Localization": [
348360
{
349361
"Culture": "en-US",
350-
"Abbreviations": [ "wc" ]
362+
"Abbreviations": [ "inH2O", "inch wc", "wc" ]
351363
}
352364
]
353365
},

UnitsNet.NanoFramework/GeneratedCode/Quantities/Pressure.g.cs

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

UnitsNet.NanoFramework/GeneratedCode/Units/PressureUnit.g.cs

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

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToPressureExtensionsTest.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.

UnitsNet.NumberExtensions/GeneratedCode/NumberToPressureExtensions.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.

UnitsNet.Tests/CustomCode/PressureTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public class PressureTests : PressureTestsBase
8484

8585
protected override double MillimetersOfMercuryInOnePascal => 7.50061561302643e-3;
8686

87+
protected override double MillimeterOfWaterColumnInOnePascal => 1.0197162129779283e-1;
88+
8789
protected override double InchesOfMercuryInOnePascal => 2.95299830714159e-4;
8890

8991
protected override double InchesOfWaterColumnInOnePascal => 4.014630786617777e-3;

0 commit comments

Comments
 (0)