Conversions model
Requirements.Examples.Elementary.Units.Conversions
ยท source
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
| Name | Type | Description |
|---|---|---|
eps constant | Real | Relative tolerance of the assertions |
Components and variables
| Name | Type | Description |
|---|---|---|
m_kft | Real | 4.65 kft in metres |
kgps | Real | 8.1 kg/min in kg/s |