Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Phys., 17 October 2025

Sec. Social Physics

Volume 13 - 2025 | https://doi.org/10.3389/fphy.2025.1657927

This article is part of the Research TopicInnovative Approaches to Pedestrian Dynamics: Experiments and Mathematical ModelsView all 8 articles

Hydrodynamic Cucker-Smale model with time delay and obstacle avoidance

  • 1Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China, Chengdu, China
  • 2Institute of Fundamental and Frontier Sciences and Department of Mathematics, University of Electronic Science and Technology of China, Chengdu, China
  • 3Institute of Arts and Sciences, Oshamambe Division, Tokyo University of Science, Oshamambe, Hokkaido, Japan

We study a hydrodynamic Cucker-Smale-type model incorporating both time delays and obstacle potentials. The model governs the evolution of velocity and density fields of the system, where delayed interactions drive alignment and obstacle potentials account for responses to obstacles or predators. We further extend the framework to two-species systems. To numerically solve the model, we design a high-order finite volume method based on a Lax–Friedrichs numerical flux with fifth-order weighted essentially non-oscillatory reconstruction and third-order Runge–Kutta time discretization, ensuring numerical stability and high-order accuracy. Numerical experiments confirm the stability and accuracy of the proposed scheme and illustrate how time delays and obstacle potentials, under specific communication kernels and initial conditions, affect the emergence of flocking or non-flocking behavior.

1 Introduction

Flocking refers to the spontaneous emergence of coordinated collective motion among self-propelled agents, driven by local alignment of velocities and spatial cohesion [1,2]. This phenomenon is widely observed in nature, including bird flocks, fish schools, and insect swarms [36]. It also inspires algorithmic design in robotics, autonomous vehicles, and swarm control systems [7,8].

Classical models capturing flocking dynamics often use a particle-based framework. Reynolds’ Boids model [9] introduced simple behavioral rules (alignment, cohesion, separation) to generate realistic group motion. The Vicsek model [8] further simplified this by using noisy velocity alignment, revealing phase transitions between ordered and disordered states. The Cucker–Smale (CS) model [10] formalized alignment interactions using nonlocal communication kernels, laying the foundation for rich mathematical theory, including kinetic and hydrodynamic continuum descriptions [1115].

While many Cucker–Smale (CS) type models assume instantaneous interactions among agents, real-world agents typically respond to information from their surroundings with a certain processing or reaction delay τ>0 [16]. Recent studies have increasingly focused on the influence of delays, with the majority of them conducted within the framework of particle-based models [1620]. For instance, Du [21] analyzed the delayed CS system in a harmonic potential and showed that delay affects the conditions for flocking. Choi and Haskovec [18] established sufficient conditions for global regularity and flocking, where for non-integrable kernels the delay can be arbitrary, whereas for integrable kernels the results generally require small delays [18]. shows that sufficiently small delays are necessary to satisfy the flocking condition. While delayed CS models have been studied at the hydrodynamic level [22], most results remain purely analytical. In contrast, existing simulations primarily focus on the particle level [19,20], but numerical investigations at the continuum scale remain limited.

In addition to delayed alignment, repulsive potentials are key to realistic swarm models, maintaining spacing, avoiding obstacles, and simulating predator evasion [2330]. Empirical studies show that fish schools and bird flocks react to static obstacles by deflecting, slowing down, and regrouping, while preserving cohesion and direction [28,30]. While previous studies have analyzed obstacle-induced behaviors such as group splitting and path deviation in swarm models [26,29], the impact of obstacles in hydrodynamic Cucker–Smale systems remains less understood. Aung et al. [31] showed that obstacles and spatial heterogeneity can enhance local interactions and global order. In this work, we introduce stationary obstacles as localized repulsive potentials and focus on their interaction with time delay in shaping aggregation and pattern formation.

Incorporating both time delay and obstacle-induced repulsion potentials into the hydrodynamic Cucker–Smale (CS) model significantly increases the mathematical and numerical challenges. Specifically, such coupled models may develop singularities such as finite-time density concentration, blow-up of velocity gradients, or loss of regularity in the solution. Although particle-based simulations can capture some detailed behaviors, they typically suffer from high computational costs and limited scalability in high-dimensional or large-scale systems [32]. Therefore, continuum or hydrodynamic modeling offers a more feasible and efficient framework for simulating large-scale collective behavior. Several works have proposed high-order numerical methods for hydrodynamic CS models in the absence of time delay and obstacle effects [24,33,34]. However, numerical methods that simultaneously address both time-delayed interactions and obstacle-induced repulsionpotentials remain largely unexplored.

This work aims to contribute to this gap by studying hydrodynamic Cucker–Smale models that combine time delay and obstacle effects through the numerical simulation. Compared with existing studies that often consider these factors separately, we provide a numerical investigation of their joint influence and furthermore explore the solution behavior of the two-species scenario. In this work, we design a high-order finite volume scheme to simulate hydrodynamic Cucker–Smale models incorporating both time delays and obstacle-induced repulsive potentials. The method combines Lax–Friedrichs flux, fifth-order weighted essentially non-oscillatory (WENO) reconstruction, and third-order Runge–Kutta time discretization. Nonlocal alignment terms are computed efficiently by using the fast Fourier transforms (FFT). The proposed framework provides a numerical framework to study delayed and obstacle-induced potential hydrodynamic flocking models. We apply the scheme to one-dimensional single- and two-species systems, as well as a two-dimensional single-species setting. The simulations highlight how delay and obstacle interactions affect flocking, avoidance, and the onset of singular behavior.

Numerical experiments demonstrate that time delay can suppress flocking and may induce finite-time singularities, such as divergence in velocity gradients or blow-up of density. Repulsive interactions promote obstacle avoidance but tend to disrupt alignment, often contributing to singular behavior. Moreover, the presence of fixed obstacles combined with delay accelerates singularity onset and spatially shifts aggregation closer to the obstacle. These findings reveal the intricate, nonlinear interactions between delay and repulsion in collective behavior. These results illustrate the nonlinear interaction of delay and obstacle effects in shaping collective behavior.

The remainder of the paper is organized as follows. Section 2 introduces the hydrodynamic Cucker–Smale model with time delays and repulsive obstacle potentials, including its extension to two-species systems. Section 3 describes our high-order finite volume scheme, detailing the WENO reconstruction, Runge–Kutta time discretization, and FFT acceleration. Section 4 presents numerical simulations illustrating the effects of delays and repulsive potentials on flocking, obstacle avoidance, and singularity formation. Section 5 concludes the paper.

2 The model

In this section, we introduce hydrodynamic Cucker–Smale models incorporating both time delays and repulsive obstacle potentials, formulated for both single-species and two-species systems.

2.1 Single-species model with delay and obstacle

The single-species hydrodynamic Cucker–Smale system with time delay and obstacle-induced repulsionpotential is given by

tρ+ρu=0,tρu+ρuu=Rdϕ|xy|ρτyρxuτyuxdy+ρxRx,(1)

for t0 and xRd, where d denotes the spatial dimension. The functions ρ(x,t) and u(x,t) represent the density and velocity fields, respectively. The delayed quantities are defined as ρτ(y)ρ(y,tτ) and uτ(y)u(y,tτ), where τ0 is a constant denoting the time delay in communication and information processing. The communication kernel ϕ(|xy|) is a smooth, radially symmetric function encoding the strength of velocity alignment between agents. The term R(x) models a repulsive force field generated by static obstacles in the environment.

In this work, we adopt the fat-tailed communication kernel

ϕr=δ1+r2θ,(2)

where θ>0 controls the decay rate of interactions with respect to distance, and the constant δ is chosen such that 0ϕ(r)dr=1, and we model the obstacle force R(x) as the negative gradient of a localized Gaussian-type repulsive potential:

Rx=Φx,withΦx=η0exp|xx0|2l02,(3)

where η0 and l0 control the strength and spatial scale of the repulsion, respectively, and x0 denotes the center of the obstacle.

While these specific forms are chosen in this study, alternative kernels and potentials (see Remark 2.1) may be considered depending on the modeling context or application.

