You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vwaurich edited this page Feb 29, 2016
·
2 revisions
OMVis is in its infancy and therefore things change quite fast. Anyway, how it should be used:
In order to visualize a model which is represented by a 3d-scene, we need 2 things:
a scene description file (a XML which stores the animation bodies and their properties mapped to some variables)
a result file (.mat) or a FMU (.fmu) which stores or computes the values of the relevant variables.
Since OMVis is used for the interactive simulation of FMUs or the visualization of Modelica-based simulation results, a scene description generator is valuable.
Hence, OpenModelica is able to output a scene-description file of a multi-body-system by setting the flag "+d=visxml".
Basis is the application of the Modelica.Mechanics.MultiBody.* - elements which provide an animation.
When opening OMVis you can choose a model which should be animated. Choose a matfile model_res.mat and OMVIs is looking for a scene description of the name model_visual.xml in the same directory.
If both can be loaded, the initial scene setting can be seen in the viewer.