Questions tagged [openmodelica]

OpenModelica is an open-source Modelica-based modeling and simulation environment.

OpenModelica is an open-source Modelica-based modeling and simulation environment intended for industrial and academic usage. Its long-term development is supported by a non-profit organization – the Open Source Modelica Consortium (OSMC).

The goal with the OpenModelica effort is to create a comprehensive Open Source Modelica modeling, compilation and simulation environment based on free software distributed in binary and source code form for research, teaching, and industrial usage.

698 questions
0
votes
1 answer

Create array of replaceable media packages

If possible I would like to create an array of replaceable media packages that a user can then change each option using available choices. Below is a typically way to define the medium. replaceable package Medium =…
Scott G
  • 2,194
  • 1
  • 14
  • 24
0
votes
1 answer

How can I create a model of a pnuematic dancer with OpenModelica?

I've never used Modelica so I'm in difficult for building a model as follows. I want to create a model in order to simulate the behavior of a pneumatic dancer of a winding machine. There is a spindle that turns and rolls around itself an amount of…
Alessandro
  • 41
  • 3
0
votes
1 answer

OpenModelica: Translation Warning In component in relation on Real numbers is only allowed inside functions

I'm trying to model Coulomb static friction in a multi-body system based on the equations from this physics.stackexchange.com post. I have written a very primitive Modelica code to test the equations you may see in this GitHub Gist. I have two main…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

Modelica Flexible Array Size - Error: Failed to expand the variable

I still have problems when using arrays with undifined size in Modelica. It would be really helpful to understand what is the underlying problem. I read a lot of stuff (known size at compile time, functions, constructor and destructor, records and…
T. Sergi
  • 203
  • 2
  • 9
0
votes
0 answers

How to override default equations? Continued

I revive this question because 1) Michael says the Base and the CustomizedClass are not necessary. I could not figure out how to eliminate them. You basically need a customised model, where you override the equation. How can this be done without…
y4cine
  • 396
  • 2
  • 20
0
votes
2 answers

Reduce number of output variables in OpenModelica

My model is currently roughly 2000 equations, and the simulation period is a couple of weeks. I'm using the OpenModelica Connection Editor. The problem I'm facing is the huge amount of output variables, and I've had the plot window crash a couple of…
Bart
  • 33
  • 7
0
votes
1 answer

Where can I find a proper repository of OpenModelica syntax?

I have been exploring Open Modelica for a week for system Dynamics. All though I learned few basic things(like function and class syntax etc..) from Spoken Tutorial, I need to go a long way. I am not to find a proper source mentioning the syntaxes…
Bharath Ram
  • 190
  • 1
  • 12
0
votes
1 answer

Open MOdelica Pumping Fluid through Swept volume

I have the following code, it is throwing errors related to Translation warning. I am using a swept volume to pump fluid from a tank to pipe and to the sink. ANy help would be appreciated. model Trial2 "Model of a pumping system" import…
Jesh Kundem
  • 960
  • 3
  • 18
  • 30
0
votes
1 answer

How can I visualise results of a simulation in OpenModelica as animation?

I want to know how I can visualise the results of a Modelica simulation in the form of an animation. Imagine I have a simple simulation as below: model test //parameters parameter Real m_1 = 1; parameter Real m_2 = 10; parameter Real K_c =…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

Changeable component name in modalica

I am attempting to use openmodelica to simulate a process plants. The general method I will be following is to create class type model of the different units and drag and drop these units in OMEdit. The problem is that I can't find an easy way to…
EDWhyte
  • 333
  • 3
  • 15
0
votes
1 answer

Is there any transfer function packages available for Open Modelica?

I'm a research trainee building a model of powerplant in Open Modelica and the governing equations contain transfer fuctions in laplace transform. Can someone send a link to the laplace transform packages for open modelica ? Google dint help
0
votes
1 answer

How to transfer water from cylinder to tank in Dymola?

I've created a Dymola model. It has an empty tank, which is connected to the output of sweptVolume component via a static pipe. Input to the sweptVolume is a constant force, with the help of which I would like to transport water from the hydraulic…
0
votes
1 answer

Experiment data correlation in Modelica/Dymola

Firstly I am a relatively new user.I am trying to correlate a physical test data with the model I built using Dymola/Modelica. In this model "variable 1" has a initial value based on which "variable 2,3 and 4" are calculated and these variables(2,3…
sananthk
  • 45
  • 4
0
votes
2 answers

How correct redeclare of Medium in OpenModelica?

I used OpenModelica 1.9.4~dev-675-gb524b08 And try to create model for simulate gas plant. When I try to redeclare a Medium according examples model Block_Prep_ASIDGAS import Modelica.Fluid.Interfaces; import SI=Modelica.SIunits; redeclare…
vserge
  • 43
  • 5
0
votes
1 answer

A value returned from a conditional selection algorithm that I didn't provide?

In Modelica, I constructed a simple mapping (a pair of case structures) to reduced a table of MxN values into a table of 5x5 values. But when I simulate with an input that is at the boundary (row = M or column = N) the mapping returns "0" when it…