Skip to content Skip to sidebar Skip to footer

Modelica Parameter Studies With Python

I want to run parameter studies in different modelica building libraries (buildings, IDEAS) with python: For example: change the infiltration rate. I tried: simulateModel and simu

Solution 1:

It might be a strcutrual parameter, these are evaluated also. It should work if you explicitly set Evaluate=False for the parameter that you want to study. Is it not visible in the variable browser or is it just greyed out and constant? If it is not visible at all you should check if it is protected.


Solution 2:

Some parameters cannot be changed after compilation, even with Evaluate=False. This is the case for parameters that influence the structure of the model, for example parameters that influence a discretization scheme and therefore influence the number of equations.

Changing such parameters requires to recompile the model. You can still do this in a parametric study though, I think you can use Modelicares to achieve this (http://kdavies4.github.io/ModelicaRes/modelicares.exps.html)


Post a Comment for "Modelica Parameter Studies With Python"