godisreal / test-crowd-dynamics

Testing Result of Crowd Evacuation Behavior by Using FDS+Evac
4 stars 2 forks source link

A simple visualizer for Evac (prt5 data) #14

Open godisreal opened 3 years ago

godisreal commented 3 years ago

I have got a simple visualizer for Evac prt5 file by using pygame (SDL for Python).
https://github.com/godisreal/test-crowd-dynamics/tree/master/visualize_evac The program is developed from a python script that reads evac prt5 data, and it was initially provided by Topi in this thread. @sbenkorichi (Thank Salah Benkorichi for sending this thread to me.).

https://groups.google.com/forum/m/?utm_medium=email&utm_source=footer#!msg/fds-smv/dFUWR00T6hw/pntxx0rABgAJ

Now evac output data (prt5) can be alternatively visualized by pygame (SDL for python) in 2D style. This could be supplementary to smokeview for visualizing evac output data, and it is useful to draw the agents' compete tracjactory as many users required.

In addition we modify xyz.shape = (7,nplim) for evac prt5 data.
Maybe xyz.shape = (3,nplim) on Topi's script is just for Lagrangian Particles. I haven't got time to test it, and comments are much welcome.

Currently this program has no GUI, and it only reads one evacuation mesh and visualize the simulation data in two-dimensional space, and it is easy to further develop this small program for multiple evacuation meshes. A small GUI is also preferable. Comments are much welcome.

This small tool is now uploaded in the following repo. https://github.com/godisreal/evac-prt5-tool