Implicit Unit Conversion in Modelica

Authors

  • Henrik Tidefelt Wolfram MathCore
  • Quentin Lambert Wolfram MathCore

DOI:

https://doi.org/10.3384/ecp21827

Keywords:

unit checking, unit conversion, Modelica

Abstract

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

2025-10-24