Simulation/Output/VTKOutput

From Sumo
Revision as of 13:33, 10 June 2012 by Mkrumnow (talk | contribs) (Created page with 'This output option offers you the possibility to visualize/analyse your simulation data using the famous VTK file format. There are several Tools and Frameworks to get started wi…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This output option offers you the possibility to visualize/analyse your simulation data using the famous VTK file format. There are several Tools and Frameworks to get started with VTK for example ParaView.

The generated output file is very basic, so each vehicle is presented by only one point object. In the VTK file the vehicles were stored in 3 dimensional coordinate system, until now the Z-coordinate is always set to zero.

Instantiating within the Simulation

The simulation is forced to generate this output using the option --vtk-output <FILE>. <FILE> is hereby the name of the folder where all the VTK files will be written to. It's very important that the destination folder exist. For every timestep a new VTK file will be written. The generated VTK files will be detected as a timeseries in ParaView and can imported very easy.

Generated Output

The generated VTK files also contains the speed value for each vehicle which can rendered for every timestep.

Datei:Vtk_example.png


To get a more realistic output it's possible to load a 3D model of each vehicle instead of the basic point. In order to do that you have to define different models for your own. Another interesting fact is that you have the opportunity to build videos or create streamlines of your simulation.