Abstract
In this work, we discuss kinetic descriptions of flocking models of the so-called Cucker–Smale [IEEE Trans. Automat. Control, 52 (2007), pp. 852–862] and Motsch–Tadmor [J. Statist. Phys., 144 (2011), pp. 923–947] types. These models are given by Vlasov-type equations where the interactions taken into account are only given long-range bi-particles interaction potentials. We introduce a new exact rescaling velocity method, inspired by the recent work [F. Filbet and T. Rey, J. Comput. Phys., 248 (2013) pp. 177–199], allowing us to observe numerically the flocking behavior of the solutions to these equations, without a need of remeshing or taking a very fine grid in the velocity space. To stabilize the exact method, we also introduce a modification of the classical upwind finite volume scheme which preserves the physical properties of the solution, such as momentum conservation.
Contents
1. Kinetic Description of Flocking Models
2. Scaling on Velocity
2.1. A Spatially “Homogeneous” System
2.2. The Full Rescaled System
3. Numerical Schemes
3.1. Evolution of the Macroscopic Velocity
3.2. Discretization of the Flocking Terms
3.3. Evolution of the scaling factor
4. A Momentum Preserving Correction of the Upwind Scheme
4.1. A Toy Model
4.2. Application to Flocking Models
5. Numerical Simulation
5.1. Test 1 - The Anti-Drift Equation
5.2. Test 2 - One Dimensional Motsch-Tadmor
5.3. Test 3 - One Dimensional Cucker-Smale
References
1. Kinetic Description of Flocking Models
We are interested in this paper in numerical simulations of a Vlasov-type kinetic description of flocking models \begin {equation} \label{eq:flocking}\tag{1.1} \left \{ \begin {aligned} & \frac {\partial f}{\partial t}+v\cdot \grad _x f+\grad _v\cdot \Q (f)=0, \ \forall x \in \Omega \subset \RR ^d, \, v \in \R ^d, \\ & \, \\ & f(0,x,v) = f_0(x,v). \end {aligned} \right . \end {equation} The distribution function \(f=f(t,x,v)\) describes the probability of finding an individual at time \(t >0\) at the infinitesimal position of the phase space \(dx \, dv\). The set \(\Omega \) will be either \(\TT ^d\) or \(\RR ^d\). The integral operator \(\Q \), the flocking operator, characterizes the nonlocal interactions. Typical examples are given by the so-called Cucker-Smale [5] model and the Motsch-Tadmor [12] model, where the operators (See e.g. the paper from Tadmor and Ha [15] for details about the derivation) are given by \begin {align} \label{eq:collisionCS}\tag{1.2} \text {Cucker-Smale model: } & \Q _{CS}(f)=\iint \phi (|x-y|)(v^*-v)f(y,v^*)f(x,v) \,dv^* \,dy,\\ \label{eq:collisionMT}\tag{1.3} \text {Motsch-Tadmor model: } & \Q _{MT}(f)=\left [\iint \phi (|x-y|)f(y,v^*) \, dv^* \, dy\right ]^{-1}Q_{CS}(f). \end {align}
The function \(\phi \) is the influence function, and characterizes the strength of the interactions between individuals. It is natural to set \(\phi \) as a bounded decreasing function of the distance between individuals.
The flocking phenomenon describes asymptotic velocity alignment, namely all individuals move by the same asymptotic velocity toward the same direction. In the kinetic representation, it means the equilibrium states \(f_\infty \) of the system are monokinetic: they have the form \[ f_\infty (x,v) = \rho (x) \delta (v-\bm {c}), \] where \(\bm {c}\in \RR ^d\) is a constant velocity which depends on the initial condition11 If the flocking operator is symmetric, as in the Cucker-Smale case, this quantity is given by the initial average velocity of the system. and \(\rho \) is the macroscopic density of the system: \[ \rho (x) = \int _{\RR ^d} f(x,v) \, dv. \]
It has been shown in [3, 17] that if \(\phi \) satisfies the slow decay condition \[\int ^\infty \phi (r)dr=\infty ,\quad \text {if }\Omega =\RR ^d;\quad \phi (diam(\mathbb {T}^d))>0,\quad \text {if } \Omega =\mathbb {T}^d,\] then given any initial data, \(\eqref {eq:flocking}\) converges to a flock, under both the Cucker-Smale and Motsch-Tadmor setups. In particular, denote \[ S(t):=\sup _{(x,v),(y,v^*)\in \supp (f(t))}|x-y|,\quad V(t):=\sup _{(x,v),(y,v^*)\in \supp (f(t))}|v-v^*| \] to be respectively the largest variation in position and velocity for the system at time \(t\). Then, \(S(t)\) is uniformly bounded in all time, and \(V(t)\) decays to 0 exponentially in time.
With such exponentially fast creation of \(\delta \)-singularities, when designing a numerical method for \(\eqref {eq:flocking}\), one cannot expect to achieve a correct accuracy for large time (and this is particularly true when using a high accuracy spectral method22 This is a natural choice of approximation of the flocking operator, because of its convolution structure., because of the Gibbs phenomenon [2]). It is then challenging to design a numerical scheme which captures the blow-up correctly.
In [17], schemes based on the discontinuous Galerkin method are derived to deal with \(\delta \)-singularities (flocking and clustering). In this paper, as we mentioned earlier, we shall only focus on the flocking case. To this end, we shall introduce a technique based on the information provided by the hydrodynamic fields computed from a macroscopic model corresponding to the original kinetic equation. Then by rescaling the kinetic equation using the knowledge of its qualitative flocking behavior, we will solve another equation which does not exhibit concentration. The original solution will finally be obtained by reverting the rescaling.
The velocity scaling method has been used on various types of spatially homogeneous kinetic equations [1, 4, 7, 9]. The idea is mainly based on the self-similar behavior of the solution to the kinetic equation. However, for the spatially inhomogeneous case, the situation is much more complicated and this method have not been applied since the transport operator and the boundary conditions break down this self-similar behavior. Then, F. Filbet and T. Rey proposed in [8] an extension of this method to the space inhomogeneous case using an approximate closure of the macroscopic equations based on the knowledge of the hydrodynamic limit of the system. This is particularly well suited to the study of granular media. Similar to all previous work, the scaling factor is chosen as the square root of temperature, which does not necessarily provide the precise scaling.
In this work, we propose a velocity scaling method to solve kinetic flocking equations \(\eqref {eq:flocking}\), with a new choice of scaling factor, which captures the exact scaling of the system. We also design a numerical scheme to efficiently solve the coupled evolutions of the kinetic equation together with the rescaling function. It is based on a new modification of the classical upwind fluxes (see e.g. [10] for a complete introduction on the topic), allowing us to take into account some of the physical properties of the equation. To follow the flock during time, we will also introduce a shift in velocity for the rescaling function. Besides capturing the correct flocking behavior of the model, the rescaled equation is also local in the velocity variable, and hence computationally cheaper than the original nonlocal equation for \(f\).
2. Scaling on Velocity
This section is devoted to the presentation of the scaling for \(\eqref {eq:flocking}\), allowing us to follow the change of scales in velocity. It is an extension to the space-dependent setting of the method first introduced in [9], using the relative kinetic energy as a scaling function. This method is similar to the work of Bobylev, Carrillo, and Gamba [1] about Enskog-like inelastic interactions models. Indeed, in one section of this work, the authors scaled the solution of the spatially homogeneous collision equation by its thermal velocity, in order to study a drift-collision equation, where no blow-up occurs. The same technique was also used by S. Mischler and C. Mouhot in [11] to prove the existence of self-similar solutions to the granular gases equation.
For a given positive function \(\omega :\RR ^+\times \Omega \mapsto \RR ^+\), we introduce a new distribution \( g (t, x, \xi )\) by setting \begin {equation} \label{def:Rescaling}\tag{2.1} f(t,x,v)=\omega (t,x)^d g(t,x,\xi ),\quad \xi =\omega (v-\bm {u}), \end {equation} where the function \(\omega \) (or more precisely \(\omega ^{-1}\)), the scaling factor, is assumed to be an accurate measure of the “support” or scale of the distribution \(f\) in velocity variables. Then according to this scaling, the distribution \(g \) should naturally “follow” either the concentration or the spreading in velocity of the distribution \(f\). The function \(\bm {u}\) is the usual macroscopic velocity, defined inside the support of \(\rho \) as \[\bm {u}(t,x)=\frac {1}{\rho (t,x)}\int _{\RR ^d} vf(t,x,v)\,dv.\]
Moreover, it is straightforward using \(\eqref {def:Rescaling}\) to see that \(g\) has the following qualitative properties:
- Its local density is the same as the one of the original distribution: \begin {equation} \label{eq:scalingDensity}\tag{2.2} \rho (t,x):= \int _{\RR ^d} g(t,x,\xi ) \, d\xi =\int _{\RR ^d} f(t,x,v) \, dv. \end {equation}
- Due to the shift in velocity, its local momentum is everywhere \(0\): \begin {equation} \label{eq:scalingMomentum}\tag{2.3} M(t,x):= \int _{\RR ^d} g(t,x,\xi ) \, \xi \, d\xi =0, \ \forall t\geq 0, \, x\in \Omega . \end {equation}
The question now is to find an appropriate scaling factor \(\omega \) so that \(g\) neither vanishes nor becomes singular in all time.
Remark 1. The variation in velocity \(V(t)\) decays exponentially fast in time. Since this quantity is essentially the support of \(f\), in order for the support of \(g\) to remain bounded, we expect that \(\omega \) should grow exponentially in time.
2.1. A Spatially “Homogeneous” System. We first consider the dynamics without the free transport term: \begin {equation} \label{eq:flock}\tag{2.4} \frac {\partial f}{\partial t}+\grad _v\cdot \Q (f)=0, \end {equation} since the flocking operator \(\Q \) is the main driving force toward velocity concentration. Note that here, the system is not completely spatially homogeneous, as \(\Q \) is a nonlocal operator in space.
Plugging the expression of the scaling function \(\eqref {def:Rescaling}\) into the flocking equation \(\eqref {eq:flock}\), we have for the first term \begin {align*} \partial _t f~=~&d\omega ^{d-1}\partial _t\omega g+\omega ^d\big [\partial _t g+\grad _\xi g\cdot \left (\partial _t \omega (v-\bm {u})-\omega \partial _t\bm {u}\right )\big ]\\ =~&\omega ^d\left [\partial _t g+\frac {\partial _t\omega }{\omega }\grad _\xi \cdot (\xi g)\right ]-\omega ^{d+1}\partial _t\bm {u}\cdot \grad _\xi g. \end {align*}
Moreover, concerning the flocking operator, one has to distinguish between Cucker-Smale and Motsch-Tadmor. The former yields \begin {align*} \Q _{CS}(f)~=~&\omega ^d\iint \phi (|x-y|)\left (\frac {\xi ^*}{\omega (y)}+\bm {u}(y)-\frac {\xi }{\omega (x)}-\bm {u}(x)\right )g(x,\xi )\, g(y,\xi ^*) \,d\xi ^*\, dy\\ ~=~&\omega ^dg(x,\xi )\int \phi (|x-y|)(\bm {u}(y)-\bm {u}(x))\rho (y)\,dy-\omega ^{d-1} \xi \,g(x,\xi )\int \phi (|x-y|)\rho (y)\,dy, \end {align*}
whereas the latter yields \begin {align*} \Q _{MT}(f)~=~&\left [\int \phi (|x-y|)\,\rho (y)\,dy\right ]^{-1}\Q _{CS}(f)\\ ~=~&\omega ^dg(x,\xi ) \frac {\int \phi (|x-y|)(\bm {u}(y)-\bm {u}(x))\rho (y)\,dy}{\int \phi (|x-y|)\rho (y)\,dy}-\omega ^{d-1} \xi \, g(x,\xi ). \end {align*}
Gathering everything and using the chain rule, we obtain the following equation for \(g\): \begin {equation} \label{eq:gGeneralOmega}\tag{2.5} \frac {\partial g}{\partial t}+\left [\frac {\partial _t\omega }{\omega }- \AAA (t,x)\right ]\grad _\xi \cdot (\xi g)-\omega \left [\partial _t\bm {u}-\BBB (t,x)\right ]\cdot \grad _\xi g=0, \end {equation} where the operators \(\AAA \) and \(\BBB \) are functions of the macroscopic quantities and the influence function only, and depend on the model considered. More precisely, we have for the Cucker-Smale model \(\eqref {eq:collisionCS}\) \begin {equation} \label{eq:AB_CS}\tag{2.6} \AAA _{CS}(t,x) := \int \phi (|x-y|)\rho (t,y)\,dy,\quad \BBB _{CS}(t,x):=\int \phi (|x-y|)(\bm {u}(t,y)-\bm {u}(t,x))\rho (t,y)\,dy, \end {equation} and for the Motsch-Tadmor model \(\eqref {eq:collisionMT}\) \begin {equation} \label{eq:AB_MT}\tag{2.7} \AAA _{MT}(t,x)=1, \quad \BBB _{MT}(x)=\frac {\int \phi (|x-y|)(\bm {u}(t,y)-\bm {u}(t,x))\rho (t,y)\,dy}{\int \phi (|x-y|)\rho (t,y)\,dy}. \end {equation}
Computing the zeroth and first moments in velocity of \(\eqref {eq:flock}\), we get the following evolutions for the macroscopic quantities: \begin {align*} \frac {d}{dt}\rho (t,x)&=\frac {d}{dt}\int f(t,x,v)\,dv=0,\\ \frac {d}{dt}(\rho (t,x)\bm {u}(t,x))&=\frac {d}{dt}\int f(t,x,v)\,v\,dv=\int \Q (f) \, dv=\rho (t,x)\BBB (t,x). \end {align*}
It implies that the mass \(\rho (t,x)=\rho (x)\) is constant in time, and that the following evolution law holds \begin {equation} \label{eq:evolUHomog}\tag{2.8} \left \{ \begin {aligned} & \partial _t\bm {u} -\BBB (t,x)=0, \\ & \, \\ & \bm {u}(0,x) = \frac {1}{\rho (x)} \int _{\RR ^d} f_0(x,v) \,v \, dv. \end {aligned} \right . \end {equation} Moreover, \(\AAA \) is independent in time for both models, since it does not depend on \(\bm {u}\).
We now have enough information to define the scaling function. Let us set \begin {equation} \label{def:omega}\tag{2.9} \omega (t,x)=\omega _0(x)\exp \left [t \AAA (x)\right ], \ \forall t \geq 0, \ x \in \Omega , \end {equation} for any measurable, positive function \(\omega _0\). Note that such an \(\omega \) behaves as expected, namely grows exponentially in time to compensate the concentration, as \(\AAA \) is nonnegative. This is particularly true for the Motsch-Tadmor model \(\eqref {eq:collisionMT}\), where we have according to \(\eqref {eq:AB_MT}\) the explicit form \begin {equation} \label{eq:omegaMT}\tag{2.10} \omega (t,x) = \omega _0(x) \, e^t, \ \forall t \geq 0, \ x \in \Omega . \end {equation}
Then, plugging both \(\eqref {eq:evolUHomog}\) and \(\eqref {def:omega}\) into \(\eqref {eq:gGeneralOmega}\), one obtains that \[\frac {\partial g}{\partial t}=0.\] This provides a perfect scaling of the system, and since \(g\) is constant in time, the whole dynamics of \(f\) is given by the dynamics of the scaling function \(\omega \) and the macroscopic velocity \(\bm {u}\). More precisely, we have for \(f\) using \(\eqref {def:Rescaling}\) \begin {align*} f(t,x,v)=& ~\omega (t,x)^d g\left (t,x,\omega (t,x)(v-\bm {u}(t,x))\right )\\ =&~\omega (t,x)^d g(0,x,\omega (t,x)(v-\bm {u}(t,x)))\\ =&~\frac {\omega (t,x)^d}{\omega _0(x)^d} f\left (0,x,\frac {\omega (t,x)}{\omega _0(x)}(v-\bm {u}(t,x))+\bm {u}(0,x)\right )\\ =&~\exp \left [d\,t\AAA (x) \right ]f_0\left (x,\exp \left [t\AAA (x)\right ]v+\bm {u}(0,x)-\exp \left [t\AAA (x)\right ]\bm {u}(t,x)\right ), \end {align*}
the momentum \(\bm u\) being a solution to \(\eqref {eq:evolUHomog}\). Such an \(f\) is a solution to \(\eqref {eq:flock}\).
Remark 2. Note that the integral term \(\BBB \) has a convolution structure in \(x\), and a spectral method could be used to propagate \(\bm {u}\) with no difficulty and high accuracy.
2.2. The Full Rescaled System. We are now ready to go back to the full system \(\eqref {eq:flocking}\). Applying the scaling \(\omega \) introduced in the last section, we have that: \[ v\cdot \grad _xf~=~\left (\frac {\xi }{\omega }+\bm {u}\right )\cdot \left [ d\omega ^{d-1}\grad _x\omega ~g+\omega ^d\left (\grad _xg+ \frac {\grad _x\omega }{\omega }~(\xi \cdot \grad _x)g-\omega \sum _i\partial _{\xi _i}g\grad _xu_i\right )\right ]. \] With the transport term, the rescaled \(g\) will not remain unchanged anymore as time goes by. A direct computation using \(\eqref {eq:gGeneralOmega}\) yields the following dynamics for \(g\): \begin {align} \label{eq:gNonConservative}\tag{2.11} \frac {\partial g}{\partial t} & +\left [\frac {\partial _t \omega }{\omega }+\bm {u}\cdot \frac {\grad _x\omega }{\omega }-\AAA (t,x)\right ]\grad _\xi \cdot (\xi g)-\omega \left [\partial _t \bm {u} +\bm {u}\cdot \grad _x \bm {u}-\BBB (t,x)\right ]\cdot \grad _\xi g + \bm {u}\cdot \grad _xg \\ & +\frac {\xi }{\omega }\cdot \left [\frac {\grad _x\omega }{\omega }\grad _\xi \cdot (\xi g) + \grad _xg - \omega \sum _i\partial _{\xi _i}g\grad _xu_i\right ]=0. \notag \end {align}
After some computations, one can rewrite this equation on the following form: \begin {align} \label{eq:gAlmostConservative}\tag{2.12} \frac {\partial g}{\partial t} & + \nabla _\xi \cdot \left \{ \left [ - \omega \left ( \partial _t \bm {u} + \bm {u} \cdot \nabla _x \bm {u} - \BBB \right ) - \xi \cdot \grad _x\bm {u} + \frac {1}{\omega } \left ( \partial _t \omega - \omega \AAA + \left (\bm {u}+\frac {\xi }{\omega }\right ) \cdot \nabla _x \omega \right ) \xi \right ] g \right \} \\ & + \nabla _x \cdot \left [ \left (\bm {u} + \frac {\xi }{\omega }\right ) g\right ] = 0. \notag \end {align}
Multiplying the original flocking equation \(\eqref {eq:flocking}\) by respectively \(1\) and \(v\) and integrating in the velocity variable, we obtain by using the definition of \(g\) \(\eqref {def:Rescaling}\) the evolution of the macroscopic quantities: \begin {equation} \label{eq:sysMomentCoupled}\tag{2.13} \left \{\begin {aligned} & \partial _t \rho +\grad _x\cdot (\rho \bm {u})=0,\\ & \partial _t(\rho \bm {u})+\grad _x\cdot (\rho \bm {u}\otimes \bm {u}) +\grad _x\cdot \int \frac {\xi \otimes \xi }{\omega ^2}g \,d\xi =\rho \BBB (t,x). \end {aligned} \right . \end {equation} In particular, assuming that the couple \((\rho ,\bm {u})\) remains smooth33 This is the case at least for short times, and we believe that this can be extended to larger time using the dissipative structure of the right hand side of the equation on \(\rho \bm {u}\). See related discussion in [16] for the pressureless system. and that \(\rho \) is nonzero, we have the following equation for the evolution of \(\bm {u}\): \begin {equation} \label{eq:u}\tag{2.14} \left \{ \begin {aligned} & \partial _t \bm {u} +\bm {u}\cdot \grad _x\bm {u} + \frac {1}{\rho }\grad _x\cdot \left (\frac {1}{\omega ^2} P\right )=\BBB , \\ & \, \\ & \bm {u}(0,x) = \frac {1}{\rho (0,x)} \int _{\RR ^d} f_0(x,v) \,v \, dv, \end {aligned} \right . \end {equation} where we defined \(P\) as a “pressure” of \(g\), namely \begin {equation*} P=\int _{\RR ^d} \xi \otimes \xi \,g(\xi ) \, d\xi . \end {equation*}
We can now choose the definition of \(\omega \). As in section 2.1, we want this quantity to be a good indicator of the support of \(f\), and for the sake of simplicity we also want its definition to yield a simpler equation for \(g\). Using the same arguments, we define \(\omega \) as the solution to \begin {equation} \label{eq:omega}\tag{2.15} \left \{ \begin {aligned} & \partial _t \omega +\bm {u}\cdot \grad _x\omega -\omega \AAA =0, \\ & \, \\ & \omega (0,x) = \omega _0(x). \end {aligned} \right . \end {equation}
Plugging \(\eqref {eq:u}\) and \(\eqref {eq:omega}\) into \(\eqref {eq:gAlmostConservative}\), we obtain the general system giving the evolution of \((g, \bm {u}, \omega )\), namely, \begin {equation} \label{eq:g}\tag{2.16} \left \{ \begin {aligned} & \partial _t g + \nabla _x \cdot \left [ \left (\bm {u} + \frac {\xi }{\omega }\right ) g\right ] + \nabla _\xi \cdot \left [ \left ( - \xi \cdot \nabla _x \bm {u} + \frac {\xi \cdot \nabla _x \omega }{\omega ^2}~\xi + \frac {\omega }{\rho }\grad _x\cdot \left (\frac {1}{\omega ^2} P\right )\right ) g \right ] = 0, \\ & \partial _t \bm {u} +\bm {u}\cdot \grad _x\bm {u} + \frac {1}{\rho }\grad _x\cdot \left (\frac {1}{\omega ^2} P\right )=\BBB (t,x), \\ & \partial _t \omega +\bm {u}\cdot \grad _x\omega -\omega \AAA =0, \end {aligned} \right . \end {equation} the initial condition for this system being given by \begin {equation} \label{eq:g0}\tag{2.17} \left \{ \begin {aligned} & \bm {u}(0,x) = \frac {1}{\rho (0,x)} \int _{\RR ^d} f_0(x,v) \,v \, dv, \quad \omega (0,x) = \omega _0(x) >0, \\ & g(0,x,\xi ) = \frac 1{\omega (0,x)^d} f_0\left (\bm {u}(0,x) + \frac \xi {\omega (0,x)}\right ). \end {aligned} \right . \end {equation} Note that the equation for \(g\) is in a conservative form, which is of great interest for numerical purposes.
Remark 3. An important feature of the system \(\eqref {eq:g}\) is that it is nonlocal only in \(x\), through the equation for \(\bm u\), whereas \(\eqref {eq:flocking}\) for \(f\) is nonlocal in both \(x\) and \(v\). This provides huge gains in computational time for the new rescaled model.
Remark 4. We can also write the \(g\) equation in \(\eqref {eq:g}\) as \begin {equation} \label{eq:galt}\tag{2.18} \partial _t g + \grad _x\cdot (\bm {u} g)-\grad _\xi \cdot \big (\xi \cdot \grad _x\bm {u}~ g\big )+\frac 1\omega R=0, \end {equation} where the “remainder” term \(R\) is given by \[ R=\frac {\omega ^2}{\rho }\left (\grad _x\cdot \frac {P}{\omega ^2}\right )\cdot \grad _\xi g+{\xi }\cdot \left [\frac {\grad _x\omega } {\omega } \grad _\xi \cdot (\xi g)+\grad _xg\right ]. \] Because \(\omega \) grows exponentially in time, and \(R\) is of order 1, the last term on the previous equation on \(g\) can be neglected for large time.
Remark 5. The coupled system \(\eqref {eq:g}\) is in some sense easier to deal with numerically than if one had to use the uncoupled approach introduced in [8]. Indeed, this previous work required the knowledge of a closed macroscopic description of the system. If this is manageable for the Boltzmann equation or for the granular gases equation, here it is more difficult. Indeed, the equilibria of \(\eqref {eq:flocking}\) being monokinetic \[ f(x,v) = \rho (x) \delta (v-\bm {u}(x)), \] plugging such a function into \(\eqref {eq:flocking}\) and computing the zeroth and first moments, one obtain the following dynamics for \(\rho \) and \(\bm {u}\): \begin {equation} \label{eq:macro}\tag{2.19} \left \{\begin {aligned} & \partial _t \rho +\grad _x\cdot (\rho \bm {u})=0,\\ & \partial _t(\rho \bm {u})+\grad _x\cdot (\rho \bm {u}\otimes \bm {u})=\rho \BBB . \end {aligned} \right . \end {equation} When \(\BBB =0\), the equation is usually known as the pressureless Euler system, and exhibits some complicated behavior such as the creation of \(\delta \)-singularity in finite time [6]. With the alignment force \(\BBB \), the solution is less singular. The system has been studied in [16], where a critical threshold phenomenon is addressed: subcritical initial data leads to global smooth solution, while supercritical initial data drives to finite time generation of \(\delta \)-shock.
We end this section by verifying that the zero momentum property \(\eqref {eq:scalingMomentum}\) on \(g\) is embedded in system \(\eqref {eq:g0}\), which is an important feature of the equation and will be needed when designing the numerical method.
Proposition 2.1. Assume \(g=g(t,x,\xi )\) is a smooth solution of \(\eqref {eq:g}\) with zero initial momentum \[ M(0,x)=\int \xi \, g(0,x,\xi ) \, d\xi =0, \ \forall x\in \Omega . \] Then, \(M(t,x) =0\) for all \(t > 0\) and all \(x\in \Omega \).
Proof. Multiplying \(\eqref {eq:galt}\) by \(\xi \) and integrating with respect to \(\xi \), we have after integration by parts that \[\partial _tM = -\grad _x\cdot (uM)-M\cdot \grad _x\bm {u}-\frac {1}{\omega }\int _{\R ^d}\xi \, R \,d\xi .\] As initial momentum is everywhere zero, it then suffices to check that \[\int _{\R ^d}\xi \, R \,d\xi =0.\] Indeed, we have componentwise that \begin {align*} \int _{\R ^d}\xi _kR \,d\xi = &\sum _{i,j}\left [\frac {\omega ^2}{\rho }\partial _{x_j}\left ( \frac {P_{ij}}{\omega ^2}\right )\int _{\R ^d}\xi _k\partial _{\xi _i} g\,d\xi +\int _{\R ^d}\left (\frac {\partial _{x_j}\omega } {\omega } \partial _{\xi _i} (\xi _i g)+\partial _{x_j}g\right )\xi _j\xi _k \,d\xi \right ]\\ = &\sum _{i,j}\left [-\frac {\omega ^2}{\rho }\partial _{x_j}\left ( \frac {P_{ij}}{\omega ^2}\right )\delta _{ik}\rho -\frac {\partial _{x_j}\omega } {\omega } (\delta _{ij}P_{ki}+\delta _{ik}P_{ji})+\partial _{x_j} P_{kj}\right ]\\ = &\sum _j\left [-\left (\partial _{x_j}P_{kj}-\frac {2\partial _{x_j}\omega }{\omega }P_{kj}\right ) -\frac {\partial _{x_j}\omega } {\omega } (P_{kj}+P_{kj})+\partial _{x_j} P_{kj}\right ]=0. \end {align*} □
3. Numerical Schemes
In this section, we present the numerical implementation of the equations for \(\bm u\) and \(\omega \) in the rescaled dynamics \(\eqref {eq:g}\).
3.1. Evolution of the Macroscopic Velocity. We shall solve the dynamics of \(\bm {u}\) through the conservative form \(\eqref {eq:sysMomentCoupled}\). More generally, we shall focus on the space discretization of the system of \(n\) conservation laws \begin {equation} \label{sysConservLaws}\tag{3.1} \left \{ \begin {aligned} & \frac {\partial U}{\partial t} + \nabla _x \cdot G(U) = \mathcal H(t,x,U), \ \forall \, (t,x) \in \RR _+ \times \Omega , \\ & \, \\ & U(0,x) = U_0(x), \end {aligned} \right . \end {equation} for a smooth function \(G : \RR ^n \to M_{n\times d}(\RR )\) and a Lipschitz-continuous domain \(\Omega \subset \RR ^{d}\). The source term \(\mathcal H\) will be problem dependent, and be treated separately. Indeed, this equation covers the systems of conservation laws of type \(\eqref {eq:sysMomentCoupled}\) with \(n=d+1\), \(U = (\rho , \rho \bm {u})^\intercal \), and \(G\) nonlinear, or \(\eqref {eq:omega}\) (\(n=1\), \(G\) linear) describing the evolution of \(\omega \) for the Cucker-Smale case. Our approach of the problem will be made in the framework of finite volume schemes, using central Lax Friedrichs schemes with slope limiters (see e.g. Nessyahu and Tadmor [13]). We shall present the spatial discretization of \(\eqref {sysConservLaws}\) in one space dimension for simplicity. The extension for the Cartesian grid in the multidimensional case will then be straightforward.
In the one dimensional setting, the domain \(\Omega = (a, b)\) is a finite interval of \(\RR \). We define a mesh of \(\Omega \), not necessarily uniform, by introducing a sequence of \(N_x\) control volume \(K_i := \left (x_{i-\frac {1}{2}}, x_{i + \frac 12}\right )\) for \(i=1,\cdots ,N_x\) with \(x_i := \left (x_{i-\frac {1}{2}}+ x_{i + \frac 12}\right )/ \,2\) and \begin {equation*} a = x_\frac {1}{2} < x_1 < \cdots < x_{i-\frac {1}{2}} < x_i < x_{i + \frac 12} < \cdots < x_{N_x} < x_{N_x + \frac 12} = b. \end {equation*} The Lebesgue measure of the control volume is then simply \(\mes (K_i) = x_{i+\frac 12} - x_{i - \frac 12}\). Let \(u_i = u_i(t)\) be an approximation of the mean value of \(u\) over a control volume \(K_i\). By integrating the transport equation \(\eqref {sysConservLaws}\) over \(K_i\), we get the semidiscrete equations \begin {equation} \label{eqFreeTranspDisc}\tag{3.2} \left \{ \begin {aligned} & \mes (K_i) \frac {\partial u_i}{\partial t}(t) + {F}_{i+\frac 12} - {F}_{i-\frac 12} = \mathcal {H}_i(t), \ \forall \, t \in \RR _+, \ i=1,\cdots ,N_x, \\ & \, \\ & u_i(0) = \frac {1}{\mes (K_i)} \int _{K_i} u_0(x) \, dx. \end {aligned} \right . \end {equation}
In the Cauchy problem \(\eqref {eqFreeTranspDisc}\), the quantity \(\left ({F}_{i+\frac 12}\right )_i\), the numerical flux, is an approximation of the flux function \(x \mapsto G\left (u(t,x)\right )\) at the cell interface \(x_{i+\frac 12}\). We choose to use the so-called Lax-Friedrichs fluxes with the second order Van Leer’s slope limiter [18]. In this setting, the slope limited flux is given by \begin {equation*} {F}_{i+\frac 12} = \frac 12 \left ( G\left (u_{i + \frac 12, -}\right ) + G\left (u_{i + \frac 12, +}\right )\right ) - \frac {\lambda _{i+\frac 12}}{2}\left ( u_{i + \frac 12, -} - u_{i + \frac 12, +}\right ) \end {equation*} where we have set \[ \lambda _{i+\frac 12} := \max _{\lambda \in {\rm Sp \left (G'(U_i)\right )}} |\lambda |, \] and \(u_{i + \frac 12, \pm }\) is the slope limited reconstruction of \(u\) at the cell interface, namely, componentwise, \begin {equation*} \left \{ \begin {aligned} u_{i + \frac 12, -} & = u_i + \frac 12 \, \phi ( \theta _i ) \, ( u_{i+1} - u_i), \\ & \, \\ u_{i + \frac 12, +} & = u_i - \frac 12 \, \phi ( \theta _i ) \, ( u_{i+2} - u_{i+1}). \end {aligned} \right . \end {equation*} In this last expression, \(\theta _i\) is the slope for each component \(u_k\) of \(u\): \[ \theta _{i,k} = \frac {u_{i,k} - u_{i-1,k}}{u_{i+1,k} - u_{i,k}}, \quad \forall k \in \{1, \ldots ,n\} \] and \(\phi \) is the so-called Van Leer’s limiter \[ \phi (\theta ) := \frac {\theta + |\theta |}{1 + \theta }. \]
We notice that this second order method uses a \(2\)-point stencil, and we will then have to define the value of the solution on the ghost cells \[ \left \{x_{-\frac 32},x_{-\frac 12},x_{N_x+\frac 32},x_{\frac 52}\right \}.\] This value will be set according to the boundary conditions chosen for the problem at hand.
3.2. Discretization of the Flocking Terms. Since we are only dealing with first order schemes for the transport parts in \(\eqref {eq:g}\), we shall not use a high order spectral method for the discretization of the flocking terms \(\AAA \) and \(\BBB \). We then simply approximate these terms using a first order quadrature rule. On a uniform grid \(x_i = i \Delta x\) and \(\xi _j = j \Delta \xi \) for \(\Delta x >0\) and \(\Delta \xi \), we have for the Cucker-Smale model \(\ref {eq:AB_CS}\): \[ \AAA _{CS,i} = \Delta x \,\sum _j \phi \left (|x_i - x_j|\right ) \rho _i, \quad \BBB _{CS,i} = \Delta x \,\sum _j \phi \left (|x_i - x_j|\right ) \left ( \bm {u}_j - \bm {u}_i\right ) \rho _i, \] where we set \[ \rho _i = \Delta \xi \sum _j g_{ij}, \quad \rho _i \bm {u}_i = \Delta \xi \sum _j \xi _j \, g_{ij}.\] The Motsch-Tadmor model is then simply given by \[ \AAA _{MT,i} = 1, \quad \BBB _{MT,i} = \frac {\BBB _{CS,i}}{\AAA _{CS,i}}. \]
3.3. Evolution of the scaling factor. Let us recall the dynamics of the scaling factor \(\omega \) \[\partial _t\omega +\bm {u}\cdot \grad _x\omega -\omega \AAA =0.\] In the Motsch-Tadmor setup, we have seen that \[\AAA _{MT}\equiv 1.\] If one picks the initial scaling \(\omega _0=1\), then there is an explicit spatially homogeneous solution for \(\omega \), given by: \[\omega (x,t)=e^t.\]
In the Cucker-Smale setup, \(\omega \) is spatially dependent. Along the characteristic flow, \[\omega '=\omega \AAA _{CS},\qquad \text {where } '=\partial _t+\bm {u}\cdot \grad _x.\] If \(\AAA _{CS}=\phi \star \rho \) is strictly positive, \(\omega \) grows exponentially in time. As \(S(t)\) is uniformly bounded in time, we get a uniform in space-time lower bound on \(\AAA _{CS}\): \[\AAA _{CS}(x,t)\geq \phi (D)\|\rho \|_{L^1},\] where \(D=\sup _tS(t)\) is finite and \(\phi (D)>0\) in the case of flocking. Hence, \(\omega \) has an exponential growth as well for Cucker-Smale system.
To evolve \(\omega \) numerically, we rewrite the equation in the conservative form \[\partial _t\omega +\grad _x\cdot (\bm {u}\omega )= \omega (\grad _x\cdot \bm {u}+\AAA _{CS}).\] and it can be treated under the framework of system \(\eqref {sysConservLaws}\).
4. A Momentum Preserving Correction of the Upwind Scheme
We have seen in Proposition (2.1) that one of the important features of the rescaled equation \(\eqref {eq:g}\) is that it preserves the zero momentum condition of \(g\): \[ M(t,x) := \int _{\RR ^d} \xi \, g(t,x,\xi ) \, d\xi = 0, \ \forall t > 0 \quad \text {if} \quad M(0,x) = 0, \ \forall x \in \Omega . \] We will derive in this section a numerical method that is able to propagate exactly this particular property for the type of equation we are dealing with44 An extension to a more general class of equations is currently in progress [14]..
4.1. A Toy Model. We will start by presenting our approach on a toy model. Let us consider, for \(c \in \RR \) constant, the following transport equation on \(g=g(t,\xi )\): \begin {equation} \label{eq:toy}\tag{4.1} \left \{ \begin {aligned} & \partial _tg+c \, \grad _\xi \cdot (\xi g)=0,\\ & \, \\ & g(0,\xi )=g_0(\xi ) > 0, \end {aligned} \right . \end {equation} with the zero initial momentum property \[ \int _{\RR ^d}\xi \, g_0(\xi ) \,d\xi =0. \] A simple calculation yields that if \(g\) is solution to \(\eqref {eq:toy}\) then one has \[\frac {d}{dt}\int _{\RR ^d} \xi \,g(t,\xi )\,d\xi =-c\int _{\RR ^d}\xi \grad _\xi \cdot (\xi g)\,d\xi =c\int _{\RR ^d}\xi \,g(t,\xi )\,d\xi .\] Therefore, momentum is conserved in time: \begin {equation} \label{eq:evolMomentumExactToy}\tag{4.2} M(t) = e^{ct}\int _{\RR ^d}\xi \,g_0 \,d\xi =0. \end {equation}
Let us now consider the numerical approximation of this problem. One classical way to consider it is to apply the classical upwind scheme (denoted in all the following by upwind) to solve the equation. For the sake of simplicity, let us take \(c=1\) and a one dimensional, equally distributed grid on \(\xi \): \[ \xi _j=(j-J)\Delta \xi , \quad \forall j \in \ZZ , \] for a given \(J \in \RR \). In particular, 0 is on the grid: \[\xi _J=0.\] In this case, the fully discrete upwind scheme reads [10] \begin {equation} \label{eq:FV}\tag{4.3} g^{n+1}_j=g^n_j-\frac {\Delta t}{\Delta \xi }\left (F^n_{j+1/2}-F^n_{j-1/2}\right ), \end {equation} where the numerical flux \(\left (F^n_{j+1/2}\right )_j\) is given since \(g^n_j\) is nonnegative by \begin {equation} \label{eq:classicalFlux}\tag{4.4} F^n_{j+1/2}=\begin {cases} \xi _{j+1/2}\,g_j^n& j\geq J\\ \xi _{j+1/2}\,g_{j+1}^n&j\leq J-1 \end {cases}. \end {equation}
Let us compute the evolution of the discrete momentum \(M^n\): \[M^n := \Delta \xi \sum _j\xi _j\,g_j^n \simeq M\left (t^n\right ).\] Since \(\xi _J = 0\), the contribution of the flux can be simplified as follows. \begin {align*} \sum _j\xi _jF^n_{j+1/2}=& \sum _{j\geq J}\xi _j\xi _{j+1/2}\,g_j^n+ \sum _{j\leq J-1}\xi _j\xi _{j+1/2} \,g_{j+1}^n\\ =&\sum _{j\geq J}\xi _j\left (\xi _j+\frac {\Delta \xi }{2}\right )g_j^n+ \sum _{j\leq J}(\xi _j-\Delta \xi )\left (\xi _j-\frac {\Delta \xi }{2}\right )g_j^n\\ =&\sum _j\xi _j^2 \,g_j^n+\frac {\Delta \xi }{2}\left [\sum _{j\geq J}\xi _j\,g_j^n -3\sum _{j\leq J}\xi _j\,g_j^n\right ]+\frac {(\Delta \xi )^2}{2}\sum _{j\leq J}g_j^n. \end {align*}
Similarly, we get \[ \sum _j\xi _jF^n_{j-1/2}=\sum _j\xi _j^2\, g_j^n+\frac {\Delta \xi }{2}\left [3\sum _{j\geq J}\xi _j\,g_j^n -\sum _{j\leq J}\xi _j\,g_j^n\right ]+\frac {(\Delta \xi )^2}{2}\sum _{j\geq J}g_j^n. \] The evolution of the discrete momentum then reads, \begin {align} \sum _j\xi _j\,g^{n+1}_j=&\sum _j\xi _j\,g^n_j-\frac {\Delta t}{\Delta \xi }\left [\sum _j\xi _jF^n_{j+1/2}-\sum _j\xi _jF^n_{j-1/2}\right ] \notag \\ =&(1+\Delta t)\sum _j\xi _j\,g^n_j+\frac {\Delta t\Delta \xi }{2} \left [-\sum _{j\leq J} g_j^n+\sum _{j\geq J}g_j^n\right ], \label{eq:evolMomentumUpwind}\tag{4.5} \end {align}
namely one has \[ M^{n+1} = (1 + \Delta t) M^n + \frac {\Delta t\Delta \xi }{2} \left [-\Delta \xi \sum _{j\leq J} g_j^n+\Delta \xi \sum _{j\geq J}g_j^n\right ]. \] In the special case where \(g\) is symmetric in \(\xi \), the discrete zero momentum is preserved in time. However, it is in general not true, unless one has \[\sum _{j\leq J} g_j^n=\sum _{j\geq J}g_j^n.\]
To ensure momentum conservation, we introduce a correction \(\tilde {F}^n\) on the upwind flux \(F^n\). If the correction satisfies \begin {equation} \label{eq:corr}\tag{4.6} \sum _j\xi _j(\tilde {F}_{j+1/2}^n-\tilde {F}_{j-1/2}^n)= \frac {(\Delta \xi )^2}{2}\left [\sum _{j\leq J} g_j^n-\sum _{j\geq J}g_j^n\right ], \end {equation} then the new flux \(F^n+\tilde {F}^n\) will preserve zero momentum, according to \(\eqref {eq:evolMomentumUpwind}\).
We provide two corrections \(\tilde {F}^{(1),n}\) and \(\tilde {F}^{(0),n}\) which satisfy \(\eqref {eq:corr}\): \[ \tilde {F}^{(1),n}_{j+1/2}=\begin {cases} -\frac {\Delta \xi }{2}g^n_{j+1}& j\geq J\\ +\frac {\Delta \xi }{2}g^n_j&j\leq J-1 \end {cases},\qquad \tilde {F}^{(0),n}_{j+1/2}=\begin {cases} -\frac {\Delta \xi }{2}g^n_j& j\geq J\\ +\frac {\Delta \xi }{2}g^n_{j+1}&j\leq J-1 \end {cases}. \] The corresponding new fluxes \(F^{(1),n}\) and \(F^{(0),n}\) have the following forms. \begin {equation} \label{eq:newflux}\tag{4.7} F^{(1),n}_{j+1/2}=\begin {cases} \xi _{j+1/2}\,g^n_j-\frac {\Delta \xi }{2}g^n_{j+1}& j\geq J\\ \xi _{j+1/2}\,g^n_{j+1}+\frac {\Delta \xi }{2}g^n_j&j\leq J-1 \end {cases},\qquad F^{(0),n}_{j+1/2}=\begin {cases} \xi _j\,g^n_j& j\geq J\\ \xi _{j+1\,}g^n_{j+1}&j\leq J-1 \end {cases}. \end {equation} Moreover, we can get a family of corrections satisfying \(\eqref {eq:corr}\) by interpolating between \(\tilde {F}^{(1),n}\) and \(\tilde {F}^{(0),n}\): \[ \tilde {F}^{(\theta ),n} :=\theta \tilde {F}^{(1),n} +(1-\theta )\tilde {F}^{(0),n},\quad \theta \in [-1,1]. \] The respective fluxes \(F^{(\theta ),n}:=F^n+\tilde {F}^{(\theta ),n}\) can then be expressed as \begin {equation} \label{eq:newfluxes}\tag{4.8} F^{(\theta ),n}_{j+1/2}=F^{(0),n}_{j+1/2}-\frac {\theta \Delta \xi }{2}(g_{j+1}^n-g_j^n). \end {equation} We have the following result:
Proposition 4.1. Suppose that the sequence \(\{g^0_j\}_j\) has \(0\) discrete momentum: \[\Delta \xi \sum _j\xi _j\,g^0_j=0.\] Then for any \(\theta \in [-1,1]\), the scheme \(\eqref {eq:FV}\) with initial condition \(\{g^0_j\}_j\) with numerical fluxes \(F^{(\theta )}\) given by \(\eqref {eq:newfluxes}\) preserves the discrete mass \(\Delta \xi \sum _j g_j^n\) and momentum \(\Delta \xi \sum _j\xi _j\,g_j^n\).
For the general case \(c\in \RR \), a similar correction can be added into the upwind flux: \begin {equation} \label{eq:newfluxgeneral}\tag{4.9} F^{(\theta ),n}_{j+1/2}=F^{(0),n}_{j+1/2}-\frac {c\theta \Delta \xi }{2}(g_{j+1}-g_j), \end {equation} where \(F^{(0)}\) is defined as \[ F^{(0),n}_{j+1/2}=\begin {cases} c\,\xi _j\,g^n_j& j\geq J\\ c\,\xi _{j+1}\,g^n_{j+1}&j\leq J-1 \end {cases} \text {for } c>0,\quad \text {and} ~~ F^{(0),n}_{j+1/2}=\begin {cases} c\,\xi _j\,g^n_j& j\leq J-1\\ c\,\xi _{j+1}\,g^n_{j+1}&j\geq J \end {cases}\text {for } c<0. \] In the following, this family of fluxes will be called MCU(\(\theta \)), for Momentum Conservative Upwind fluxes. With the correction, it is easy to check that \[M^{n+1}=(1+c\Delta t)M^n.\] It implies that the zero momentum property is preserved. Moreover, even if the initial momentum is not zero, the new flux provides a good approximation of the momentum. Indeed, note that \(1+c\Delta t\) is a first-order in time approximation of \(e^{c\Delta t}\), the correct behavior of the momentum of a solution to \(\eqref {eq:toy}\), according to \(\eqref {eq:evolMomentumExactToy}\). It is moreover independent with the choice of \(\Delta \xi \). Various means can be applied to obtain higher time accuracy.
Let us summarize the properties of the MCU(\(\theta \)) fluxes.
Proposition 4.2. Consider a finite volume scheme \(\eqref {eq:FV}\) for the approximation of \(\eqref {eq:toy}\) with the numerical fluxes MCU(\(\theta \)), for a given \(\theta \in [-1,1]\). Then one has the following:
- Accuracy. The scheme solves \(\eqref {eq:toy}\) with first order accuracy.
- Positivity preserving. If \(c\,\theta \geq 0\) and the computational domain is \([-L,L]\), then the scheme preserves positivity under the CFL condition \begin {equation} \label{eq:CFLcond}\tag{4.10} \lambda =\frac {\Delta t}{\Delta \xi }\leq \frac {1}{|c|(L+2\Delta \xi )}. \end {equation}
- Mass conservation. The scheme preserves the discrete mass \(\Delta \xi \sum _j g_j^n\).
- Momentum conservation. The scheme preserves the zero initial momentum property.
Remark 6. As a direct consequence of positivity preserving and mass conservation, the scheme is \(l^1\)-stable, namely, the discrete \(l^1\) norm \(\|g_j\|_{l^1}\) is conserved in time if \(c \, \theta \geq 0\). In particular, MCU(0) is stable for any choice of \(c\), under the CFL condition \(\eqref {eq:CFLcond}\).
Remark 7. The new flux can be easily implemented in a higher dimensional setting, as in each interface, the fluxes can be treated like in the \(d=1\) case.
Proof. It is obvious that the scheme has first order accuracy, as it is a \(\mathcal {O}(\Delta \xi )\) correction based on the upwind scheme, which is known to be first order accurate. The mass conservation follows directly from the structure of the finite volume methods and the positivity preserving property. The momentum conservation is clearly satisfied from Proposition 4.1.
Here, we shall only prove the positivity preserving property. In particular, we assume \(c\geq 0\). The case when \(c<0\) can be verified by the same procedure.
For \(j\geq J+1\), the scheme with MCU(\(\theta \)) flux \(\eqref {eq:newfluxgeneral}\) reads \begin {align*} g_j^{n+1}=&g_j^n-\lambda \left [ \left (c\xi _jg_j^n-\frac {c\theta \Delta \xi }{2}(g_{j+1}-g_j)\right ) -\left (c\xi _{j-1}g_{j-1}^n-\frac {c\theta \Delta \xi }{2}(g_j-g_{j-1})\right )\right ]\\ =&\big (1-c\lambda (\xi _j+\Delta \xi )\big )g_j^n+ \lambda c\left (\xi _{j-1}+\frac {\theta \Delta \xi }{2}\right )g_{j-1}^n+ \frac {\lambda c\theta \Delta \xi }{2}g_{j+1}^n. \end {align*}
The coefficient in front of \(g_j^n\) is positive due to the CFL condition, and the coefficient in front of \(g_{j-1}^n\) and \(g_{j+1}^n\) are positive as well, as \(c\theta \geq 0\). Therefore, if \(\{g_k^n\}_{k=j-1}^{j+1}\) are positive, so does \(g_j^{n+1}\).
Similarly, we check for \(j\leq J-1\) (in this case \(\xi _j<\xi _{j+1}\leq 0\)) \[g_j^{n+1}=\big (1-c\lambda (-\xi _j+\Delta \xi )\big )g_j^n+ \frac {\lambda c\theta \Delta \xi }{2}g_{j-1}^n+ \lambda c\left (-\xi _{j+1}+\frac {\theta \Delta \xi }{2}\right )g_{j+1}^n, \] and for \(j=J\) \[g_J^{n+1}=g_J^n+ \frac {\lambda c\theta \Delta \xi }{2}g_{J-1}^n+ \frac {\lambda c\theta \Delta \xi }{2}g_{J+1}^n. \] In both cases, the coefficients are positive, and therefore the scheme preserves positivity. □
4.2. Application to Flocking Models.
The Motsch-Tadmor Dynamics.. Let us now present the discretization of the equation describing the evolution of \(g\). We shall apply the new momentum preserving flux to solve this equation for different models, starting with Motsch-Tadmor. Here, we recall the dynamics in one dimension \begin {equation} \label{eq:gMT1D}\tag{4.11} \partial _t g +\partial _x \left [ \left (u + \frac {\xi }{\omega }\right ) g\right ] + \partial _\xi \left [ \left ( - \xi \,\partial _xu + \frac {1}{\rho \omega }\partial _x P\right ) g \right ] = 0. \end {equation} We consider \(x\in \mathbb {T}\) and an initial density uniformly bounded from below: \[\rho _0(x) \geq \rho _{min}>0.\] Thus, because of the continuity equation, vacuum cannot exist in any finite time if \(u_x\) remains bounded. We treat the four terms arising in \(\eqref {eq:gMT1D}\) one by one using a finite volume method: \begin {align*} g_{ij}^{n+1}=g_{ij}^n&-\frac {\Delta t}{\Delta x}\left (F^{1,n}_{i+1/2,j}-F^{1,n}_{i-1/2,j}\right ) -\frac {\Delta t}{\Delta x}\left (F^{2,n}_{i+1/2,j}-F^{2,n}_{i-1/2,j}\right )\\ &-\frac {\Delta t}{\Delta \xi }\left (F^{3,n}_{i,j+1/2}-F^{4,n}_{i,j-1/2}\right ) -\frac {\Delta t}{\Delta \xi }\left (F^{4,n}_{i,j+1/2}-F^{4,n}_{i,j-1/2}\right ), \end {align*}
where \(F^1,\ldots ,F^4\) are the numerical fluxes associated respectively to \[ x \mapsto u\,g, \quad x\mapsto \frac {\xi }{\omega }\,g, \quad \xi \mapsto -\xi \,\partial _xu\,g, \quad \xi \mapsto \frac {1}{\rho \omega }\partial _x P g. \] For the sake of simplicity, we discretize \(g\) with equally distributed cells in both \(x\) and \(\xi \). In particular, \(\xi _J=0\). We shall also omit the superscript \(n\) from now on.
For \(F^1\), we take the classical upwind flux \(\eqref {eq:classicalFlux}\) \[ F^1_{i+1/2,j}=\begin {cases} u_{i+1/2}\,g_{ij}&u_{i+1/2}\geq 0\\ u_{i+1/2}\,g_{i+1,j}&u_{i+1/2}<0 \end {cases},\] which clearly preserves the discrete momentum.
Similarly, the classical upwind flux can be used for \(F^2\) and \(F^4\) as well, \[F^2_{i+1/2,j}=\begin {cases} \displaystyle \frac {\xi _j}{\omega }\,g_{ij}&j\geq J\\ \, \\ \displaystyle \frac {\xi _j}{\omega }\,g_{i+1,j}&j\leq J-1 \end {cases},\qquad F^4_{i,j+1/2}=\begin {cases} \displaystyle \frac {1}{\rho _i\omega }(\partial _xP)_i\,g_{ij}&(\partial _xP)_i\geq 0\\ \, \\ \displaystyle \frac {1}{\rho _i\omega }(\partial _xP)_i\,g_{i,j+1}&(\partial _xP)_i<0 \end {cases}.\] As these two terms preserve momentum when combined together, namely, \[\int _\R \xi \left [\partial _x\left (\frac {\xi }{\omega }\,g\right ) +\partial _\xi \left (\frac {1}{\rho \omega }\partial _xPg\right )\right ]d\xi =0,\] the discrete momentum will be preserved with the discrete flux as well: \[\sum _j\xi _j\left [\frac {F^2_{i+1/2,j}-F^2_{i-1/2,j}}{\Delta x}+ \frac {F^4_{i,j+1/2}-F^4_{i,j-1/2}}{\Delta \xi }\right ]=0.\] This can be easily checked if we approximate \(\partial _xP\) and \(\rho \) by \[(\partial _xP)_i=\Delta \xi \left [ \sum _{j\geq J+1}\xi _j^2\frac {g_{ij}-g_{i-1,j}}{\Delta x}+\sum _{j\leq J-1}\xi _j^2\frac {g_{i+1,j}-g_{ij}}{\Delta x} \right ],\quad \rho _i=\Delta \xi \sum _jg_{ij}.\]
Finally, the last remaining term \(F^3\) can be reduced to the toy model for fixed \(i\), where the coefficient \(c=-(\partial _xu)_i\) is \(x\)-dependent. Hence, we apply the new MCU(\(\theta \)) flux \(\eqref {eq:newfluxgeneral}\) and the zero momentum property is preserved as a consequence of proposition 4.1. Moreover, concerning the question of stability, we have seen that MCU(0) preserves the positivity for all \(c \in \RR \). Alternatively, we can also use MCU(1) for \(c>0\) and MCU(-1) for \(c<0\).
The Cucker-Smale Dynamics.. We now consider the Cucker-Smale model. In this case, the scaling factor \(\omega \) depends on both time and space variables, which brings an extra term to the \(g\) equation, as well as some new numerical difficulties. The one dimensional dynamics reads \begin {equation} \label{eq:gCS1D}\tag{4.12} \partial _t g +\partial _x \left [ \left (u + \frac {\xi }{\omega }\right ) g\right ] + \partial _\xi \left [ \left ( -\xi \,\partial _xu + \frac {\omega }{\rho }\partial _x\left (\frac {P}{\omega ^2}\right ) + \frac {\partial _x\omega }{\omega ^2}\xi ^2\right ) g \right ] = 0. \end {equation} For its numerical discretization, the quantities \(F^1\) and \(F^3\) are the same as in the Motsch-Tadmor case. The quantity \(F^2\) is again treated by the upwind flux \[F^2_{i+1/2,j}=\begin {cases} \displaystyle \frac {\xi _j}{\omega _{i+1/2}}g_{ij}&j\geq J\\ \displaystyle \frac {\xi _j}{\omega _{i+1/2}}g_{i+1,j}&j\leq J-1 \end {cases}.\] To get \(\omega _{i+1/2}\), we can either evolve \(\omega \) on a staggered grid \(\{x_{i+1/2}\}_i\), or interpolate from the knowledge of the cell-centered values \(\{\omega _i\}_i\). We choose in all our numerical experiments this latter approach, with a simple first order interpolation.
Since \(\omega \) is not a constant, we also have to modify \(F^4\) as follows: \[F^4_{i,j+1/2}=\begin {cases} \displaystyle \frac {1}{\rho _i}\frac {\omega _{i+1/2}+\omega _{i-1/2}}{2}\left [\partial _x\left (\frac {P}{\omega ^2}\right )\right ]_ig_{ij} &\displaystyle \left [\partial _x\left (\frac {P}{\omega ^2}\right )\right ]_i\geq 0\\ &\\ \displaystyle \frac {1}{\rho _i}\frac {\omega _{i+1/2}+\omega _{i-1/2}}{2}\left [\partial _x\left (\frac {P}{\omega ^2}\right )\right ]_ig_{i,j+1} &\displaystyle \left [\partial _x\left (\frac {P}{\omega ^2}\right )\right ]_i<0 \end {cases},\] where \[\left [\partial _x\left (\frac {P}{\omega ^2}\right )\right ]_i =\frac {\Delta \xi }{\Delta x}\left [ \sum _{j\geq J+1}\xi _j^2\left (\frac {g_{ij}}{\omega _i^2} -\frac {g_{i-1,j}}{\omega _{i-1}^2}\right ) +\sum _{j\leq J-1}\xi _j^2\left (\frac {g_{i+1,j}}{\omega _{i+1}} -\frac {g_{ij}}{\omega _i}\right ) \right ],\quad \rho _i=\Delta \xi \sum _jg_{ij}.\]
Finally, for the additional term \[ \xi \mapsto \frac {\partial _x\omega }{\omega ^2}\xi ^2g,\] we choose the corresponding flux \(F^5\) which is compatible with \(F^4\), so that discrete zero momentum is preserved. One simple momentum preserving flux reads \[F_{i,j+1/2}^5=\begin {cases} \displaystyle \frac {\xi _j^2}{2}\left [\frac {g_{i,j}}{\omega _{i+1/2}^2}+\frac {g_{i-1,j}}{\omega _{i-1/2}^2}\right ]\cdot \frac {\omega _i-\omega _{i-1}}{\Delta x} & j\geq J\\ &\\ \displaystyle \frac {\xi _j^2}{2}\left [\frac {g_{i+1,j}}{\omega _{i+1/2}^2}+\frac {g_{i,j}}{\omega _{i-1/2}^2}\right ]\cdot \frac {\omega _{i+1}-\omega _i}{\Delta x} & j\leq J-1\\ \end {cases}.\] Despite the preservation of momentum, this flux uses the information in the cell \(j\) to determine the flux at the interface \(j+1/2\), which is not promising. Here, we provide a more reasonable momentum preserving flux, namely \[F_{i,j+1/2}^5=\begin {cases} \displaystyle \frac {\xi _j\xi _{j+1}}{4}\left (\frac {g_{i,j}+g_{i,j+1}}{\omega _{i+1/2}^2}+\frac {g_{i-1,j}+g_{i-1,j+1}}{\omega _{i-1/2}^2}\right ) \cdot \frac {\omega _i-\omega _{i-1}}{\Delta x} & j\geq J\\ &\\ \displaystyle \frac {\xi _j\xi _{j+1}}{4}\left (\frac {g_{i+1,j}+g_{i+1,j+1}}{\omega _{i+1/2}^2}+\frac {g_{i,j}+g_{i,j+1}}{\omega _{i-1/2}^2}\right ) \cdot \frac {\omega _{i+1}-\omega _i}{\Delta x} & j\leq J-1\\ \end {cases}.\]
5. Numerical Simulation
5.1. Test 1 - The Anti-Drift Equation. Before presenting numerical simulations for the full flocking equation \(\eqref {eq:flocking}\), we will first demonstrate the efficiency of the new conservative fluxes MCU(\(\theta \)) described in section 4. For this, we consider the toy model \(\eqref {eq:toy}\), with \(c=1\) (also know as the linear anti-drift equation): \begin {equation} \label{eq:antiDrift}\tag{5.1} \partial _t g + \nabla _x \cdot (\xi g) = 0, \end {equation} with homogeneous Dirichlet boundary conditions. We consider the case \(d=1\) and take as an initial condition a sum of two Gaussian functions, with \(0\) momentum: \[ g(0,\xi ) = \frac 1{\sqrt {2 \pi T}} \left [ \frac 12 \exp \left ( -\frac {|\xi - c_1|^2}{2 T}\right ) + \frac 32 \exp \left ( -\frac {|\xi - c_2|^2}{2 T}\right ) \right ], ~~ T = 0.01, \ c_1 = -0.9375, \ c_2 = 0.3125. \] One can check that this function has \(0\) momentum, but is not symmetric. We aim to compare the new momentum conservative upwind fluxes with the classical ones.
We first present in Figure 1 the approximate solution at time \(t=0.3\) of \(\eqref {eq:antiDrift}\), obtained with the upwind and MCU(1) first order fluxes with \(N_\xi = 101\) points in the \(\xi \) variable to discretize the box \([-3.5,3.5]\). The time stepping is done using a forward Euler discretization with \(\Delta t = 1/300\). We also show a reference solution obtained by using a second order flux limited scheme as presented in section 3.1 with \(2000\) points in \(\xi \) and \(\Delta t = 1/1500\). We observe that both upwind and MCU(1) fluxes give very similar results, which are in good agreement with the reference solution. Being first order, both schemes are quite diffusive but seem to give the correct wave propagation speed.
| \(N_\xi \) | upwind | MCU(1) | MCU(0) |
| 101 | 4.6e-3 | 3.6e-16 | 3.1e-16 |
| 201 | 2.3e-3 | 2.1e-16 | 1.9e-16 |
| 401 | 9.9e-4 | 2.8e-16 | 2.3e-16 |
We then investigate the desired properties, namely the preservation of the first moment of \(g\): \[ M(t) := \int _{\RR ^d} \xi \, g(t, \xi ) \, d\xi = 0, \ \forall t \geq 0. \] We present in Table 1 the \(L^\infty \) norm of this quantity for \(t \in [0, 0.2]\), for the upwind, MCU(1), and MCU(0) fluxes, and for different mesh sizes. We observe that both MCU(1) and MCU(0) preserve exactly (up to the machine precision) the first moment of \(g\), without any influence of the grid size. This is not the case for the classical upwind fluxes, where the value of \(M(t)\) decreases almost linearly with the size of the mesh. This is even more clear in Figure 2, where we compare the time evolution of the approximate value of \(M(t)\) obtained with the upwind and MCU(1) fluxes. We take successively \(N_\xi = 101\) and \(N_\xi = 201\) grid points and respectively \(\Delta t = 1/300\) and \(\Delta t = 1/600\). While the momentum obtained with the MCU(1) fluxes remains nicely \(0\) during time, the one obtained with the upwind fluxes grows linearly with time. Moreover, as expected through \(\eqref {eq:evolMomentumUpwind}\), the growth rate of this quantity is proportional to the mesh size.
5.2. Test 2 - One Dimensional Motsch-Tadmor. We are now interested in numerical simulations of the flocking equation \(\eqref {eq:flocking}\) in the Motsch-Tadmor case \(\eqref {eq:collisionMT}\) for \(d=1\) with the local influence function \[ \phi (r) = \bm 1_{\{|r| \leq 0.1\}}, \] and periodic boundary conditions in \(x\). We will use for this the rescaled model \(\eqref {eq:g}\). We recall that in the particular Motsch-Tadmor case, the equation describing the evolution for \(g\) is reduced to \(\eqref {eq:gMT1D}\). Moreover, we can chose \(\omega (t) = \exp (t)\) for all \(t \geq 0\) according to \(\eqref {eq:omegaMT}\).
We take as an initial condition the Gaussian function \[ f_0(x,v) = \frac {\rho (x)}{\sqrt {2 \pi }} \exp \left (-|v - u(x)|^2/2\right ), \ \forall x \in \TT , \ v \in \RR , \] where the density \(\rho \) is almost localized in space \[ \rho (x) = 0.01 + \frac {1}{\sqrt {2 \pi T} }\exp (-|x|^2/2T), \quad T = 0.01, \] and the momentum \(u\) is an oscillating function \[ u(x) = 5 + \sin (x/2 \pi ). \]
The discretization of the drift part of \(\eqref {eq:gMT1D}\) is dealt with using the momentum preserving fluxes MCU(0), as presented in section 4.2. We take \(N_x = 75\) points in the physical space and \(N_\xi = 101\) points in the rescaled velocity space for a rescaled velocity variable \(\xi \in [-15,15]\). We choose \(\Delta t = 1/1500\) because of the size of this support.
![]() |
![]() |
![]() |
![]() |
As presented in Figure 3, on the one hand the distribution \(f\) in classical variables \(v\) concentrates in the velocity direction as time evolves. On the other hand, the distribution \(g\) after scaling behaves nicely in large time, with neither concentration or spreading in \(\xi \). As we consider the case where \(x\) lies on a torus, the equation converges to a global equilibrium, even if the influence function is local
To further understand the rate of concentration, let us look at the maximum value of the reconstructed \(f\) against time in Figure 4. This quantity will give us a good information on the rate of convergence of \(f\) toward a monokinetic distribution. We observe an exponential growth in time of this quantity, as expected from the theoretical behavior.
Remark 8. Another property of our model is its efficiency, when compared to the original equation. Indeed, the flocking operator for \(f\) is written as a convolution in both space and velocity variables, and the numerical cost for its computation with a simple quadrature rule is then proportional to \(\mathcal O\left (N_x^2 \, N_\xi ^2\right )\). The rescaled model, although given by a system of equations, is only obtained thanks to a convolution in space. Its numerical complexity is then proportional to \(\mathcal O\left (N_x^2\right )\), which is a huge improvement, especially in higher dimension.
5.3. Test 3 - One Dimensional Cucker-Smale. We are finally interested in numerical simulations of the flocking equation \(\eqref {eq:flocking}\) in the Cucker-Smale case \(\eqref {eq:collisionMT}\) for \(d=1\), this time with the global influence function \[ \phi (r) = \frac 1{(1+r)^{-1/2}}, \] and periodic boundary conditions in \(x\). We will use for this the rescaled model \(\eqref {eq:g}\). We recall that in the particular Cucker-Smale case, the equation describing the evolution for \(g\) is reduced to \(\eqref {eq:gCS1D}\), namely it has one more transport term than the Motsch-Tadmor model. Moreover, this time, the evolution of \(\omega \) is given by the solution to the partial differential equation \(\eqref {eq:omega}\), and is no longer explicit.
We take as an initial condition a step function in the phase space: \[ f_0(x,v) = \bm {1}_{|x| \leq 1/4}(x) \, \bm {1}_{|v| \leq 2}(v), \ \forall x \in \TT , \ v \in \RR . \] The discretization of \(\eqref {eq:gCS1D}\) is done as described in section 4.2, and we take \(N_x = 75\) points in the physical space, and \(N_\xi = 75\) points in the rescaled velocity space for a rescaled velocity variable \(\xi \in [-10,10]\). We choose \(\Delta t = 1/1200\).
![]() |
![]() |
![]() |
![]() |
We observe in Figure 5 that although this initial condition is not very regular, our first order schemes are dissipative enough to deal with it quite easily. More importantly, due to the Cucker-Smale type of interaction, particles which are very far from the rest of the flock still have some influence, so the flocking dynamics is slower than the Motsch-Tadmor case, as seen in Figure 6. Nevertheless, we still have an exponential convergence toward this flock.
The authors would like to warmly thank Eitan Tadmor and all the staff of CSCAMM, along with the KI-Net program, for their kindness, their welcoming attitude, and their availability and for the overall quality of their stay. Both authors would like to thank Eitan Tadmor for the very fruitful discussions they had about this work.
This research was supported by NSF grants DMS 10-08397 and RNMS 11-07444 (KI-Net), ONR grant N00014-1210318, and Labex CEMPI (ANR-11-LABX-0007-01).
References
[1] A. V. Bobylev, J. A. Carrillo, and I. M. Gamba, On some properties of kinetic and hydrodynamic equations for inelastic interactions, J. Statist. Phys., 98 (2000), pp. 743–773.
[2] C. Canuto, M. Y. Hussaini, A. Quarteroni, and T. A. Zang, Spectral Methods in Fluid Dynamics, Springer Ser. Comput. Phys., Springer-Verlag, New York, 1988.
[3] J. A. Carrillo, M. Fornasier, J. Rosado, and G. Toscani, Asymptotic flocking dynamics for the kinetic Cucker–Smale model, SIAM J. Math. Anal., 42 (2010), pp. 218–236.
[4] J. A. Carrillo and G. Toscani, Asymptotic \(L^1\)-decay of solutions of the porous medium equation to self-similarity, Indiana Univ. Math. J., 49 (2000), pp. 113–142.
[5] F. Cucker and S. Smale, Emergent behavior in flocks, IEEE Trans. Automat. Control, 52 (2007), pp. 852–862.
[6] W. E, Yu. G. Rykov, and Ya. G. Sinai, Generalized variational principles, global weak solutions and behavior with random initial data for systems of conservation laws arising in adhesion particle dynamics, Commun. Math. Phys., 177 (1996), pp. 349–380.
[7] M. H. Ernst and R. Brito, Scaling solutions of inelastic Boltzmann equations with overpopulated high energy tails, J. Statist. Phys., 109 (2002), pp. 407–432.
[8] F. Filbet and T. Rey, A rescaling velocity method for dissipative kinetic equations: Applications to granular media, J. Comput. Phys., 248 (2013), pp. 177–199.
[9] F. Filbet and G. Russo, A rescaling velocity method for kinetic equations: The homogeneous case, in Modelling and Numerics of Kinetic Dissipative Systems, Nova Science Publishers, Hauppauge, NY, 2006, pp. 191–202.
[10] R. J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge University Press, Cambridge, UK, 2002.
[11] S. Mischler and C. Mouhot, Cooling process for inelastic Boltzmann equations for hard spheres, Part II: Self-similar solutions and tail behavior, J. Statist. Phys., 124 (2006), pp. 703–746.
[12] S. Motsch and E. Tadmor, A new model for self-organized dynamics and its flocking behavior, J. Statist. Phys., 144 (2011), pp. 923–947.
[13] H. Nessyahu and E. Tadmor, Non-oscillatory central differencing for hyperbolic conservation laws, J. Comput. Phys., 87 (1990), pp. 408–463.
[14] T. Rey and C. Tan, Constraint-preserving Numerical Methods for System of Conservation Laws, work in progress, 2015.
[15] E. Tadmor and S.-Y. Ha, From particle to kinetic and hydrodynamic descriptions of flocking, Kinet. Relat. Models, 1 (2008), pp. 415–435.
[16] E. Tadmor and C. Tan, Critical Thresholds in Flocking Hydrodynamics with Nonlocal Alignment, Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 372(2028):20130401, 2014.
[17] C. Tan, A discontinuous Galerkin method on kinetic flocking models, Mathematical Models and Methods in Applied Sciences, 27(07):1199–1221, 2017.
[18] B. Van Leer, Towards the ultimate conservative difference scheme III. Upstream-centered finite-difference schemes for ideal compressible flow, J. Comput. Phys., 23 (1977), pp. 263–275.











