Skip to content

Commit 04958a8

Browse files
piotrstenkePiotr Stenke
andauthored
Add radioactivity (#1345)
Added Radioactivity (radioactive decay), along with three units: Bq - Becquerel (SI-derived) Ci - Curie (non-SI) Rd - Rutherford (non-SI) The scope of prefixes is fairly wide (Pico- to Exa- for Becquerel , Pico- to Tera- for Curie and Rutherford) in order to support most common scenarios, like measuring concentration of radioactive elements in a substance (e.g. 10 Bq per m3 of air is considered normal), rate of radioactive decay in electrical parts, Geiger counter scales, cosmic ray interactions or even global inventory of specific radioactive elements (per [Wikipedia](https://en.wikipedia.org/wiki/Becquerel#Examples)). It does not, however, support prefixes for things like activity produced by [nuclear explosions](https://books.google.pl/books?id=CJqcq2C792UC&pg=PA74&redir_esc=y#v=onepage&q=hiroshima&f=false) (values beyond 10^24 Bq), since this seems too niche even for C# devs. Similar PR was already created a quople years back (#915), but it was never actually merged. --------- Co-authored-by: Piotr Stenke <[email protected]>
1 parent 06c7456 commit 04958a8

File tree

18 files changed

+5042
-0
lines changed

18 files changed

+5042
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"Name": "Radioactivity",
3+
"BaseUnit": "Becquerel",
4+
"XmlDocSummary": "Amount of ionizing radiation released when an element spontaneously emits energy as a result of the radioactive decay of an unstable atom per unit time.",
5+
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Radioactive_decay",
6+
"BaseDimensions": {
7+
"T": -1
8+
},
9+
"Units": [
10+
{
11+
"SingularName": "Becquerel",
12+
"PluralName": "Becquerels",
13+
"FromUnitToBaseFunc": "{x}",
14+
"FromBaseToUnitFunc": "{x}",
15+
"BaseUnits": {
16+
"T": "Second"
17+
},
18+
"XmlDocSummary": "Activity of a quantity of radioactive material in which one nucleus decays per second.",
19+
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Becquerel",
20+
"Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Kilo", "Mega", "Giga", "Tera", "Peta", "Exa" ],
21+
"Localization": [
22+
{
23+
"Culture": "en-US",
24+
"Abbreviations": [ "Bq" ]
25+
},
26+
{
27+
"Culture": "ru-RU",
28+
"Abbreviations": [ "Бк" ]
29+
}
30+
]
31+
},
32+
{
33+
"SingularName": "Curie",
34+
"PluralName": "Curies",
35+
"FromUnitToBaseFunc": "{x} * 3.7e10",
36+
"FromBaseToUnitFunc": "{x} / 3.7e10",
37+
"BaseUnits": {
38+
"T": "Second"
39+
},
40+
"Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Kilo", "Mega", "Giga", "Tera" ],
41+
"Localization": [
42+
{
43+
"Culture": "en-US",
44+
"Abbreviations": [ "Ci" ]
45+
},
46+
{
47+
"Culture": "ru-RU",
48+
"Abbreviations": [ "Ки" ]
49+
}
50+
]
51+
},
52+
{
53+
"SingularName": "Rutherford",
54+
"PluralName": "Rutherfords",
55+
"FromUnitToBaseFunc": "{x} * 1e6",
56+
"FromBaseToUnitFunc": "{x} / 1e6",
57+
"BaseUnits": {
58+
"T": "Second"
59+
},
60+
"XmlDocSummary": "Activity of a quantity of radioactive material in which one million nuclei decay per second.",
61+
"XmlDocsRemarks": "https://en.wikipedia.org/wiki/Rutherford_(unit)",
62+
"Prefixes": [ "Pico", "Nano", "Micro", "Milli", "Kilo", "Mega", "Giga", "Tera" ],
63+
"Localization": [
64+
{
65+
"Culture": "en-US",
66+
"Abbreviations": [ "Rd" ]
67+
},
68+
{
69+
"Culture": "ru-RU",
70+
"Abbreviations": [ "Рд" ]
71+
}
72+
]
73+
}
74+
]
75+
}

Common/UnitEnumValues.g.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,5 +1794,36 @@
17941794
"Molality": {
17951795
"MolePerGram": 4,
17961796
"MolePerKilogram": 1
1797+
},
1798+
"Radioactivity": {
1799+
"Becquerel": 7,
1800+
"Curie": 9,
1801+
"Exabecquerel": 10,
1802+
"Gigabecquerel": 4,
1803+
"Gigacurie": 5,
1804+
"Gigarutherford": 1,
1805+
"Kilobecquerel": 6,
1806+
"Kilocurie": 8,
1807+
"Kilorutherford": 2,
1808+
"Megabecquerel": 3,
1809+
"Megacurie": 20,
1810+
"Megarutherford": 13,
1811+
"Microbecquerel": 19,
1812+
"Microcurie": 15,
1813+
"Microrutherford": 14,
1814+
"Millibecquerel": 17,
1815+
"Millicurie": 18,
1816+
"Millirutherford": 12,
1817+
"Nanobecquerel": 16,
1818+
"Nanocurie": 11,
1819+
"Nanorutherford": 27,
1820+
"Petabecquerel": 21,
1821+
"Rutherford": 28,
1822+
"Terabecquerel": 23,
1823+
"Teracurie": 29,
1824+
"Terarutherford": 22,
1825+
"Picobecquerel": 36,
1826+
"Picocurie": 35,
1827+
"Picorutherford": 25
17971828
}
17981829
}

0 commit comments

Comments
 (0)