Skip to content

Commit 107b0b9

Browse files
bc913angularsen
andauthored
Add ReciprocalArea (#955)
Added Reciprocal (Inverse) Area quantity and the corresponding units. Check this [link](https://en.wikipedia.org/wiki/Inverse-square_law) for further info. It is also used in fluid dynamics. - Implemented for squaremeters, squareacentimeters, squareamillimeters, squarekilometers, squaredecimeters, SquareMicrometers, squaremiles, squareyards, squarefeet, squareInches and UsSurveySquareFeet. These units are selected to match with existing Area units. - Some arithmetic operator overloads are provided for Force, Area, Pressure and ReciprocalLength to interact with the ReciprocalArea quantity for convenience - Inverse method is implemented for Area quantity for convenience. Co-authored-by: Andreas Gullberg Larsen <[email protected]>
1 parent e263703 commit 107b0b9

35 files changed

+3586
-4
lines changed
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"Name": "ReciprocalArea",
3+
"BaseUnit": "InverseSquareMeter",
4+
"XmlDoc": "Reciprocal area (Inverse-square) quantity is used to specify a physical quantity inversely proportional to the square of the distance.",
5+
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Inverse-square_law",
6+
"BaseDimensions": {
7+
"L": -2
8+
},
9+
"Units": [
10+
{
11+
"SingularName": "InverseSquareMeter",
12+
"PluralName": "InverseSquareMeters",
13+
"FromUnitToBaseFunc": "x",
14+
"FromBaseToUnitFunc": "x",
15+
"Localization": [
16+
{
17+
"Culture": "en-US",
18+
"Abbreviations": [ "m⁻²" ]
19+
}
20+
]
21+
},
22+
{
23+
"SingularName": "InverseSquareKilometer",
24+
"PluralName": "InverseSquareKilometers",
25+
"FromUnitToBaseFunc": "x/1e6",
26+
"FromBaseToUnitFunc": "x*1e6",
27+
"Localization": [
28+
{
29+
"Culture": "en-US",
30+
"Abbreviations": [ "km⁻²" ]
31+
}
32+
]
33+
},
34+
{
35+
"SingularName": "InverseSquareDecimeter",
36+
"PluralName": "InverseSquareDecimeters",
37+
"FromUnitToBaseFunc": "x/1e-2",
38+
"FromBaseToUnitFunc": "x*1e-2",
39+
"Localization": [
40+
{
41+
"Culture": "en-US",
42+
"Abbreviations": [ "dm⁻²" ]
43+
}
44+
]
45+
},
46+
{
47+
"SingularName": "InverseSquareCentimeter",
48+
"PluralName": "InverseSquareCentimeters",
49+
"FromUnitToBaseFunc": "x/1e-4",
50+
"FromBaseToUnitFunc": "x*1e-4",
51+
"Localization": [
52+
{
53+
"Culture": "en-US",
54+
"Abbreviations": [ "cm⁻²" ]
55+
}
56+
]
57+
},
58+
{
59+
"SingularName": "InverseSquareMillimeter",
60+
"PluralName": "InverseSquareMillimeters",
61+
"FromUnitToBaseFunc": "x/1e-6",
62+
"FromBaseToUnitFunc": "x*1e-6",
63+
"Localization": [
64+
{
65+
"Culture": "en-US",
66+
"Abbreviations": [ "mm⁻²" ]
67+
}
68+
]
69+
},
70+
{
71+
"SingularName": "InverseSquareMicrometer",
72+
"PluralName": "InverseSquareMicrometers",
73+
"FromUnitToBaseFunc": "x/1e-12",
74+
"FromBaseToUnitFunc": "x*1e-12",
75+
"Localization": [
76+
{
77+
"Culture": "en-US",
78+
"Abbreviations": [ "µm⁻²" ]
79+
}
80+
]
81+
},
82+
{
83+
"SingularName": "InverseSquareMile",
84+
"PluralName": "InverseSquareMiles",
85+
"FromUnitToBaseFunc": "x/2.59e6",
86+
"FromBaseToUnitFunc": "x*2.59e6",
87+
"Localization": [
88+
{
89+
"Culture": "en-US",
90+
"Abbreviations": [ "mi⁻²" ]
91+
}
92+
]
93+
},
94+
{
95+
"SingularName": "InverseSquareYard",
96+
"PluralName": "InverseSquareYards",
97+
"FromUnitToBaseFunc": "x/0.836127",
98+
"FromBaseToUnitFunc": "x*0.836127",
99+
"Localization": [
100+
{
101+
"Culture": "en-US",
102+
"Abbreviations": [ "yd⁻²" ]
103+
}
104+
]
105+
},
106+
{
107+
"SingularName": "InverseSquareFoot",
108+
"PluralName": "InverseSquareFeet",
109+
"FromUnitToBaseFunc": "x/0.092903",
110+
"FromBaseToUnitFunc": "x*0.092903",
111+
"Localization": [
112+
{
113+
"Culture": "en-US",
114+
"Abbreviations": [ "ft⁻²" ]
115+
}
116+
]
117+
},
118+
{
119+
"SingularName": "InverseUsSurveySquareFoot",
120+
"PluralName": "InverseUsSurveySquareFeet",
121+
"FromUnitToBaseFunc": "x/0.09290341161",
122+
"FromBaseToUnitFunc": "x*0.09290341161",
123+
"Localization": [
124+
{
125+
"Culture": "en-US",
126+
"Abbreviations": [ "ft⁻² (US)" ]
127+
}
128+
]
129+
},
130+
{
131+
"SingularName": "InverseSquareInch",
132+
"PluralName": "InverseSquareInches",
133+
"FromUnitToBaseFunc": "x/0.00064516",
134+
"FromBaseToUnitFunc": "x*0.00064516",
135+
"Localization": [
136+
{
137+
"Culture": "en-US",
138+
"Abbreviations": [ "in⁻²" ]
139+
}
140+
]
141+
}
142+
]
143+
}
144+

0 commit comments

Comments
 (0)