Phasors model
Requirements.Examples.Elementary.Units.Phasors
ยท source
Every transformation of Requirements.Units.Phasors asserted against its closed form, and its round trip
Extends Modelica.Icons.Example
Asserts every function of Requirements.Units.Phasors: the
transformations in both directions, their agreement with Modelica.ComplexMath.abs and arg, the round
trip polar to rectangular and back, and the wrap to (-pi, pi], including across pi (170 deg relative to -170 deg is -20 deg);
a model that translates and runs is the test.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Parameters
| Name | Type | Description |
|---|---|---|
eps constant | Real | Absolute tolerance of the assertions |
c parameter | Complex | A phasor in the second quadrant |
Components and variables
| Name | Type | Description |
|---|---|---|
r | Real | Its magnitude, 5 |
phi | SI.Angle | Its phase angle |