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

FMU Initialization Issue

I exported a FMU 2.0 model in Dymola 2015 recently, and I had some issue with the initialization. Before exporting the model, I checked the validity of the model by connecting the input connectors to some constant values that know the exact output…
Hang Yu
  • 476
  • 2
  • 14
0
votes
1 answer

Polygon creation in OpenModelica

While creating a regular polygon in the Icon/Diagram Layer in OpenModelica, I can understand that the origin is the centre/centroid of the polygon and the co-ordinates of the points of the polygon are calculated using the origin as a reference. Can…
MSK
  • 448
  • 2
  • 5
  • 18
0
votes
0 answers

FMU derivative value reference from Dymola

This question is about how Dymola will assign value reference(VR) to its variables(esp. derivatives). I understand that it is kinda like a secret about how VRs are assigned but any help would be appreciated. For example, I have an exported model…
Hang Yu
  • 476
  • 2
  • 14
0
votes
0 answers

OpenModelica internal error reinit called with wrong args?

I'm writing a program that from an Functional Mock-Up Unit generates a complete Modelica model. It works just fine when I simulate the model in Dymola but in OpenModelica I get this error: internal error reinit called with wrong args I call…
FluxxSimon
  • 27
  • 5
0
votes
1 answer

Is it possible to modify compiler include path for Dymola?

This question is raised due to a situation that I encountered Say I have these external files and some declarations or definitions in them: foo1.h extern void ext_func(); foo1.c void ext_func(){ .... } foo2.c …
Hang Yu
  • 476
  • 2
  • 14
0
votes
1 answer

Why parameters bounds are not respected using dymola optimization library?

I am trying to optimize (minimize) variable "emissions" using the ModelOptimization function in the library optimization for dymola using the following code: model opt parameter Real electricity=999; Real x2(start=0); Real x1(start=0); Real…
bmorvaj
  • 55
  • 1
  • 7
0
votes
0 answers

Dymola optimisation library constraints

Again me. Sorry for possibly stupid questions but I'm new to this so i Have this initial problems and dilemas. I would like to optimize carbon emission using dymola optimization library on this theoretical case. There is grid and PV as means of…
bmorvaj
  • 55
  • 1
  • 7
0
votes
1 answer

What is a theretical way to write i++ in Dymola? And have hybrid continous and discrete model?

I am just started to learn modelica and I have one (newbie) question. The problem for me is to change the way of thinking from convential programming thinking to modelica way of thinking. I want to do simple program. I have input array with PV…
bmorvaj
  • 55
  • 1
  • 7
0
votes
0 answers

FMU from Dymola to Energyplus

I want to simulate a system created in Dymola with a building created in energyplus. I'm following the guide for the functional mock up. I exported the FMU file from Dymola and i made it compatible with Eplus thanks to FMI parser. When i run the…
S89
  • 1
0
votes
3 answers

how to resolve a dimensionality-related error in this code?

I have written a code in Modelica to train a feedforward two-layer neural network for my Master thesis. The code receives a vector of six elements (u[nin]) and provides an output vector of two elements y[nout]. When I translate the code in dymola, I…
0
votes
1 answer

Dymola_InlineAfterIndexReduction

This question is related to an issue that I encountered when I was playing with some blocks. Here's the model that I have, As you can see, there are two kinds of connections, the inputs of the first connection(from the top to bottom) is…
Hang Yu
  • 476
  • 2
  • 14
0
votes
3 answers

Controls Implementation using Dymola

I've been having issues implementing a built-in controls algorithm (LQR) in Modelica/Dymola. I've created a simpler model that shows the problems I've been having. Basically, I am calling LQR externally and passing it a matrix with an entry (named…
0
votes
2 answers

Realtime Optimization in Dymola

I was wondering if anyone who has used the Optimization Library in Dymola has been able to utilize the RealtimeOptimization function without having explicit plant constitutive equations to input into the criteriaFunction? Specifically, I am trying…
E Heller
  • 13
  • 1
  • 6
0
votes
1 answer

Initialization of a Dymola FMU in Simulink

I have encountered an issue while trying to simulate a model using an fmu file in Simulink: I am using the Modelon FMI toolbox for a Dymola/Simulink interface to import a Model-Exchange type fmu file (version 1.0) into the Simulink model. I have a…
E Heller
  • 13
  • 1
  • 6
0
votes
2 answers

How can I execute 2 models one by one in one simulation?

I was trying to execute 2 models one by one in a simulation via state chart. The pseudo-code follows. In model test, there are two blocks, stateA and stateB. At the beginning of the simulation, stateA is executed. 10 seconds later, stateA is stopped…
Rui
  • 3
  • 2
1 2 3
42
43