- Index
- » Users
- » eiselesr
- » Profile
Posts
Posts
Hello,
I am trying to use Modelica3D but no visualization window pops up after simulating the model. I am using the users guide for release v1.9.3-dev.520+g2b2d98c.
I have installed
Python version 2.7.10
pygtk-all-in-one-2.24.2.win32-py2.7.msi
openModelica "v1.9.3-dev-1091-gb25d1f3"
To start I open cmd and browse to the directory containing dbus-server.py
Code:
> cd C:\OpenModelica1.9.3Nightly\lib\omlibrary-modelica3d\osg-gtk
I then run the script and see the "Running dbus-server..." notification.
Code:
> python .\dbus-server.py
Running dbus-server...
At this point i open OMShell and enter the following, with the result:
Code:
>> loadModelica3D();
>> getErrorString()
""
>> loadString("model DoublePendulum
extends Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum;
inner ModelicaServices.Modelica3D.Controller m3d_control;
end DoublePendulum;")
true
>> getErrorString()
""
>> simulate(DoublePendulum)
record SimulationResult
resultFile = "C:/Users/Scotty/AppData/Local/Temp/OpenModelica/DoublePendulum_res.mat",
simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'DoublePendulum', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
messages = "stdout | info | SHAPE cylinder
stdout | info | length = 0.053033
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.053033ge
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.0676041
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.033802
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.0375
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.0375
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.053033
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cylinder
stdout | info | length = 0.4375
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cone
stdout | info | length = 0.0625
stdout | info | width = 0.0375
stdout | info | height = 0.0375
stdout | info | SHAPE cylinder
stdout | info | length = 0.4375
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cone
stdout | info | length = 0.0625
stdout | info | width = 0.0375
stdout | info | height = 0.0375
stdout | info | SHAPE cylinder
stdout | info | length = 0.4375
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cone
stdout | info | length = 0.0625
stdout | info | width = 0.0375
stdout | info | height = 0.0375
stdout | info | SHAPE cylinder
stdout | info | length = 0.2
stdout | info | width = 0.0125
stdout | info | height = 0.0125
stdout | info | SHAPE cone
stdout | info | length = 0.05
stdout | info | width = 0.0375
stdout | info | height = 0.0375
stdout | info | SHAPE cylinder
stdout | info | length = 0.1
stdout | info | width = 0.05
stdout | info | height = 0.05
stdout | info | SHAPE box
stdout | info | length = 0.5
stdout | info | width = 0.06
stdout | info | height = 0.06
stdout | info | SHAPE cylinder
stdout | info | length = 0.1
stdout | info | width = 0.05
stdout | info | height = 0.05
stdout | info | SHAPE box
stdout | info | length = 0.5
stdout | info | width = 0.06
stdout | info | height = 0.06
",
timeFrontend = 1.377992305577266,
timeBackend = 0.9273944398377979,
timeSimCode = 1.768341833034305,
timeTemplates = 0.5388075345836126,
timeCompile = 5.691076257302634,
timeSimulation = 0.784575029900246,
timeTotal = 11.08863679312246
end SimulationResult;
Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
>>
As far as I can tell the simulation is working, but there is no visualization window that appears. I assume I am missing a step?
Any help would be appreciated.
Thanks!
- Index
- » Users
- » eiselesr
- » Profile