- Index
- » Users
- » lrohr
- » Profile
Posts
Posts
Hallo and thank you for your answer.
Actually I don't care which compiler to use, as long as the code can be compiled and maintenanced in dymola.
So if it is an easier way to do it with openmodelica I'm going to use it. But for some reason, this project have to work in dymola. But it works, it's just (as I explained) not comfortable to run all the simulations.
Do I need to get root access to install the openmodelica compiler ? Which I wouldn't get, I know said thing working on linux without admin rights :-(
Hi,
in order to run some simulations with different parameters, I would like to read a configuration file which initializes the parameters for my models.
I'm using dymola so to start a model form a shell after compiling it with dymola I simply type in
./dymosim dsin.txt. /dev/null
the dymosim is the binary file compiled by dymola/modelica dsin.txt is a configuration file created by dymola with the information of start and stop Time variable names etc., where the /dev/null is the 'place' where dymosim should put the result.mat file. Since my simulation file exceeds the space of 2GB I can't plot it in dymola, so I'm using a printer written in C to create the result file with just the informations of interest which of course makes the file small (to view the results I'm using QT octave).
Anyway, I would like to have one parameter more like
./dymosim dsin.txt. /dev/null myconfigfile.txt
where I can put the initial parameters. Or add the informations to the dsin.txt .
At the moment I have about 15 exactly same looking models with just some different parameters to do the simulation.
In order to simulate I have to compile the particular model and than run it in the shell (on an another PC which is faster).
So after changing some things I always have to compile it 15 times also the parameters of one particular model of these 15 models never change.
So my idea is to just compile it ones and than read the configuration at execution time, maybe with a nice shell-skript, so that I can invoke it in the evening and watch the results in the morning.
Has anybody any nice solution or idea to this problem ?
Thank you so fare
lrohr
Hi yap looks like this works. No Errors I also can start a project.
Have to play around with it for some time to get used to it. I worked already with Dymola which looks a bit different. So maybe tomorrow I find the time to try some simple examples.
Thanks a lot, maybe someone can write it in the installation howto, maybe it helps someone else...
sjoelund.se wrote:
It's weird that SimForge doesn't at least read the environment variables to set it up automatically.
Use your $OPENMODELICAHOME and $OPENMODELICALIBRARY
/usr and /usr/share/omlibrary/modelicalib by default. Note that it asks for the path containing bin/omc, and that modelicalib contains more libraries than just MSL2.2.
However, it seems SimForge needs LD_LIBRARY_PATH for the Windows version to work. The Linux version of omc does not use libmico, since it's not part of the Ubuntu distribution.
Thank you for your quick answer it solves some of the problems. The OPENMODELICAHOME and the OPENMODELICALIBRARY are checked correct from the SimForge GUI.
But the check failed with the result that libmico.so couldn't be found (the other two are good).
The command "find -name libmico.so" in the dir / ends with no success. So I guess you're right this file doesn't exist on ubuntu, but how can I tell this SimForge
Thank you again for your quick help
Greetings
lrohr
Hallo,
I was unable to determine the path of the OpenModelicaHome, the OpenMoelicaLibrary and the LD_Library_Path .
To install the OpenModelica, I followed the discription from www.openmoidelica.org which can be found http://www.openmodelica.org/index.php/d … load-linux .
After that I downloaded the SimForge.jar and tried to install it with java -jar SimForge.jar which actually worked, except for the questions where to find :
OpenModelicaHome
OpenMoelicaLibrary
LD_Library_Path
By trying to find them I thought the binary is located in /usr/bin, the library in /usr/share/omlibrary/modelicalib/Modelica and the same for the LD_Library_Path
Which is obviously wrong, since errors occur after starting SimForge, telling me that the paths are not correct ...
Does anybody know the right settings ?
Thank you for your help.
Greetings lrohr
- Index
- » Users
- » lrohr
- » Profile