Remark 2.1. (Alternative communication kernels and obstacle potentials). For communication kernels, besides fat-tailed ones, compactly supported kernels such as

ϕr=1+r21r2χ0,1r,

the singular communication kernels like ϕ(r)=rα, α>0, and the exponentially decaying kernels have been widely used [1,34,35].

For obstacle potentials, Gaussian repulsion is one of several possible choices. A widely used alternative is the attractive–repulsive potential function

Φx=|x|aa|x|bb,

proposed in [24,36], offers a flexible shape controlling repulsion strength and range, and is often used in the study of obstacle problems. Attractive–repulsive hydrodynamics for collective consensus. These alternative choices affect the dynamics and numerical methods, and should be selected according to the specific application context.

2.2 Two-species model with delay and obstacle

We extend the model to a two-species system, where each species experiences both intra-species and inter-species alignment, possibly with different time delays.

Let ρα(x,t) and uα(x,t) denote the density and velocity fields of species α. The governing equations are:

tρα+ραuα=0,tραuα+ραuαuα=Sαx,t,(4)

where the source term Sα(x,t) captures the nonlocal interactions and external obstacle force, given by

Sαx,tβ=12Rdϕαβ|xy|ραxρβ,τβyuβ,τβyuαxdy+ραxRαx,

where α,β{1,2}, ρα(x)ρα(x,t) and uα(x)uα(x,t) denote the density and velocity of species α, respectively. The delayed terms are given by ρβ,τβ(y)ρβ(y,tτβ) and uβ,τβ(y)uβ(y,tτβ), with τβ>0 the communication delay of species β. The kernel ϕαβ(|xy|) characterizes the influence of species β on α: ϕαα and ϕββ describe intra-species interactions, while ϕαβ and ϕβα (αβ) correspond to inter-species alignment. Existing theoretical analyses have mostly focused on the symmetric interaction case (ϕαβ=ϕβα). In our numerical simulations, we will adopt the symmetric interactions ϕαβ(r)=ϕβα(r) in all examples except Example 4.8. The term Rα(x) accounts for local repulsive effects from external obstacles. As in the single-species case, it is modeled by the gradient of a repulsive potential:

Rαx=Φαx,Φαx=ηαexp|xxα|2lα2,(5)

where xα is the center of the obstacle, and ηα,lα control the strength and range of repulsion.

Remark 2.2. (Conservation Properties). The model preserves the total mass of each species under suitable boundary conditions. Define the total mass of species α as

MtαIMαt,withMαtRdραx,tdx,αI,

where I={1} for a single-species system and I={1,2} for a two-species system. Then each Mα(t) is conserved over time:

ddtMαt=0,t>0,αI.

Define the total momentum as

PtαIPαt,withPαtRdραx,tuαx,tdx.

In the absence of communication delays and obstacles, the symmetry of the interaction kernels ϕαβ guarantees conservation of total momentum:

ddtPt=0,t>0.

3 Numerical scheme

In this section, we develop a numerical scheme for the hydrodynamic model with time delays and repulsive obstacle potentials. To accurately capture sharp solution features while minimizing numerical dissipation, we adopt a fifth-order WENO reconstruction combined with a local Lax–Friedrichs numerical flux. Time discretization is performed using a third-order Runge–Kutta method, which ensures stability and maintains high-order accuracy. To efficiently compute the nonlocal alignment term, we employ the FFT-based convolution, significantly reducing computational cost.

3.1 Finite volume method for one-dimensional case

Consider a one-dimensional periodic domain Ω=[a,b], divided into N uniform cells of width Δx=(ba)/N. Let xj=a+(j1/2)Δx denote the center of cell j for j=1,,N, and define the corresponding cell interval by Ij=xj1/2,xj+1/2,where xj±1/2=xj±Δx2.

ρjt1ΔxIjρx,tdx,mjt1ΔxIjρx,tux,tdx,

with the velocity defined by uj(t)=mj(t)/ρj(t). We denote the cell-averaged variables by Uj(t)=ρj(t)mj(t). The semi-discrete finite volume formulation reads:

dUjdt=1ΔxFj+1/2Fj1/2+0Sj,

where Fj±1/2 are numerical fluxes, and Sj is the source term incorporating nonlocal alignment and obstacle effects. For convenience, we define the spatial operator L(Uj) as

LUj1ΔxFj+12Fj12+0Sj.(6)

3.1.1 Lax–Friedrichs flux with fifth-order WENO reconstruction

In our scheme, we consider the pressureless Euler-type flux function:

fU=ρuρu2,U=ρm,u=mρ.

The Lax–Friedrichs numerical flux at the cell interface xj+12 is defined by

Fj+12=12fUj+12+fUj+12+λj+122Uj+12+Uj+12,(7)

where Uj+12 and Uj+12+ are the fifth-order WENO reconstructed values from the left and right, respectively, and λj+12 is the maximum absolute eigenvalue of the Jacobian at the interface, defined by

λj+12=maxUUj+12,Uj+12+eigfU=maxUUj+12,Uj+12+|u|,(8)

where fU denotes the Jacobian matrix of the flux function f(U) with respect to the conserved variables U, evaluated at the intercell state Uj+12, and eig() denotes the eigenvalue of a matrix.

Remark 3.1. The wave speed λj+12 in Equation 7 can be chosen locally, as in Equation 8, to reduce numerical diffusion and capture local flow features, or globally as λ=maxj|uj|, which is more diffusive but more robust near strong gradients or discontinuities. Unless stated otherwise, we use the local wave speed to balance accuracy and stability.

To construct a high-order accurate scheme, we apply the fifth-order WENO scheme component-wise to each conservative variable in U using a five-point stencil {Uj2,Uj1,Uj,Uj+1,Uj+2}, which forms three three-point substencils:

Uj2,Uj1,Uj,Uj1,Uj,Uj+1,Uj,Uj+1,Uj+2.

Each substencil produces a third-order approximation qk=pk(xj+1/2). The final reconstructed value at the interface is a weighted sum:

Uj+1/2=k=02ωkqk,

where the nonlinear weights ωk are computed by

ωk=ω̃kl=02ω̃l,ω̃k=dkε+βk2.

Here, dk are linear weights, ε is a small positive parameter, and βk are smoothness indicators as defined in [37]:

β0=1312Uj22Uj1+Uj2+14Uj24Uj1+3Uj2,β1=1312Uj12Uj+Uj+12+14Uj1Uj+12,β2=1312Uj2Uj+1+Uj+22+143Uj4Uj+1+Uj+22.

For the right-biased value Uj+1/2+, the same procedure is applied to the reversed stencil {Uj+3,Uj+2,Uj+1,Uj,Uj1}. The WENO scheme achieves fifth-order accuracy in smooth regions while maintaining stability near discontinuities. The spatial order of accuracy has been confirmed numerically using smooth initial conditions; see Section 4.1.

3.1.2 Source term: nonlocal alignment and obstacle force

The discrete source term evaluated at the cell interval Ij is given by

Sj=kϕ|xjxk|ρjρkτukτujΔx+ρjRj,(9)

where ρkτρk(tτ), ukτuk(tτ), and Δx denotes the uniform cell width of the finite volume mesh. The function ϕ() is the communication kernel defined in Equation 2. To facilitate efficient computation of the nonlocal alignment term in Equation 9, we introduce the auxiliary quantities:

Ajkϕ|xjxk|ρkτukτΔx,Bjkϕ|xjxk|ρkτΔx.

Using these, the discrete source term can be reformulated as

Sj=ρjAjujBj+ρjRj.(10)

We first focus on the efficient computation of the alignment contribution ρj(AjujBj) in Equation 10. Under periodic boundary conditions, these convolutions can be efficiently evaluated using the discrete Fast Fourier Transform (FFT). Specifically, the convolution of two periodic sequences fj and gj is given by

fgj=kfkgjk,whichcanbecomputedviafg=F1FfFg,

