Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Vectorized components of Math Library

Vectorized components of Math Library

It seems that almost all components in the Modelica.Blocks.Math library cannot accept and output vectorized signals. For example, the Modelica.Blocks.Math.Add component is derived from Modelica.Blocks.Interfaces.SI2SO single input, single output Partial class.
This seems like a significant limitation for someone coming from Matlab that accepts vectorized input-output signals almost everywhere.
I have tried various approaches: redeclaring the input/output signals as arrays, redeveloping components by extending from MIMO, instantiating array of components.
All these work but all have disadvantages.
I'm sure someone thought of this before and I would be curious to know which approach was used. Thanks.

Re: Vectorized components of Math Library

Answering my own question.
Apparently the MSL was de-vectorized at Version.2.1 to simplify notation and understanding:
http://doc.modelica.org/om/Modelica.Use … n_2_1.html

The recommended approach now is to use an array (vector) of components. 

There are 0 guests and 0 other users also viewing this topic
You are here: