Help - Search - Members - Calendar
Full Version: Script for automating several simulations
Modelica Forum > Modelica > Dymola
iceaway
I am doing a parameter study and want to create a script that can run these in sequence automatically. The problem I'm having is that some of the parameters are strings, representing different files with matlab-tables. The parameters which are numerical values are no problem, also the string values which are at the top-level can be set. But when I try to set a string parameter in a sub-model I get an error that the variable does not exists.
For example, I try to use the command:
basemodel.submodel.parameterName = "hello.mat"

Then I get the error:
Undeclared variable or command: basemodel.submodel.parameterName

Other parameters in that model which are numerical can be set without a problem however.

Is there some way to get around this?
Carsten
Create a new package, create all models you want to simulate by extending (not copying) your original model including you modifications into the new package. And then write a marco to simulate all models in the packge.

regards
Carsten
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.