where F and F1 denote the discrete Fourier transform and its inverse, respectively, and the multiplication is performed element-wise in Fourier space. This approach reduces the computational complexity of evaluating each convolution from O(N2) to O(NlogN), which is especially beneficial for large-scale simulations.

The second component of the source term, Rj, accounts for obstacle-induced repulsion potential and is modeled as the discrete gradient of a smooth obstacle potential field:

RjxΦxj,

where Φ(x) is given by Equation 3, and the gradient xΦ is discretized using central finite differences.

3.1.3 Time discretization

For the time discretization, we apply the third-order Runge–Kutta method of Shu and Osher (SSP-RK3) [3840], which offers third-order temporal accuracy and is known for its numerical stability to the semi-discrete system To advance the semi-discrete system in time, we adopt the third-order strong stability-preserving Runge–Kutta (SSP-RK3) method [38], applied to the system.

dUjdt=LUj,

where L(Uj) is the spatial operator defined in Equation 6.

The SSP-RK3 scheme advances Uj from tn to tn+1=tn+Δt via the following three-stage procedure:

Uj1=Ujn+ΔtLUjn,Uj2=34Ujn+14Uj1+ΔtLUj1,Ujn+1=13Ujn+23Uj2+ΔtLUj2.

For stability, the time step is chosen to satisfy the CFL condition

ΔtCFLΔxmaxjλj+12,(11)

where CFL(0,1) is a prescribed constant (e.g., CFL=0.7) and local wave speed λj+12 as defined in Equation 8. This high-order scheme ensures third-order accuracy in time and is validated in Section 4.1 via convergence tests with smooth initial data.

3.2 Finite volume scheme for two-dimensional case

We consider a two-dimensional periodic domain Ω=[ax,bx]×[ay,by], which is discretized into Nx×Ny uniform cells with mesh sizes Δx=(bxax)/Nx, Δy=(byay)/Ny. Denote the center of cell (i,j) by xi,j=(xi,yj), where xi=ax+i1/2Δx,yj=ay+j1/2Δy, for i=1,,Nx, j=1,,Ny. The control volume Ci,j is defined as the rectangular cell centered at xi,j:

Ci,j=xiΔx2,xi+Δx2×yjΔy2,yj+Δy2.

Let the cell averages of the conserved variables be defined as

Ui,jt=ρi,jtmi,jxtmi,jyt1ΔxΔyCi,jρx,y,tρx,y,tux,y,tρx,y,tvx,y,tdxdy.

The semi-discrete finite volume scheme is given by

ddtUi,j=1ΔxFi+12,jxFi12,jx1ΔyFi,j+12yFi,j12y+0Si,j,

where Fx,Fy are numerical fluxes in the x- and y-directions, and Si,j is the discrete source term. For convenience, we define the two-dimensional spatial operator D(Uij) as

DUij1ΔxFi+12,jxFi12,jx1ΔyFi,j+12yFi,j12y+0Si,j.(12)

3.2.1 2D Lax–Friedrichs flux with fifth-order WENO reconstruction

In our scheme, we consider pressureless Euler-type fluxes with the conserved variable and velocity field:

U=ρmxmy,u=1ρmxmy=uv.

The physical fluxes in the x- and y-directions are given by

FxU=mxmx2ρmxmyρ,FyU=mymxmyρmy2ρ.

The Lax–Friedrichs numerical fluxes at cell interfaces are:

Fi+12,jx=12FxUi+12,j+FxUi+12,j+λi+12,jx2Ui+12,j+Ui+12,j,Fi,j+12y=12FyUi,j+12+FyUi,j+12+λi,j+12y2Ui,j+12+Ui,j+12.

The reconstructed states Ui±12,j±, Ui,j±12± at each interface are obtained using fifth-order WENO reconstruction in the respective spatial direction. The local characteristic wave speeds are given by the largest eigenvalues of the Jacobian matrices FxU,FyU:

λi+12,jx=max|ui+12,j|,|ui+12,j+|,λi,j+12y=max|vi,j+12|,|vi,j+12+|.(13)

Remark 3.2. Alternatively, a global maximum wave speed

λ=maxi,j|ui,j|,|vi,j|

which is more diffusive but more robust near strong gradients or discontinuities.

We now describe the treatment of the source term in the semi-discrete scheme. As in the one-dimensional case, the discrete source term at the control volume Ci,j consists of a nonlocal alignment interaction and an obstacle-induced repulsion force:

Si,j=k,lϕ|xi,jxk,l|ρi,jρk,lτuk,lτui,jΔxΔy+ρi,jRi,j,(14)

where the delayed fields are defined by ρk,lτρk,l(tτ),uk,lτuk,l(tτ). To facilitate efficient computation of the nonlocal alignment term in Equation 14, we introduce the auxiliary quantities:

Ai,j=k,lϕ|xi,jxk,l|ρk,lτuk,lτΔxΔy,Bi,j=k,lϕ|xi,jxk,l|ρk,lτΔxΔy.

Using these, the source term Equation 14 can be written more compactly as:

Si,j=ρi,jAi,jui,jBi,j+ρi,jRi,j.(15)

We first focus on the alignment contribution ρi,jAi,jui,jBi,j in Equation 15. Under periodic boundary conditions, it can be efficiently evaluated using the Fast Fourier Transform (FFT). Next, we consider the obstacle-induced repulsion force Ri,j is modeled as the negative gradient of a smooth potential field Φ(x), evaluated at the grid point xi,j. It is discretized using central finite differences:

Ri,j=Φxi,j.

Consistent with the one-dimensional case (see Section 3.1.3), we adopt the third-order strong stability-preserving Runge–Kutta method (SSP-RK3) [38] for temporal discretization at each cell (i,j):

Ui,j1=Ui,jn+ΔtDUi,jn,
Ui,j2=34Ui,jn+14Ui,j1+ΔtDUi,j1,
Ui,jn+1=13Ui,jn+23Ui,j2+ΔtDUi,j2,

where D(Ui,j) is the spatial operator defined in Equation 12. The time step Δt is constrained by the CFL condition:

ΔtCFLminΔx,Δymaxi,jλi+12,jx,λi,j+12y,

where the wave speed λi+12,jx,λi,j+12y defined in Equation 13 and CFL(0,1).

3.3 Numerical conservation properties

In this section, we analyze the conservation properties of the proposed finite volume scheme. For clarity, the analysis is restricted to the one-dimensional case with periodic boundary conditions.

3.3.1 Mass conservation

Theorem 3.3. (Discrete mass conservation). The proposed finite volume scheme with fifth-order WENO reconstruction, Lax–Friedrichs flux, and SSP-RK3 time discretization exactly preserves the total mass under periodic boundary conditions:

iρin+1Δx=iρinΔx.

Proof. For convenience, we denote the first (density) component of the update operator L(Uj) defined in Equation 6 by L1(Uj), i.e.,

L1Uj1ΔxF̂j+121F̂j121,

where F̂j±121 denotes the first component of the numerical flux Fj±12 defined in Equation 7, corresponding to the mass flux.

Let ρin denote the cell average of density at time tn. The SSP-RK3 updates for density read:

ρi1=ρin+ΔtL1Uin,(16)
ρi2=34ρin+14ρi1+ΔtL1Ui1,(17)
ρin+1=13ρin+23ρi2+ΔtL1Ui2.(18)

Define the total mass at each stage as

M*iρi*Δx,for n,1,2,n+1.

By using the periodic boundary condition, we have

iF̂i+1/21F̂i1/21=0,

summing Equations 1618 over all i, we find:

M1=Mn,M2=Mn,Mn+1=Mn.

Thus, the scheme is exactly mass conservative.

3.3.2 Momentum conservation

Theorem 3.4. (Momentum Conservation). Under periodic boundary conditions and in the absence of delays and external forces, the proposed finite volume scheme with fifth-order WENO reconstruction, Lax–Friedrichs flux, and SSP-RK3 time discretization exactly preserves the total discrete momentum at each time step:

iρuin+1Δx=iρuinΔx.

