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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u_re | Real part of rectangular representation | |
| Modelica.Blocks.Interfaces.RealInput | u_im | Imaginary part of rectangular representation | |
| Modelica.Blocks.Interfaces.RealOutput | y_abs | Length of polar representation | |
| Modelica.Blocks.Interfaces.RealOutput | y_arg | Angle of polar representation |