I wan’t to set up a for loop in OMShell, where i call different models according to the iteration variable of the loop (e.g. ‘i’). To me it looks like i have to find a way to construct the model reference (e.g. mylibrary.mymodel) as a string and convert it (if possible) from String to a reference.
I was thinking of sth like:
loadFile(“/home/Modelica/mylibrary.mo”);
model_String := “path.to.model.in.mylibraray.” + “model”; //the name of “model” is changed throughout the process of the script in a for loop, later
model_reference := (some process of converting the string in ‘model_String’ to a real reference);
simulate(model_reference, stopTime=1, outputFormat=”mat”);
Is this possible resp. is it possible to dynamically simulate different models in OMShell?
Thank you very much!
Roman