imaginaryPart function

Requirements.Units.Phasors.imaginaryPart  ยท source

Icon of imaginaryPart

Imaginary part of a phasor from its magnitude and phase angle

Extends Modelica.Icons.Function

Polar to rectangular: the imaginary part r*sin(phi), in the unit of the magnitude.

Inputs are the magnitude r and the phase angle phi [rad] of a phasor given in polar form (as power-system libraries often carry it); phi may be any angle, it need not be wrapped. The output is the imaginary part im, as a Complex holds it. The real part is realPart; the inverse transformation is magnitude and phaseAngle. Examples.Elementary.Units.Phasors asserts it against its closed form and the round trip between the two forms.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Inputs

NameTypeDescription
r inputRealMagnitude
phi inputSI.AnglePhase angle

Outputs

NameTypeDescription
im outputRealImaginary part, in the unit of the magnitude