Implicit Unit Conversion in Modelica
DOI:
https://doi.org/10.3384/ecp21827Keywords:
unit checking, unit conversion, ModelicaAbstract
There are many situations in which a Modelica model needsto handle quantities which are not expressed in the often preferred unscaled SI units. Applying correct unit conversions is extremely important in such situations, and the risk of human error needs to be mitigated usingunit-aware technology. Considering the power of unitchecking mechanisms in several Modelica tools today, one can be surprised that unit conversion in Modelica still needs to be performed using error-prone user-written formulas and functions. It is demonstrated how automaticand implicit unit conversion can be introduced in Modelica, and that this can be done safely. The benefits of thisapproach are illustrated in a variety of examples and applications.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Henrik Tidefelt, Quentin Lambert

This work is licensed under a Creative Commons Attribution 4.0 International License.