Message Boards Message Boards


Complex numbers in SystemModeler?

Posted 9 years ago
1 Reply
2 Total Likes
Is there a easy way or tick to handle complex numbers in SystemModeler?  I need to do a model with phasors and I do not see a direct way to implement it.  

POSTED BY: Wayne Weaver
SystemModeler runs on the Modelica programming language. 

The Modelica 3.2 standard library supports complex numbers, but the current version of SystemModeler supports the 3.1 standard libraries.  Hopefully the next version of System Modeler will support the Modelica 3.2 standard libraries and you can use the definition of complex numbers there. 

 If you search online, there are some examples of complex number artihmetic being programmed handled in Modelica which you might find useful. 
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract