blockRectangularToPolar

Convert rectangular coordinates to polar coordinates

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

The input values of this block are the rectangular components u_re and u_im of a phasor in two dimensions. This block calculates the length y_abs and the angle y_arg of the polar representation of this phasor.

y_abs = abs(u_re + j*u_im) = sqrt( u_re2 + u_im2 )
y_arg = arg(u_re + j*u_im) = atan2(u_im, u_re)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu_reReal part of rectangular representation
Modelica.Blocks.Interfaces.RealInputu_imImaginary part of rectangular representation
Modelica.Blocks.Interfaces.RealOutputy_absLength of polar representation
Modelica.Blocks.Interfaces.RealOutputy_argAngle of polar representation