Proof. We denote the second (momentum) component of the update operator L(Ui) defined in Equation 6 by L2(Ui), i.e.,

L2Ui1ΔxF̂i+122F̂i122+Si,

where F̂i±122 denotes the second component of the numerical flux Fi±12 defined in Equation 7, and Si is the discrete source term defined in Equation 9.

Let (ρu)in be the cell average of momentum at time tn. The SSP-RK3 scheme updates for momentum are given by:

ρui1=ρuin+ΔtLi2Un,(19)
ρui2=34ρuin+14ρui1+ΔtLi2U1,(20)
ρuin+1=13ρuin+23ρui2+ΔtLi2U2.(21)

Define the total momentum at each stage as

P*iρui*Δx,for n,1,2,n+1.

Under periodic boundary conditions, it is easy to see that:

iF̂i+122F̂i122=0.(22)

Therefore, the total contribution from the update operator reduces to the source term:

iL2UiΔx=iSiΔx.

In the special case when τ=0 and Ri=0, the source term Si defined in Equation 9 simplifies to

Si=jϕijρiρjujuiΔx,(23)

where ϕijϕ(|xixj|). Since ϕij=ϕji is symmetric in i,j, and (ujui)=(uiuj) is antisymmetric, the double sum satisfies

i,jϕijρiρjujui=i,jϕjiρjρiuiuj=i,jϕijρiρjujui.

This implies

i,jϕijρiρjujui=0.

Therefore, from Equation 23 we have

iSiΔx=i,jϕijρiρjujuiΔx2=0.(24)

Summing Equations 1921 over all i, in view of Equation 22 and Equation 24, we see that the total momentum is conserved during the time update, i.e.,

P1=Pn,P2=Pn,Pn+1=Pn.

Thus we obtain the conclusion.

Remark 3.5. When delay (τ>0) is presentτ>0, the source term involves past states ρjτujτ, breaking the symmetry required for momentum conservation. Similarly, nonzero obstacle forces Ri0 introduce additional asymmetries. As a result, the total momentum is no longer conserved. This loss of conservation is clearly observed in the numerical results of Example 4.3.

Remark 3.6. (Energy fluctuation). We introduce the energy fluctuation [32].

ΔEtRd×Rd|u(x)u(y)|22ρxρydxdy=MRd|u(x)u|2ρt,xdx,

where M=Rdρ(x)dx is the total mass and u1MRdu(t,x)ρ(t,x)dx denotes the mass–averaged velocity. In numerical experiments, we plot the energy fluctuation in Example 4.3 (see Figure 1) and observe that it tends to zero. This indicates that the numerical solution is stable. It should be emphasized that in this work we testify the stability of the numerical solution only from a experimental perspective, while a rigorous theoretical proof of stability will be left for future study.

Figure 1
Six graphs are arranged in two columns and three rows. Top row graphs show constant mass versus time as a horizontal line. Middle row graphs show momentum magnitude versus time, with slight fluctuations. Bottom row graphs show energy difference versus time, exhibiting a decreasing trend. The left column graphs cover ten units of time, while the right column graphs extend to sixty units. Each graph is labeled with its respective variable: Mass, |P|, or δE, and the x-axis is labeled Time.

Figure 1. Time evolution of total mass, momentum, and energy fluctuation for the three configurations considered in Example 4.3.

4 Numerical experiments

This section presents numerical simulations. Throughout all simulations, the interaction kernel is chosen as ϕ(r)=δ/(1+r2)θ,θ=3, where the constant δ is chosen such that 0ϕ(r)dr=1, and the CFL number is taken as 0.7, unless explicitly stated otherwise. Periodic boundary conditions are imposed in all cases. In Section 4.1, we first validate the spatial fifth-order and temporal third-order accuracy of the proposed scheme through convergence tests under two different configurations. In addition, we verify the conservation of mass and momentum through a dedicated numerical experiment, and assess the numerical stability of the scheme by monitoring the energy fluctuation. Then, in Section 4.2, we apply the numerical scheme to two models, leading to several interesting numerical observations. In total, seven numerical experiments are presented to investigate the effects of the delay parameter τ and the presence of obstacles on the emergence of collective behaviors such as flocking and non-flocking in both single-species and two-species systems.

4.1 Convergence and conservation tests

Example 4.1. (Spatial convergence).

To test the spatial accuracy of the fifth-order WENO reconstruction, we consider a smooth initial condition for the single-species system Equation 1, defined on the periodic domain [L/2,L/2] with L=2:

ρ0x=γ12+sinπxL,u0x1,

where the normalization constant γ1 is chosen such that L/2L/2ρ0(x)dx=1. We vary the number of cells as Nx=10,20,40,80 and set the time step according to ΔtΔx5/3, where Δx=L/Nx. We compute the cell averages and compare the numerical solution at time T=2 with the exact solution ρref and (ρu)ref.

As shown in Table 1, the L1 errors for ρ and ρu converge with an order approaching 5 as the grid is refined, where ρρrefL1=iΔx|ρiρref,i| and ρu(ρu)refL1=iΔx|(ρu)i(ρu)ref,i|. This confirms that the scheme achieves fifth-order spatial accuracy, consistent with the WENO reconstruction employed in the spatial discretization.

Table 1
www.frontiersin.org

Table 1. Accuracy test for Example 4.1 at t=2.

Example 4.2. (Temporal convergence). To assess the temporal accuracy of the third-order Runge–Kutta method, we consider a smooth initial condition for the single-species system Equation 1, defined on the periodic domain [L/2,L/2] with L=2:

ρ0x=γ2expx+L/42σ2+expxL/42σ2,u0x1,

where σ=0.2, and the normalization constant γ2 is chosen such that L/2L/2ρ0(x)dx=1. We fix the number of spatial cells at Nx=2000 and vary the time step Δt by adjusting the CFL number defined in Equation 11 accordingly.

As shown in Table 2, the L1 errors converge with an order approaching 3 as the CFL number decreases, confirming the third-order temporal accuracy of the Runge–Kutta scheme. The observed convergence order aligns well with the theoretical order of the time discretization.

Table 2
www.frontiersin.org

Table 2. Accuracy test for Example 4.2 at t=0.2.

Example 4.3. (Verification of conservation properties). To verify the theoretical results in Theorems 3.3 and 3.4, we present numerical simulations for the single-species system Equation 1 under three configurations: (a) without delay or obstacle, (b) with delay but no obstacle, and (c) with an obstacle force but no delay.

The initial data are set as

ρx,0=γ3cosπxL,ux,0=ccosπxL,

where the normalization constant γ3 is chosen so that L/2L/2ρ0(x)dx=1, and c=0.1 controls the velocity amplitude. The simulation is conducted on a periodic domain x[1,1] (i.e., L=2), with spatial resolution Nx=1800.

In the third scenario, we introduce an obstacle modeled as the gradient of a repulsive potential centered at x0=0, as defined in Equation 3:

Rx=Φx,withΦx=η0exp|xx0|2l02,

with repulsion parameters η0=0.01 and l0=0.5.

Figure 1 shows the time evolution of total mass, momentum, and energy fluctuation ΔE (defined in Remark 3.6) for each configuration, with the top, middle, and bottom panels displaying mass M(t)L/2L/2ρ(x,t)dx, momentum P(t)L/2L/2ρ(x,t)u(x,t)dx, and ΔE, respectively. Figure 1 displays the time evolution of total mass and momentum for each configuration. In each subfigure, the top panel shows the total mass M(t)L/2L/2ρ(x,t)dx, and the bottom panel shows the total momentum P(t)L/2L/2ρ(x,t)u(x,t)dx. The results confirm the theoretical predictions: mass is conserved with high accuracy in all cases, in agreement with Theorem 3.3. Momentum is preserved only in the absence of delay and obstacle, as stated in Theorem 3.4. In the presence of delay or obstacle force, the loss of symmetry in the source term leads to gradual momentum deviation, as anticipated in the accompanying Remark 3.5. Furthermore, Figure 1 illustrates the evolution of ΔE. In panels (a) and (b), ΔE approaches to zero by T=10, while in panel (c) it tends to zero around T=60. These results suggest that the scheme exhibits stable behavior under the considered scenarios.

