1 Introduction

Pedestrian or crowd dynamics has been studied via varied modeling approaches, from microscopic to macroscopic scales. One of the most successful microscopic scale approaches was by modeling pedestrian motion through social or behavioural forces, see [8], which gave insights on self-organisation and collective behaviour of pedestrians like lane formation and bottlenecks. Other agent-based models have also been developed in this scale, for example, in [4]. Macroscopic modeling of the crowd using fluid dynamic equations was introduced by Henderson in [10]. Hughes, followed by others, developed this further via the idea of a potential function in the domain to incorporate more geometric information, see [6, 12]. More macroscopic models are seen in [5, 14]. Elaborate reviews of the different models along with a discussion of their advantages and limitations can be found in [1, 9].

In a social environment, humans encounter stationary or moving obstacles while maneuvering various spaces to reach their destinations. Different voluntary and involuntary strategies are used by humans to avoid collisions in such scenarios. An understanding of when and whether a collision will occur is essential, see [3]. This information forms the basis of collision avoidance models, as seen in [2]. Extensive research on pedestrian interactions with moving obstacles is still limited. In this work, we propose a model to study such interactions in shared spaces. The macroscopic model for pedestrian motion is combined with the proposed kinematic equations of obstacle motion wherein the feedback force terms are modeled via Hughes approach of potential functions obtained through an eikonal equation. For the numerical solutions, an immersed boundary approach is used along with the mesh-free particle method, as seen in [5]. In Sect. 2, we describe the models for pedestrian and obstacle motion. Sect. 3 explains the numerical method briefly. In Sect. 4, we see some results of the numerical simulation for different cases.

2 Models

2.1 Hydrodynamic Model for Pedestrian Motion

The model for pedestrian motion considered is as developed in [5], combining a social force model [8] to a Hughes-type model [12]. The hydrodynamic model equations for the evolution of density ρ and velocity u are:

$$\displaystyle \begin{aligned} \partial_t \rho + \nabla_x . ( \rho u) & = 0 \, , \\ \partial_t u + (u.\nabla_x)u & = G(x,u,\rho) + \, \int F(x-y, u(x)-u(y)) \, \rho(y) \, dy \, . {} \end{aligned} $$
(1)

These are coupled to the eikonal equation: f(ρ(x)) ||∇ϕ|| = 1 , x ∈ Ω. The force terms in (1), G and F, called the desired acceleration term and the interaction force term, respectively, are defined as:

$$\displaystyle \begin{aligned} G(\mathbf{x},\mathbf{v},\rho) = \frac{1}{T} \left( -f(\rho) \frac{\nabla \phi(\mathbf{x})}{||\nabla \phi(\mathbf{x})||} - \mathbf{v} \right), \quad F(\mathbf{x},\mathbf{v}) = -\nabla_x U \, , {} \end{aligned} $$
(2)

where the potential U with repulsive strength C r and length scale l r is given by, \(U = C_r \, \exp \left ( -\frac {|x-y|}{l_r}\right )\). We note that a more general F with dependence on both x and v can be used instead of ∇x U in (2). The velocity-density relation used is f(ρ(x)) = u max(1 − ρ(x)∕ρ max), where u max and ρ max are the maximum velocity and density. We refer to [5] for more details.

2.2 Model for Obstacle Motion

The obstacle motion is governed by kinematic equations for position and velocity. The passive obstacles follow a fixed trajectory defined by the equation: \(\frac {dx^O}{dt}=(v_x^O , v_y^O)\) with \(v_x^O=-\alpha \) and \(v_y^O=A \, cos(\omega t)\) where α is a positive constant for left moving obstacle and A is the amplitude and ω the frequency of oscillatory motion of the obstacle.

The equations for the dynamic obstacle, which interacts with the pedestrians and changes its trajectory or speed, following the convention in pedestrian model, are:

(3)

which are coupled to the obstacle’s eikonal equation, f O(ρ(x)) ||∇ϕ O|| = 1 , x ∈ Ω. Here, \(x^O_i\) and \(v^O_i\) are the position and velocity of the mid-point of the leading edge of the ith obstacle and ρ i is evaluated at \(x^O_i\) by interpolating the density of pedestrians. x j and v j are position and velocity of jth neighbour in the list N p of pedestrians in a circle of radius R centered at \(x^O_i\). Also, we define F O, G O and f O similar to F, G and f as above.

3 Numerical Method

