modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
481 stars 169 forks source link

Unit in MSL #466

Closed modelica-trac-importer closed 7 years ago

modelica-trac-importer commented 7 years ago

Reported by hodsonmark on 6 Dec 2010 10:04 UTC Dear team Modelica,

I would like to know that what unit you use in MSL? In Europe, i.e.*m,*cm*,dm* all can be the SI unit for *Length* so do you have a list of all the units you used in your library?

Thanks a lot Mark


Migrated-From: https://trac.modelica.org/Modelica/ticket/466

modelica-trac-importer commented 7 years ago

Comment by dietmarw on 6 Dec 2010 11:27 UTC Mark,

this tracker is meant for bug reporting in the MSL and Modelica Specifcation. For general questions it's best to contact the modelica-forum.de.

But I might be able to answer your question anyway. The MSL provides both, SIunits and also non-SIunits. In is pretty much up to the user what units he likes to work with. Normally (for the sake of automatic conversion and unit-checking) you should stick to SIunits. Standard for length is "m". See also Modelica.SIunits.Length and Modelica.SIunits.UsersGuide