4.2 Effects of delay and obstacle on flocking dynamics

4.2.1 Effects of delay and obstacle for single-species

First, we examine the effects of the time delay τ and obstacle force on the collective behavior and regularity of solutions in the single-species system Equation 1. The initial data is given by

ρx,0=γ3cosπxL,ux,0=csin2πxL,

where the normalization constant γ3 is chosen such that L/2L/2ρ(x,0)dx=1, and the parameter c>0 controls the amplitude of the initial velocity. The simulation is performed on the periodic domain [1,1], i.e., L=2, with the number of cell Nx=1800.

Two Examples 4.4 and 4.5 are presented below. In the first, no obstacle is introduced, and we focus on the effects of delay with varying initial velocity amplitudes. In the second, an obstacle is included to study the combined effects of delay and obstacle forces.

Example 4.4. (Effects of delay without obstacle). We consider two initial velocity amplitudes: c=0.10 and c=0.17. For each case, we vary the delay parameter τ{0,0.5,3} to examine its influence on the long-time behavior.

Figure 2 presents the density and velocity (ρ,u) at final time T=15 for c=0.10. In all delay settings, the solution remains globally smooth, and the density stays bounded. As the delay increases, the alignment process becomes slower and the density profile exhibits mild increase, but no signs of instability or singularity are observed.

In contrast, Figure 3 presents the results for c=0.17. When τ=0, the solution remains smooth throughout the simulation. However, as τ increases, the density begins to concentrate more sharply. In particular, for τ=3, we observe that the solution develops a near-singular profile: the density becomes highly concentrated around t4.79, and the velocity field exhibits a steep gradient. These observations suggest the emergence of near-singular behavior, potentially indicating the onset of instability or breakdown driven by the delay effect.

These numerical results show that the influence of delay τ on the single-species system strongly depends on the choice of initial conditions. For mild initial configurations, delay mainly slows down the flocking convergence without causing instability or loss of regularity. However, when the initial velocity is sufficiently large, the same delay can intensify velocity gradients and density concentrations, eventually leading to a breakdown of smoothness or finite-time singularity beyond a critical delay threshold. This highlights a nonlinear interplay between initial conditions and time delay in determining the long-time stability and regularity of the system.

Figure 2
Six line graphs show functions ρ(x) and u(x) over time intervals t = 0.00, 1.00, 3.00, and 15.00. In the top row, three graphs display ρ(x) with peaks becoming sharper and taller over time. In the bottom row, three graphs illustrate u(x) with curves flattening as time increases. Each plot uses distinct colors: blue, red, orange, and purple for each time interval.

Figure 2. Time evolution of density ρ and velocity u for τ=0, 0.5, 3 with fixed c=0.1 (Example 4.4).

Figure 3
Six graphs in a two-by-three grid display changes in ρ(x) and u(x) over time. The top row shows ρ(x) with different scales. The lower row shows u(x) with a similar scaling approach. Each graph features curves for times t = 0.00, 1.00, 3.00, and additional times like t = 15.00 and 4.79 in the last columns. Color-coded legends differentiate the time stages.

Figure 3. Time evolution of density ρ and velocity u for τ=0, 0.5, 3 with fixed c=0.17 (Example 4.4).

Example 4.5. (Effects of delay with obstacle). In this example, we introduce an obstacle modeled as the gradient of a repulsive potential centered at x0=0, as defined in Equation 3:

Rx=Φx,withΦx=η0exp|xx0|2l02,

with repulsion parameters η0=0.02 and l0=0.2. The initial velocity amplitude is set to c=0.17, and we examine the impact of varying the delay parameter τ{0,0.5,3}.

Figure 4 shows the density and velocity fields at the moments when the system reaches its peak aggregation for different delays. In all three cases, the density is observed to concentrate sharply at two distinct points symmetrically located on either side of the obstacle. Correspondingly, the velocity field exhibits steep gradients precisely at these points.

Notably, the time at which this concentrated state emerges becomes earlier as the delay increases: t=3.95 for τ=0, t=3.68 for τ=0.5, and t=3.00 for τ=3. Furthermore, the aggregation points move progressively closer to the obstacle as the delay increases, suggesting that larger delays enhance the effective attraction toward the obstacle and accelerate the localization process. Under the current setting of the communication kernel and repulsive potential, these findings indicate a synergistic interaction between delay and obstacle: the presence of delay not only triggers earlier aggregation but also intensifies density concentration near the obstacle.

Figure 4
Three pairs of graphs display changes in variables ρ(x) and u(x) over time. The top row shows ρ(x) with sharp peaks at different times (0.00, 1.00, 2.00, 3.95; 0.00, 1.00, 2.00, 3.68; 0.00, 1.00, 2.00, 3.00). The bottom row shows u(x) with wavy patterns at corresponding times. Each pair shares the same x-axis from -1 to 1, denoted as x.

Figure 4. Time evolution of density ρ and velocity u for τ=0, 0.5, 3 with fixed c=0.17 (Example 4.5).

4.2.2 Effects of delay and obstacle for two-species

To investigate the effects of time delay and obstacles in a two-species setting, we simulate the system Equation 4 with the following different initial conditions for the two species:

ρ1x,0=λ10.1+expx2,u1x,0=c1sin2πxL,ρ2x,0=λ2cosπxL,u2x,0=c2sin2πxL,

with L=2 and constants c1=0.3,c2=0.32. The normalization constants λ1,λ2 are chosen such that L/2L/2ρi(x)dx=1,i=1,2. The simulation is conducted using a periodic domain discretized with the number of cell Nx=1800 and a CFL number of 0.7, running from t=0 to t=15.

For this setting, we provide three examples. Examples 4.6 and 4.7 are presented first. In the first Example 4.6, no obstacle is introduced, and we focus on the effect of delay on the collective dynamics of the two-species system. In the second Example 4.7, an obstacle is included to study the combined effects of delay and obstacle forces.

To further extend the study, the last Example 4.8 is designed similarly to Example 4.6, but with asymmetric inter-species kernels.

Example 4.6. (Effects of delay without obstacle). In this example, we vary the delay parameter τ{0,0.5,3} to examine its influence on the long-time behavior of the two-species system.

According to the numerical analysis in Example 4.4, both of the initial conditions (ρ1,u1) and (ρ2,u2), if evolved independently in a single-species setting, would lead to finite-time singularity, regardless of the presence of delay. However, our numerical results show that when τ=0, the two-species system remains smooth and well-behaved for all time (see Figures 5a-d). This indicates that cross-species interaction can regularize the system.

As the delay τ increases, the solution exhibits progressively sharper spatial structures: velocity gradients steepen, and the density profile becomes increasingly concentrated over time (see Figures 5a–c for density; Figures 5d–f for velocity). In particular, at time t=2.70, Figures 5c-f show pronounced density localization near a single point and steep velocity gradients. These phenomena indicate a growing tendency toward instability and suggest a potential breakdown of collective coherence.

Our numerical experiments indicate that there may exist a critical delay threshold τc, beyond which the system exhibits a loss of regularity and a breakdown of coordinated motion.

Figure 5
Six-panel graph showing density \(\rho(x)\) and velocity \(u(x)\) over different times. Top row depicts \(\rho_1\) and \(\rho_2\) at times 0.00, 1.00, 2.00, 15.00, and 2.70, with peaks at \(x=0\) increasing over time. Bottom row illustrates \(u_1\) and \(u_2\), showing wave patterns from 0.00 to 15.00 and 2.70, with varying amplitudes and phases across panels.

Figure 5. Time evolution of density ρ and velocity u for τ=0, 0.5, 3 (Example 4.6).

Remark 4.1. A possible mechanism for this loss of regularity is that the use of delayed velocity information in the interaction term introduces misalignment between agents, potentially weakening the stabilizing of the alignment mechanism. Moreover, the time-lagged nonlocal feedback causes the system’s response to deviate from the current state, amplifying local gradients and driving the system toward instability.

