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
4
votes
2 answers

Is it possible to build a "conditional" FMU using Modelica?

I have an application where I am using Dymola as a development environment, but will be exporting models in FMU form to be used in another application. The systems that I am modeling have interchangeable components, making them a great fit for…
Justin Kauffman
  • 423
  • 3
  • 10
4
votes
2 answers

Assign specific connection style to connector in Modelica

In Modelica, it is possible to define annotations attached to an object, such as a connector, that change their graphical appearance. Is it possible to also define how the connection from one connector to the other will look like? Such as two…
Gerome Pistre
  • 457
  • 6
  • 15
4
votes
1 answer

Modelica Model robustness issue: Failed to evaluate model for ODE-Jacobian

I am running a system model in Dymola (modelica based commercial software). Model is about heat and mass transfer from porous substance under forced convection. My problem for asking this question is regarding errors generated during simulation of…
user1768201
  • 147
  • 2
  • 12
4
votes
1 answer

Repeated components with pattern dependent parameters

Imagine there is a repeating pattern of components (e.g., dynamic pipe) which has a parameter (e.g., length) which will change depending on where in the pattern it resides. I proposed that it might be possible by omitting the "each" prefix before…
Scott G
  • 2,194
  • 1
  • 14
  • 24
4
votes
1 answer

export of dymola model requires the derivative of its input

I would like to export a Dymola model to Simulink. The model consists of a derivative block (der), a RealInput, a RealOutput and there connections. When I translate this model, the following error appears: "The model requires derivatives of some…
C Winkler
  • 161
  • 2
  • 15
4
votes
2 answers

co-simulation dymola fmu file can't be simulated by fmuchecker

We are trying to test the co-simulation options of Dymola and created a fmu-file. We installed/built the FMILibrary-2.0b2 and FMUChecker-2.0b1 from www.fmi-standard.org. I encountered an issue while trying to run the FMUChecker (fmuCheck.linux32) of…
Medi1Saif
  • 285
  • 7
  • 19
4
votes
1 answer

Difference between vectors and arrays in Modelica

I noticed the following line in the transfer function block in the Modelica library (Modelica.Blocks.Continuous.TransferFunction): parameter Real bb[:] = vector([zeros(max(0,na-nb),1);b]); I don't understand what the "vector" function call does,…
magenta
  • 55
  • 5
4
votes
3 answers

List of Dymola flags

Some settings in Dymola can be altered by setting flags in the "Commands" window: Some examples for flags are: Advanced.AutoFormatting Advanced.PedanticModelica Advanced.LogStartValuesForIterationVariables Hidden.PrintFailureToDifferentiate Is…
matth
  • 2,568
  • 2
  • 21
  • 41
4
votes
5 answers

How can I add a custom package to the startup path in Dymola/Modelica?

I have a custom package that I find myself reusing repeatedly in Dymola models, and I'd like to put this package in a common directory that is automatically loaded whenever I start Dymola. My current strategy is to load the custom package when a…
Chad
  • 1,434
  • 1
  • 15
  • 30
3
votes
2 answers

How to diagnose what causes OpenModelica transient simulations to run slowly?

I have a transient model with Modelia.Fluid Valves and Dynamic Pipes that is running slowly. I am trying to find strategies and tools for identifying what is causing the slowness. By following the guidance in the Using the Profiler from OMEdit…
3
votes
1 answer

How to export .csv files using a script in Dymola?

I am running a big set of simulations in Dymola using a script, so far, it works well. However, it remains incomplete because all the results are still in .mat and I have not find a way to automatically save them as .csv. I found the…
3
votes
1 answer

ModelicaRes import fails in python

I want to use ModelicaRes to open my Dymola results in python but the import fails. from modelicares.simres import SimRes Gives the following error: --------------------------------------------------------------------------- ImportError …
3
votes
2 answers

mos code to take screenshot automatically after simulation in dymola

I am using Dymola, and I want a Modelica script that enables to capture the diagram of my model after simulation: I know how to do it manually in Dymola, so if I click "Tools" - " Image", then I can export the image. That's why I think there would…
y.min
  • 33
  • 5
3
votes
1 answer

Modelica - Using parameter equations without losing the ability to parameterize after compilation

Often, I will build Modelica models with parameters that are dependent on other parameters: model ParameterTest parameter Real a = 5; parameter Real b = a/2; end ParameterTest; Here, parameter b is no longer available to be parameterized in the…
Matt
  • 363
  • 1
  • 7
3
votes
1 answer

Best Practices for Over/Under-determined Modelica Sources

In standard Modelica fluid flow sources, normally either the flow rate or the pressure is specified. For example, the following boundary setups (P meaning pressure boundary, F meaning flow boundary) would typically surround a pipe component: P -…
Matt
  • 363
  • 1
  • 7