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

How to access model jacobian from FMU or Dymola without analytical jacobian

I am trying to find a way to access the jacobian for a model in dymola either through a compiled FMU or from the exported Dymola source code. The final objective is to use the same procedure to access the jacobian for a much more complex multibody…
4
votes
0 answers

How to find the bad start value guess when facing an initialization divergence in Dymola

I am using an open-source modelica library(ThermoSysPro) to build a simple Rankine cycle model, but it seems there is an issue about initialization. So I changed the debug setting as follows to check the log file: In the dslog.txt file, I could…
Jack
  • 1,094
  • 6
  • 16
4
votes
1 answer

Automatic processing of dymola simulation results with Python

I want to automatically evaluate my simulation results with a python script, but struggle to open the .mat-Files in a meaningful way. Opening the files with scipy.loadmat doesn't seem to be a viable option: from scipy.io import loadmat x =…
Phil
  • 624
  • 7
  • 19
4
votes
5 answers

An error in Dymola "Failed to generate XML file for the FMU"?

A model works fine, but on my PC it ends up with an error "Failed to generate XML file for the FMU". Someone told me this is because the XML parser is broken on Windows system. Anyone know the exact reason for this problem?
Jack
  • 1,094
  • 6
  • 16
4
votes
0 answers

python dymola connection fails after some time

I have been trying to perform simulations of a modelica model by using the Dymola-Python Interface, but after a while waiting for the simulation to get performed, it gives the error "DymolaConnectionException: Failed to connect to Dymola within…
belen
  • 41
  • 3
4
votes
0 answers

Dymola model not initializing with auxiliary variables turned off in output

I am trying to run a model in Dymola 2019 FD01 with auxiliary outputs turned off (to improve simulation speed). I've also set the flag: Advanced.AutoRemoveAuxiliaries = true; When I try to run the model, I get: Error: Integrator failed to start…
4
votes
2 answers

Multidimensional Tables in Modelica Block

I started to use openmodelica few days ago. I created a lot of tables where Data is defrost efficiency, first row is Air temperature which is my first input and first column is Leaving water temperature from the condenser which is my second input.…
dav
  • 41
  • 3
4
votes
1 answer

Modelica annotation inverse of function is ignored

Problem: the inverse annotation of a function is ignored and the inverse is computed numerically. According to Modelica Specifications it is possible to specify an inverse of a given function. In order to test this functionallity I tried with a very…
DarioMangoni
  • 301
  • 1
  • 10
4
votes
1 answer

Displaying parameter in annotation in DYMOLA

I have a simulation model using different components. In order to get a quick overview of the used parameters I use the functionality of annotations to display certain model parameters (e.g. m_flow_nominal) via: textString="Nominal Flow Rate =…
Lorzen
  • 175
  • 1
  • 7
4
votes
2 answers

How to reference Dymola experiment start time and stop time as variables?

For simple test models, I commonly a syntax similar to: // Assuming the start time is 0 and stop time is 1 x = xMin + (xMax - xMin) * time; y = f(x); To be correct no matter the simulation setup, I would like to use: x = xMin + (xMax - xMin) *…
Justin Kauffman
  • 423
  • 3
  • 10
4
votes
2 answers

Modeling of a heated pipe in Modelica/Dymola

I'm currently studying chemical engineering and for my Bachelor thesis, I'm supposed to model a heated pipe that can be used in a superheater by connecting two pipes via a heatport together. Even though I made a big effort on understanding how I…
4
votes
1 answer

How to set a start value for a modelica parameter that is returned as part of an array from a function

I am receiving the following warning message from Dymola when simulating a fairly complex steady-state model for simulating a multi-circuit refrigerant system. The following variables are iteration variables of the initialization problem: …
Justin Kauffman
  • 423
  • 3
  • 10
4
votes
1 answer

Conditional Components in Modelica

I want with conditional expressions reduce large general models with over 300000 equations so that only a relevant part remains. To illustrate the problem I have the following minimal model: model Test parameter Boolean level1=true; parameter…
tlask
  • 43
  • 4
4
votes
1 answer

Dynamic pipe model in MSL, Finite Volume Method

I'm trying to use Modelica for modeling of a system composed of elastic pipes. For now, I'm trying to implement my own dynamic pipe model (rigid, not yet elastic) using the same approach (finite volume, staggered) like in the Modelica.Fluid library,…
T. Sergi
  • 203
  • 2
  • 9
4
votes
2 answers

Methods to Compare Measured and Simulated Data for Calibration and Validation of a Modelica Model

This is a fairly general question. I am attempting to validate a Modelica model against experimentally measured data. In the past, I have simply added a CombiTable with the data copied into the component. However, I will be working with at least 15…
Justin Shultz
  • 199
  • 1
  • 11
1 2
3
42 43