Message Boards Message Boards

0
|
2266 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Function SystemsModelSeriesConnect produces and error, but still yields an appropriate result

Posted 1 year ago

Using Mathematica, I'm multiplying two transfer functions using SystemsModelSeriesConnect. Despite yielding a result that seems correct, the operation produces the following error:

TransferFunctionModel::npnd: Unable to automatically separate polynomial numerators and denominators. Try simplifying the object.

The notebook with the code is attached.

As can be seen from the notebook, one of the transfer function matrices is very simple. The other, however, is more complicated. It was generated from a Modelica model, doing linerarization keeping a few parameters in symbolic form. Before calculating the transfer function from the state-space equations, such parameters, that were supposed to be real originally, were replaced by complex numbers.

I suspect that Mathematica expects the the polynomial coefficients in the numerator and denominator to be real numbers, and generates an error when this does not happen.

Confusingly, as shown at the bottom of the notebook, it does carry out the multiplication properly. The ratios of the elements involved yield the expected values of s^2.

Why does the function SystemsModelSeriesConnect produce this error?

It there a way to use the function without it considering there's an error?

Thank you very much in advance.

Cheers,

Fabián

POSTED BY: Fabián Peña
2 Replies
Posted 11 months ago

Dear Suba,

Thank you very much for your answer.

The workaround you wrote above does help to make the calculation cleaner.

Cheers,

Fabián

POSTED BY: Fabián Peña
Posted 11 months ago

There is an issue with how TransferFunctionModel is handling these expressions.

A workaround to get the series connection would be

TransferFunctionModel[Map[Together, tfMimo[s] . tfMatrix[s], {2}], s]
POSTED BY: Suba Thomas
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