The model equations for pedestrians and obstacle(s) are solved using a mesh-free particle method using least square approximations, see [17]. For this, the hydrodynamic equations in (1) are rewritten in a Lagrangian form as:

(4)

where dV j is the local area around a neighbouring particle. The kinematic equations of the obstacle(s) in (3) and eikonal equations are coupled to (4) to solve the system completely. An explicit Euler time discretization scheme is used for solving the systems (3) and (4).

The Lagrangian equations are solved on a mesh-free cloud of particles. Furthermore, to solve the eikonal equation, we use an independent structured or unstructured grid on the domain of interest. Information is exchanged between the mesh-free grid and the eikonal grid via interpolation techniques. The eikonal equation is solved by a fast marching method [13, 15]. The boundary conditions of the eikonal equation contain information about the environment, like the position of walls or obstacles. A moving obstacle is treated like an immersed boundary in the eikonal grid, with activation-deactivation of grid points according to the position of the obstacle.

4 Results

Using the numerical method described, we solved the above model equations to analyze the collision-avoidance behaviour of pedestrians and moving passive or dynamic obstacles. We consider a two-dimensional domain of length 100 units and width 50 units for our numerical simulations. The pedestrians are located at the left end of the domain. The right and left boundaries act as exits for the pedestrians and obstacle(s), respectively. Initial pedestrian density is taken as ρ = 1 ped/m2. A fixed time step of 0.002 is used for the explicit time integration scheme.

4.1 Case 1: Passive Obstacle

Passive moving obstacles do not have a feedback interaction with the pedestrians and follow pre-defined trajectory. We considered two different scenarios, pure translation and translation combined with oscillation, and compared with the case of a stationary obstacle. The left and middle subfigures in Fig. 1 show the case where a pedestrian group interacts with a passive obstacle in translation. We observed that when pedestrians interact with a passive obstacle(s), they adjust their path to avoid collision with the obstacle. The path adjustment is made well in advance than the time instance of a head-on collision, using the information available via the eikonal solution. The presence of a moving obstacle slows down the pedestrians, in terms of the time taken to navigate the domain, when compared to their behaviour in the presence of a static obstacle. This implies that the pedestrians exit the domain faster in the presence of a stationary obstacle and hence the total density of pedestrians in the domain decreases faster with time as seen in the density-time plot in Fig. 1. This is expected as they have to adjust their path and speed continuously to move forward.

Fig. 1
figure 1

Pedestrian interaction with a passive moving obstacle shown as red rectangle at time t = 10 s (left) and t = 20 s (middle). (Right) Number of pedestrians-time graph for the three different cases - stationary obstacle, passive obstacle in translation, passive obstacle in translation and oscillation

4.2 Case 2: Dynamic Obstacle

In the case of a dynamic moving obstacle, both the obstacle and pedestrians actively try to avoid collisions with each other since there is a feedback interaction via the force terms (cf. (1) and (3)). Figure 2 shows a scenario wherein a group of pedestrians interact with a dynamic obstacle. We observe that, though the pedestrians and obstacle(s) undergo path and speed changes, the collision avoidance mechanism is primarily via change of path by pedestrians and change of speed by obstacle(s). Owing to the two-way interactions here, in comparison to one way interaction in the case of passive obstacle, the changes in trajectory of pedestrians is more smoother, continuous and less abrupt. This leads to lesser tendency of having high density of pedestrian crowd near the corners of the leading edge of the obstacle.

Fig. 2
figure 2

Pedestrian interaction with a dynamic moving obstacle (red rectangle) at time t = 5 s (left), t = 20 s (middle) and t = 30 s (right). Note that the green markers denote the Lagrangian mesh-free grid points and not the physical pedestrians

5 Conclusion

We have successfully coupled a hydrodynamic model for pedestrian motion with simple kinematic equations for moving obstacles via eikonal equations. Our model satisfactorily replicates the collision-avoidance patterns observed in experimental scenarios like in [11]. But being a macroscopic model, only moderate to high-density scenarios can be studied and it is not possible to analyze microscopic behavioural patterns. We can further study the path and speed changes observed and make quantitative comparisons with other data, for example in [7, 16]. Also, exhaustive studies by changing the size or shape of the obstacle and of the domain can be conducted. We note here that the numerical method used is particularly efficient to employ in complex environments and changes in geometries. For more accurate results, parameters need to be estimated from experimental or real data. Moreover, an extension of the given model to pedestrian-vehicular traffic interactions will be presented in a more elaborate future publication.