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
0
votes
1 answer

Could I define new variables in the Modelica script?

I am trying to run a Modelica script in Dymola, but I got an error when defining a variable in the script, as shown below: Modelica.SIunits.Distance testData=2; Boolean success; success := clearlog(); …
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

cd command doesn't work in Dymola.mos file

I am trying to configure dymola.mos file, here is an example of changing directory, but when I activate Dymola, it seems the working directory doesn't change at all, even though the log shows Dymola run the script. My question is: How could I make…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

override the mat file when using "continue" calculation in Dymola

I tried to use the "continue" calculation in Dymola, but it doesn't generate a new .mat file, which makes it hard to store the data I need. My question is: How could I override the .mat file when using continue calculation in Dymola?
Jack
  • 1,094
  • 6
  • 16
0
votes
2 answers

Underscore not showing in Dymola

I am using Dymola 2021 and 2021X, the underscore doesn't show in any models. I tried to reinstall Dymola and adjust the setting option of the text editor, but the problem still exists. My questions are: Is this some kind of bug in the new…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Animation view in Dymola doesn't show pictures

I am working on a Modelica mechanical model which includes Modelica.Mechanics.MultiBody.Visualizers.FixedShape build animation, but when using this component in a trivial model, there is nothing in the animation view, but when using it in a…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

An initialization warning in Dymola

In my model, I got confused that why the initial conditions are NOT fully specified. Here are the code and screenshot: model WithAlgebraicLoop_Right extends Modelica.Icons.Example; Real x; Real y(start=1, fixed=true); Boolean cond; equation…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Internal error in code generation for pre

I try to avoid the algebraic loop in Modelica by using pre operator, but when I use something like pre(x>0.5), there will be an error of Internal error in code generation for pre. And if I use pre(cond), where cond is a boolean type variable, there…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

In Dymola, How to find which component that the wrong equations belong to?

If I build a model in Dymola, but in translation, there is a warning about incompatible units of equations, but just according to the warning message, I can't find which components that the wrong equations belong to. So how could I find it in…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

DYMOLA: opc server how to initialize using dsin.txt or a mat file using MATLAB

I created an OPC server in DYMOLA, now I have this in DYMOSIM to click and initialize using a ".MAT" file of a dsin.txt Now I created a GUI file in MATLAB, and take input for variables and created a mat file >>save FLUID_INITIALISE area volume…
Rohit gupta
  • 211
  • 3
  • 18
0
votes
2 answers

How can I resolve Compiler's error "fatal error C1083" on Dymola?

I am a beginner on Dymola and I have a problem with the compiler to do simulation. I tried to install Visual Studio 2017 community (with the C++ development package). But when I try to verify the compiler I have an error : Command cannot be…
0
votes
1 answer

Dymola working directory is an UNC-path (VM)

Having issues with my Dymola setup. I'm trying a simulation in a VM right now because I have a Mac and I need to wait for my requested PC to be approved. Anyhow... I'm trying to verify the VC compiler VS/Visual Compiler 2019 and I think its finding…
apigott
  • 73
  • 2
0
votes
1 answer

How does Modelica check the structural singularity?

In Example 1 from chapter 4.7 of Modelica specification 3.4, I am not sure why there is no structural singularity. I add two equations generated according to the flow variables, and it seems this equation system doesn't have a unique solution. So…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Why "time==0.5" isn't a discrete expression in Modelica language?

I build a simple model to understand the concept of "Discrete expressions", here is the code: model Trywhen parameter Real B[ :] = {1.0, 2.0, 3.0}; algorithm when time>=0.5 then Modelica.Utilities.Streams.print("message"); end…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Model termination error in modelica (end line error of a model)

I am new to modelica and tried to formulate an equation in Dymola using a new model. However, I ended up with errors related to end line of model. I could not figure it out. Could you please help me out. Thanks in advance. For the reference, I have…
0
votes
2 answers

Post-processing the output result from Dymola when there are only 2 elements in the result

I am trying to use the MATLAB scripts shipped with Dymola to post-process the output result of Dymola. But in some cases, the output data in the .mat file only have 2 elements, how could I get the data between 10s and 100s in this kind of…
Jack
  • 1,094
  • 6
  • 16