wrapAngle function

Requirements.Units.Phasors.wrapAngle  ยท source

Icon of wrapAngle

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

NameTypeDescription
phi inputSI.AngleAngle

Outputs

NameTypeDescription
phiWrapped outputSI.AngleThe same direction, in (-pi, pi]