Skip to content

Clarify unit string specification #3744

@casella

Description

@casella

The beginning of Chapter 19 of the MLS states:

Unless otherwise stated, the syntax and semantics of unit expressions in Modelica conform with the international standards International System of Units (SI) by BIPM superseding parts of ISO 31/0-1992 General principles concerning quantities, units and symbols and ISO 1000-1992 SI units and recommendations for the use of their multiples and of certain other units.

Later on, I read:

The units required to be recognized are the basic and derived units of the SI system, as well as some units compatible with the SI system listed below, but tools are allowed to additionally support user-defined unit symbols.

I guess the "Unless otherwise stated" only refers to the last clause of this sentence. Do I understand that correctly?

If so, what is the semantics and the syntax of the unit in that case? User-defined is by definition user-specific, not only tool-specific. Are we fine with that?

Later on, in the same chapter I read:

It is recommended that non-SI units are only used for the displayUnit-attribute in order to reduce impact of unrecognized unit symbols when using another Modelica tool.

so I understand that the semantical and syntactical fuzzyness of non-SI units is restricted to displayUnits attributes, which I understand will be ignored and replaced by the unit attribute if they are not "recognized". But yet, the semantics and syntax of display units will be user-specific. Is that our intention?

I would really feel more comfortable if there were a (not necessarily compulsory) way to specify the semantics of the non-SI units used in a Modelica model inside the model itself, or in its dependencies, e.g. the MSL, by referring them to SI units, for which the semantics is well-defined by the BIPM.

Could we go in that direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationSpecification of feature is unclear, but not incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions