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

Overwriting a Parameter vs. Auxiliary Variable in dsin.txt

I'm running a Dymola model by interfacing with the dymosim.exe file that gets generated when translating a model. I need to run different test cases using the same model, which I do by adjusting the values in the second column of the initialValue…
kmaan
  • 23
  • 5
0
votes
1 answer

Failed to expand block containing connect

I´m trying to set a connection with a conditional on the temperature, to represent a temperature-sensible charging pipe that works inside a stratified heat storage tank, with the following for loop reading the several volumes of the tank, `for i in…
Werner
  • 1
0
votes
1 answer

Reading a .csv file in a CombiTimeTable in Dymola using SimulateExtendedModel() function through Python

I am trying to write a establish a Dymola python interface where a .csv file is read and given in the CombiTimeTable in Dymola. But I do not find any help to do that. Even with Dymola Script/Command I wasn't able to give in my csv file and a…
Rb8685
  • 1
  • 1
0
votes
1 answer

Simple question: How can I set Dark Mode on Dymola 2022?

Is it possible to set Dark Mode on Dymola 2022? Where is the option? I cannot find it. Thank you so much in advance.
0
votes
2 answers

How to define a Combitimetable through a script in Dymola?

I am trying to perform several simulations in a sequence using a for loop in a script. From simulation to simulation, the only variable to change is the file path of a Combitimetable. I propagated the variable fileName in order to assign a new path…
0
votes
1 answer

Using modelica function as input to external "C" function

I am trying to call an external C function in modelica with a function as an argument. So the C function needs to take a modelica "function" as input. Is it possible to do that in modelica ? For example : function foo input Function fun; …
MrBellamy
  • 29
  • 5
0
votes
2 answers

Usage for ExternalMedia in Dymola

I am a student who is researching about HVAC. I'm modelling a heat pump system and I got some problem. As I was going to get the fluid property by ExternalMedia, I got some error. The source code is below: model Pentane_hs package wf extends…
CHO
  • 3
  • 2
0
votes
0 answers

How to fix an "structurally singular" - error in a simple loop model (Dymola)?

My Problem is maybe a rather simple one. I want to build up a simple Model of a Flettner Rotor. So it is just a fixed SupportStructure with a Motor/Revolute (fixedBearing) on top, that spins a hollow cylinder around it. At the Bottom there should be…
0
votes
3 answers

Boolean frequency in modelica

In the model that I am working on i have a Boolean of that controls the turn ON and OFF of a system, that means during simulation my system turns ON and OFF many times, so I want to calculate the frequency of the ON/OFF, does anyone have an idea,…
0
votes
2 answers

Failure to handle clock inference in Dymola

The following model in Dymola gives an error, model Test1 Real outvar; Real outvarc; Real internal; parameter Real Tp=0.1; equation when Clock(Tp) then internal = time; end when; outvar = hold(outvarc); algorithm if…
Ahsan
  • 3
  • 2
0
votes
2 answers

Problems JSON response using dymola (dymola.simulateModel)

I am using: Dymola 2017 FD01 Python 3.6 integrated Dymola into Python following: https://github.com/RWTH-EBC/AixLib/wiki/How-to:-Dymola-Python-Interface (for Anaconda) I can't run dymola.simulateModel. If I do I get this error, which is quite…
0
votes
1 answer

Space Heating with Heat Pump and Ground Source Heat Exchanger Dymola

According the whole year weather data and based on Buildings.Controls.SetPoints.SupplyReturnTemperatureReset (assuming working temperatures; supply temp. 30 Celcius and return temp. 25 Celcius) I want to find out how much heat and electrical power…
Orhun C.
  • 17
  • 4
0
votes
1 answer

Error: "The model is structurally singular" Dymola Modelica Solar thermal coupled with hot water tank and floor heating

Here what I am doing is that using the weather data as input parameter, if the global radiation is higher than 100 W/m^2 open the valve. First solar heat will be released to the hot water tank, and then the heat will be given to the Boundry_pT via…
Orhun C.
  • 17
  • 4
0
votes
2 answers

Modelica (Dymola) : get a particular value of a timetable?

I have a model using a timeTable which represents a variable evolution. I would like to initialize a subcomponent's parameter with the first value of the table (time = 0 second). The table's values are read from a .txt file. The idea would be to…
Icare
  • 13
  • 2
0
votes
1 answer

SolarThermalCollectors, HotWaterTank and GroundSourceHeatExchanger Model

In this model, I want to simulate regarding changed in cirtain wheather conditions (e.g. solar radiation in a whole year), solar thermal collectors heat first the hot water tank. After hot water tank reaches to its max. allowable temperature, the…
Orhun C.
  • 17
  • 4