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

Slow computation with mass flow calculation out of heat demand

I am calculating the needed mass flow from a source to heat up water from 10°C to 35°C from the heat demand at any given moment. Introducing this model to my simulation increased the simulation time a lot! model m_flow_calc "A simple model to…
Phil
  • 624
  • 7
  • 19
0
votes
1 answer

No more delay memory available - What does this mean?

I try to simulate a district heating system with around 200 consumers. It was possible to simulate 115 with no errors, but increasing the consumer number to 230 gives me the error message: The following error was detected at time: 0 The maximum…
Phil
  • 624
  • 7
  • 19
0
votes
1 answer

Sensitivity analysis in Python with data from Dymola (without transferring model from Dymola)

I want a suggestions regarding sensitivity Analysis in Python. I have a Building model from Dymola, and I simulated it for one year to check the total Energy consumption. Now ; I want to see which Parameter is affecting the most, by using Global…
0
votes
1 answer

Performing Global Sennsitivity Analysis using Python after importing model from Dymola

I want to perform Global Sensitivity Analysis using Python after importing my model from Dymola. I have a detailed One Family house model in Dymola and want to perform sensitivity Analysis to check the effect of different Parameters,in the total…
0
votes
0 answers

Stepper motor model

Good morning, I'm doing my internship using modelica and I tried to model a stepper motor in Dymola but unfortunately it does not work, please can you help me to find in modelica librairies a stepper motor model which I can use it in my…
0
votes
1 answer

Modelica: Using an Openmodelica Package in Dymola

I'm trying to use an Openmodelica Package (including one model and 3 functions) in Dymola, but there are some Errors (See Error 1). When I try to declare the protected parameters (in the function cal_mod) as variables I get another Error (see Error…
Magdaanne
  • 145
  • 10
0
votes
1 answer

Create array of replaceable media packages

If possible I would like to create an array of replaceable media packages that a user can then change each option using available choices. Below is a typically way to define the medium. replaceable package Medium =…
Scott G
  • 2,194
  • 1
  • 14
  • 24
0
votes
2 answers

Is it possible to create a dymola model (.mo) using python?

I know it's possible to do parameter studies by using python dymola interface. However this assume that there's already an existing model. What I'm specificly interested into is to write modelica equations in python. But I didn't find any documents…
Yulu Dong
  • 13
  • 2
0
votes
1 answer

Modelica Flexible Array Size - Error: Failed to expand the variable

I still have problems when using arrays with undifined size in Modelica. It would be really helpful to understand what is the underlying problem. I read a lot of stuff (known size at compile time, functions, constructor and destructor, records and…
T. Sergi
  • 203
  • 2
  • 9
0
votes
1 answer

How to transfer water from cylinder to tank in Dymola?

I've created a Dymola model. It has an empty tank, which is connected to the output of sweptVolume component via a static pipe. Input to the sweptVolume is a constant force, with the help of which I would like to transport water from the hydraulic…
0
votes
1 answer

Experiment data correlation in Modelica/Dymola

Firstly I am a relatively new user.I am trying to correlate a physical test data with the model I built using Dymola/Modelica. In this model "variable 1" has a initial value based on which "variable 2,3 and 4" are calculated and these variables(2,3…
sananthk
  • 45
  • 4
0
votes
1 answer

Python/Modelica: simulateExtendedModel

I want to run modelica(Dymola) parameter studies in python. My code: output = dymola.simulateExtendedModel(models, starttime (=0), endtime(=31536000=, timeInterval(=120),...); I set: I expected 262800 values for each variable – but I just get…
Math_reald
  • 305
  • 3
  • 4
  • 13
0
votes
1 answer

Simulation of Electrical drives using Dymola

Is there anyone working with Dymola in the field of Electrical drives simulations?
0
votes
1 answer

FMU-Export in Dymola: Is it possible to make a Modelica enumeration type variable "tunable" when exported as FMU / FMI

I have implemented three similar publications in one Modelica model, using an enumeration type variable to select the publication. The goal is to switch between calculation methods (i.e. between publications) by changing the value of the enumeration…
Jay_At_Play
  • 136
  • 10
0
votes
2 answers

how can I define a variable as being equal to a variable of different type?

Ok, so I have something like this: model MolarAmount import SI = Modelica.SIunits; SI.AmountOfSubstance nu "moles of stuff"; parameter Real lambda = 42 "some variable on which nu depends"; equation nu = 1 - lambda; end MolarAmount; This…
Chad
  • 1,434
  • 1
  • 15
  • 30