On Lagrangian schemes for porous medium type generalized diffusion equations: a discrete energetic variational approach
Chun Liu, Yiwei Wang

TL;DR
This paper introduces a systematic Lagrangian scheme for porous medium equations using a discrete energetic variational approach, ensuring properties like energy dissipation and mass conservation, and demonstrates its effectiveness through numerical experiments.
Contribution
It develops a novel framework for deriving energy-dissipative Lagrangian schemes for generalized diffusion equations, applicable to multidimensional porous medium equations.
Findings
The scheme accurately captures free boundaries in PME.
It effectively estimates waiting times in simulations.
Numerical results confirm the scheme's stability and energy dissipation properties.
Abstract
In this paper, we present a systematic framework to derive a Lagrangian scheme for porous medium type generalized diffusion equations by employing a discrete energetic variational approach. Such discrete energetic variational approaches are analogous to energetic variational approaches in a semidiscrete level, which provide a basis of deriving the "semi-discrete equations" and can be applied to a large class of partial differential equations with energy-dissipation laws and kinematic relations. The numerical schemes derived by this framework can inherit various properties from the continuous energy-dissipation law, such as conservation of mass and the dissipation of the discrete energy. As an illustration, we develop two numerical schemes for the multidimensional porous medium equations (PME), based on two different energy-dissipation laws. We focus on the numerical scheme based on the…
| scheme 1 | scheme 2 | ||||||||
| N | Error at | Order | -error | Order | Error at | Order | -error | Order | |
| 1/100 | 2.6421e-04 | 0.0036 | 9.0421e-05 | 3.5109e-04 | |||||
| 1/400 | 7.0619e-05 | 1.9036 | 0.0016 | 1.1699 | 2.2692e-05 | 1.9945 | 9.5494e-05 | 1.8784 | |
| 1/1600 | 1.9303e-05 | 1.8712 | 7.0440e-04 | 1.1836 | 5.7058e-06 | 1.9917 | 2.5714e-05 | 1.8929 | |
| scheme 1 | scheme 2 | ||||||||
| N | Error at | Order | -error | Order | Error at | Order | -error | Order | |
| 1/100 | 2.6925e-04 | 0.0051 | 2.3969e-04 | 5.0786e-04 | |||||
| 1/400 | 7.6531e-05 | 1.8148 | 0.0027 | 0.9175 | 6.0120e-05 | 1.9953 | 1.4894e-04 | 1.7697 | |
| 1/1600 | 2.2855e-05 | 1.7435 | 0.0014 | 0.9475 | 1.5073e-05 | 1.9959 | 4.3149e-05 | 1.7873 | |
| Order | |||
|---|---|---|---|
| 4 | 3.7241e-04 | 8.9717e-05 | 2.0534 |
| 5 | 4.4021e-04 | 1.0629e-04 | 2.0502 |
| 6 | 4.6867e-04 | 1.1329e-04 | 2.0486 |
| 8 | 4.8008e-04 | 1.1619e-04 | 2.0468 |
| N | -error | Order | N | -error | Order | ||
|---|---|---|---|---|---|---|---|
| 132 | 1/100 | 6.5388e-04 | 135 | 1/100 | 0.0066 | ||
| 524 | 1/400 | 1.6053e-04 | 2.0262 | 516 | 1/400 | 5.5299e-04 | 1.7807 |
| 2103 | 1/1600 | 3.9867e-05 | 2.0096 | 2124 | 1/1600 | 1.6518e-04 | 1.9982 |
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.
On Lagrangian schemes for porous medium type generalized diffusion equations: a discrete energetic variational approach
Chun Liu
Yiwei Wang
Department of Applied Mathematics, Illinois Institute of Technology, Chicago, IL 60616, USA
Abstract
In this paper, we present a systematic framework to derive a Lagrangian scheme for porous medium type generalized diffusion equations by employing a discrete energetic variational approach. Such discrete energetic variational approaches are analogous to energetic variational approaches [35, 22] in a semidiscrete level, which provide a basis of deriving the “semi-discrete equations” and can be applied to a large class of partial differential equations with energy-dissipation laws and kinematic relations. The numerical schemes derived by this framework can inherit various properties from the continuous energy-dissipation law, such as conservation of mass and dissipation of the discrete energy. As an illustration, we develop two numerical schemes for the multidimensional porous medium equations (PME), based on two different energy-dissipation laws. We focus on the numerical scheme based on the energy-dissipation law with as the dissipation. Several numerical experiments demonstrate the accuracy of this scheme as well as its ability in capturing the free boundary and estimating the waiting time for the PME in both 1D and 2D.
1 Introduction
Many mathematical models in physics, chemistry and biology can be viewed as generalized diffusions with different choices of free energy and dissipation functional from an energetic variational viewpoint [22]. Examples include the porous medium equation (PME) [57], Keller-Segel model [30], Poisson-Nernst-Planck (PNP) [19, 63] and Cahn-Hilliard equations [8, 36].
One simple example of a generalized diffusion equation is given by
[TABLE]
where is a non-negative function, is the diffusion coefficient, is a bounded domain and is the external normal direction in . When (), (1.1) is the porous medium equation (PME)[57].
There has been an increasing interesting in designing Lagrangian methods for diffusion equations [9, 60, 10, 28, 12, 39, 11]. The Lagrangian methods is particularly suitable for problems involving sharp interface and free boundary, especially for those with singularity. However, it is a common challenge to solve Lagrangian schemes numerically, especially in high spatial dimensions. Moreover, most of previous Lagrangian methods start with the nonlinear PDEs for the Lagrangian maps [10, 12, 18], it might be difficult to choose the proper weak form to preserve the original variational structure.
In this paper, we present a systematic framework to construct Lagrangian schemes to generalized diffusion equations (1.1) by a discrete energetic variational approach, which can be easily applied to multiple spatial dimensions. A discrete energy variational approach is an analogue to energetic variational approaches [35, 22] in a semidiscrete level, which provides a general framework to derive the “semi-discrete equations”, a system of ordinary differential equations in time, from a discrete energy-dissipation law. Our approach is quite close to the methods based on gradient flow structure in the -Wasserstein metric [9, 60, 10, 28, 12, 39, 11], but various energetic variational forms can be utilized in such a framework. As an illustration, we develop two numerical schemes for the multidimensional porous medium equation (PME), based on two different energy-dissipation laws.
The PME has a wide application in physical and biological problems, such as the flow of an ideal gas though a porous medium [32], radiative transfer theory [33], biological aggregation [56], population dynamics [62], and tumor growth [50]. Theoretical studies [44, 29, 31, 61, 3, 57] have shown that the existence of the solutions to the PME, which will have a compact support at any time if the initial data has a compact support. The interface between the compact support and zero-region, called the free boundary, will moves outward in a finite speed, known as the finite speed propagation. Unlike the heat equation, the solution of the PME could become non-smooth even if the initial data is smooth. Moreover, for a certain initial data, the interface will not move until a finite positive time, called the waiting time [31, 3].
From a computational perspective, its lack of regularity and free boundary [1, 3, 57] poses challenges for numerical simulations for the PME. For instance, numerical solutions by standard numerical approaches, such as PCSFE (Predictor-Correction Algorithm and Standard Finite Element) method, may contain oscillations near the free boundary, which cannot be removed by raising the degree of finite element space and/or by refining spatial meshes [65]. On the other hand, it is difficult to track the movement of free boundary and estimate the waiting time of the PME in high accuracy. During the past, quite a number of numerical methods have been proposed for the PME [55, 23, 17, 24, 51, 52, 6, 25, 40, 26, 13, 65, 37, 7, 5, 4, 42, 43], most of them are Eulerian methods and focus on the one-dimensional case.
A commonly used numerical approach is the interface tracking algorithm [55, 23, 17, 24, 6, 25, 40], in which the interface equation are solved in Lagrangian coordinate, while the solution inside the numerical support is updated in Eulerian coordinate. However, it is not easy to apply such method to the PME in high spatial dimensions and the case with complex support. In order to eliminate the oscillations around the free boundary, some numerical methods from hyperbolic conservation law, such as relaxation scheme [26, 13], locally discontinuous Galerkin (LDG) [65] and WENO [37], have been applied to the PME successfully. Since the solution of the PME always steeper near the interface, some adaptive moving mesh methods have proved to be useful in solving the PME [7, 5, 4, 42, 43], especially in multiple space dimensions. A typical moving mesh method updates the computational mesh according to the monitor function defined by the numerical solution at current time, which might effect the dynamic of evolution. Hence, it might be difficult to track the free boundary and estimate the waiting time in high accuracy within the adaptive moving mesh methods.
The rest of the paper is organized as follows. In section 2, we briefly review the energetic variational approaches for porous medium type generalized diffusions in a continuous level. In section 3, we introduce a discrete energetic variational approach and apply it to construct two numerical schemes for the PME based on two different energy-dissipation laws. The numerical experiments for the PME in one and two spatial dimensions are presented in sections 4. We focus on the numerical scheme based on the energy-dissipation law with as the dissipation. These numerical results demonstrate the accuracy of our Lagrangian scheme as well as its ability in capturing the free boundary and estimating the waiting time for the PME in both 1D and 2D.
2 Energetic Variational Approaches
For a given energy-dissipation law and the kinematic (transport) relations, an energetic variational approach provides a general framework to determine the dynamics of system in a unique and well-defined way, through two distinct variational processes: Least Action Principle (LAP) and Maximum Dissipation Principle (MDP) [35, 22]. This approach is originated from pioneering work of Onsager [45, 46] and Rayleigh [53], and has been successfully applied to build up many mathematical models for complex fluids [35, 54, 19, 22].
The starting point of an energetic variational approach is the first and second laws of thermodynamics [22], which yields the following energy-dissipation law
[TABLE]
for an isothermal closed system. is the total energy, which is the sum of the Helmholtz free energy and the kinetic energy . is the rate of energy dissipation, which is related to the entropy production in thermodynamics. The Least Action Principle states that the dynamics of a conservative system is determined as a critical point of the action functional with respect to (the trajectory, if applicable) [2, 22], i.e.,
[TABLE]
where is the physical domain at time . On the other hand, for a dissipative system (), according to Onsager [45, 46], the dissipative force can be obtained by minimization of the dissipation functional with respect to the “rate” , known as Maximum Dissipation Principle (MDP), i.e.,
[TABLE]
Then, according to the force balance (Newton’s second law, in which the inertial force plays role of ), we have
[TABLE]
We refer the reader to [22] for more detailed description of energetic variational approaches. Here we only focus on the modeling of generalized diffusions by an energetic variational approach.
Generalized diffusions are concerned with a conserved quantity . An energetic variational approach to a diffusion based on a Lagrangian description to the system, in which the system is characterized by a flow map satisfies
[TABLE]
where are the Lagrangian coordinates and are Eulerian coordinates. For a given flow map , the velocity of the system is defined by
[TABLE]
and the deformation matrix (the deformation gradient) is the Jacobian matrix of the flow map :
[TABLE]
which determines the kinematic relations of physical quantities in Lagrangian coordinates.
For a conserved quantity , let be the initial mass density, then the conservation of mass
[TABLE]
indicates
[TABLE]
In Eulerian coordinates, the conservation of mass (2.7) is equivalent to
[TABLE]
Hence, satisfies a transport equation
[TABLE]
One can view (2.8) as a kind of composition of the flow map and the initial density , i.e.,
[TABLE]
where is the inverse of the flow map .
Remark 2.1**.**
The scalar transport equation is equivalent to in the Lagrangian coordinates, which also can be viewed as a composition
[TABLE]
The scalar transport equation is a suitable kinematic for designing a Lagrangian methods for the gradient flow system, such as Allen-Cahn equation.
Remark 2.2**.**
The “initial data”, or “reference data”, () carries many information of the solutions, which may not be available for general problems. In practice, one may obtain () from other methods, such as those of Eulerian approaches.
In a porous medium type generalized diffusion considered in this paper, the overall energy-dissipation law of the system is given by
[TABLE]
where the kinetic energy is neglected, is the free energy density, and the energy dissipation is taken to be like the Darcy’s law (the friction to the resting media) [22].
We first perform the LAP, i.e., compute the variation of with respect to . Direct computation results in
[TABLE]
where is the test function. It can be noticed that even for this simple case, the variational result in Lagrangian coordinates is quite complicated, which involves and .
Pull (2.13) back to Eulerian coordinates and apply the integration by parts, one can get
[TABLE]
where the boundary term vanishes due to the choice of .
The MDP can be done by taking variation of with respect to , one can easily obtain that
[TABLE]
By the force balance (), an energetic variational approach leads to
[TABLE]
where . The force balance equation (2.16) defines the velocity in the transport equation (2.9). Combining (2.9) and (2.16), we get a generalized diffusion equation
[TABLE]
which satisfies the energy-dissipation law (2.12).
For the PME
[TABLE]
a commonly used energy-dissipation law is
[TABLE]
which is consistence with the Wasserstein gradient flows [27, 47]. Since and , the force balance gives
[TABLE]
which in turns yields the original PME (2.18) by (2.17).
It should be remarked that same governing equations can be obtained by using different and [see [18] for examples in the PME]. Correspondingly, different numerical schemes can be derived based on different energy-dissipation laws. Besides the classical energy-dissipation law (2.19) and the two used in ([18]), we can employ another energy-dissipation law
[TABLE]
for the PME with to construct a numerical scheme. Following the above computation, one can verify that, under the energy-dissipation law (2.21), the force balance results in
[TABLE]
which is equivalent to (2.20) on the compact support of . We will show that in the following sections the numerical scheme derived from of (2.21) has an advantage in tracking the free boundary in the PME, especially in multiple spatial dimensional situation.
Remark 2.3**.**
Although the energy-dissipation law (2.21) is only defined for the PME with , the force balance (2.22), i.e., the trajectory equation, is well defined for . In the later section, we will show that the numerical scheme derived from of (2.21) also works well for the case that , although it can not be interpreted through (2.21) in such cases.
Remark 2.4**.**
In this paper, we only consider the diffusions satisfy the energy-dissipation law (2.12). The free energy in (2.12) can be generalized to more complicated form. For instance, the famous Cahn-Hilliard equation can be viewed as a -diffusion satisfies the energy-dissipation law [22, 36]
[TABLE]
where is the conserved quantity satisfies .
3 A discrete energetic variational approach and numerical schemes
In this section, we first introduce the abstract framework of a discrete energetic variational approach, and apply it to construct some Lagrangian schemes for the porous-medium type generalized diffusion equations. As an example, we construct two numerical schemes for the PME based on energy-dissipation laws (2.19) and (2.21).
As mentioned in the beginning, a discrete energetic variational approach is an analogue to an energetic variational approach in a semidiscrete level. For a given continuous energy-dissipation law, we can write down a discrete energy-dissipation, that is
[TABLE]
by introducing a spatial discretization, where is the state variable for the discrete energy-dissipation law (3.1). In the following, we only discuss the case that the kinetic energy in the continuous energy-dissipation law.
Similar to a continuous energetic variational approach stated in sect. 2, we can get the governing equation of by performing LAP and MDP. In a semidiscrete level, LAP corresponds to taking variation of the discrete action functional
[TABLE]
with respect to , and MDP corresponds to taking variation of the discrete dissipation functional with respect to . Hence, the force balance results in:
[TABLE]
which is a system of nonlinear ordinary differential equations, i.e., “semi-discrete equations”, of . Due to the assumption that the dissipation is quadratic in “rate” , equations (3.2) can be written as
[TABLE]
where is a matrix. A numerical scheme can be obtained by introducing a proper temporal discretization to (3.3). If is an identical matrix (which is not true in general), (3.3) can be viewed as a fast descent on each component .
A discrete energetic variational approach follows the “discretize-then-variation” strategy [20, 15]. The idea of “discretize-then-variation”, or “discretize-then-minimize”, has been successfully applied to study numerous problems [20, 15, 16, 58, 59, 9, 10, 64]. In a recent published book [20], Furihata and Matsuo show that “discretize-then-variation” is a systematic way to derive a structure-preserving numerical methods for a large class of PDE. By a discrete energetic variational approach, we are able to apply this idea to more general problems with energy-dissipation laws and kinematic relations. In general, “discrete-then-variation” and “variation-then-discrete” may give us different numerical schemes. It is important to notice that the force balance (2.4) uses the strong form of the variational results [22], since the test functions may be in different space. Hence, the numerical scheme derived by a discrete energetic variational approach normally gives a better approximation to the original energy-dissipation law.
3.1 Lagrangian schemes for generalized diffusions
Now we are ready to construct some Lagrangian schemes for porous medium type generalized diffusions with energy-dissipation law (2.12) by a discrete energetic variational approach. The procedure can be extended to more complicated type of diffusions, such as Cahn-Hilliard and PNP equations.
For generalized diffusions considered in this paper, we can discretize the energy-dissipation law by approximating the flow map directly, and the value of is determined by the kinematic relation (transport equation) (2.8), i.e., a composition of the flow map and the initial data :
[TABLE]
This is the main difference between our numerical approach and most of traditional Eulerian approaches to diffusion equations.
Remark 3.1**.**
Although the original free energy possesses certain convexity property with respect to , it is not clear whether the convexity is preserved in Lagrangian coordinates, i.e., with respect to the flow map in high dimensional situation. Hence, for the general case, the evolution of the flow map may approach to a “local” minimum, which is not necessarily to be the global minimum in theory.
In current study, we will discretize by a piecewise linear map. An advantage of a piecewise linear approximation to the flow map is that the deformation matrix is piecewise constant (matrix) for give , so are and .
One way to construct a piecewise linear approximation to the flow map is to use a finite element method [11]. To be more precisely, let be triangulation of . consists of a set of simplexes and a set of nodal points . Define the finite element space by
[TABLE]
which is a linear finite element space. Then the flow map can be approximated by
[TABLE]
where is the hat function satisfies , and are coefficients to be determined. Hence,
[TABLE]
where , which is the state variable in (3.1).
Since , one can view as coordinates in and as a trajectory of a “particle” . The finite element method enables us to compute the deformation matrix explicitly for given . We can write down the deformation matrix as a -matrix-valued function of on each element , denoted by
[TABLE]
The admissible set of is
[TABLE]
Correspondingly, the admissible set for is defined by
[TABLE]
The non-negativity of is naturally preserved as if is in the admissible set . It can be noticed that is not a convex set when , which imposes difficulty in numerical analysis.
In the following, we restrict ourselves in a two dimensional case, the numerical schemes in other spatial dimensions follow easily from this. In order to simplify the notation, we let , and denote
[TABLE]
Hence, . Let be all the indices such that is contained in for given . The support of is denote by . For each element , the nodes of is denoted by , , , the global index of the nodes of are denoted by ().
Substituting (3.6) into (2.12), we get a discrete action functional
[TABLE]
and the discrete dissipation
[TABLE]
where
[TABLE]
is the deformation matrix on each element at , which can be written down as a function of and () explicitly [see Appendix A].
By taking variation of (3.8) with respect to and , we have
[TABLE]
where
[TABLE]
on each element , or .
On the meanwhile, taking variations of (3.14) with respect to and results in
[TABLE]
where Einstein summation convention is used, , and is defined by
[TABLE]
Hence, the force balance equation (3.2) results in the “semi-discrete equations”
[TABLE]
for , which can be discretized in time by using some numerical method for systems of ordinary differential equations.
Remark 3.2**.**
In this special case, in (3.3) is given by
[TABLE]
which is a symmetric matrix. From a computational point of view, plays a important role in maintaining the integrity of the flow map in the evolution process.
Although both (3.10) and (3.12) involve the numerical integration over each element, they can be computed out by centroid method (known as midpoint method in 1D). As , and are approximated in a piecewise constant manner, using high-accuracy numerical quadrature over each element cannot improve the numerical accuracy. This is another advantage of the piecewise linear approximation to the flow map, which is actually quadrature-free and can be applied to a high spatial dimensional case. The computational cost is roughly proportional to the number of nodes (“particle”). One can view our numerical approach as a type of cell-centered Lagrangian scheme, where the momentum is defined at the nodes and the other variables (density, pressure, and specific internal energy) are cell-centered [38]. In the following, we denote
[TABLE]
where is the centroid of .
In order to get a numerical scheme, we need to introduce a proper temporal discretization to the “semi-discrete equation” (3.14). One can use explicit Euler scheme, and the numerical scheme can be written as
[TABLE]
where
[TABLE]
Although the explicit Euler scheme is simple in the numerical implementation, one have to choose to be significantly small to ensure and the dissipation of the discrete energy.
A better approach is to adopt a backward Euler scheme for the temporal discretization, i.e.,
[TABLE]
where is defined by
[TABLE]
and or . Here we have the choice of taking and in (3.13) explicitly or implicitly, such that depends , but is independent with . The theoretical analysis of the choice are in the progress.
Remark 3.3**.**
In general, we cannot have an explicit form for the “semi-discrete equation” (3.14) and the numerical scheme (3.18) in high dimensional situations, as (3.10) and (3.13) depend on the triangulation . In practice, and can be assembled using the standard technique in the finite element methods, that is, summing the results on each element over the mesh [34]. [See Appendix B for the procedure of numerical implementation.]
The numerical scheme (3.18) can be written as
[TABLE]
where
[TABLE]
is the discrete energy, is defined by (3.15) with . Although (3.20) is highly nonlinear equation in
[TABLE]
as an advantage of our discrete energetic variational approach, we can get a solution of (3.20) by solving minimization problem in :
[TABLE]
where
[TABLE]
Moreover, we can prove the following theorem for the numerical scheme (3.20):
Theorem 3.1**.**
If is a symmetric positive-definite matrix, and satisfies
[TABLE]
then for given , there exists a solution to numerical scheme (3.20) such that the following discrete energy dissipation law holds, i.e.,
[TABLE]
Proof.
Since a minimizer of the minimization problem (3.22) is the solution of (3.20), we only need to show that there exists a minimizer of in
[TABLE]
Since for , , following the proof in the Lemma 3.1 in [11], the existence of a minimizer can be obtained by showing the set
[TABLE]
is a non-empty compact subset of . Obviously, , so is non-empty.
In order to show is compact, we first show that is bounded. Since is positive-definite, there exists such that
[TABLE]
Hence, is bounded. Next we show is closed in , it suffices to show that the limit for any sequence is in . For and all
[TABLE]
where is the area of element . Since if , we can conclude that is uniformly bounded away from zero. So for all , which means .
If is a minimizer in , we have
[TABLE]
which completes the proof. ∎
Remark 3.4**.**
In one-dimensional case, due to , it is easy to show that is convex. Hence, we can have a stronger result similar to that in [18]:
[TABLE]
where the first inequality follows the convexity of . Moreover, since is the closed convex set in 1D [18], we can have a uniquely solvable result of numerical scheme (3.20).
*In high dimensional situation (), we can not get a uniquely solvable result of numerical scheme (3.20) due to the lack of convexity of and [11]. *
Remark 3.5**.**
Although there exists a (local) minimizer in for , which is a solution of numerical scheme (3.18) decreases the discrete energy , we still need to choose a proper optimization methods to find a minimizer . For the PME in 1D or 2D, numerical tests show that a standard damped Newton’s method with fixed step-size is adequate to this purpose. For more general problem, we can adopt optimizaition methods wih line search to find such a minimizer. Since we may only find a local minimizer of in due to lack of convexity for the general problem, the dynamical evolution of a flow-map based Lagrangian methods might be different from Eulerian methods.
Remark 3.6**.**
The above approach start with the spatial discretization to the flow map (3.6), we can also begin with introducing a temporal discretization to the continuous energy-dissipation law (2.12) by
[TABLE]
where , and or , as in (3.19). The RHS of (3.31) can be viewed as an approximation to for some , we obtain (3.31) by further approximating
[TABLE]
Using the spatial discretization (3.6), we will have the following discrete energy-dissipation law:
[TABLE]
where is same to that in (3.20). Note that
[TABLE]
for some . It is straightforward to show that if satisfies
[TABLE]
then satisfies (3.33).
In our scheme (3.20), we approximate by , which causes the difference between (3.25) and (3.33).
Remark 3.7**.**
We can design a numerical scheme that satisfies (3.33) exactly. Let
[TABLE]
where is the standard orthonormal basis in . Note the RHS of (3.33) can be written as
[TABLE]
On the other hand, the LHS of (3.33) can be written as
[TABLE]
where
[TABLE]
Hence, direct computation shows that satisfies (3.33) if
[TABLE]
which give us a numerical scheme
[TABLE]
*The scheme (3.41) preserves the discrete energy-dissipation law (3.33), and might be useful when the variation of () cannot be computed efficiently. However, to our knowledge, the numerical analysis and experiments for such type of scheme is lacking. We will explore this type of scheme in the future work. *
Remark 3.8**.**
One can also adopt some high-order temporal discretization to the “semi-discrete equations” (3.14). Since the resulting numerical scheme might be complicated to deal with, we will study the high-order temporal discretization in the future work.
Remark 3.9**.**
In general, discrete-then-variation and variation-then-discrete may give us different numerical scheme. In order to get the numerical schemes (3.16) and (3.18), one should substitute (3.6) into a particular weak form of the force balance (2.16) (strong form of the variational results), and introduce a proper approximation and temporal discretization. A weak form of (2.16) can be written as
[TABLE]
where is a test function, . One can get (3.18) by taking the test function () and approximating (3.42) by
[TABLE]
It should be remarked that we might need to approximate in both side of (3.42) in different manners (explicitly or implicitly) to get back to (3.18). From an energetic variational approach point of view, the test functions may be in different space for the LAP and the MDP. Hence, starting with the force balance (2.16) may not give us a structure-preserving Lagrangian scheme without using a proper weak form.
At the end of this subsection, we briefly talk about the post-process after we obtain the discrete flow map . According to the kinematic relation, can be computed by
[TABLE]
Hence, we can compute the density on each element, i.e, the density in the centroid of each element is by
[TABLE]
where is the centroid of , while is the centroid of . For each node , since the determinant of the deformation matrix may be different in different elements contain , we can compute the in each nodes by
[TABLE]
3.2 Application in the PME
The above framework works for any porous medium type generalized diffusions has the energy-dissipation law (2.12) and the kinematic relation (2.9). Next, we apply such framework to develop two numerical schemes for the PME based on energy-dissipation law (2.19) and (2.21). The RHS of (3.18) can be computed from (3.10) and (3.11) for a given . For the LHS in (3.18), we take
[TABLE]
for the PME with energy-dissipation law (2.19), while for the energy-dissipation law (2.21), we take
[TABLE]
We call the numerical scheme based on energy-dissipation law (2.19) as the scheme 1 [(3.18) with (3.47)] and the numerical scheme based on energy-dissipation law (2.21) as scheme 2 [(3.18) with (3.48)]. One can develop other numerical schemes for the PME by other energy-dissipation laws, such as two used in Ref. [18].
Due to the degeneracy of the PME at , the semi-discrete equation (3.2), corresponding to the energy-dissipation law (2.19), is also degenerate at the region that , that is to say, if , where is the support of , then
[TABLE]
which means the nodes (“particle”) in such region have no well-defined velocity. In the meantime, we can only derive the PME from the energy-dissipation law (2.21) on the compact support of . Hence, in the following, we always assume that is the compact support of or on , which also guarantees the conditions of Theorem 3.1 hold.
It is a commonly used strategy that solving the PME only within the solution support [55, 17, 24, 6, 7, 5, 43, 18], known as the non-embedding approach. The main challenge of this approach is that the evolution of free boundary has to be tracked explicitly [43]. Our cell-centered Lagrangian schemes enable us to treat the movement of free boundary in a uniform way, as the velocity of the free boundary is also well-defined, which is a a major advantage in high dimensional situations. In later section, we will show that our schemes, especially the scheme based on energy-dissipation law (2.21) can capture the free boundary of the PME, in both 1D and 2D, without explicitly track the movement of the free boundary.
Remark 3.10**.**
Since the corresponding trajectory equation (2.22) of (2.21) is exactly the equation for the movement of free boundary, we expect the numerical scheme based on the energy-dissipation law (2.21) has an advantage in tracking the movement of the free boundary. Although the energy-dissipation law (2.21) is only valid for the PME with , our numerical tests show that the scheme 2 also works well for .
Numerical schemes in 1D: We can write down our two numerical schemes, based on energy-dissipation law (2.19) and (2.21), explicitly in one-dimensional case. Let be the compact support of , and be nodes in . We can approximate the flow map by
[TABLE]
where is a hat function satisfies . Let and , in one-dimensional case, the admissible set of is simply as
[TABLE]
The discrete action functional and the discrete dissipation can be written as
[TABLE]
where
[TABLE]
For the energy-dissipation law (2.19), direct computation results in
[TABLE]
and
[TABLE]
Hence, in the one-dimensional case, our scheme 1 based on energy-dissipation law (2.19) can be written as
[TABLE]
where is a triangular matrix, given by
[TABLE]
where we define , and to simplify the notation.
Remark 3.11**.**
In Ref. [18], the authors develop several numerical schemes for the one-dimensional PME based on different energy-dissipation laws. For the energy-dissipation law (2.19), their numerical scheme can be written as (scheme 0 in [18])
[TABLE]
Formally, with the equidistant node, our scheme (3.55) only differs from theirs in the temporal discretization for all inner points. A drawback of their temporal discretization is that, in order to prevent the solution to escape from the admissible set, they should use a specific and inefficient damped Newton methods, in which the step-size is roughly proportional to . Our temporal discretization follow the maximum dissipation principle, in which control the movement of each nodes. A standard damped Newton with a fixed step-size can prevent the solution to escape from the admissible set in our scheme. Their scheme can only be applied to the region in which (a different scheme is used for the movement of free boundary). Moreover, the starting point of the numerical approach in Ref. [18] is the force balance (2.20) in strong form, it is difficult to extend their approach to a high dimensional situation. Strictly speaking, their numerical schemes may not preserve the original energy-dissipation law in general.
Similarly, in the one-dimensional case, our scheme 2, which is based on energy-dissipation law (2.21), can be written as
[TABLE]
where
[TABLE]
where we define , and to simplify the notation.
4 Numerical Experiments
In this section, we present some numerical results to the PME in both 1D and 2D to demonstrate the accuracy of our numerical methods. We’ll focus on our scheme 2, which is based on the energy-dissipation law (2.21). The error in space of a numerical solution is measured in -norms defined by
[TABLE]
where is the difference between the numerical solution and the exact solution . We compute the numerical integration in (4.1) by the centroid method (known as midpoint method in 1D), which defines the discrete -norm, i.e.,
[TABLE]
where is the centroid of , is computed by (3.45).
4.1 One-dimensional problems
4.1.1 Barenblatt-Pattle solution
To verify the accuracy of our numerical methods, we first consider a benchmark solution, the Barenblatt-Pattle solution, which is a exact weak solution for the PME established by Barenblatt [21] and Pattle [48]. The one-dimensional Barenblatt-Pattle solution is given by,
[TABLE]
where and . For any time , this solution has a compact support with the interface moving outward at a finite speed, where
[TABLE]
We take the Barenblatt solution at , i.e., , as the initial data, and compare our numerical solution at time with . Fig. 4.1 shows the numerical and exact solutions for at and , where the numerical solutions are computed by scheme 1 (3.55) [shown by blue-square] and scheme 2 (3.58) [shown by red-circle] with to be the compact support of the initial data. The results demonstrate that both our numerical schemes can approximate the exact solutions well without oscillation. The numerical solutions by scheme 2 (3.58) approximate the exact solutions better near the interface.
The converge rate of Barenblatt solutions with and for both numerical schemes is shown in Table 4.1. The error at and the error in -norm is presented. For both schemes, the converge rate of the error at is second order in space since the solution is smooth far away from the interface. The scheme 1 has a first-order converge rate, while the scheme 2 can achieve second-order in -norm at . When becomes larger, the converge rate of scheme 2 in -norm can keep in second order. As expected, the numerical error of scheme 2 is smaller than that of scheme 1, as it track the movement of free boundary better. We can reduce the numerical error of our scheme 1 by tracking the movement of the free boundary explicitly, i.e., replacing the equations of with the equation of free boundary. In the following, we’ll focus on our scheme 2, which based on energy-dissipation law (2.21). All the following numerical solutions are computed by scheme 2.
Fig. 4.2(a) shows the trajectory of each node for Barenblatt solution with [, , scheme 2]. It can be noticed that the final grid is almost uniform. This is because the solution doesn’t become steeper during the the time evolution. We plot in Fig. (4.2)(b) the evolution of the numerical interface for the Barenblatt solution [, , scheme 2], with four different parameters and , from to , in which the solid line is the position of the exact interface, and the circle indicates the position of the numerical interface. The results show that the exact interface can be approximated in high accuracy.
Quantitatively, we show the error of the right interface of our scheme 2 with different ( and ) at in Table. 4.2, which shows that our scheme 2 can track the movement of the free boundary in second-order, even for large .
Remark 4.1**.**
Although the scheme 2 is derived by the energy-dissipation law (2.21), which is valid for , numerical tests show that this scheme also works well for the case with . Fig. 4.3 shows the numerical and exact solutions for and at with .
4.1.2 Waiting Time
Now, we study the waiting time phenomenon of the PME by our numerical methods. The waiting time phenomenon occurs for a certain type of initial data. For instance, if satisfies
[TABLE]
then there exist a positive waiting time for [3]. According the theoretical result [3], for , the waiting time for the initial date (4.5) is .
Most of previous studies estimate the waiting time from the trajectory of numerical interface [55, 6, 43], but the numerical waiting time may not be clearly estimated in some cases. As an alternative approach, Nakaki and Tomoeda estimate the waiting time for the one-dimensional PME by transforming the original equation into another equation whose solution will blow up at the waiting time of the original PME [41]. Recently, Duan et al. proposed an elegant criterion to determine the waiting time in one-dimensional case, and they manually set the velocity of interface to be zero before the numerical waiting time. We can easily adopt the criterion proposed in [18] into our numerical scheme in one-dimensional case. Fig. 4.4 shows the numerical solutions for the initial data (4.5) with and at various time, in which we manually refine the first and last element to improve the numerical accuracy (). The numerical waiting time we obtained is , which is consistent with theoretical results ().
A natural question is whether we can estimate the waiting time from our numerical interface without manually setting the velocity of interface to be zero, as it is difficult to apply similar criterion to the PME in high spatial dimensions. Fig. 4.5 (a) shows the right numerical interface computed by our numerical method with and without manually setting the velocity of interface to be zero before the numerical waiting time for the initial data (4.5) with and . Surprisingly, these two line almost coincide with each other after the numerical waiting time. Moreover, we noticed that the compact support will shrink at beginning due to the numerical approximation. These motivate us to define the numerical waiting time by the time when the numerical support begins to expand, i.e.,
[TABLE]
where is the position of left and right interface at and is the initial position of left and right interface. Although no theoretical justification is available at this point, numerical experiments show that this criterion give a clear estimation to the waiting time for all cases that we tested. Fig. 4.5 (b) shows another example for the initial data (4.5) with and , in which the numerical interface for both approaches are shown. Both approaches indicate that the waiting time in this case is about .
4.2 2D Simulations
We now apply our numerical scheme 2, which is based on the energy-dissipation law (2.21), to the PME in two dimensions. Although the explicit form of the numerical scheme cannot be given in a general mesh, using the explicit form of as a function of and on each element (shown in the Appendix), we can compute () and by Algorithm 1 and Algorithm 2 in remark 3.6, during the computer implementation.
4.2.1 Barenblatt-Pattle solution
We first validate our numerical scheme by studying the 2D Barenblatt-Pattle solution. The Barenblatt-Pattle solution in -dimensions is given by
[TABLE]
where , is a constant, related to the initial mass. This solution is radially symmetric, self-similar, and has compact support for any finite time, where
[TABLE]
We take Barenblatt solution (4.7) for at as the initial data, and compare the numerical solution at with the exact solution . Since the Barenblatt solution is steeper near the interface, we use the non-uniform mesh in in our 2D simulation, which can largely reduce computational cost. The initial non-uniform mesh in is generated by DistMesh [49].
Fig. 4.6 shows the numerical solutions for at in a non-uniform mesh with . The numerical error at are plot in Fig. 4.6(b), which indicates that the -norm of the numerical solution is for . The numerical and exact interfaces at are shown in Fig. 4.6(c), which demonstrated that our numerical scheme can track the movement of free boundary in 2D in high accuracy with a small .
We now test the converge rate of 2D Barenblatt solution. The error for numerical solutions with at in -norm for both and is shown in Table 4.3. It shows that we can achieve a second-order convergence rate in space for both and in -norm.
4.2.2 Waiting time
Now, we apply our numerical scheme (scheme 2) to the PME with the initial data has a waiting-time phenomenon in two-dimensional situations. We take the initial value as:
[TABLE]
which has a positive waiting time.
The numerical solutions for this initial data at various time are shown in Fig. 4.9 [ and ]. We use the non-uniform mesh in , which is dense around the free boundary. In order to validate our numerical results, we also compute the same initial date within the axisymmetric assumption, which can reduce the problem into a one-dimensional problem and enable us to apply the criterion in [18] to estimate the waiting time. The numerical solutions obtained within the axisymmetric assumption for and are shown in Fig. 4.9 (d)-(f).
The location of free boundary by the 2D simulation [blue solid line] and 1D simulation with the axisymmetric assumption [red dashed line] is plotted in Fig. 4.8(a), where we define the location of free boundary in 2D simulation results by
[TABLE]
where is the radius of the initial support. Both results indicate the wait time is around . Fig. 4.8(b) plot the the numerical interface at for both approaches, in which the free boundary in the 2D simulation result is shown by blue-square and the result obtained by 1D simulation is shown in red solid-line . It can be concluded that the numerical solutions obtained by both approaches are consistent, which validates our numerical scheme 2 in 2D, and we can have a clear estimation to the waiting time in 2D from the numerical interface obtained by the scheme 2.
4.2.3 Complex Support
Next we consider examples with complex compact supports in 2D. We first take the initial data as
[TABLE]
which has a partial donut-shaped support. Similar examples are studied in [5, 43].
Fig. 4.9 shows the numerical solutions of the PME with for the initial condition (4.10) at various time, which are computed by scheme 2 with and . One can see that our method works well for the concave domain. However, as pointed out in [5], a Lagrangian method can not handle the topological change automatically, which is also a limitation of our numerical approach. For this example, since the domain will evolve to reach a point where two ends of the “horseshoe” intersecting each other, the tangling of mesh cannot be avoided after this point. In order to get solutions beyond this point, one can manually interpolate the solution on to a new mesh, which can be viewed as an update to (along with the mesh).
In our last numerical example, we study a peaks merge problem for the PME with , in which the initial data has two peaks, connected by a thin layer of mass. Similar numerical experiments are studied in [42, 11].
Let , consider the initial data
[TABLE]
The boundary condition on is the Neumann boundary condition. In our numerical simulation, we take and manually set the velocity of the nodes on to be zero for the Neumann boundary condition. Fig. 4.10 shows the numerical solutions by scheme 2 at various time ( and ) with a uniform initial mesh in [, ]. It can be seen that the mesh is concentrated around the “interface”, in which the solution is steep, during the evolution. One can view our approach as a kind of moving mesh method. Unlike most of traditional moving mesh approach, in which both updating the mesh and solving the equation in the new mesh are required, we only need to solve the equation of the flow map, i.e., the equation of the mesh, the numerical solutions are determined by the kinematic relation. Similar to [11], it is a surprise that our numerical method can handle the situation of “peaks merge”, although local coarsening and remeshing is still needed in order to get better numerical solutions.
5 Summary
Structure-preserving and adaptive are two important aspects in designing efficient numerical methods for PDEs arising in numerous physical and biological modeling. It is usually a difficult task to construct a numerical scheme to a conservative or dissipative PDE that retain the conservation/dissipation properties in a discrete sense [20]. In this paper, we proposed a general framework to derive an efficient structure-preserving numerical scheme by employing a discrete energetic variational approach. A discrete energetic variational approach provides basis of deriving the “semi-discrete equations” after introducing a proper spatial discretization to the given energy-dissipation law, and can be applied to a large class of partial differential equations with energy-dissipation laws and kinematic relations, such as generalized diffusion equations, phase-field equations, and equations of liquid crystal. Within a piecewise linear approximation to the flow map, our approach is capable of handling high spatial dimensional situations. As an application, we develop two numerical schemes for the PME based on different energy-dissipation laws. By performing numerical experiments in both 1D and 2D, we show that the numerical scheme based on the energy-dissipation law (2.21) can better capture the free boundary and estimate the waiting time for the PME, without explicitly tracking the movement of the free boundary. Although our Lagrangian scheme performs well in numerical tests, a detailed numerical analysis of such schemes are required. We are working hard in this direction. As mentioned in the sect. 3, there is essential difference between Lagrangian schemes in 1D and high dimensions since both and the admissible set are not convex, which impose challenges in numerical analysis.
On the notion of our numerical approach, large deformations and topological changes can be difficult to handle by the dynamics of the flow map, usually with higher nonlinearity, degeneracy, or possible singularities. Furthermore, for general problems, a proper “initial data” may not be available. In order to solve these problems, we will employ a hybrid method, which solves the original equation in Eulerian and Lagrangian coordinates alternatively, in the ongoing work. In other word, during the evolution of the flow map, we can update the “initial data” (“reference data”) and the mesh, where the “initial data” is obtained by some Eulerian methods.
Finally, in the current approach, our piecewise linear approximation to the flow map is based on a finite element method, which provides us a simple framework to compute the deformation matrix on each element explicitly, but it is not obvious to incorporate the local coarsening and remeshing into it. One possible idea is to incorporate the particle methods [14] into our framework, in which remeshing for particle distortion can be easily dealt with, although how to compute the deformation matrix might still be a challenge.
Acknowledgment
The authors acknowledge the partial support of NSF (Grant DMS-1759536). We thank Prof. Cheng Wang, Prof. Xingye Yue, Dr. Chenghua Duan, Dr. Pei Liu and Dr. Qing Cheng for helpful discussions. Y. Wang would also like to thank Department of Applied Mathematics at Illinois Institute of Technology for their generous support and for a stimulating environment.
Appendix A Explicit form of in 2D
In the appendix, we give the explicit form of as a function of and () on each element .
For a given element , we denote the nodes of it by , and we let (). The discrete flow map on can be written as
[TABLE]
where is a nodal basis on , which satisfies ().
We can compute by mapping into the reference triangle with nodes , and . The map between to is given by
[TABLE]
where
[TABLE]
Hence,
[TABLE]
Since the nodal basis on is given by
[TABLE]
we have
[TABLE]
where
[TABLE]
Then, we can compute as a function of and on directly by (1.1), which is
[TABLE]
where , ().
Appendix B Numerical Implementation in 2D
In this appendix, we present the detailed numerical implementation for the numerical scheme (3.18), which cannot be written down in an explicit form in a general mesh as () and depend on the triangulation . Since we have the explicit form of as a function of and on each element (shown in the Appendix A), we can compute () and in the numerical implementation by using the standard technique in finite element methods, that is, summing the results on each element over the mesh [34]. For instance, () and in our scheme 2 [scheme (3.18) with (3.48)] can be computed by Algorithm 1 and Algorithm 2. We can have an explicit form of () and in a uniform triangulation in a rectangular domain by applying Algorithm 1 and Algorithm 2.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Alikakos [1985] Nicholas D Alikakos. On the pointwise behavior of the solutions of the porous medium equation as t approaches zero or infinity. Nonlinear Analysis: Theory, Methods & Applications , 9(10):1095–1113, 1985.
- 2Arnol’d [2013] Vladimir Igorevich Arnol’d. Mathematical methods of classical mechanics , volume 60. Springer Science & Business Media, 2013.
- 3Aronson et al. [1983] DG Aronson, LA Caffarelli, and S Kamin. How an initially stationary interface begins to move in porous medium flow. SIAM Journal on Mathematical Analysis , 14(4):639–658, 1983.
- 4Baines et al. [2006] M J Baines, M E Hubbard, P K Jimack, and A C Jones. Scale-invariant moving finite elements for nonlinear partial differential equations in two dimensions. Applied Numerical Mathematics , 56(2):230–252, 2006.
- 5Baines et al. [2005] Mike J Baines, ME Hubbard, and PK Jimack. A moving mesh finite element algorithm for the adaptive solution of time-dependent partial differential equations with moving boundaries. Applied Numerical Mathematics , 54(3-4):450–469, 2005.
- 6Bertsch and Dal Passo [1990] M Bertsch and R Dal Passo. A numerical treatment of a superdegenerate equation with applications to the porous media equation. Quarterly of applied mathematics , 48(1):133–152, 1990.
- 7Budd et al. [1999] C J Budd, G J Collins, W Z Huang, and R D Russell. Self–similar numerical solutions of the porous–medium equation using moving mesh methods. Philosophical Transactions of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences , 357(1754):1047–1077, 1999.
- 8Cahn and Hilliard [1958] John W Cahn and John E Hilliard. Free energy of a nonuniform system. i. interfacial free energy. The Journal of chemical physics , 28(2):258–267, 1958.
