- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Vectorized components of Math Library
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.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Vectorized components of Math Library