Relative Content

Tag Archive for modelicadymola

How to reset a parameter value when disabled?

I use a lot of parameter annotations when developping components, in order to make them user-friendly, especially the Dialog(enable=...). However, when a parameter is disabled, it just prevents the user from modifying it afterwards, but it does not affect the value that may have been set beforehand. Here’s an example:

How to define a model within another model

I am trying to define a model Toto within another model Example1. I know this is not Best Practices, but Toto is purely meant for this specific model Example1 and I don’t want to see it in my package view.

Failed to reduce the DAE index in Modelica ClaRa library

Right now, I’m currently trying to integrate a gas turbine subsystem into a steam power plant example built in the ClaRa library. The gas turbine subsystem runs without no problem when ran as a standalone, but when I connect the flue gas outlet to the heat exchanger, the system fails to reduce the DAE index.