collision_free_speed_v2

Contents

collision_free_speed_v2#

Module Contents#

class CollisionFreeSpeedModelV2[source]#

Collision Free Speed Model V2

This is a variation of the Collision Free Speed Model where geometry and neighbor repulsion are individual agent parameters instead of global parameters.

A general description of the Collision Free Speed Model can be found in the originating publication https://arxiv.org/abs/1512.05597

A more detailed description can be found at https://pedestriandynamics.org/models/collision_free_speed_model/

class CollisionFreeSpeedModelV2AgentParameters[source]#

Agent parameters for Collision Free Speed Model V2.

See the scientific publication for more details about this model https://arxiv.org/abs/1512.05597

Note

Instances of this type are copied when creating the agent, you can safely create one instance of this type and modify it between calls to add_agent

E.g.:

positions = [...] # List of initial agent positions
params = CollisionFreeSpeedModelV2AgentParameters(v0=0.9) # all agents are slower
for p in positions:
    params.position = p
    sim.add_agent(params)
position[source]#

Position of the agent.

time_gap[source]#

Time constant that describe how fast pedestrian close gaps.

v0[source]#

Maximum speed of the agent.

radius[source]#

Radius of the agent.

journey_id[source]#

Id of the journey the agent follows.

stage_id[source]#

Id of the stage the agent targets.

strength_neighbor_repulsion[source]#

Strength of the repulsion from neighbors

range_neighbor_repulsion[source]#

Range of the repulsion from neighbors

strength_geometry_repulsion[source]#

Strength of the repulsion from geometry boundaries

range_geometry_repulsion[source]#

Range of the repulsion from geometry boundaries

position: tuple[float, float] = (0.0, 0.0)[source]#
time_gap: float = 1.0[source]#
v0: float = 1.2[source]#
radius: float = 0.2[source]#
journey_id: int = 0[source]#
stage_id: int = 0[source]#
strength_neighbor_repulsion: float = 8.0[source]#
range_neighbor_repulsion: float = 0.1[source]#
strength_geometry_repulsion: float = 5.0[source]#
range_geometry_repulsion: float = 0.02[source]#
class CollisionFreeSpeedModelV2State(backing)[source]#
property time_gap: float[source]#
Return type:

float

property v0: float[source]#

Maximum speed of this agent.

Return type:

float

property radius: float[source]#

Radius of this agent.

Return type:

float

property strength_neighbor_repulsion: float[source]#

Strength of the repulsion from neighbors of this agent.

Return type:

float

property range_neighbor_repulsion: float[source]#

Range of the repulsion from neighbors of this agent.

Return type:

float

property strength_geometry_repulsion: float[source]#

Strength of the repulsion from geometry boundaries of this agent.

Return type:

float

property range_geometry_repulsion: float[source]#

Range of the repulsion from geometry boundaries of this agent.

Return type:

float