Message Boards Message Boards

0
|
7134 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Avoid wrong results while using SystemModeler Complex Product Block?

Posted 7 years ago

I've come across an issue where the Complex Product block in SystemModeler just produces outright incorrect results.

I ran a test simulation where I multiplied 1+3i with 100+200i using the block and got the result of -30,000+40,000i. How is it even possible to get a result this wrong? Attached are images showing the setup.

Any help would be appreciated.

Attachments:
POSTED BY: Daniel Frew

That seems to be a bug in Modelica 3.2.2 (https://github.com/modelica/Modelica/issues/2177). As a workaround you can switch to Modelica 3.2.1 (right-click on Modelica and select Version -> 3.2.1) or apply the patch from github to your local installation.

Otto

POSTED BY: Otto Tronarp
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract