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

Debug Modelica code

I wonder if there a way to "debug" a modelica code, I mean debugging the code line by line and you can see how variables change, things like that? I know that the modelica code is translated into C, I just want to know if there's a possibility to…
Hang Yu
  • 476
  • 2
  • 14
4
votes
0 answers

Dymola Segfault in external C function with Python API when using time and numpy

We execute Python code from Dymola via the C/Python API. Therefore we used that tutorial. The tutorial works as shown, but when we combine Dymolas built-in time variable and Pythons Numpy library, we get a segfault. Function in Dymola to call…
4
votes
1 answer

Dymola 2022 and 2021x giving different solutions

I have some test simulations that, when run, do not follow the exact same solution path when run in Dymola 2021x and Dymola 2022. Thus, my system that checks to make sure my test simulations are running properly indicates that they are in fact not…
Dmmikkel
  • 61
  • 1
4
votes
1 answer

Can Modelica translators handle for loops or matrix multiplications more easily?

Even though Modelica is an acausal modeling language, we learned e.g. here that it can make a difference how you write your equations. The code of the MutualInductor model in the Modelica.Electrical.Polyphase.Basic package puzzled me a bit and I am…
marco
  • 5,944
  • 10
  • 22
4
votes
0 answers

Modelica evaporation of water into air within a closed vessel (pressure cooker)

Goal Modelica model of a pressure cooker: I want to model how the liquid water is first heated up to the saturation point. Then water evaporates and mixes with the air. At start the liquid water has a volume of one liter and the air a volume of 100…
T. Sergi
  • 203
  • 2
  • 9
4
votes
1 answer

Apply 1D Torque to 3D Revolute Joint without back reaction

the model is as simple as this: I'd like to apply a torque to the Rotational Flange of a Revolute Joint. However, the torque reaction should not be applied to the Support Flange of the Revolute Joint. The torque reaction is indeed counterbalanced…
DarioMangoni
  • 301
  • 1
  • 10
4
votes
1 answer

What is the non-linear solver used in Dymola initialization process?

I often meet the initialization problem shown below, it says that some kind of non-linear solver will attempt to handle this problem. As I know it, Dymola uses Newton Method to solve the equation after getting the BLT form of the original DAE…
Jack
  • 1,094
  • 6
  • 16
4
votes
2 answers

In Dymola to solve DAEs, why use the DASSL algorithm after performing the Patelides algorithm?

I am confused about the solving DAEs process in Dymola. So I made an example to explore it. Here is the screenshot of the example scheme and control equations Based on the following definition of variables, I think the solving DAEs process is…
Jack
  • 1,094
  • 6
  • 16
4
votes
1 answer

OPC Server: Start Stop Pause getData(again use) DYMOLA MATLAB

I am using a Dymola OPC server DYMOLA HAS these many tags which can be controlled using SimControl.Run, SimControl.Stop ,etc here i wrote it in MATLAB hostInfo = opcserverinfo('localhost'); da =…
Rohit gupta
  • 211
  • 3
  • 18
4
votes
2 answers

Dymola, whitespace and version control

I opened a Modelica library in Dymola, changed one line, closed Dymola and clicked "Save all", now TortoiseSVN is showing several hundred changed files instead of just one file with the one line changed I intended to do. All these changes are either…
Priyanka
  • 559
  • 3
  • 13
4
votes
1 answer

Modelica Expandable Connector Best Practices

Here is a minimum working example of some expandable connector usage occuring in my models: model TestExpandableConnector expandable connector ControlBus extends Modelica.Icons.SignalBus; Real signal1; Real signal2; end ControlBus; …
Matt
  • 363
  • 1
  • 7
4
votes
1 answer

How to understand the ill-conditioned Jacobian problem in Modelica models?

I change the parameter in my model, but sometimes it would cause the simulation stopped because of ill-conditioned Jacobian, I am not sure what this error means. My question is: Is there any explanation about how to solve DAE equations in Modelica…
Jack
  • 1,094
  • 6
  • 16
4
votes
1 answer

Exchanging Modelica FMU Models

I tried to exchange my Modelica model with one of my colleagues but ran into difficulties regarding paths to CSV-Files. When I create the FMU the paths to some of the CSV files are set and point to folders on my computer. For example…
Phil
  • 624
  • 7
  • 19
4
votes
1 answer

use ClaRaLib with OMEdit

I came across the feature rich modelica library ClaRa. It seems to need Dymola to run properly. Is there a way to make it run with OMEdit or any other free editor? I keep getting errors "with no error message".
knobber
  • 63
  • 3
4
votes
2 answers

Is it possible to compile Linux runnable fmus from Dymola on Windows machine?

I am trying to export a FMU from windows machine using Dymola, to be used on both Linux and Windows OS. I guess such fmu will have linux64 and linux32 binaries along with win32 and win64 ones. However, I am not sure how to trigger Dymola to generate…
Kaustubh
  • 391
  • 2
  • 10
1
2
3
42 43