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
2 answers

time derivative of a variable as a signal and not as a function

In Modelica, I have a variable x which is dependent on (a, b,c). For a given simulation time, its plot (x,time) looks smooth and continuous. I would like to have the slope of this curve without having to explicitly differentiate der(x) because I get…
leoo321
  • 31
  • 4
1
vote
0 answers

Maximum allowed number of run-time errors in Dymola

It might soud as an unorthodox question, but is there a way to increase the maximum allow number of run-time errors in a Dymola simulation ? It concerns following error during run-time (due to a bug in Dymola), from which i know doesn't affect my…
ruben baetens
  • 2,806
  • 6
  • 25
  • 31
1
vote
0 answers

ddeexec error with coupling matlab with dymola

I try to couple matlab with dymola using the function dymolaM from the MFiles developed by Modelon. The simulation is running without problem, but after x hours of simulation, I get the following message: Error using ddeexec The first argument…
DaP
  • 91
  • 4
1
vote
1 answer

Mixture Modelica

I would like to know if it is possible to create a mixture using several single gases (using Modelica Library). If yes is there any document explaining this procedure ? Thank you very much for you answer
1
vote
2 answers

Execute dymola command from command prompt

Is there a way to pass Dymola a command from the Windows command prompt? I want to pass it commands like Simulate(), openModel etc.
barbar
  • 701
  • 1
  • 5
  • 11
1
vote
0 answers

Static/Quasi-Static solver in Dymola/Modelica?

I know it might be dumb to ask such a question because Dymola is short for Dynamic Model laboratory, and I should use modelica/dymola to solve dynamic problems. However, I still wonder if it is possible to get some kind of quasi-static result from…
Hang Yu
  • 476
  • 2
  • 14
1
vote
1 answer

matlab dymola connection fails after a while

I have data of an experiment in a .mat file and a model written in dymola. I use the dymolaM.m file to send commands from matlab to dymola. In that way I can use matlab to optimize a parameter of my model. Matlab reads in the data from the .mat…
barbar
  • 701
  • 1
  • 5
  • 11
1
vote
1 answer

how to vary a parameter after compiling in modelica

I have written a finite volume model. The parameter n represents the number of volumes. After translating, the parameter can't be modified. Dymola gives this message: Warning: Setting n has no effect in model. After translation you can only set…
barbar
  • 701
  • 1
  • 5
  • 11
1
vote
2 answers

Modelica.Media.R134a Error

In the Modelica Standard Library 3.2.1 a model for the refrigerant R134a was included, but it seems not to work properly with Modelica.Fluid. In a simple example with one DynamicPipe, it results in the following error: A calculation of two-phase…
0xy
  • 29
  • 5
1
vote
2 answers

Interpolation in Dymola/Modelica?

I need to perform an interpolation of some tabulated data in Dymola Modelica, but I can only find a function that does linear interopolation (Modelica.Math.Vectors.interpolate). I really need some sort of higher order interpolation like polynomial…
Chad
  • 1,434
  • 1
  • 15
  • 30
1
vote
2 answers

How to compile with /bigobj within Dymola (Modelica)

I am integrating a relative small Finite Element (FE) model into Modelica. In doing so, I created a Model (Modelica class) that can read the mass (M) and stiffness (K) matrix in Matlab binary file format. I connected the FE model with some…
AdrijanR
  • 63
  • 7
1
vote
2 answers

How can I use dymola to produce FMU with 64bit dll

I need to use dymola to produce fmu-file with 64-bit-dll. The condition is: I use bin64-version-dymola, but fmu-file is 32-bit-dll I searched internet, and I found I should set flag Advanced.CompileWith64=2. But problem is, I can not find the…
xing
  • 95
  • 1
  • 12
1
vote
1 answer

How to determine value from previous time step during simulation in Modelica?

How can I determine value from previous time step during simulation in Modelica? I have equation Q=m*c*(Ts2-Ts1-Tr) I need to extract value of Ts2 and Ts1 from it. Ts2 - is the value from time step 2 Ts1 - is value from previous time step Ts is…
Tymo
  • 259
  • 6
  • 14
1
vote
2 answers

find all zeros of a polynomal function

Im working with Dymola Version 2013. I try to solve a simple mathematical problem, like: f= x^2 -4 ; y=1; f=y; f and x are defined as Real. The solution is 2.36. but I need to calculate with both solutions. So 2.36 and -2.36! In my problem f is a…
1
vote
3 answers

Designing a relay

I am trying to build a relay but I always get an error that doesn't make any sense to me. The error says that a ground object is missing or a component is not connected, but I can't find anything missing. I tried to build the relay in different…
madmax
  • 1,803
  • 3
  • 25
  • 50