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
1
vote
1 answer

How to transform Modellica code to Ontologies (.owl)?

I working on a mechatronic project and i use dymola tool to generate modelica code for my model . now i want to transform modellica to .owl inorder to implement semantic search for the elements . I used protege to manually generate ontologies but…
0
votes
0 answers

Using externalmedia library of openmodelica I want to get CO2 thermal conductivity data

I am using openmodelica to model a gas cooler where one fluid is CO2 and I want to get the value of its thermal conductivity at specified temperature and pressure. I am using the externalmedia library. Want to get this property value from…
0
votes
1 answer

How to set input variables in FMPy (fmpy.simulate_fmu)

I would like to run alternative FMU models using python fmpy module. I can run simple simulation withs default inputs and strating values ploting the various output variables defined in ouputs. However I can not find the structure of nd array which…
Karkar
  • 46
  • 4
0
votes
0 answers

Temperature discrepancies in modelica fluid sources

My goal is to model a bidirectional fluid system in Modelica. I have everything up and running using modelica standard library components but I am always getting an error on the fluid temperature from the input value. I am trying to use a volume…
0
votes
0 answers

OpenModelica - Not getting simulation results on a simple Arduino DC Motor circuit

I am trying to learn OpenModelica for electronics. I a trying to model a simple ArduinoUno DC Motor Circuit. The build and simulation runs are successful, however there is no current in the circuit. enter image description here model test_DCMotor …
0
votes
2 answers

Gap GUI and code configuration for parametrised packages?

It is very practical to parametrise packages to improve reusability of code and a central theme of Modelica. The language support since long time back to also use types like packages and models as parameters for packages. The concept is sometimes…
0
votes
0 answers

How can I create a list out of 4x4x4 parameters and save it with individual names?

I want to create a list called 'parameters' with dictionaries in it, since I will change parameters of a simulation with it. Also I need to save every simulation with a parameter changed with a new name (file_names). Something like this worked so…
0
votes
1 answer

Is it possible to define String Inputs in Dymola for an FMU Export?

I have the problem that after defining an user-defined connector: connector StringInput = input String "input String"; following error comes after trying to export the Model to an FMU: "Failed to generate XML file for the FMU or for variable…
0
votes
0 answers

Modelica image URI with placeholder for current package

In a parameter dialogue of a Dymola/Modelica model I load an image with the code: annotation (Dialog(group="Geometry", groupImage="modelica://my_package/image.png")); My issue: as soon as I rename the package (or duplicate it into a new name) the…
0
votes
1 answer

Minimal working example of returning multiple outputs from an external function in Modelica

My question is similar to this one Is it possible to return multiple values from an external file to Dymola? so here it goes: How do I return multiple outputs from an external function without using a Record (if that's possible at all)? If it's not…
moored6
  • 21
  • 5
0
votes
1 answer

Using external C function into modelica

I have two interrogations about using external functions with modelica(via dymola): External Functions 1/Could we use C++ syntax ? According to my tests, No I got this error : C:\Program Files\Microsoft Visual Studio\**\include\yvals_core.h(23):…
wolfgunner
  • 119
  • 2
  • 13
0
votes
0 answers

How does the initialisation work with Dymola cosimulation FMU?

I have modelled a dynamic Rankine cycle on Dymola 2022 using the ThermoSysPro library. Since I want to be able to start the simulations from any given state, I made sure to output all the states' values. Then using parameters, I set the initial…
Clement44
  • 13
  • 4
0
votes
1 answer

How to return a struct of double* in dymola from an external C code

This question is similar to this one : Is it possible to return multiple values from an external file to Dymola? but somehow, it could not help me. I have the following C structure: typedef struct ModelicaExport { double* foo; double* bar; }…
MrBellamy
  • 29
  • 5
0
votes
0 answers

Execute function: [...] opening and closing continuously in Dymola

I am running a Dymola model simulation, and I have noticed that a command line window constantly opens and closes rapidly, with a message 'execute function: TILMedia [...]'. Although this does not seem to affect the simulation process, the…
Phil
  • 624
  • 7
  • 19
0
votes
1 answer

Modelica buildings outputs error when connecting the terminal

I am trying to connect the grid to a line in the modelica building.electrical library. I get this error: [2] 18:20:02 Translation Error [Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Line: 4:5-4:47]: Type mismatch in binding terminal_n =…