Relative Content

Tag Archive for modelicaopenmodelica

How to use initial equations in open modelica?

I am trying to declare a table that is correlated to another one. My goal is to declare a table with dimensions (nlines, 2) and then create another table that starts with a given value and evolves in the same manner as the first table. To achieve this, I use initial equations because I want the correlated data to be ready before the simulation starts.

How to use convertPackageToLibrary function?

I’d like to understand when and how to use the function OpenModelica.Scripting.convertPackageToLibrary. I think the documentation on this is very sparse and I am not successful trying to use it in any way.

In OpenModelica, is there a constant component that can take multiple input values?

in the model below i have a convection component that is composed of 4 elements (table(4,1)). what i did is define the product and the const componant as a table of 4 elemnts but the coefficient table do not accept this definition.
is there any way to calculate the product of the constant “const” and a intrepoleted value from the coeffcient table and inserted as GC input for the convection components