wrapAngle function
Requirements.Units.Phasors.wrapAngle
ยท source
Angle wrapped to (-pi, pi]
Extends Modelica.Icons.Function
The angle of the same direction in (-pi, pi]: pi stays pi, -pi becomes pi, 3*pi/2 becomes -pi/2. A phase angle of a model given in polar form is wrapped by it, so every phase angle a requirement reads is in the same range as phaseAngle's.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
phi input | SI.Angle | Angle |
Outputs
| Name | Type | Description |
|---|---|---|
phiWrapped output | SI.Angle | The same direction, in (-pi, pi] |