Skip to content

Commit

Permalink
Change RadiationEquivalentDoseRate base unit to Sv/s (#1469)
Browse files Browse the repository at this point in the history
Fixup of #1464 

- Add unit `SievertPerSecond`, for SI compatibility, with prefixes Nano,
Micro, Milli
- Change `RadiationEquivalentDoseRate` base unit from `SievertPerHour`
to `SievertPerSecond`
- Update conversion functions.
  • Loading branch information
angularsen authored Dec 25, 2024
1 parent 5c74f59 commit 1d1462a
Show file tree
Hide file tree
Showing 13 changed files with 650 additions and 185 deletions.
27 changes: 22 additions & 5 deletions Common/UnitDefinitions/RadiationEquivalentDoseRate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "RadiationEquivalentDoseRate",
"BaseUnit": "SievertPerHour",
"BaseUnit": "SievertPerSecond",
"XmlDocSummary": "A dose rate is quantity of radiation absorbed or delivered per unit time.",
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Dose_rate",
"BaseDimensions": {
Expand All @@ -11,8 +11,8 @@
{
"SingularName": "SievertPerHour",
"PluralName": "SievertsPerHour",
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"FromUnitToBaseFunc": "{x}/3600",
"FromBaseToUnitFunc": "{x}*3600",
"Prefixes": [ "Nano", "Micro", "Milli" ],
"Localization": [
{
Expand All @@ -25,11 +25,28 @@
}
]
},
{
"SingularName": "SievertPerSecond",
"PluralName": "SievertsPerSecond",
"FromUnitToBaseFunc": "{x}",
"FromBaseToUnitFunc": "{x}",
"Prefixes": [ "Nano", "Micro", "Milli" ],
"Localization": [
{
"Culture": "en-US",
"Abbreviations": [ "Sv/s" ]
},
{
"Culture": "ru-RU",
"Abbreviations": [ "Зв/с" ]
}
]
},
{
"SingularName": "RoentgenEquivalentManPerHour",
"PluralName": "RoentgensEquivalentManPerHour",
"FromUnitToBaseFunc": "{x} / 100",
"FromBaseToUnitFunc": "{x} * 100",
"FromUnitToBaseFunc": "{x} / 100 / 3600",
"FromBaseToUnitFunc": "{x} * 100 * 3600",
"Prefixes": [ "Milli" ],
"Localization": [
{
Expand Down
6 changes: 5 additions & 1 deletion Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,10 @@
"MillisievertPerHour": 3,
"NanosievertPerHour": 2,
"RoentgenEquivalentManPerHour": 5,
"SievertPerHour": 6
"SievertPerHour": 6,
"SievertPerSecond": 16,
"MicrosievertPerSecond": 17,
"MillisievertPerSecond": 14,
"NanosievertPerSecond": 9
}
}

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.

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.

Loading

0 comments on commit 1d1462a

Please sign in to comment.