Example 4.7. (Effects of delay with obstacle). In this example, we introduce an obstacle modeled as the gradient of a repulsive potential centered at xα=0, as defined in Equation 5:

Rαx=Φαx,Φαx=ηαexp|xxα|2lα2,

with repulsion parameters ηα=0.1 and lα=0.2, α=1,2. The obstacle force is taken to be the same for both species, i.e., R1=R2. Figure 6 illustrates the evolution of the two-species density ρ(x,t) and velocity field u(x,t) in the presence of a fixed obstacle force and varying delay parameters τ=0, 0.5, and 3.

Across all cases, we observe the emergence of symmetric, highly concentrated density peaks on both sides of the obstacle. These are accompanied by steep gradients in the velocity field, suggesting the formation of localized structures with near-singular behavior, as in the single-species case (Example 4.5).

As the delay parameter τ increases, the formation of these concentrated structures occurs earlier in time: at t=1.60 for τ=0, t=1.43 for τ=0.5, and t=1.34 for τ=3. Moreover, the aggregation regions become more sharply localized and shift closer to the obstacle center as τ increases. These trends indicate that the time delay not only enhances the spatial focusing induced by the obstacle but also accelerates the onset of singular-like configurations.

The numerical results reveal that, similar to the single-species scenario and under the current settings of the communication kernel and repulsive potential, the interaction between delay and the obstacle plays a significant role in promoting rapid localization and potential loss of regularity. Although the two-species system introduces additional inter-species interactions and complexity, the observed trends persist: increasing delay leads to earlier aggregation and sharper density concentration near the obstacle.

Figure 6
Two rows of plots compare variables over time. The top row shows density $\rho(x)$ with spikes at $x = 0$ for different times: \(t = 0.00\), \(t = 1.00\), and \(t = 1.60\). The bottom row displays velocity $u(x)$ with wave patterns for the same times. Each column has a different final time: 1.60, 1.43, and 1.34. Different line styles represent varying time steps for two components, with a legend on each plot.

Figure 6. Time evolution of density ρ and velocity u for τ=0, 0.5, 3 (Example 4.7).

Example 4.8. (Effects of delay with asymmetric inter-species kernels). In this example, we adopt the same setting as in Example 4.6, but modify the communication kernels by choosing θ11=θ12=θ22=3 and θ21=1.2. Hence, species 1 applies the same exponent θ=3 for both self- and cross-interactions, while species 2 interacts with species 1 through the smaller exponent θ21=1.2. This asymmetry highlights the effect of asymmetric inter-species interactions on the collective dynamics.

For the different initial conditions (ρ1(x,0)ρ2(x,0)) chosen for the two species, we observe that when τ=0 and 0.5, the solution behavior is similar to that in Example 4.6. However, when τ=3, Examples 4.6 and 4.8 show that the aggregation levels of ρ1 and ρ2 differ significantly (see Figures 5c, 7c). We also find that asymmetric and symmetric kernels affect the solution behavior differently, and a more detailed study will be left for future work.

Figure 7
Six graphs depict variations of \(\rho(x)\) and \(u(x)\) over time. Top row: \(\rho(x)\) plotted for \(t=0, 1, 2, 15\), and \(2.7\), showing peaks at \(x=0\) with increasing intensity. Bottom row: \(u(x)\) for the same time values displaying sinusoidal variations. Different colors and dashed lines represent various conditions indicated in the legend.

Figure 7. Time evolution of density ρ and velocity u for τ=0, 0.5, 3 (Example 4.8).

4.2.3 Effects of delay and obstacle in 2D

Now, we consider the two-dimensional single-species system Equation 1, incorporating both communication delay and a repulsive obstacle potential. The simulation is conducted on a periodic square domain L2,L22 with L=1.2, uniformly discretized using Nx=Ny=120 grid points. The CFL number is set to 0.012. The initial conditions are specified as follows:

ρ0x,y=γcosπxLcosπyL,
u0x,y=csin2πxL,v0x,y=csin2πyL.

where the normalization constant γ is selected such that [L2,L2]2ρ0(x,y)dxdy=1 and the initial velocity parameter c=0.12. We investigate the long-time evolution of the system for various delay values τ=0,0.5,1,5.

Example 4.9. (Effects of delay without obstacle). In this example, we examine the system without repulsive potential. This analysis demonstrates the influence of increasing delay on collective dynamics and pattern formation in the 2D setting.

For c=0.12, the two-dimensional single-species system remains smooth and appears to converge toward a steady state in the absence of delay (τ=0), as shown in Figure 8. Both the density and velocity fields gradually stabilize, with the velocity field exhibiting alignment and the density approaching a spatially symmetric configuration.

As the delay parameter τ increases, the system displays more pronounced dynamical behavior. As illustrated in Figures 9a–c, the density gradually becomes more concentrated near the center of the domain. This tendency appears to be enhanced with larger values of τ, suggesting that communication delay enhances aggregation in the density field. Meanwhile, the velocity fields shown in Figures 9d–f exhibit growing misalignment and irregularities over time, in contrast to the more coordinated behavior observed when τ=0.

These numerical observations indicate the possible existence of a critical delay threshold τc, beyond which the global regularity of the solution may deteriorate and the system may begin to exhibit signs of instability. This behavior is consistent with similar trends reported in one-dimensional single- and two-species models, where increased communication delay can exert a destabilizing influence on the dynamics. The observed mismatch between the rapid central concentration of density and the slower alignment of the velocity fields suggests that increasing delay may impair the system’s ability to maintain coherent collective dynamics and stable spatial patterns.

Figure 8
Six-panel diagram showing contour plots and vector fields. Top row: Left shows density field with concentric patterns, center and right show similar star-shaped patterns. Bottom row: Left displays a vector field with circular patterns, center and right have diamond shapes with directional vectors. Each panel includes a color bar for density or magnitude, indicating intensity variations. Axes labeled x and y with boundaries from negative 0.3 to 0.3.

Figure 8. Time evolution of density ρ and velocity u field u for τ=0 (Example 4.9). In 2D, the velocity field u is represented by its speed |u| (color) and direction (arrows).

Figure 9
Six-panel visualization showing color-coded heat maps and vector fields. Top row displays density, ρ, with varying intensity: left (0-25), center (0-30), right (0-120). Bottom row exhibits velocity magnitude, |u|, in vector fields: left and center (up to 8 x 10^-5), right (up to 14 x 10^-3). Colormap scales indicate values from blue (low) to red (high) gradients. Axes are labeled x and y, ranging from -0.3 to 0.3.

Figure 9. Final-time density ρ and velocity u field u for τ=0.5, 1, 5 (Example 4.9).

Example 4.10. (Effects of delay with obstacle). We introduce an obstacle force R(x) modeled as the gradient of a repulsive potential centered at the obstacle location, as defined in Equation 3:

Rx=Φx,withΦx=η0exp|xx0|2l02.

In our numerical example, we consider a single obstacle located at x0=(0,0), with repulsion parameters η0=0.01 and l0=0.1.

Figure 10 presents the full temporal evolution of the one-species density field under zero delay (τ=0), while Figure 11 displays the final-time density distributions for increasing delays τ=0.5, 1, and 5. In all cases, the obstacle potential remains fixed, and only the delay parameter varies.

The introduction of the obstacle induces a characteristic spatial segregation: the density splits into two symmetric high-density regions located on either side of the obstacle. This behavior is consistent with earlier observations in the one-dimensional single-species case with obstacle (Example 4.5) and the one-dimensional two-species case with obstacle (Example 4.7), indicating a persistent effect of obstacle-induced localization across dimensions and system complexity.

As the delay τ increases, two systematic trends are observed. First, the system develops sharply concentrated density states at progressively earlier times. Specifically, the onset of significant aggregation shifts forward from t=8.68 for τ=0 to t=7.02 for τ=0.5, t=5.89 for τ=1, and t=4.17 for τ=5, as shown in Figure 11. This confirms that communication delay accelerates the aggregation process. Second, the spatial location of these dense regions moves consistently closer to the obstacle as τ increases. As depicted in Figures 10c, 11a–c, the high-density zones not only become more sharply localized but also shift toward the center of the obstacle.

