phaseDifference function
Requirements.Units.Phasors.phaseDifference
ยท source
Phase angle of one phasor relative to another, wrapped to (-pi, pi]
Extends Modelica.Icons.Function
The phase angle of a phasor relative to a reference phasor, phi1 - phi2 wrapped to (-pi, pi]: positive when the phasor leads the reference. The angle of a current relative to its voltage is the negative of the power-factor angle of an inductive load.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
phi1 input | SI.Angle | Phase angle of the phasor |
phi2 input | SI.Angle | Phase angle of the reference phasor |
Outputs
| Name | Type | Description |
|---|---|---|
dphi output | SI.Angle | phi1 - phi2, wrapped to (-pi, pi] |