Relative Content

Tag Archive for modelicaopenmodelica

Clarification of variableFilter in .OpenModelica.Scripting.simulate

I need a clarification about using variableFilter. I only need like 3 variables from my simulation. I want modelica to only output those variables as a csv file. I know the default is .* which outputs all the variables. I only need to select 3, so I was thinking of using variableFilter = x[.*] . I am a little confused about the syntax, but would it be variableFilter = x[.* line1.C, cableTemp.T, commercialCable.l]? Thank you for the help.

Speed of interpolation of a four-dimensional array in OpenModelica

During modeling, I encountered a task where I needed to obtain a value dependent on three variables. Creating a polynomial of sufficient accuracy turned out to be impossible. Therefore, I decided to create a four-dimensional array and obtain values from it through linear interpolation, as I did previously in the Wolfram Mathematica environment.

Derivative of a flow variable [Openmodelica fluid library]

I am trying to make some openmodelica models which have similar workings as the modelica fluid library, as in it uses ports with a flow variable and several components working further on a TwoPort component. To simplify my question, I’ll try using the modelica fluid library as an example.