How to modify an outer parameter in two instances declaration?
I have developed a submodel that I am using throughout my project and it has an outer parameter:
How to modify an outer parameter in two instances declaration?
I have developed a submodel that I am using throughout my project and it has an outer parameter:
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 prevent an assert() call at every time step?
I am rather familiar with the assert()
function, but I have just noticed that it behaves differently when called within a function. Here’s an MRE:
How to fix singular error of VLE Split in Dymola ClaraPlus library?
I am simply trying to model a simple water split in Dymola from source to 2 sinks. However, the simplest of case seem to not work, and I don’t quite know why the problem is singular.
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.