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
11
votes
0 answers

debug the structurally singular and minimize nonlinearity of Modelica models

I build a Modelica model, but when checking the model (Here is the model download link), it shows a local singularity like in the following screenshot. so I delete the code showed in the error message. h[3]=(hout+hl)/2 but although the model…
Jack
  • 1,094
  • 6
  • 16
8
votes
2 answers

Numerical issues integrating a pulse signal that is delayed (fixedDelay)

I noted numerical issues integrating a pulse input that is delayed by a fixed amount of time in Modelica (using Wolfram System Modeler 4.3): model PulseTest "Test FixedDelay with Pulse Input"; Modelica.Blocks.Sources.Pulse pulse( …
gwr
  • 465
  • 6
  • 17
8
votes
1 answer

How to initialize model with previous simulation solution?

Having run out of ideas again I turn to you. I'm sure this has to have been answered before though for the life of me I can't find a clear description of it. Scenario: You work hard to get a model all set up with initial guesses, etc., and then…
Scott G
  • 2,194
  • 1
  • 14
  • 24
7
votes
1 answer

What are the differences between diffferent Modelica Simulation Environments?

There are different Modelica Simulation Environments, including Dymola, Wolfram SystemModeler, OpenModelica, and Jmodelica. So, I try to load a thermal fluid library(ThermoSysPro https://github.com/Dwarf-Planet-Project/ThermoSysPro), but except…
Jack
  • 1,094
  • 6
  • 16
6
votes
1 answer

How to make the dynamic model in Dymola agree with the steady-state design result?

Modelica modeling is the first principle modeling, so how to test the model and set an effective benchmark is important, for example, I could design a fluid network as my wish, but when building a dynamic simulation model, I need to know the…
Jack
  • 1,094
  • 6
  • 16
6
votes
1 answer

Does Dymola have the similar function of "equation browser" like Wolfram system modeler?

Wolfram system modeler has a function called "equation browser", the youtube video here(at 20:58) gives an introduction about "equation browser", I am wondering if Dymola has the same function, it would be helpful to debug nonlinear system. Also, it…
Jack
  • 1,094
  • 6
  • 16
6
votes
2 answers

Use the result values from previous simulation result as guess values for next simulation in Dymola

Initialization could be very cumbersome and easily lead to divergence. A simple strategy is to run the simulation when building a part of the whole system and use the simulation results to modify guess values. Here is what I got in the PPT from…
Jack
  • 1,094
  • 6
  • 16
6
votes
1 answer

Version control using git with Dymola/Modelica

At work I use git as a version control system and Dymola for modeling and simulation. One major Issue I have is that once I touch or by mistake move a connection (more exactly the position of a part of the connecting wire) in a diagram without…
Medi1Saif
  • 285
  • 7
  • 19
6
votes
3 answers

Teaching Modelica Medical Non-SI Units

I want to use non-SI units in a Modelica model in a medical context. I am using Modelica in Dymola. Being an engineer I prefer the SI units. But my model parameters are sourced from medical publications and I want to avoid conversion mistakes.…
Jay_At_Play
  • 136
  • 10
6
votes
3 answers

MATLAB is unable to load MAT-file created by Dymola

My problem is to open some MAT-files generated by Dymola. Some times for small models MATLAB has no problem to open the created MAT-file. Then I can see the structure in the workspace. But I have also a huge simulation model with 31.536.000 data…
Patrick
  • 63
  • 1
  • 4
5
votes
1 answer

How to initialize a record type by a function in synchronous models (modelica)

I wrote a function, with return value of type record. Normally I would initialize an instance of type record by an initial equation, using this function. But as I want to use this function in a clocked model, initial equations are not possible. For…
5
votes
1 answer

Export FMU with large parameter array from Dymola

How can I create an FMU with a large parameter array using Dymola? I discovered that when the array size exceeds 100 elements, the array loses the causality="parameter" and the start value attributes in the modelDescription.xml file. Is there a…
gtfjet
  • 63
  • 4
5
votes
3 answers

How to eliminate dead code in Dymola/Modelica

I am trying to slim down a very complex model to improve performance, and noticed big performance changes when I add or remove variables into the signal bus, especially multi-body frames. I am wondering if there is any setting that can eliminate…
5
votes
1 answer

How to automatically create conversion script in Dymola

In https://trac.modelica.org/Modelica/ticket/2229#comment:2 it is mentioned that Dymola has the capability to automatically update a conversion script when changes are applied to a library. I was searching the Dymola manuals but could not find any…
christiankral
  • 393
  • 2
  • 7
5
votes
4 answers

CVodeError while simulating with pyFMI

I try to set up the pyFMI on Anaconda (Python 3.6.8) Installed all the required packages listed on the pyFMI site. The fmu is loaded without the issue but while I try to simulate the fmu I get an error: Could not find cannot import name…
kelamahim
  • 577
  • 1
  • 4
  • 21
1
2 3
42 43