You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// QUANTITY_SPEC(power, voltage* electric_current); // TODO conflicts with mechanical power
Same quantity, actually parameterized
Some quantities from ISO 80000-7:2019 (light and radiation)
are parameterized on a photometric condition.
Amount of substance is parameterized on “elementary entity” (ISO 80000-9:2019 9.2).
And thus many quantities in part 9 are equally parameterized.
The standard has some remarks on the structure of an “elementary entity”.
Like #35 (comment),
It would also help to have the input from people familiar with the domain.
Previous work
I had previously started a code specification for the quantities,
and this is how I did it.
Those quantity templates are forward declarations.
If it's parameterized on a context, it's later explicitly specialized.
If it's parameterized on a photometric_condition,
it's because it's used before it's defined by another parameterized quantity.
As is evident, I didn't get around implementing the structure of an “elementary entity” X.
The text was updated successfully, but these errors were encountered:
And yes, I also planned to make quantity_spec templated on photometric condition for light and radiation. I didn't realize it is the same case for power, energy, and efficiency though. Thanks for raising this issue!
Parameterized quantities
I have identified 2 kinds of parameterized quantities.
Same quantity name for different quantities
This kind of quantity shares its name between different quantities in the parts of ISO 80000.
For example:
mp-units/src/systems/isq/include/mp-units/systems/isq/mechanics.h
Line 89 in 60a564a
mp-units/src/systems/isq/include/mp-units/systems/isq/electromagnetism.h
Line 111 in 60a564a
Same quantity, actually parameterized
Some quantities from ISO 80000-7:2019 (light and radiation)
are parameterized on a photometric condition.
Amount of substance is parameterized on “elementary entity” (ISO 80000-9:2019 9.2).
And thus many quantities in part 9 are equally parameterized.
The standard has some remarks on the structure of an “elementary entity”.
Like #35 (comment),
Previous work
I had previously started a code specification for the quantities,
and this is how I did it.
quantity
above is notmp_units::quantity
.quantity
templates are forward declarations.If it's parameterized on a
context
, it's later explicitly specialized.If it's parameterized on a
photometric_condition
,it's because it's used before it's defined by another parameterized quantity.
The text was updated successfully, but these errors were encountered: