Evacuation
Collection of Evacuation
objects. Next to agent-class specific data (such as
trajectories) lots of other data such as FED-data is provided via this class.
- ivar times:
List of all time steps of the simulation.
- ivar z_offsets:
The offset in z-direction for each mesh where the evac plane lays.
- ivar all_agents:
Number of all agents per time step.
- ivar agents_inside_mesh:
Number of all agents per time step inside a specific mesh.
- ivar number_of_deads:
Number of dead agents per time step.
- ivar fed_max:
FED max per time step.
- ivar fed_max_alive:
FED max alive per time step.
- ivar exit_counters:
Exit counts per time step.
- ivar target_exit_counters:
Target exit counts per time step.
- ivar door_counters:
Door counts per time step.
- ivar target_door_counters:
Target door counts per time step.
Classes:
|
Container to store evac data from evac simulations with FDS. |
- class fdsreader.evac.evacuation.Evacuation(class_name: str, quantities: List[Quantity], color: Tuple[float, float, float])[source]
Container to store evac data from evac simulations with FDS.
- Variables:
class_name – Name of the evac class defined in the FDS input-file.
quantities – List of all quantities for which data has been written out.
color – Color assigned to the evac.
n_humans – Number of existing evacs for each timestep per mesh.
lower_bounds – Dictionary with lower bounds for each timestep with quantities as keys.
upper_bounds – Dictionary with upper bounds for each timestep with quantities as keys.
Attributes:
agent_heights
body_angles
data
Dictionary with quantities as keys and a list with a numpy array for each timestep which contains data for each person in that timestep.
id
positions
List with a numpy array for each timestep which contains the position of each evac in that timestep.
semi_major_axis
semi_minor_axis
tags
List with a numpy array for each timestep which contains a tag for each evac in that timestep.
Methods:
clear_cache
()Remove all data from the internal cache that has been loaded so far to free memory.
filter_by_tag
(tag)Filter all evacs by a single one with the specified tag.
get_data
(quantity)Returns a list with a numpy array for each timestep which contains data about the specified quantity for each person in that timestep.
has_quantity
(quantity)- property agent_heights: List[ndarray]
- property body_angles: List[ndarray]
- clear_cache()[source]
Remove all data from the internal cache that has been loaded so far to free memory.
- property data: Dict[str, List[ndarray]]
Dictionary with quantities as keys and a list with a numpy array for each timestep which contains data for each person in that timestep.
- filter_by_tag(tag: int)[source]
Filter all evacs by a single one with the specified tag.
- get_data(quantity: Quantity | str) List[ndarray] [source]
Returns a list with a numpy array for each timestep which contains data about the specified quantity for each person in that timestep.
- has_quantity(quantity: Quantity | str)[source]
- property id
- property positions: List[ndarray]
List with a numpy array for each timestep which contains the position of each evac in that timestep.
- property semi_major_axis: List[ndarray]
- property semi_minor_axis: List[ndarray]
- property tags: List[ndarray]
List with a numpy array for each timestep which contains a tag for each evac in that timestep.