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

How to add scrolling option on component parameter GUI?

I'm using Dymola but I expect OpenModelica might very well be the same (or at least similar). For a given component model sometimes it makes more sense to have lots of parameters shown on one "tab" of the parameter GUI. This can lead to an…
Scott G
  • 2,194
  • 1
  • 14
  • 24
1
vote
1 answer

Two-phase lubricating flow or cavitation

How should I handle two-phase lubricating flow in Dymola? I want to model the possible cavitation or air that is within an IC engine oil pump, but I do not know how I could manage the fluid in that part. Modeling the oil medium on one side and the…
victor.aer
  • 106
  • 5
1
vote
1 answer

Access package contents from string argument in Modelica

I have a string vector with the names of some substances vec = {"H2","O2"}, and I would like to use these strings to access a record in a package such that Modelica.Media.IdealGases.Common.SingleGasesData.'vec[1]' returns the data of H2. Is this…
Johannes Veje
  • 83
  • 1
  • 1
  • 5
1
vote
2 answers

Modelica External C function call using a DLL

I was working with two external functions in Dymola via two DLLs. I encountered a problem which made me think about how the compiler actually finds the external function. So the functions within the two different DLLs have the same name and the same…
Shaga
  • 170
  • 8
1
vote
2 answers

Dymola Results of checkModel()

checkmodel([Some Model]) opens the GUI "Dymola Messages", tab "Translation" and displays Errors, Warnings, and Messages. Does anyone know how to write these infos to a logfile or get them as kind of return value of checkModel(). All I've found in…
jemo
  • 63
  • 5
1
vote
1 answer

initialization in Dymola influenced by annotation flag evaluate

As already mentioned in the title, initialization of my (multibody) model is influenced by annotation(evaluate). With new parameter par implemented in the model, initialization always fails if I use : parameter par annotation(evaluate=false) but…
AdamKe
  • 63
  • 4
1
vote
0 answers

Modelica Algorithm and equation- number of variables and equations

I am trying to build input/output connectors as interfaces and add them in a wrapper class that wraps a model. The variables of the connectors are defined using conditional declaration. when I instantiate the output connector in the wrapper class, I…
Shaga
  • 170
  • 8
1
vote
2 answers

Modelica modbus communication

I need to create a hardware-in-the-loop test setup. I will be using Modelica (Dymola) to do a real time simulation of a system. Dymola should send/receive data to/from some hardware and where the received data will be input to the model. I am trying…
1
vote
1 answer

Problems with record call in Dymola

The following package 'RecordTest' (example to reproduce an error of a bigger model) contains a Record to define the structure of some data. Further in package 'DataDefintion' two sets of data are defined. Finally this data should be used in package…
Florian
  • 55
  • 5
1
vote
3 answers

Modelica encoding problems

Since Modelica 3.2 (released March 2010) it is allowed to use arbitrary Unicode characters in comments, description strings and/or annotations. But for some reason I am having trouble with code like the following: within ; model ENCO_testing "code…
matth
  • 2,568
  • 2
  • 21
  • 41
1
vote
2 answers

Reading data in dymola from chx file

I want to import data into dymola from a chx file which is generated by the output of a program and then run a simulation with those outputs as parameters. The file has parameters of the form: 28
Rohit_D
  • 85
  • 1
  • 11
1
vote
1 answer

Dymola modelica defining inputs for frequency analysis

Inputs in my multibody model are road unevennes as function of distance the model is working fine for time simulation but when I linearize the system, then i get error saying no inputs or outputs defined.As In the picture:…
1
vote
0 answers

Dymosim OPC server: Items cannot ce acessed by MATLAB

I'm currently using Dymola 2015 and try to run my model on an embedded OPC server. It is a very simpel model, a sine wave with a real output interface. So far, the following things are working: I can run the embedded OPC no problem The data can be…
Nathol
  • 29
  • 6
1
vote
1 answer

OpenOPC tag activation?

I'm trying to use OpenOPC as a client to connect to an OPC server generated thanks to Dymola. What I can't figure out is the way to read from a particular tag. Some tags are available ('SimControl') and others are not ('ModelVariables') whereas…
Pleki
  • 108
  • 1
  • 11
1
vote
1 answer

FMU co-simulation using openMP or pThread

Say I have a vehicle model, the chassis will be used as a master FMU, its engine, transmission, tires, etc are from 3rd parties and I want to used them as slave FMUs. I want to parallel the model in this way, the master FMU is put on the main…
Hang Yu
  • 476
  • 2
  • 14