Taken together, under the current setting of the communication kernel and repulsive potentials, the findings from all three settings—1D single species with obstacle (Example 4.5), 1D two species with obstacle (Example 4.7), and 2D single species with obstacle—reveal a consistent mechanism: increasing communication delay (i) advances the onset of strong aggregation and (ii) enhances spatial localization near repulsive obstacles. This delay-obstacle interplay appears to persist across spatial dimensions and system configurations.

Theoretically, in the hydrodynamic setting, Choi and Haskovec [22] established sufficient conditions for global regularity and flocking under normalized communication weights: (a) For a fixed integral influence function, it is necessary to choose τ sufficiently small in order to satisfy the flocking condition; (b) For the fat-tailed kernel 1/(1+r2)θ with θ(0,1/2), any τ can satisfy the flocking condition. We extend the theoretical case to the scenario with obstacles and two species. In our work, we intend to investigate the case (a) of an integral kernel of the form ϕ(r)=δ/(1+r2)θ with θ>1/2. Our numerical experiments show that small delays do not affect system alignment, but large delays can lead to steep gradients and high-density peaks, which appear numerically as near-singular behavior. Moreover, in the presence of obstacles, delays accelerate the aggregation of the system, and as the delay increases, the aggregation center moves closer to the obstacle. Furthermore, we also examine the two-species case with delays and obstacles. These observations are based on numerical evidence under specified parameters (e.g., potential shape, strength, and initial conditions). Nonetheless, it should be noted that these results are obtained under specified parameters (e.g., potential shape, strength, and initial conditions) in each example. While the trends are consistent across scenarios, further investigation is needed to assess their generality under broader modeling assumptions and in more realistic biological or physical systems. Rigorous analysis, such as establishing precise thresholds for finite-time singularity or delay-induced blow-up, is left for future work.

Figure 10
Six panels display heat maps with color gradients from blue to red, representing different densities and magnitudes: Top left shows a symmetric density distribution centered at the origin. Top center depicts a small, symmetric density distribution. Top right features a more dispersed density. Bottom left displays a vector field overlaid on a symmetric heat map. Bottom center and right both illustrate vector fields overlaid on areas with focused density near the origin. Each map includes axes labeled

Figure 10. Time evolution of density ρ and velocity u field u for τ=0 (Example 4.10).

Figure 11
Six-panel image showing fluid dynamics simulations. Top row: three colored density plots with varying patterns centered around gray circles, each with a scale from blue (low) to red (high) indicating density values up to two hundred \( \rho \). Bottom row: three vector field plots with colored contours and arrow overlays, indicating fluid flow around gray circles. Colors range from blue to red, representing values up to 0.06 and showing different flow patterns in each panel. Axes labeled as \( x \) and \( y \).

Figure 11. Final-time density ρ and velocity u field u for τ=0.5, 1, 5 (Example 4.10).

Remark 4.2. This work focuses on fat-tailed kernels. We also test compactly supported kernels (such as ϕ(r)=δ1{|r|<d}), and we find that as the delay increases, the density tends to concentrate locally and the velocity gradient becomes large, similar to Example 4.4 in the single-species case. However, the behavior of the solutions remains different under the fat-tailed and compactly supported kernels, we will investigate compactly supported kernels in more detail in future work.

5 Conclusion

This study examines the influence of time delay and obstacle on the collective dynamics of non-local kinetic models in one- and two-dimensional settings for both single- and two-species systems. The numerical results of six representative cases reveal that the long-term behavior of the system is highly sensitive to initial conditions, with different initial states that lead to different outcomes, such as global regularity, aggregation or finite-time singularity formation. Increasing the time delay generally reduces stability, promoting earlier formation of singularities. Moreover, the presence of static obstacles combined with delay accelerates singularity onset and spatially shifts aggregation closer to the obstacle. These findings highlight the intricate interplay between initial data, delay, species interactions, and environmental heterogeneity in shaping emergent patterns. While our numerical experiments focus on fat-tailed kernels and isotropic Gaussian obstacles, the framework is readily applicable to other types of interaction kernels and potential functions. Future work will extend the model to include singular kernels, dynamic or reactive obstacles such as moving predators, and asymmetric inter-species interactions and anisotropic obstacles to explore richer collective dynamics, so as to better capture realistic ecological scenarios. Analytical characterization of critical delay thresholds and singularity formation also remains an important avenue for further research.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.

Author contributions

TZ: Investigation, Writing – review and editing, Formal Analysis, Data curation, Methodology, Writing – original draft. GZ: Writing – review and editing, Funding acquisition, Methodology, Supervision. YE: Writing – review and editing, Funding acquisition, Supervision, Methodology.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. YE was supported by JSPS KAKENHI Grant Number 25K07137. GZ was supported by NSFC General Project No.12171071, and the Natural Science Foundation of Sichuan Province: No. 2023NSFSC0055.

Acknowledgments

The authors would like to thank the reviewers for their valuable comments and suggestions, which greatly helped to improve the quality of this paper. We also express our sincere gratitude to Jinrui Zhou for her assistance with the numerical methods.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

1. Minakowski P, Mucha PB, Peszek J, Zatorska E. Singular Cucker–Smale dynamics, active particles. In: Advances in Theory, Models, and Applications, Vol. 2. Cham: Springer (2019). p. 201–43.

Google Scholar

2. Toner J, Tu Y. Flocks, herds, and schools: a quantitative theory of flocking. Phys Rev E (1998) 58(4):4828–58. doi:10.1103/physreve.58.4828

CrossRef Full Text | Google Scholar

3. Becco C, Vandewalle N, Delcourt J, Poncin P. Experimental evidences of a structural and dynamical transition in fish school. Phys A (2006) 367:487–93. doi:10.1016/j.physa.2005.11.041

CrossRef Full Text | Google Scholar

4. Bialek W, Cavagna A, Giardina I, Mora T, Silvestri E, Viale M, et al. Statistical mechanics for natural flocks of birds. Proc Natl Acad Sci U S A (2012) 109(13):4786–91. doi:10.1073/pnas.1118633109

PubMed Abstract | CrossRef Full Text | Google Scholar

5. Couzin ID, Franks NR. Self-organized Lane formation and optimized traffic flow in army ants. Proc R Soc London, Ser B (2003) 270(1511):139–46. doi:10.1098/rspb.2002.2210

PubMed Abstract | CrossRef Full Text | Google Scholar

6. Partridge BL. The structure and function of fish schools. Sci Am (1982) 246(6):114–23. doi:10.1038/scientificamerican0682-114

PubMed Abstract | CrossRef Full Text | Google Scholar

7. Brambilla M, Ferrante E, Birattari M, Dorigo M. Swarm robotics: a review from the swarm engineering perspective. Swarm Intell (2013) 7(1):1–41. doi:10.1007/s11721-012-0075-2

CrossRef Full Text | Google Scholar

8. Vicsek T, Czirók A, Ben-Jacob E, Cohen I, Shochet O. Novel type of phase transition in a system of self-driven particles. Phys Rev Lett (1995) 75(6):1226–9. doi:10.1103/physrevlett.75.1226

PubMed Abstract | CrossRef Full Text | Google Scholar

9. Reynolds CW. Flocks, herds and schools: a distributed behavioral model. Proc 14th Annu Conf Comput Graph Interact Tech (1987) 25–34. doi:10.1145/37401.37406

CrossRef Full Text | Google Scholar

10. Cucker F, Smale S. Emergent behavior in flocks. IEEE Trans Autom Control (2007) 52(5):852–62. doi:10.1109/tac.2007.895842

CrossRef Full Text | Google Scholar

11. Carrillo JA, Fornasier M, Rosado J, Toscani G. Asymptotic flocking dynamics for the kinetic Cucker–Smale model. SIAM J Math Anal (2010) 42(1):218–36. doi:10.1137/090757290

