Questions tagged [dymola]

Dymola is a commercial modeling and simulation environment based on the open Modelica modeling language.

Dymola is a commercial modeling and simulation environment based on the open Modelica modeling language.

645 questions
1
vote
1 answer

Modelica Dymola half vehicle modeling connection errors

I (beginner) am using dymola to model half rail vehicle dynamic system for vehicle and pitch motions. The model has only wheels, bogies, car body and spring-damper connections without inputs and prismatic joints. I only need vertical motion of each…
1
vote
1 answer

Modelica "Resolve error : no match for overloaded binary operator "

I'm using Dymola 2014 (Modelica) and trying to write the code of a model. I am not able to "check" the model, Dymola gives me the following message. Someone using Dymola told me that it may be a problem coming from a missing "else" but I don't see…
1
vote
2 answers

Setting boolean for a time period

I'm writing a controller for a heatingSystem that responds on the state of the electric grid in which the house of the heatingsystem is placed. I'm trying several controllers but the one that is giving me problems is the next. I'm trying to write a…
Nick Maes
  • 11
  • 1
1
vote
1 answer

Automatic documentation generation for Dymola code

since I could not find an answer to my question neither here nor in other forums, I decided to ask it to the community: Does anybody know if and how it is possible to realize automatic documentation generation for code generated with Dymola? The…
1
vote
3 answers

How are the data types in dsin.txt defined?

I am currently developing a python interface for running Modelica simulations using Dymola and I can't find any documentation on the data types used in the dsin.txt file : ... 0 0 0 0 4 328 # timeToEmpty -1 0 0 100 2 272 #…
asimoneau
  • 695
  • 7
  • 18
1
vote
1 answer

Create shortcut in Dymola to perform action

i would like to create shortcut (keyboard) to perform some action in Dymola. For example i would like to push a key (or keys combinaison ) to simulate the current model or to simulate a determined open model. The second possibility would be perfect…
Ksartor
  • 75
  • 8
1
vote
1 answer

How to make a context menu in dymola?

How can I make my own context menu in dymola? I want to do the same that I can in MATLAB, their I can do a context menu that is shown in the link: http://blogs.mathworks.com/pick/2011/05/20/add-a-list-of-favorite-blocks-to-the-simulink-context-menu/
user1564762
  • 745
  • 2
  • 11
  • 18
1
vote
2 answers

Detecting change in RealInput variable in Dymola

I need to detect whenever there is a change in a RealInput value X. I habe tried to check if X == pre(X), but only receive an error and a warning that Real cannot be compared for equality. I also thought about using the derivative of X, but there…
1
vote
0 answers

Modelica: Which algorithm for which model? Dassl, Euler

OpenModelica or Dymola provide several algorithms to simulate a model: Dassl, Euler, Rungekutta, inline-rungekutta, Radau... How choose the right one?
Roland
  • 135
  • 1
  • 6
1
vote
2 answers

Make Modelica class read-only in Dymola

Is there are way to make a user written class read-only in dymola? I want to avoid modifying it by error, when working on models that use it.
user3751857
  • 91
  • 1
  • 5
1
vote
1 answer

Dymola - Continuous Input for State Machine

While trying to use State Machines in Dymola (btw: I am an absolute newbie) I have problems to declare a sine curve as an input variable. I receive the following 1st error message (I paste only the beginning): Continuous time parts and discrete…
PhilMe
  • 13
  • 3
1
vote
1 answer

How to start simulation at specified time for different models in DYMOLA?

I have made 3 models in dymola and want to rum them sequentially (one after the other) in such a way that the output of one should pass on as an input to the next. My models calculate temperature and the final temperature of one model should be the…
1
vote
0 answers

Update Modelica standard Library in Dymola in Linux

I am using Dymola in Linux. Recently I find I need to update the Modelica standard library from 3.2 to 3.2.1(Got from github). Anyone knows what I need to set up such that Dymola starts with Modelica 3.2.1? Thanks a lot
Wei
  • 87
  • 1
  • 9
1
vote
3 answers

Simple Modelica Libraries

I am fairly new to modelica. I would like to know if there are any simple libraries that are easily understandable available for download? Libraries that have examples whose total equations do not go beyond 100 or so?
MSK
  • 448
  • 2
  • 5
  • 18
1
vote
1 answer

Modelica sort variable vector after equations

I have a variable T, which is a vector. The variable is dependent of its derivative and therefore dependent of the time: T = function(der(T)) I would like to do something like this: T = function(der(T)); T = Modelica.Math.Vectors.sort(T); This…
barbar
  • 701
  • 1
  • 5
  • 11