Skip to content

Commit 69ec3fe

Browse files
ngeslinangularsen
authored andcommitted
Adding JoulePerSquareCentimeter and KiloJoulesPerSquareMeter (#608)
1 parent e6ac9b6 commit 69ec3fe

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

Common/UnitDefinitions/Irradiation.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,26 @@
1313
"PluralName": "JoulesPerSquareMeter",
1414
"FromUnitToBaseFunc": "x",
1515
"FromBaseToUnitFunc": "x",
16+
"Prefixes": [ "Kilo" ],
1617
"Localization": [
1718
{
1819
"Culture": "en-US",
1920
"Abbreviations": [ "J/m²" ]
2021
}
2122
]
2223
},
24+
{
25+
"SingularName": "JoulePerSquareCentimeter",
26+
"PluralName": "JoulesPerSquareCentimeter",
27+
"FromUnitToBaseFunc": "x*1e4",
28+
"FromBaseToUnitFunc": "x/1e4",
29+
"Localization": [
30+
{
31+
"Culture": "en-US",
32+
"Abbreviations": [ "J/cm²" ]
33+
}
34+
]
35+
},
2336
{
2437
"SingularName": "JoulePerSquareMillimeter",
2538
"PluralName": "JoulesPerSquareMillimeter",

UnitsNet.Tests/CustomCode/IrradiationTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public class IrradiationTests : IrradiationTestsBase
4747
{
4848
protected override double JoulesPerSquareMeterInOneJoulePerSquareMeter => 1;
4949

50+
protected override double KilojoulesPerSquareMeterInOneJoulePerSquareMeter => 1E-3;
51+
52+
protected override double JoulesPerSquareCentimeterInOneJoulePerSquareMeter => 1E-4;
53+
5054
protected override double JoulesPerSquareMillimeterInOneJoulePerSquareMeter => 1E-6;
5155

5256
protected override double WattHoursPerSquareMeterInOneJoulePerSquareMeter => 2.777777777777778e-4;

UnitsNet/GeneratedCode/Quantities/Irradiation.NetFramework.g.cs

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

UnitsNet/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/GeneratedCode/Units/IrradiationUnit.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)