New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polar representation of complex numbers #1405
Comments
Modified by christiankral on 26 Jan 2014 08:50 UTC |
Comment by christiankral on 13 Sep 2014 13:33 UTC
the following additional (output) variables have been defined:
For the interfaces
additional variables have been included:
Implementation performed for 8021728. |
Comment by christiankral on 13 Sep 2014 13:41 UTC
In the electromagnetic coupling and machine models also power, magnitude and angle variables were added for voltages and currents. For that purpose the interface model Modelica.Magnetic.QuasiStatic.FundamentalWave.Interfaces.PartialTwoPortExtended was added. Implementation performed in 48bc47a. |
Comment by christiankral on 13 Sep 2014 16:21 UTC |
Comment by christiankral on 2 Feb 2015 11:08 UTC |
Modified by beutlich on 29 Oct 2015 15:06 UTC |
Changelog modified by beutlich on 29 Oct 2015 15:06 UTC |
Reported by ahaumer on 22 Jan 2014 16:50 UTC
In many cases not only the real and the imaginary part of a complex voltage, current, impedance, power, flux, mmf is of interest, but the user wants to see without any additional effort the length and the angle of the complex phasor in the result. The usage of a pocket calculator to achieve this information is really clumsy.
With the current implementation of complex numbers as operator record there seems to be only one way to achieve this goal (the burden is carried by the library developers of e.g. Electrical.QuasiStationary):
This solution seems to be a lot of work, and not very elegant. An implicit dual representation of Complex and Polar (with automatic conversion) would be a perfect solution.
Are there any suggestions and comments how to improve the current situation?
Migrated-From: https://trac.modelica.org/Modelica/ticket/1405
The text was updated successfully, but these errors were encountered: