chraibi / fdsvismap

Tool for waypoint-based verification of visibility in the scope of performance-based fire safety assessment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FDSVisMap

Tool for waypoint-based verification of visibility in the scope of performance-based fire safety assessment

Installation

Still to come ...

Usage Example

# Import fdsvismap module
from fdsvismap import VisMap

# Set path for FDS simulation directory and background image
sim_dir = 'fds_data'
bg_img = 'misc/floorplan.png'
# Create instance of VisMap class
vis = VisMap(sim_dir, max_vis=30, min_vis=10)

# Add background image
vis.add_background_image(bg_img) #sad

# Set starpoint and waypoints along escape route
vis.set_start_point(1, 1)
vis.set_waypoint(8, 5.5, 3, -2)
vis.set_waypoint(10, 6, 3, -1)
vis.set_waypoint(17, 0, 5, 2)

# Set times when the simulation should be evaluated
vis.set_times([0, 60, 120])

# Do the required calculations to create the Vismap 
vis.compute_all()

# Plot time agglomerated absolute boolean vismap
vis.plot_time_aggl_abs_bool_vismap()

About

Tool for waypoint-based verification of visibility in the scope of performance-based fire safety assessment

License:GNU General Public License v3.0


Languages

Language:Python 100.0%