phaseDifference function

Requirements.Units.Phasors.phaseDifference  ยท source

Icon of phaseDifference

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

NameTypeDescription
phi1 inputSI.AnglePhase angle of the phasor
phi2 inputSI.AnglePhase angle of the reference phasor

Outputs

NameTypeDescription
dphi outputSI.Anglephi1 - phi2, wrapped to (-pi, pi]