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

How to implement a constant power load (CPL)

How do I implement a constant power load? Consider the following circuit. This contains a constant power load which represents power consumer(s) that take (in this example) 10 W more less constantly. How do I create a model that adjusts itself in a…
miile7
  • 2,547
  • 3
  • 23
  • 38
0
votes
1 answer

How to install a new Modelica library in Dymola?

I would like to know: the most efficient way to install a library in Dymola, so that it appears in my list of libraries in File > Libraries. is it possible to have it preloaded in my package browser when I open Dymola, as for instance the Modelica…
EnriYo
  • 21
  • 4
0
votes
1 answer

decrease the mat file size of Dymola result

The result of Dymola simulation is .mat file, which might be very big. Here is a series of results of a Power plant model, the simulation time interval is 0-100000s, but I only need the data during 90000 to 100000s, so is there any way to let Dymola…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Default startup directory behavior in Dymola 2022

I just noticed an odd behavior in Dymola 2022, and I wonder if and how can I take care of it from the Python interface. Odd behavior, because I expect Dymola to consistently set the working directory at .\Documents\Dymola at startup, unless told…
user12812532
0
votes
2 answers

Running Dymola parallel on the cluster

I am trying to run Dymola on the cluster so that everyone in my research group could submit a model and simulate jobs, is it possible to run Dymola on a cluster and utilize the power of HPC? I could use some flags to make Dymola run parallel on a…
Jack
  • 1,094
  • 6
  • 16
0
votes
2 answers

modify model's parameters in dymola's script file

I am trying to use a .mos file in Dymola to do multiple simulations, here is an example from claytex's blog: openModel("C:/Dymola/Testing/Test1.mo") translateModel ("Test1"); for i in 1:10 loop a=i; simulate(); …
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Error when co-simulating FMU "fmi2DoStep: Invalid currentCommunicationPoint"

I would like to run a co-simulation FMU (FMI2.0) in Dymola 2022. The co-simulation FMU is connected to some other components modelled in Modelica. Sometimes the following error message is printed: [fmi2Warning]: fmu_name: fmi2DoStep: Invalid…
Karin
  • 43
  • 4
0
votes
2 answers

Simulation time increases considerably on implementing discrete PI controller

I have developed a dynamic phasor model of a grid-connected single phase inverter. Running the open loop model of the simulation (with modulation index and initial angle constant) for a duration of 0.3 seconds with a step-size of 1e-05 takes about…
0
votes
0 answers

Dymola Simple model: Pumping out air from volume not working

during some Dymola exercises, I like to pump some fluid out of a closed volume. The model looks quite simple: Unfortunatelly, I always get the "Simulation failed for:" message.. The medium is always the same (Modelica.Media.Air.MoistAir). Here is…
Cyanblue
  • 21
  • 3
0
votes
1 answer

Dymola can't load MAT-file

I am trying to load a .mat file outputed by matlab but it can't show me the variables name. I have check the preference related to the mat file in matlab for some times and I'm sure its meet the dymola's requirement. I want to use a 2-D…
Chang
  • 3
  • 2
0
votes
1 answer

Split model Dymola

I'm having a problem when I use the "Split model" option. What I want to do is basically hide these 10 water volumes:. I select the tanks then I click on button for splitting with these options: Final result is just what I want: When I check the…
ChiaraM
  • 23
  • 6
0
votes
1 answer

Cannot initialize model with custom CombiTable1D without instance of Modelica CombiTable1D

My objective is to create a 1D/2D lookup table that can read a variable sized array in JSON file without having to specify a statically sized Modelica array parameter. I started out by trying to extend ExternData to implement a custom table based on…
0
votes
1 answer

The process of solving DAE in Dymola

I am trying to understand the process of solving DAEs in Dymola. According to Chapter 13.8 of Dymola's help document, Dymola would first use an index reduction algorithm to transform the original DAE into ODE, then get a BLT form after partitioning…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

What's the difference between using and not using inline integration in Dymola?

I am trying to make it clear the difference between using inline integration and not using inline integration during simulation in Dymola. Here is the basic procedure of the DASSL algorithm: I find the following summary about the inline integration…
Jack
  • 1,094
  • 6
  • 16
0
votes
1 answer

Why the parameters can't be recognized between the models connected by the Controlbus component in Dymola/Modelica?

I'm making the interface package which can input the parameters of the models in the simulation loop. To connect between the interface package and the simulation model, I used the Controlbus from the Standard Modelica Library Ver. 3.2.2. Checking…
JAGUN KOO
  • 135
  • 5