Skip to content
Merged
65 changes: 65 additions & 0 deletions Common/UnitDefinitions/MassFlux.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,71 @@
"Abbreviations": [ "g·s⁻¹·m⁻²" ]
}
]
},
{
"SingularName": "GramPerSecondPerSquareCentimeter",
"PluralName": "GramsPerSecondPerSquareCentimeter",
"FromUnitToBaseFunc": "x/1e-1",
"FromBaseToUnitFunc": "x*1e-1",
"Prefixes": [ "Kilo" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "g·s⁻¹·cm⁻²" ]
}
]
},
{
"SingularName": "GramPerSecondPerSquareMillimeter",
"PluralName": "GramsPerSecondPerSquareMillimeter",
"FromUnitToBaseFunc": "x/1e-3",
"FromBaseToUnitFunc": "x*1e-3",
"Prefixes": [ "Kilo" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "g·s⁻¹·mm⁻²" ]
}
]
},
{
"SingularName": "GramPerHourPerSquareMeter",
"PluralName": "GramsPerHourPerSquareMeter",
"FromUnitToBaseFunc": "x/3.6e6",
"FromBaseToUnitFunc": "x*3.6e6",
"Prefixes": [ "Kilo" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "g·h⁻¹·m⁻²" ]
}
]
},
{
"SingularName": "GramPerHourPerSquareCentimeter",
"PluralName": "GramsPerHourPerSquareCentimeter",
"FromUnitToBaseFunc": "x/3.6e2",
"FromBaseToUnitFunc": "x*3.6e2",
"Prefixes": [ "Kilo" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "g·h⁻¹·cm⁻²" ]
}
]
},
{
"SingularName": "GramPerHourPerSquareMillimeter",
"PluralName": "GramsPerHourPerSquareMillimeter",
"FromUnitToBaseFunc": "x/3.6e0",
"FromBaseToUnitFunc": "x*3.6e0",
"Prefixes": [ "Kilo" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "g·h⁻¹·mm⁻²" ]
}
]
}
]
}

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.

13 changes: 13 additions & 0 deletions UnitsNet.Tests/CustomCode/MassFluxTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,21 @@ namespace UnitsNet.Tests.CustomCode
public class MassFluxTests : MassFluxTestsBase
{
protected override double GramsPerSecondPerSquareMeterInOneKilogramPerSecondPerSquareMeter => 1E3;
protected override double GramsPerSecondPerSquareCentimeterInOneKilogramPerSecondPerSquareMeter => 1E-1;
protected override double GramsPerSecondPerSquareMillimeterInOneKilogramPerSecondPerSquareMeter => 1E-3;

protected override double GramsPerHourPerSquareMeterInOneKilogramPerSecondPerSquareMeter => 3.6E6;
protected override double GramsPerHourPerSquareCentimeterInOneKilogramPerSecondPerSquareMeter => 3.6E2;
protected override double GramsPerHourPerSquareMillimeterInOneKilogramPerSecondPerSquareMeter => 3.6E0;

protected override double KilogramsPerSecondPerSquareMeterInOneKilogramPerSecondPerSquareMeter => 1;
protected override double KilogramsPerSecondPerSquareCentimeterInOneKilogramPerSecondPerSquareMeter => 1E-4;
protected override double KilogramsPerSecondPerSquareMillimeterInOneKilogramPerSecondPerSquareMeter => 1E-6;

protected override double KilogramsPerHourPerSquareMeterInOneKilogramPerSecondPerSquareMeter => 3.6E3;
protected override double KilogramsPerHourPerSquareCentimeterInOneKilogramPerSecondPerSquareMeter => 3.6E-1;
protected override double KilogramsPerHourPerSquareMillimeterInOneKilogramPerSecondPerSquareMeter => 3.6E-3;


[Fact]
public void MassFluxDividedBySpeedEqualsDensity()
Expand Down
2 changes: 1 addition & 1 deletion UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

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

Loading