Units package

Requirements.Examples.Elementary.Units  ยท source

Icon of Units

Library of examples using the Units package

Extends Modelica.Icons.ExamplesPackage

Examples of the functions of package Units. Conversions asserts every unit conversion of Units.Conversions against its factor together with its round trip, and Phasors asserts the phasor transformations of Units.Phasors against their closed forms. Both models contain only assertions: a model that translates and simulates without an assertion error is the test.

Contents

NameKindDescription
ConversionsmodelEvery conversion of Requirements.Units.Conversions asserted against its factor, and its round trip
PhasorsmodelEvery transformation of Requirements.Units.Phasors asserted against its closed form, and its round trip