- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » model_init.xml and model_info.json...
model_init.xml and model_info.json ..... what are they for?
model_init.xml and model_info.json ..... what are they for?
Hello.
I'm trying to run the executable that was created after I ran my model from within OMEdit and I am changing the values in model_init.xml to run with different variable values. It also seems that the executable needs model_info.json. What is model_info.json for? Do I need to do anything with it for this to work right?
Thanks.
Adam
- adamLange
- 29 Posts
Re: model_init.xml and model_info.json ..... what are they for?
You can just use the -override or -overrideFile flags to change values (changing the XML-file can break things). The JSON file should not be changed either.
- sjoelund.se
- 1700 Posts
Re: model_init.xml and model_info.json ..... what are they for?
I know that for -override the syntax is something like this:
Code:
-override=startTime=0,stopTime=30,stepSize=0.0003,tolerance=1e-06,solver=dassl,outputFormat=mat,variableFilter=.*
What is the format of the file passed to -overrideFile? xml? or just a file with the same contents that you would pass to -override?
- adamLange
- 29 Posts
Re: model_init.xml and model_info.json ..... what are they for?
See here:
https://www.openmodelica.org/doc/OpenMo … flags.html
The format is:
Code:
var1=val1
var2=val2
- adrpo
- 885 Posts
Re: model_init.xml and model_info.json ..... what are they for?
Perfect! Thank you!
- adamLange
- 29 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » model_init.xml and model_info.json...