Find a Dimension in a list of DimensionPowers.
If the Dimension is not present in the list, then dpwr.end() is returned.
This is meant for use when creating a list of DimensionPowers... rather than adding a new DimensionPower, you should check to see if there is one whose dimension already matches and just modify the exponent. That way, multiple DimensionGroups won't be created for what is really a single dimensional group.
On the other hand, it might help to have multiple DimensionGroups for equivalent DimensionPowers. Consider strain and Reynold's Number. Both are dimensionless, (i.e. dimensions of one(1)), but strain could be expressed as (L/L) and Reynold's Number as ( M/L^3 L/t L/(M/L^3/t)). The problem comes in figuring out which of the two a user's input most closely matches (e.g. what if Re=VD/nu is given rather than rhoVD/mu?). |