- Index
- » Users
- » omadmin
- » Profile
Posts
Posts
Hi,
(this is just a paranthesis since we are not representing Dymola, however I believe that Dymola have similar script language to OpenModleica and it should be possible to change the initial file containing information about the parameter values that you are looking for. If you are using Matlab for re-simulating your(exported) Modelica model then this is done quite easy with the dymosim script in Matlab
% [p,x0,pnames,x0names,inputnames,outputnames] = loaddsin('dsin.txt');
% [s,n] = dymosim([0,T_sim,0,dT_nr,1e-9,8],x0,p,'quiet'); % Calling dymosim with new values and paramters
the p is the vector containing the paramter values and in the above call 0 is the starting time and T_sim is end time.)
In the http://openmodelica.org/dmdocuments/SIM … -final.pdf the interoperability of OpenModelcia is disscussed with the aim of re-running simulations with new parameter values. I've upploaded a sample code for this interface under Home-> Applications->script->MonteCarlo. Look at the package and it contains Python scripts calling OpenModelica
Best Regards
Mohsen
- Index
- » Users
- » omadmin
- » Profile