Conversions model

Requirements.Examples.Elementary.Units.Conversions  ยท source

Icon of Conversions

Every conversion of Requirements.Units.Conversions asserted against its factor, and its round trip

Extends Modelica.Icons.Example

Asserts every factor of Requirements.Units.Conversions (the international foot is 0.3048 m exactly, 1 kft = 304.8 m, 1 kg/min = 1/60 kg/s, ...) and every round trip; a model that translates and runs is the test. The two variables show how a check model writes a quantity stated in a non-SI unit: from_kft(4.65), not 1417.32.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Parameters

NameTypeDescription
eps constantRealRelative tolerance of the assertions

Components and variables

NameTypeDescription
m_kftReal4.65 kft in metres
kgpsReal8.1 kg/min in kg/s