CrossRef Full Text | Google Scholar

12. Cucker F, Smale S. On the mathematics of emergence. Jpn J Math (2007) 2:197–227. doi:10.1007/s11537-007-0647-x

CrossRef Full Text | Google Scholar

13. Ha SY, Liu JG. A simple proof of the Cucker-Smale flocking dynamics and mean-field limit. Commun Math Sci (2009) 7(2):297–325. doi:10.4310/cms.2009.v7.n2.a2

CrossRef Full Text | Google Scholar

14. Ha SY, Tadmor E. From particle to kinetic and hydrodynamic descriptions of flocking. Kinet Relat Models (2008) 1(3):415–35. doi:10.3934/krm.2008.1.415

CrossRef Full Text | Google Scholar

15. Tadmor E, Tan C. Critical thresholds in flocking hydrodynamics with non-local alignment. le Philos Trans R Soc A (2014) 372(2028):20130401. doi:10.1098/rsta.2013.0401

PubMed Abstract | CrossRef Full Text | Google Scholar

16. Haskovec J, Markou I. Asymptotic flocking in the Cucker–Smale model with reaction-type delays in the non-oscillatory regime. Kinet Relat Models (2020) 13(4):795–813. doi:10.3934/krm.2020027

CrossRef Full Text | Google Scholar

17. Cartabia MR. Cucker-Smale model with time delay. Dyn Syst (2022) 42(5):2409–32. doi:10.3934/dcds.2021195

CrossRef Full Text | Google Scholar

18. Choi YP, Haskovec J. Cucker-Smale model with normalized communication weights and time delay. Kinet Relat Models (2017) 10(4):1011–33. doi:10.3934/krm.2017040

CrossRef Full Text | Google Scholar

19. Erban R, Haskovec J, Sun Y. A Cucker-Smale model with noise and delay. SIAM J Appl Math (2016) 76(4):1535–57. doi:10.1137/15M1030467

CrossRef Full Text | Google Scholar

20. Zhang Z, Yin X, Gao Z. Non-flocking and flocking for the Cucker-Smale model with distributed time delays. J Franklin Inst (2023) 360(12):8788–805. doi:10.1016/j.jfranklin.2022.03.028

CrossRef Full Text | Google Scholar

21. Du L, Han X, Wang Y. Collective behavior for the delayed Cucker-Smale system in a harmonic potential field. Proc Am Math Soc (2024) 152(01):423–34. doi:10.1090/proc/16471

CrossRef Full Text | Google Scholar

22. Choi YP, Haskovec J. Hydrodynamic Cucker-Smale model with normalized communication weights and time delay. SIAM J Math Anal (2019) 51(3):2660–85. doi:10.1137/17m1139151

CrossRef Full Text | Google Scholar

23. Canizo JA, Carrillo JA, Rosado J. A well-posedness theory in measures for some kinetic models of collective motion. Math Models Methods Appl Sci (2011) 21(3):515–39. doi:10.1142/s0218202511005131

CrossRef Full Text | Google Scholar

24. Carrillo JA, Choi YP, Perez SP. A review on attractive–repulsive hydrodynamics for consensus in collective behavior, active particles, volume 1: advances in theory, models, and applications. Cham: Springer (2017). p. 259–98.

Google Scholar

25. Chen Y, Kolokolnikov T. A minimal model of predator–swarm interactions. J R Soc Interf (2014) 11(94):20131208. doi:10.1098/rsif.2013.1208

PubMed Abstract | CrossRef Full Text | Google Scholar

26. Croft S. Modelling collective motion and obstacle avoidance to assess avian collision risk with wind turbines. Heslington: University of York (2014). Ph.D. thesis.

Google Scholar

27. Johansson A, Helbing D, Shukla P. Specification of the social force pedestrian model by evolutionary adjustment to video tracking data. Adv Complex Syst (2007) 10(Suppl. 02):271–88. doi:10.1142/s0219525907001355

CrossRef Full Text | Google Scholar

28. Lin HT, Ros IG, Biewener AA. Through the eyes of a bird: modelling visually guided obstacle flight. J R Soc Interf (2014) 11(96):20140239. doi:10.1098/rsif.2014.0239

PubMed Abstract | CrossRef Full Text | Google Scholar

29. Mecholsky NA, Ott E, Antonsen TM. Obstacle and predator avoidance in a model for flocking. Phys D (2010) 239(12):988–96. doi:10.1016/j.physd.2010.02.007

CrossRef Full Text | Google Scholar

30. Nguyen LTH, Tạ VT, Yagi A. Obstacle avoiding patterns and cohesiveness of fish school. J Theor Biol (2016) 406:116–23. doi:10.1016/j.jtbi.2016.07.017

PubMed Abstract | CrossRef Full Text | Google Scholar

31. Aung E, McClure JE, Abaid N. Local interactions in active matter are reinforced by spatial structure. Phys Rev E (2024) 110(6):L062102. doi:10.1103/physreve.110.l062102

PubMed Abstract | CrossRef Full Text | Google Scholar

32. He S, Tadmor E. A game of alignment: collective behavior of multi-species. Ann Inst H Poincaré Anal Non Linaire (2021) 38(4):1031–53. doi:10.1016/j.anihpc.2020.10.003

CrossRef Full Text | Google Scholar

33. Carrillo JA, Castro MJ, Kalliadasis S, Perez SP. High-order well-balanced finite-volume schemes for hydrodynamic equations with nonlocal free energy. SIAM J Sci Comput (2021) 43(2):A828–58. doi:10.1137/20m1332645

CrossRef Full Text | Google Scholar

34. Mavridis CN, Tirumalai A, Baras JS. Learning swarm interaction dynamics from density evolution. IEEE Trans Control Netw Syst (2022) 10(1):214–25. doi:10.1109/tcns.2022.3198784

CrossRef Full Text | Google Scholar

35. Motsch S, Tadmor E. Heterophilious dynamics enhances consensus. SIAM Rev (2014) 56(4):577–621. doi:10.1137/120901866

CrossRef Full Text | Google Scholar

36. Carrillo JA, Delgadino MG, Mellet A. Regularity of local minimizers of the interaction energy via obstacle problems, commun. Math Phys (2016) 343:747–81.

Google Scholar

37. Jiang GS, Shu CW. Efficient implementation of weighted ENO schemes. J Comput Phys (1996) 126(1):202–28. doi:10.1006/jcph.1996.0130

CrossRef Full Text | Google Scholar

38. Gottlieb S, Shu CW. Total variation diminishing Runge-Kutta schemes. Math Comp (1998) 67(221):73–85. doi:10.1090/s0025-5718-98-00913-2

CrossRef Full Text | Google Scholar

39. Gottlieb S, Shu CW, Tadmor E. Strong stability-preserving high-order time discretization methods. SIAM Rev (2001) 43(1):89–112. doi:10.1137/s003614450036757x

CrossRef Full Text | Google Scholar

40. Shu CW, Osher S. Efficient implementation of essentially non-oscillatory shock-capturing schemes. J Comput Phys (1988) 77(2):439–71. doi:10.1016/0021-9991(88)90177-5

CrossRef Full Text | Google Scholar

Keywords: Cucker–Smale model, time delays, hyperbolic systems, collective behavior, flocking, obstacle avoidance

Citation: Zheng T, Zhou G and Enatsu Y (2025) Hydrodynamic Cucker-Smale model with time delay and obstacle avoidance. Front. Phys. 13:1657927. doi: 10.3389/fphy.2025.1657927

Received: 02 July 2025; Accepted: 22 September 2025;
Published: 17 October 2025.

Edited by:

Ryosuke Yano, Tokio Marine dR Co., Ltd., Japan

Reviewed by:

Ndolane Sene, Cheikh Anta Diop University, Senegal
Poornachandra Sekhar Burada, Indian Institute of Technology Kharagpur, India

Copyright © 2025 Zheng, Zhou and Enatsu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Guanyu Zhou, d2luZF9nZW5vQGxpdmUuY29t

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.