Structure preserving schemes for nonlinear Fokker-Planck equations and applications
Lorenzo Pareschi, Mattia Zanella

TL;DR
This paper develops second-order accurate numerical schemes for nonlinear Fokker-Planck equations that preserve key structural properties, enabling accurate long-term behavior simulation and applications in socio-economic and life sciences.
Contribution
It introduces structure-preserving, mesh-unrestricted numerical schemes for nonlinear Fokker-Planck equations with nonlocal terms, improving accuracy and physical fidelity.
Findings
Schemes accurately capture asymptotic steady states.
Methods preserve non-negativity and entropy dissipation.
Applications demonstrate relevance to socio-economic models.
Abstract
In this paper we focus on the construction of numerical schemes for nonlinear Fokker-Planck equations that preserve the structural properties, like non negativity of the solution, entropy dissipation and large time behavior. The methods here developed are second order accurate, they do not require any restriction on the mesh size and are capable to capture the asymptotic steady states with arbitrary accuracy. These properties are essential for a correct description of the underlying physical problem. Applications of the schemes to several nonlinear Fokker-Planck equations with nonlocal terms describing emerging collective behavior in socio-economic and life sciences are presented.
| Scheme | ||
|---|---|---|
| SP-CC | ||
| SP-CC2 (midpoint) | ||
| SP-CCE (exact) |
| Time | 2 | 4 | 6 | G | 2 | 4 | 6 | G |
|---|---|---|---|---|---|---|---|---|
| 1 | 1.9456 | 1.9751 | 1.9740 | 1.9740 | 1.9470 | 1.9773 | 1.9762 | 1.9762 |
| 5 | 1.9700 | 3.2328 | 2.3690 | 2.3487 | 1.9700 | 3.2323 | 2.3724 | 2.3522 |
| 10 | 1.9695 | 3.9156 | 6.8498 | 7.3299 | 1.9695 | 3.9156 | 6.8517 | 7.3252 |
| 15 | 1.9695 | 3.9156 | 6.8715 | 7.3304 | 1.9695 | 3.9156 | 6.8761 | 7.3223 |
| Time | 2 | 4 | 6 | G | 2 | 4 | 6 | G |
|---|---|---|---|---|---|---|---|---|
| 1 | 1.0681 | 1.0648 | 1.0648 | 1.0648 | 2.0991 | 2.0931 | 2.0932 | 2.0932 |
| 5 | 2.0093 | 1.9760 | 1.9648 | 1.9648 | 2.0700 | 2.8755 | 2.6082 | 2.6092 |
| 10 | 2.0155 | 3.9714 | 3.4966 | 3.2983 | 2.0700 | 4.0006 | 6.0768 | 7.4096 |
| 15 | 2.0155 | 3.9776 | 5.3045 | 7.3283 | 2.0700 | 3.9982 | 5.8780 | 9.0173 |
| Time | 2 | 4 | 6 | G |
|---|---|---|---|---|
| 1 | 1.3047 | 1.5010 | 1.5021 | 1.5021 |
| 10 | 1.9893 | 4.0634 | 2.8122 | 2.8682 |
| 20 | 1.9894 | 3.9842 | 6.0784 | 10.0422 |
| Time | 2 | 4 | 6 | G | 2 | 4 | 6 | G |
|---|---|---|---|---|---|---|---|---|
| 1 | 2.1387 | 2.1387 | 2.1387 | 2.1387 | 2.4142 | 2.4142 | 2.4142 | 2.4142 |
| 5 | 6.9430 | 6.9430 | 6.9430 | 6.9430 | 10.0712 | 10.0712 | 10.0712 | 10.0712 |
| 10 | 20.0127 | 20.0127 | 20.0127 | 20.0127 | 23.9838 | 23.9838 | 23.9838 | 23.9838 |
| Time | 2 | 4 | 6 | G | 2 | 4 | 6 | G |
| 1 | 2.5310 | 2.5310 | 2.5310 | 2.5310 | 2.2614 | 2.2892 | 2.2892 | 2.2892 |
| 5 | 2.0498 | 7.6659 | 7.6659 | 7.6659 | 2.0635 | 10.9818 | 10.9818 | 10.9818 |
| 10 | 2.0503 | 18.7697 | 18.7697 | 18.7697 | 2.0613 | 14.8321 | 14.8321 | 14.8321 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Structure preserving schemes for nonlinear Fokker-Planck equations and applications
Lorenzo Pareschi Department of Mathematics and Computer Sciences, University of Ferrara, Via N. Machiavelli 35, 44121 Ferrara, Italy. [email protected]
Mattia Zanella Department of Mathematical Sciences “G. L. Lagrange”, Politecnico di Torino, Corso Duca degli Abruzzi 24, 10129 Turin, Italy. [email protected]
Abstract
In this paper we focus on the construction of numerical schemes for nonlinear Fokker-Planck equations that preserve the structural properties, like non negativity of the solution, entropy dissipation and large time behavior. The methods here developed are second order accurate, they do not require any restriction on the mesh size and are capable to capture the asymptotic steady states with arbitrary accuracy. These properties are essential for a correct description of the underlying physical problem. Applications of the schemes to several nonlinear Fokker-Planck equations with nonlocal terms describing emerging collective behavior in socio-economic and life sciences are presented.
**Keywords: structure preserving methods, finite difference schemes, Fokker-Planck equations, emerging collective behavior.
**
1 Introduction
In this paper we construct and discuss a steady-state preserving method for a wide class of nonlinear Fokker-Planck equations of the form
[TABLE]
where , , , is the unknown distribution function, is a bounded operator which describes aggregation dynamics and is a diffusion function.
A typical example is given by mean-field models of collective behavior where the nonlocal operator has the form
[TABLE]
with and . With the choice (2) equation (1) describes typical features of the collective behavior in multiagent systems with nonlocal type interactions. These models of collective behavior has been extensively discussed in the last decades at the particle, kinetic and hydrodynamic level [2, 3, 4, 5, 11, 12, 13, 17, 19, 30]. In particular, many heterogeneous phenomena like swarming behaviors, human crowds motion and formation of wealth distributions are described by these type of PDEs under special assumptions. We refer to [26, 27], and the references therein, for a recent overview of such models.
In the following, we focus on the construction of numerical methods for such problems which are able to preserve the structural properties of the PDE, like non negativity of the solution, entropy dissipation and large time behavior. The methods here developed are second order accurate, they do not require any restriction on the mesh size and are capable to capture the asymptotic steady states with arbitrary accuracy. These properties are essential for a correct description of the underlying physical problem.
The derivation of the schemes follows the main lines of the seminal work of Chang–Cooper for the linear Fokker-Planck equation [9, 16, 25, 29]. However, in the nonlinear case, the exact stationary solution is unknown and a more advanced treatment is needed in order to find a good approximation to the problem. Similar approaches for nonlinear Fokker-Planck equations were previously derived in [8, 24]. Related methods for the case of nonlinear degenerate diffusions equations were proposed in [6, 15] and with nonlocal terms in [10, 11]. We refer also to [1] for the development of methods based on stochastic approximations and to [21] for a recent survey on schemes which preserve steady states of balance laws and related problems.
Although we derive the schemes in the case of Fokker-Planck equations, the methods can be easily applied to more general problems where the solution depends on additional parameters and the PDE is of Vlasov-Fokker-Planck type. In this case, preservation of the steady states is of fundamental importance in order to develop asymptotic-preserving methods [18].
The rest of the paper is organized as follows. In the next Section we first derive the Chang-Cooper type schemes in one-dimension with a particular attention to the steady state preserving properties. We then prove non negativity of solutions for explicit and semi-implicit schemes and entropy inequality for a class of one dimensional Fokker-Planck models. In Section 3 we introduce a modification of the schemes based on a more general entropy dissipation principle. We show that these entropic schemes preserve stationary solutions and derive sufficient conditions for non negativity of explicit and semi-implicit schemes. Several applications of the schemes are finally presented in Section 4 for various nonlinear Fokker-Planck problems describing collective behaviors in socio-economic and life sciences. Some conclusions are reported at the end of the manuscript. Extension to high order semi-implicit methods and the multi-dimensional case are considered in separate appendices.
2 Chang-Cooper type schemes
In the following we focus on the design of numerical schemes for (1) which we rewrite in divergence form as
[TABLE]
We can define the -dimensional flux
[TABLE]
therefore (3) reads
[TABLE]
2.1 Derivation of the schemes
In the one-dimensional case equation (4) becomes
[TABLE]
where now
[TABLE]
using the compact notation . Typically, when is a finite size set the problem is complemented with no-flux boundary conditions at the extremal points. In the sequel we assume in the internal points of .
We introduce an uniform spatial grid , such that . We denote as usual and consider the conservative discretization
[TABLE]
where for each , is an approximation of and is the numerical flux function characterizing the discretization.
Let us set and adopt the notations , . We will consider a general flux function which is combination of the grid points and
[TABLE]
where
[TABLE]
Here, we aim at deriving suitable expressions for and in such a way that the method yields nonnegative solutions, without restriction on , and preserves the steady state of the system with arbitrary order of accuracy.
For example, the standard approach based on central difference is obtained by considering for all the quantities
[TABLE]
It is well-known, however, that such a discretization method is subject to restrictive conditions over the mesh size in order to keep non negativity of the solution.
First, observe that when the numerical flux vanishes from (8) we get
[TABLE]
Similarly, if we consider the analytical flux imposing , we have
[TABLE]
which is in general not solvable, except in some special cases due to the nonlinearity on the right hand side. We may overcome this difficulty in the quasi steady-state approximation integrating equation (10) on the cell
[TABLE]
which gives
[TABLE]
The terminology quasi steady-state was introduced originally by Chang and Cooper in [16], the ”quasi” coming from the fact that, with general time-dependent coefficients, no time-stabilization can be expected.
Now, by equating the ratio and of the numerical and exact flux, and setting
[TABLE]
we recover
[TABLE]
where
[TABLE]
We can state the following
Proposition 1**.**
The numerical flux function (8)-(9) with and defined by (12) and (13)-(14) vanishes when the corresponding flux (6) is equal to zero over the cell . Moreover the nonlinear weight functions defined by (13)-(14) are such that .
The latter result follows from the simple inequality . We refer to this type of schemes as structure preserving Chang-Cooper (SP-CC) type schemes.
By discretizing (14) through the midpoint rule
[TABLE]
we obtain the second order method defined by
[TABLE]
and
[TABLE]
Higher order accuracy of the steady state solution can be obtained using suitable higher order quadrature formulas for the integral (12). We refer to Section 4 for examples and more details. For linear problems of the form with constant diffusion , the above scheme (15)-(16) is usually referred to as the Chang-Cooper method [16, 25]. In particular, if is a first order polynomial in as in [9] the midpoint rule is equivalent to the exact evaluation of the integral (12).
Remark 1*.*
- •
If we consider the limit case , in (15)-(16) we obtain the weights
[TABLE]
and the scheme locally reduces to a first order upwind scheme for the corresponding continuity equation.
- •
For linear problems of the form the exact stationary state can be directly computed from the solution of
[TABLE]
together with the boundary conditions. Explicit examples of stationary states will be reported in Section 4.
Using the knowledge of the stationary state we have
[TABLE]
therefore
[TABLE]
and
[TABLE]
In this case, the numerical scheme preserves the steady state exactly. Finally, in Table 1 we summarize the different expressions of the weight functions.
2.2 Main properties
In order to study the structural properties of the numerical schemes, like conservations, non negativity and entropy property, we restrict to the one-dimensional case. To start with we consider the following simple result.
Lemma 1**.**
Let us consider the scheme (7)-(8) for with no flux boundary conditions . We have
[TABLE]
The proof is a simple consequence of the telescopic summation property and the no flux boundary conditions.
2.2.1 Positivity preservation
Concerning non negativity, first we prove a result for the explicit scheme. We introduce a time discretization with and and consider the simple forward Euler method
[TABLE]
Proposition 2**.**
Under the time step restriction
[TABLE]
the explicit scheme (21) with flux defined by (13)-(14) preserves nonnegativity, i.e if , .
Proof.
The scheme reads
[TABLE]
From (LABEL:eq:prop1_f) we have a convex combination if the coefficients of and satisfy
[TABLE]
or equivalently
[TABLE]
which holds true thanks to the properties of the exponential function. In order to ensure the non negativity of the scheme the time step should satisfy the restriction , with
[TABLE]
Being and defined in (22), and , we obtain the prescribed bound. ∎
Remark 2*.*
Higher order SSP methods [22] are obtained by considering a convex combination of forward Euler methods. Therefore, the non negativity result can be extended to general SSP methods.
In practical applications, it is desirable to avoid the parabolic restriction of explicit schemes. Unfortunately, fully implicit methods originate a nonlinear system of equations due to the nonlinearity of and the dependence of the weights from the solution. However, we can prove that nonnegativity of the solution holds true also for the semi-implicit case
[TABLE]
where
[TABLE]
We have
Proposition 3**.**
Under the time step restriction
[TABLE]
the semi-implicit scheme (24) preserves nonnegativity, i.e if , .
Proof.
Equation (24) corresponds to
[TABLE]
thanks to the definition of the flux function introduced in (8)-(9). Using the indentity we obtain
[TABLE]
Let us denote and
[TABLE]
we can write
[TABLE]
If we introduce the matrix
[TABLE]
with , , defined in (LABEL:eq:RQP) the semi-implicit scheme may be expressed in matrix form as follows
[TABLE]
with . Since , in order to prove that it is sufficient to show . Now, is a tridiagonal matrix with positive diagonal elements and if is strictly diagonally dominant we can conclude that .
The matrix is strictly diagonally dominant if and only if
[TABLE]
condition which holds true if
[TABLE]
∎
Remark 3*.*
- •
Higher order semi-implicit approximations can be constructed following [7]. An example of second order semi-implicit IMEX scheme is given in Appendix A. We mention also [25] where a second order semi-implicit BDF method has been considered. Note, however, that the determination of nonnegative semi-implicit schemes with optimal stability regions is an open problem which goes beyond the purpose of the present manuscript.
- •
Although fully implicit schemes originate a nonlinear system of equations, we remark that the same argument used in Proposition 3 permits to prove nonnegativity of the scheme even with the fully implicit fluxes
[TABLE]
with
[TABLE]
In fact, we obtain the nonlinear system
[TABLE]
where the matrix has the same structure (29) with the entries evaluated at time . The above system can be solved iteratively at each time step
[TABLE]
where now each iteration step is explicit and can be made non negative under a stability restriction analogous to (26). Therefore, if as we can infer the nonnegativity of the scheme under the condition (32), being strictly diagonally dominant and then . In general, the convergence properties of the above iterative method depend on the nonlinear flux function which defines the coefficients in . For example, since by nonnegativity and mass conservation , , where denotes the discrete norm, convergence is guaranteed for any choice of the initial value if is a contraction [23].
2.2.2 Relative entropy dissipation
In order to discuss the entropy property we consider the prototype equation
[TABLE]
with a given constant and boundary conditions
[TABLE]
If the stationary state exists equation (35) may be written in the Landau form as
[TABLE]
or in the non logarithmic Landau form as
[TABLE]
We define the relative entropy for all positive functions as follows
[TABLE]
we have [20]
[TABLE]
where the dissipation functional is defined as
[TABLE]
Of course we might consider other entropies like the entropy which is defined as
[TABLE]
with
[TABLE]
see [20] for further examples.
Note that, since the definition of relative entropy implies the existence of a steady state then the considerations of the second part of Remark 1 apply. Therefore, the weights in the Chang-Cooper type method can be evaluated exactly and are given by (19)-(20). This property is used to prove the following results.
Lemma 2**.**
In the case the numerical flux function (8)-(9) with and given by (12)-(13) can be written in the form (38) and reads
[TABLE]
with
[TABLE]
Proof.
In the hypothesis the definition of does not depends on time, i.e. and if a steady state exists we may write
[TABLE]
Furthermore, the flux function assumes the following form
[TABLE]
where
[TABLE]
Hence we have
[TABLE]
which gives (44). ∎
Theorem 1**.**
Let us consider as in equation (35). The numerical flux (8)-(9) with and given by (12)-(13) satisfies the discrete entropy dissipation
[TABLE]
where
[TABLE]
and is the positive discrete dissipation function
[TABLE]
Proof.
From the definition of relative entropy we have
[TABLE]
and after summation by parts we get
[TABLE]
Thanks to the identity of Lemma 2 we may conclude since the function is non-negative for all . ∎
3 Entropic schemes for gradient flow problems
In this section we introduce a second class of structure preserving numerical scheme based on the entropy dissipation principle. To this aim, let us consider the general class of nonlinear Fokker-Planck equation with gradient flow structure [5, 11, 14]
[TABLE]
and no-flux boundary conditions. In the case of equation (1) with constant diffusion we have
[TABLE]
We focus on the following prototype of function ,
[TABLE]
which in our case corresponds to
[TABLE]
with an interaction potential.
The corresponding free energy is given by
[TABLE]
Using the fact that is an even function we can write
[TABLE]
Hence, upon integration by parts we obtain the dissipation of the free energy along solutions
[TABLE]
where is the entropy dissipation function.
3.1 Derivation of the schemes
In the one-dimensional case equation (52) reads
[TABLE]
where
[TABLE]
and we assume .
In order to derive schemes which satisfy the entropy dissipation property (57) we consider the semi-discrete version of the entropy (55)
[TABLE]
Therefore, we have
[TABLE]
Now using the general discrete conservative formulation (7) and the fact that we get
[TABLE]
Furthermore, after summation by parts we can write the last term as follows
[TABLE]
Now, integrating (53) over the cell we obtain
[TABLE]
where
[TABLE]
Let us now consider a general scheme in the Chang-Cooper form (8), which in our case can be rewritten as
[TABLE]
with
[TABLE]
Therefore, we have
[TABLE]
Thus we cannot prove that the discrete entropy functional (60) is dissipated by the Chang-Cooper type scheme developed in the previous sections, unless . This latter requirement is satisfied if we consider the new entropic flux function
[TABLE]
We will refer to the above approximation of the solution at the grid point as entropic average of the grid points and . In the general case of the flux function (6) with non constant diffusion the resulting numerical flux reads
[TABLE]
Finally, concerning the stationary state, we obtain immediately imposing the numerical flux equal to zero
[TABLE]
and therefore we get
[TABLE]
By equating the above ratio with the quasi-stationary approximation (11) we get the same expression for as in (12)
[TABLE]
We can state the following
Proposition 4**.**
The numerical flux function (67) with defined by (68) vanishes when the corresponding flux (59) is equal to zero over the cell .
3.2 Main properties
A fundamental result concerning the entropic average (66) is the following Lemma.
Lemma 3**.**
The entropy average defined in (66) may be written as a convex combination with nonlinear weights
[TABLE]
where
[TABLE]
Proof.
From (70) we have
[TABLE]
that is (67). It is a easy computation to verify that lies in the interval . ∎
Remark 4*.*
As a consequence the Chang-Cooper type average (9) and the entropic average (66) define the same quantity at the steady state when . In fact, in this case (70) are the same as (20).
We can summarize our findings of Section 3.1 as follows.
Theorem 2**.**
The numerical flux (67)-(66) for a constant diffusion satisfies the discrete entropy dissipation
[TABLE]
where is given by (60) and is the discrete entropy dissipation function
[TABLE]
with defined as in (62).
Remark 5*.*
On the contrary to the Chang-Cooper average the restrictions for the non negativity property of the solution are stronger. In fact, by the same arguments we used in the previous section, non negativity of the explicit scheme requires
[TABLE]
However, the weights do not possess any special structure that permits to avoid a constraint of the mesh size which now must satisfy
[TABLE]
Therefore, similar to central differences, we have a restriction on the mesh size which becomes prohibitive for small values of the diffusion function . It is easy to verify that the same condition is necessary also for the non negativity of semi-implicit approximations.
3.2.1 The case
Next we consider the case of linear flux . The following Lemma holds true.
Lemma 4**.**
In the case the numerical flux (67)-(66) corresponds to the form (37) and reads
[TABLE]
Proof.
If a stationary state exists it nullify the flux and we have
[TABLE]
From the definition of the entropic flux (67) we obtain
[TABLE]
from which we conclude. ∎
We can now state the following entropy dissipation results for problem (35) in the nonlogarithmic Landau form (38).
Theorem 3**.**
Let us consider as in equation (35). The numerical flux (67)-(66) with given by (12) satisfies the discrete entropy dissipation
[TABLE]
where is given by (49) and is the positive discrete dissipation function
[TABLE]
Proof.
From
[TABLE]
and being
[TABLE]
we have
[TABLE]
∎
4 Applications
In this section we present several numerical examples of Fokker-Planck equations solved with the structure-preserving schemes here introduced. An essential aspect for the accurate description of the steady state is the approximation of the integral defining the quasi-stationary solution
[TABLE]
Except for simple linear cases, a suitable quadrature formula is required. In the following numerical examples we consider open Newton-Cotes formulas up to order 6 and Gauss-Legendre quadrature with points. In the sequel, we will adopt the notation SP–CCk and SP–EAk, to denote the structure preserving schemes with Chang-Cooper (CC) and entropic average (EA) flux and when (78) is approximated with second, fourth, sixth order Newton–Cotes quadrature or Gaussian quadrature, respectively. Singularities at the boundaries in the integration of (78) can be avoided using open Newton–Cotes rules.
4.1 Example 1: Opinion dynamics in bounded domains
Let us consider the evolution of a distribution function described by (1), with , where , and
[TABLE]
The model describes the evolution of the distribution functions of agents having opinion at time (see [27, 30] for more details).
In the simplified case the corresponding stationary distribution reads
[TABLE]
with a given parameter, is a normalization constant and .
We consider as initial distribution
[TABLE]
with a normalization constant. Since diffusion vanishes at the boundaries we present results for the Chang-Cooper type numerical schemes SP–CC only.
In Figure 1 we compute the relative error of the numerical solution with respect to the exact (80) stationary state using points for the SP–CC scheme with various quadrature rules. It is possible to observe how the different integration methods capture the steady state with different accuracy. In particular low order quadrature rules achieve the numerical steady state faster than high order quadratures, with the Gaussian quadrature that essentially reach machine precision. In the same figure we illustrate how SP–CC scheme dissipates the relative entropy (49) in the case of two coarse grids with and points.
In Table 2 we estimate the overall order of convergence of explicit SP–CC schemes for several integration methods. Here we used , with reference solutions computed with points. For comparison, the time integration has been performed with the explicit Euler and RK4 methods and the time step chosen in such a way that the CFL condition for the positivity of the scheme is satisfied, i.e. . As expected the two methods are essentially equivalent and both schemes are second order accurate in the transient regimes and assume the order of the quadrature method close to the steady state.
In Table 3 we estimate the order of convergence of SP–CC schemes with first and second order semi–implicit methods (see Appendix A for a detailed description of the methods). In this case the CFL condition is and a second order method is necessary to achieve second order accuracy in the transient regime, whereas both schemes achieve higher order accordingly to the quadrature used for large times.
In the general case and it is not possible to give an analytical formulation of the steady state solution . In Figure 2 we represent a typical evolution of an aggregation model in the bounded confidence case [27]
[TABLE]
where is the indicator function, for , . Here, the evolution has been computed through a SP–CC with Gauss quadrature, the integral has been evaluated through a trapezoidal method.
4.2 Example 2: Wealth evolution in unbounded domains
Let us consider equation (1) with and
[TABLE]
With the above choice, the Fokker-Planck equation describes the evolution of the wealth distribution at time in a large set of interacting economic agents (see [26, 27] for details).
In the case of constant interaction the steady state of the equation is analytically computable
[TABLE]
where is the so-called Pareto exponent. In the numerical test we consider the initial distribution
[TABLE]
with a normalization constant.
Again, due to degeneracy of the diffusion on the left boundary we report results only for SP–CC schemes. In Figure 3 we present the solution with in the domain , . In both figures whereas the diffusion constant assumes different values. We report the evolution of the solution and the relative error with respect to the stationary state using points for the semi–implicit SP–CC scheme (SISP–CC). We observe how the introduced methods describe the stationary state with different levels of accuracy. Note that, at the right boundary we must introduce an artificial boundary condition in order to truncate the computational domain. In our numerical results we impose the quasi stationary condition (11) in order to evaluate , that is
[TABLE]
In Table 4 we estimate the overall order of convergence of the semi–implicit SP–CC scheme for several integration methods with for the domain , , with reference solutions computed with gridpoints. The time step is chosen in such a way that the CFL condition for the positivity of the scheme is satisfied, i.e. . We can observe that for short times the order of accuracy is limited by the semi–implicit method, which is first order accurate, whereas as we approach to the stationary solution the order depends on the quadrature formula used.
4.3 Example 3: 2D model of swarming
Let us consider a self-propelled swarming model of Cucker-Smale type [5] with diffusion. In this model the evolving distribution represents the density of individuals (birds, fishes, ) in position having velocity at time . We have the following dynamics
[TABLE]
with
[TABLE]
and a localization kernel, a self-propulsion term and a constant noise intensity.
The space homogeneous version of the model (86) may be formulated in terms of the nonlinear Fokker–Planck equation (1) with
[TABLE]
with a positive constant and . The above equation can be written as a gradient flow. In fact, if we define
[TABLE]
with a Coloumb potential and a confining potential given by
[TABLE]
the equation reads
[TABLE]
A free energy functional which dissipates along solutions is defined by
[TABLE]
with
[TABLE]
Stationary solutions should satisfy the identity and have the form
[TABLE]
with a normalization constant. It is possible to prove the following result (see [5] for more details).
Theorem 4**.**
Let us consider equation (86) in the space-homogeneous case, i.e. (1) with and diffusion as in (88), exhibits a phase transition in the following sense
- i)
For small enough diffusion coefficient there is a function with , such that with is a stationary solution of the original problem.
- ii)
For large enough diffusion coefficients the only stationary solution is the symmetric distribution given by (92) with .
Since diffusion is constant, we compute the solution both using SP–CC type schemes and the entropic average schemes SP–EA. In Table 5 we estimate the order of convergence of the SP–CC and SP–EA schemes in the 1D case for several integration methods. We can observe how each method reach spectral accuracy in the case , in this case, in fact, all quadrature methods become exact being the quantity a first order polynomial in .
In Figure 4 we show that, as expected, on a coarse grid the SP–EA method becomes unstable for vanishing diffusions, whereas the SP–CC scheme remains stable and reduces to first order upwinding. In this case the solution becomes close to a Dirac delta in the velocity space. Finally, in Figure 5 we present the resulting 2D nonlinear Fokker–Planck equation for swarming with and in (88), for several values of the diffusion coefficient , and of the self-propulsion . The initial distribution is a bivariate normal distribution of the form
[TABLE]
with and . The generalization of the schemes to the multidimensional case is done dimension by dimension and is summarized in Appendix B. The semi-implicit numerical scheme has been used, with a th order open Newton–Cotes quadrature method. It is possible to observe the threshold phenomenon occurring for an increasing diffusion prescribed by Theorem 4. The results obtained with the two different schemes are essentially equivalent in this case.
Conclusion
The construction of structure–preserving schemes for nonlinear Fokker–Planck equations has been studied. Two different types of schemes have been constructed. The first type represents a natural extension of the so–called Chang–Cooper scheme to the nonlinear case. The second type of schemes represents a modification with better entropy dissipation properties. Both methods are second order accurate and capable to preserve the stationary state with arbitrary accuracy. However, non negativity restrictions are more severe for the second type of schemes. Even if the analysis is performed in the one-dimensional case, extensions to multidimensional situations are also considered. Several applications to linear and nonlinear Fokker-Planck equations arising in socio-economic sciences are presented and show the generality of the present approach. Extensions of the schemes to include nonlinear diffusion terms and higher order schemes in the limiting of vanishing diffusion are actually under study and will be presented elsewhere.
Acknowledgements
The research that led to the present paper was partially supported by the research grant Numerical methods for uncertainty quantification in hyperbolic and kinetic equations of the group GNCS of INdAM. MZ acknowledges “Compagnia di San Paolo”.
Appendix A High order semi-implicit methods
Here we follow the approach in [7]. We write the semi-discrete scheme (7) in the equivalent form
[TABLE]
where , ,
[TABLE]
and
[TABLE]
with initial conditions , . In the above equations we used the notation to denote the functional dependence.
System (93) is then solved by an implicit-explicit (IMEX) Runge-Kutta method [28] where the variables are treated implicitly and the variables are treated explicitly. More precisely, using standard notations we can write an implicit-explicit Runge-Kutta scheme for (93) as follows. First we set and compute for
[TABLE]
where , and next we update the numerical solution
[TABLE]
In particular, the IMEX scheme is chosen such that , so that and therefore the duplication of the system is only apparent since there is only one set of numerical solutions. In our numerical tests we coupled the structure preserving discretizations with the second order semi-implicit scheme obtained as a combination of Heun method (explicit) and Crank-Nicolson (implicit) characterized by and
[TABLE]
As observed in [7] this represents a natural choice when dealing with convection-diffusion type equations, since the Heun method is an SSP explicit RK method, and Crank-Nicolson is an A-stable method, widely used for diffusion problems. Higher order methods can be found in [7, 28].
Appendix B The multi-dimensional case
In this section we report for the sake of completeness the details of the numerical schemes for multi-dimensional situations. We consider the case of Chang-Cooper type fluxes, and to keep notations simple we restrict to two dimensional problems . We introduce a uniform mesh , with and . We denote by and . Let be an approximation of the solution and consider the following discretization of the nonlinear Fokker-Planck equation (4)
[TABLE]
being , flux functions characterizing the numerical discretization. The quasi-stationary approximations over the cell of the two dimensional problem now read
[TABLE]
Therefore, setting
[TABLE]
and by considering the natural generalization of the one-dimensional numerical flux
[TABLE]
we define and in such a way that we preserve the steady state solution for each dimension. The Chang-Cooper type structure preserving methods are then given by
[TABLE]
and
[TABLE]
The cases of higher dimension and entropic average fluxes may be derived in a similar way.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] G. Albi, L. Pareschi. Binary interaction algorithms for the simulation of flocking and swarming dynamics. Multiscale Model. Simul. , 11(1):1–29, 2013.
- 2[2] G. Albi, L. Pareschi, G. Toscani, M. Zanella. Recent advances in opinion modeling: control and social influence. In Active Particles Vol.1: Advances in Theory, Models, and Applications , Birkhäuser–Springer, Eds. N. Bellomo, P. Degond, E. Tadmor, 2017.
- 3[3] G. Albi, L. Pareschi, M. Zanella. Opinion dynamics over complex networks: Kinetic modelling and numerical methods. Kinetic and Related Models , 10(1): 1–32, 2017.
- 4[4] A. B. T. Barbaro, P. Degond. Phase transition and diffusion among socially interacting self-propelled agents. Discrete and Continuous Dynamical Systems - Series B 19: 1249–1278, 2014.
- 5[5] A. B. T. Barbaro, J. A. Cañizo, J. A. Carrillo, P. Degond. Phase transitions in a kinetic model of Cucker–Smale type. Multiscale Modeling & Simulation , 14(3): 1063–1088, 2016.
- 6[6] M. Bessemoulin-Chatard, F. Filbet. A finite volume scheme for nonlinear degenerate parabolic equations. SIAM J. Sci. Comput. , 34:559-583, 2012.
- 7[7] S. Boscarino, F. Filbet, G. Russo, High Order Semi-implicit Schemes for Time Dependent Partial Differential Equations, J. Sci. Comp. 68, 975–1001, 2016.
- 8[8] C. Buet, S. Cordier, V. Dos Santos. A conservative and entropy scheme for a simplified model of granular media. Transport Theory and Statistical Physics , 33(2): 125–155, 2004.
