
A nonlinear correction finite volume scheme preserving the discrete maximum principle (DMP) was presented to solve diffusion equations with anisotropic and discontinuous coefficients. It is well-known that existing cell-centered finite volume schemes for the diffusion problem with the general discontinuous coefficient often impose severe restrictions on the mesh-cell geometry to maintain the DMP. We proposed a nonlinear method for modifying the flux to obtain a new scheme which eliminated the requirement for nonnegative interpolation coefficients at the midpoint of cell-edge unknowns while still preserving the DMP. That is, our new scheme satisfied the DMP unconditionally and can be applied to the diffusion problem with the discontinuous coefficient on arbitrary distorted meshes. We then provided a priori estimation under a coercivity assumption and proved that the scheme satisfied the DMP. Numerical results were presented to demonstrate that our scheme can handle diffusion equations with anisotropic and discontinuous coefficients, satisfied the DMP, and, in some cases, outperformed existing schemes which preserved the DMP in terms of accuracy.
Citation: Yao Yu, Guanyu Xue. A nonlinear correction finite volume scheme preserving maximum principle for diffusion equations with anisotropic and discontinuous coefficient[J]. Electronic Research Archive, 2025, 33(3): 1589-1609. doi: 10.3934/era.2025075
[1] | Junseok Kim . Maximum principle preserving the unconditionally stable method for the Allen–Cahn equation with a high-order potential. Electronic Research Archive, 2025, 33(1): 433-446. doi: 10.3934/era.2025021 |
[2] | Victor Ginting . An adjoint-based a posteriori analysis of numerical approximation of Richards equation. Electronic Research Archive, 2021, 29(5): 3405-3427. doi: 10.3934/era.2021045 |
[3] | Junseok Kim, Soobin Kwak, Hyun Geun Lee, Youngjin Hwang, Seokjun Ham . A maximum principle of the Fourier spectral method for diffusion equations. Electronic Research Archive, 2023, 31(9): 5396-5405. doi: 10.3934/era.2023273 |
[4] | Xuefei He, Kun Wang, Liwei Xu . Efficient finite difference methods for the nonlinear Helmholtz equation in Kerr medium. Electronic Research Archive, 2020, 28(4): 1503-1528. doi: 10.3934/era.2020079 |
[5] | Leilei Wei, Xiaojing Wei, Bo Tang . Numerical analysis of variable-order fractional KdV-Burgers-Kuramoto equation. Electronic Research Archive, 2022, 30(4): 1263-1281. doi: 10.3934/era.2022066 |
[6] | Yue Feng, Yujie Liu, Ruishu Wang, Shangyou Zhang . A conforming discontinuous Galerkin finite element method on rectangular partitions. Electronic Research Archive, 2021, 29(3): 2375-2389. doi: 10.3934/era.2020120 |
[7] | Shasha Bian, Yitong Pei, Boling Guo . Numerical simulation of a generalized nonlinear derivative Schrödinger equation. Electronic Research Archive, 2022, 30(8): 3130-3152. doi: 10.3934/era.2022159 |
[8] | Qian He, Wenxin Du, Feng Shi, Jiaping Yu . A fast method for solving time-dependent nonlinear convection diffusion problems. Electronic Research Archive, 2022, 30(6): 2165-2182. doi: 10.3934/era.2022109 |
[9] | Huijun Xiong, Chao Yang, Wenhao Li . Fixed-time synchronization problem of coupled delayed discontinuous neural networks via indefinite derivative method. Electronic Research Archive, 2023, 31(3): 1625-1640. doi: 10.3934/era.2023084 |
[10] | San-Xing Wu, Xin-You Meng . Hopf bifurcation analysis of a multiple delays stage-structure predator-prey model with refuge and cooperation. Electronic Research Archive, 2025, 33(2): 995-1036. doi: 10.3934/era.2025045 |
A nonlinear correction finite volume scheme preserving the discrete maximum principle (DMP) was presented to solve diffusion equations with anisotropic and discontinuous coefficients. It is well-known that existing cell-centered finite volume schemes for the diffusion problem with the general discontinuous coefficient often impose severe restrictions on the mesh-cell geometry to maintain the DMP. We proposed a nonlinear method for modifying the flux to obtain a new scheme which eliminated the requirement for nonnegative interpolation coefficients at the midpoint of cell-edge unknowns while still preserving the DMP. That is, our new scheme satisfied the DMP unconditionally and can be applied to the diffusion problem with the discontinuous coefficient on arbitrary distorted meshes. We then provided a priori estimation under a coercivity assumption and proved that the scheme satisfied the DMP. Numerical results were presented to demonstrate that our scheme can handle diffusion equations with anisotropic and discontinuous coefficients, satisfied the DMP, and, in some cases, outperformed existing schemes which preserved the DMP in terms of accuracy.
A discrete scheme that satisfies fundamental properties such as conservation, positivity, and the discrete maximum principle (DMP) for the diffusion equations is of great significance. The finite volume framework can ensure local conservation of mass, an essential physical property, and is a commonly used method in constructing the discretization system (see [1,2,3,4]). There is a lot of research on the monotonicity of scheme, as it guarantees the positivity of the approximate solution (see [5,6,7,8,9,10]). However, a monotone scheme can only maintain the lower bound and cannot simultaneously keep the upper bound. A discrete system preserving the DMP can ensure that there are no spurious oscillations in the numerical solutions and can preserve physical bounds. Therefore, researchers have recently turned to constructing schemes that preserve the DMP (see [11,12,13,14,15]). A scheme having a specific structure ensures the DMP is developed in [16], which provides some theoretical analysis under the coercivity assumption. In [17], a nonlinear finite volume scheme preserving the DMP for the anisotropic diffusion equations on distorted meshes is presented. They give a proof of the coercivity of the scheme under some constraints on cell deformation and the diffusion coefficient.
It is challenging to design a precise and dependable scheme on distorted meshes for the diffusion problem with anisotropic and discontinuous coefficients to satisfy the DMP. As is well-known, the existing cell-centered finite volume schemes for the diffusion problem with general discontinuous coefficients on general meshes cannot unconditionally satisfy the DMP. The validity of the DMP for continuous piecewise linear finite element approximations for the Poisson equation with the Dirichlet boundary condition is verified in [18]. A nonlinear stabilized Galerkin approximation of the Laplace operator, which preserves the DMP on arbitrary meshes and in arbitrary space dimension without the help of the well-known acute condition or generalizations thereof, was derived in [19]. A mesh condition is developed for linear finite element approximation of the anisotropic diffusion–convection–reaction problem to satisfy the DMP in [20]. A weak Galerkin discrete scheme preserving the DMP for the boundary value problem of a general anisotropic diffusion problem is created in [21]. From all of the above methods, we find that there are invariably certain restrictions on the geometry of mesh-cell or the location of discontinuity in order to preserve the DMP. Desirably, our new scheme can satisfy the DMP unconditionally.
For constructing a scheme satisfying monotone or the DMP, many researchers take a measure of making a correction on flux. In [22], a nonlinear method to correct a general finite volume scheme for the anisotropic diffusion problem, which preserves the DMP, was presented. A monotonicity correction was applied to second-order element finite volume methods, obtaining a second-order monotone finite volume scheme for the anisotropic diffusion problem in [23]. In [24], a new nonlinear method is constructed to preserve the DMP for the diffusion problem with the heterogeneous anisotropic coefficient. Following this idea, we propose a nonlinear correction for the finite volume method to obtain a scheme that preserves the DMP, where the interpolation coefficients of the cell-edge unknowns are not required to be nonnegative. This is an advantage of our scheme.
In this paper, we propose a new nonlinear correction finite volume scheme to preserve the DMP for diffusion equations with anisotropic and discontinuous coefficients. First, two linear and nonconservative fluxes are given on two sides of the cell-edge, respectively. Meanwhile, cell-edge unknowns(auxiliary unknowns) are introduced. When eliminating these cell-edge unknowns by using a weighted combination of their neighboring cell-centered unknowns, we no longer require the weighted coefficient to be nonnegative, but just require the approximation to have second-order accuracy. This idea allows our scheme to adapt to solving the diffusion problem with discontinuous coefficient on universal distorted meshes. Second, the conservative flux is constructed by using a nonlinear weighted combination of these two one-sided edge linear fluxes. Due to the appearance of negative weighted coefficients in the first step, the scheme does not preserve the DMP so far. Then, we come up with a new nonlinear method to transform the conservative flux into a new one which possesses the structure of preserving the DMP. This is one of the key ideas of our work.
The remainder of this article is organized as follows. In Section 2, the construction of the nonlinear finite volume scheme is described. In Section 3, a prior estimation and the proof preserving the DMP of our scheme are proposed. In Section 4, some numerical results are presented to test the accuracy and verify the DMP. Finally, some conclusions are given.
Consider the following stationary diffusion problem:
−∇⋅(κ∇u)=finΩ, | (2.1) |
u(x)=gon∂Ω, | (2.2) |
where the diffusion tensor κ is a positive-definite matrix, f∈L2(Ω), and g∈C(∂Ω) are given functions. Let Ω be an open bounded polygonal domain in R2 with boundary ∂Ω.
In this subsection, we present the expression of the one-side edge flux with both cell-center unknowns and cell-edge unknowns. Denote the cell by K or L, which also stand for the cell-center, and σ=K|L is the common cell-edge of cell K and L. Then, integrate (2.1) over the cell K to get
∑σ∈EKFK,σ=∫Kf(x)dx, | (2.3) |
where EK is the set of all cell-edges of K and FK,σ is the continuous flux on the edge σ whose expression is as follows:
FK,σ=−∫σ∇u(x)⋅κ(x)TnKσdl. | (2.4) |
The unit outer normal vector on the edge σ of cell K(resp.L) is denoted by nKσ(resp.nLσ), and the unit tangential vector on the line KMi(resp.LMi)(i=1,2) is denoted by tKMi(resp.tLMi). These notations are shown in Figure 1.
Since KM1 and KM2 are two edges of triangle KM1M2, the two vectors tKM1 and tKM2 cannot be collinear (see Figure 1). Then, there is
κTnKσ|κTnKσ|=sinθK2sinθKtKM1+sinθK1sinθKtKM2. | (2.5) |
Similarly, there is
κTnLσ|κTnLσ|=sinθL2sinθLtLM3+sinθL1sinθLtLM4. | (2.6) |
Substituting (2.5) and (2.6) into (2.4), respectively, we obtain
FK,σ=−∫σ|κTnKσ|(sinθK2sinθK∇u(x)⋅tKM1+sinθK1sinθK∇u(x)⋅tKM2)dl=−|κT(K)nKσ||σ|(sinθK2sinθKu(M1)−u(K)|KM1|+sinθK1sinθKu(M2)−u(K)|KM2|)+O(h2), |
FL,σ=−∫σ|κTnLσ|(sinθL2sinθL∇u(x)⋅tLM3+sinθL1sinθL∇u(x)⋅tLM4)dl=−|κT(L)nLσ||σ|(sinθL2sinθLu(M3)−u(L)|LM3|+sinθL1sinθLu(M4)−u(L)|LM4|)+O(h2), |
where h=(supK∈Tm(K))12 and m(K) is the area of cell K. Let
F1=−|κT(K)nKσ||σ|(sinθK2sinθKuM1−uK|KM1|+sinθK1sinθKuM2−uK|KM2|), | (2.7) |
F2=−|κT(L)nLσ||σ|(sinθL2sinθLuM3−uL|LM3|+sinθL1sinθLuM4−uL|LM4|). | (2.8) |
The above two expressions (2.7) and (2.8) contain the cell-edge unknowns, which are auxiliary unknowns in this scheme. Then, we will eliminate those cell-edge unknowns. According to experience, those cell-edge unknowns can be locally approximated by some neighboring cell-center unknowns. Therefore, the approximation expression of cell-edge unknowns uMi can be usually written as
uMi=JMi,n∑j=1ωMi,juKMi,j, | (2.9) |
where uKMi,j are some cell-center unknowns, ωMi,j are some corresponding coefficients and JMi,n is the number of cell-center unknowns involved in the approximation of uMi. The method for selecting the interpolation mainly depends on two aspects in this scheme. On the one hand, the approximation order is required to be second order to preserve the accuracy of the scheme, which is relatively easier to achieve. On the other hand, the interpolation coefficients are allowed to be negative to enable the scheme to be applied to diffusion equations with anisotropic and discontinuous diffusion coefficients on any arbitrary distorted mesh. As is well-known, it is a challenge to realize this goal when constructing a scheme preserving the DMP.
Rewrite the expression (2.7) to
F1=¯F1+aK(uK−uL), | (2.10) |
where ¯F1 dose not include the term uL, and aK is a constant which is negative or nonnegative. Similarly, the expression (2.8) can be rewritten to
F2=¯F2+aL(uL−uK), | (2.11) |
where ¯F2 dose not include the term uK, and aL is a constant which is negative or nonnegative like aK.
Set aσ = min{|aK|,|aL|}, which is a nonnegative constant, and we can rewrite (2.10) and (2.11) to be
F1=^F1+aσ(uK−uL), | (2.12) |
F2=^F2+aσ(uL−uK). | (2.13) |
Therefore, the flux FK,σ and FL,σ can be rewritten as follows:
FK,σ=aσ(uK−uL)+^F1+O(h2), |
FL,σ=aσ(uL−uK)+^F2+O(h2). |
If |^F1|≤ε1 and |^F2|≤ε1, where ε1 is a sufficiently small positive constant, ε1<Ch2, and the flux FK,σ and FL,σ can be rewritten to be
FK,σ=aσ(uK−uL)+O(h2), |
FL,σ=aσ(uL−uK)+O(h2). |
Hence, the conservative flux can be easily obtained as follows:
FK,σ=aσ(uK−uL), | (2.14) |
FL,σ=aσ(uL−uK). | (2.15) |
If |^F1|>ε1 or |^F2|>ε1, the construction of the conservative flux becomes complicated. We will make a discussion in this case. Let the discrete flux on edge σ to be
FK,σ=λ1^F1−λ2^F2+aσ(uK−uL), | (2.16) |
FL,σ=λ2^F2−λ1^F1+aσ(uL−uK), | (2.17) |
where λ1 and λ2 are some positive coefficients satisfying λ1+λ2=1, which will be determined later. It is obvious that there is FK,σ+FL,σ=0, which means that the discrete flux on the cell edge σ is surely conservative.
Furthermore, there is |^F1|+|^F2|≠0 under the circumstances. Then, we can take
λ1=|^F2||^F1|+|^F2|,λ2=|^F1||^F1|+|^F2|. |
Hence, the positive coefficients λ1 and λ2 have been obtained.
If ^F1^F2<0, that is, |^F1|^F2=−|^F2|^F1, then, Eqs (2.16) and (2.17) can be rewritten as follows:
FK,σ=|^F2||^F1|+|^F2|^F1−|^F1||^F1|+|^F2|^F2+aσ(uK−uL)=2|^F2||^F1|+|^F2|^F1+aσ(uK−uL)=2λ1^F1+aσ(uK−uL), | (2.18) |
FL,σ=|^F1||^F1|+|^F2|^F2−|^F2||^F1|+|^F2|^F1+aσ(uL−uK)=2|^F1||^F1|+|^F2|^F2+aσ(uL−uK)=2λ2^F2+aσ(uL−uK). | (2.19) |
When eliminating those cell-edge unknowns, the appearance of negative coefficients in (2.9) can potentially lead to negative coefficients in 2λ1^F1 of (2.18). However, nonnegative coefficients are crucial for constructing a scheme that satisfes the DMP. To solve this problem, we present a nonlinear correction to the expression of the conservative flux. Let
uK1=minˉK∈JKuˉK,uK2=maxˉK∈JKuˉK, |
where JK is the set of all cells which share any vertex with the cell K.
Case1: There exist two cell-centered unknowns uK′ and uL′ such that
^F1(uK−uK′)>0, | (2.20) |
^F2(uL−uL′)>0, | (2.21) |
where K′∈JK and L′∈JL. In reality, uK′ can be taken to be uK1 or uK2, depending on the circumstances. Similarly, uL′ can be treated in the same way.
Therefore, we can rewrite the Eqs (2.18) and (2.19) to be as follows:
FK,σ=2λ1η1(uK−uK′)+aσ(uK−uL), | (2.22) |
FL,σ=2λ2η2(uL−uL′)+aσ(uL−uK), | (2.23) |
where
η1=^F1uK−uK′, |
η2=^F2uL−uL′. |
According to (2.20), we can see that there is
2λ1η1>0. |
Similarly, there is
2λ2η2>0. |
Case2: There does not exist two cells K′ and L′ such that both Eqs (2.20) and (2.21) hold simultaneously. That is,
^F1(uK−uK′)≤0 | (2.24) |
for any K′∈JK, or
^F2(uL−uL′)≤0 | (2.25) |
for any L′∈JL.
Therefore, we give the following conservative flux,
FK,σ=aσ(uK−uL), | (2.26) |
FL,σ=aσ(uL−uK), | (2.27) |
If ^F1^F2≥0, that is, |^F1|^F2=|^F2|^F1, then, the Eqs (2.16) and (2.17) can be rewritten as follows:
FK,σ=aσ(uK−uL), | (2.28) |
FL,σ=aσ(uL−uK). | (2.29) |
When σ∈∂Ω, we can give the following expression of flux:
FK,σ=∑iaK,i(uK−uK,i)+∑jaM,j(uK−uM,j), |
where uK,i are cell-center unknowns associated with cell K and uM,j are cell-edge unknowns located on the boundary ∂Ω related to cell K.
The finite volume scheme is as follows:
∑σ∈EKFK,σ=fKm(K),∀K∈Pin, | (2.30) |
uK=gK,∀K∈Pout, | (2.31) |
where Pin is the set of all cell centers which are in the domain Ω and Pout is the set of all midpoints of boundary edge.
Obviously, the scheme results in a nonlinear system. We solve it by using the Picard iteration, and we linearize the flux as follows:
(ⅰ) when |^F1|≤ε1 and |^F2|≤ε1,
F(s)K,σ=aσ(u(s)K−u(s)L),F(s)L,σ=aσ(u(s)L−u(s)K). |
(ⅱ) when |^F1|>ε1 or |^F2|>ε1, ^F1^F2<0 for Case 1,
F(s)K,σ=aσ(u(s)K−u(s)L)+2λ(s−1)1^F1(s−1)u(s−1)K−u(s−1)K′(u(s)K−u(s)K′)=aσ(u(s)K−u(s)L)+2λ(s−1)1η(s−1)1(u(s)K−u(s)K′),F(s)L,σ=aσ(u(s)L−u(s)K)+2λ(s−1)2^F2(s−1)u(s−1)L−u(s−1)L′(u(s)L−u(s)L′)=aσ(u(s)L−u(s)K)+2λ(s−1)2η(s−1)2(u(s)L−u(s)L′). |
(ⅲ) when |^F1|>ε1 or |^F2|>ε1, ^F1^F2<0 for Case 2,
F(s)K,σ=aσ(u(s)K−u(s)L),F(s)L,σ=aσ(u(s)L−u(s)K). |
(ⅳ) when |^F1|>ε1 or |^F2|>ε1, ^F1^F2≥0,
F(s)K,σ=aσ(u(s)K−u(s)L),F(s)L,σ=aσ(u(s)L−u(s)K). |
Here, s is the nonlinear iteration index.
Let A(U) be the matrix of this system, where U is the vector of discrete unknowns. The global discrete nonlinear system reads as:
A(U)U=B. | (2.32) |
We choose a small value εnon>0 and initial vector U0 in the Picard iteration, and repeat for s=1,2,…,
1) solve A(Us−1)Us=B,
2) stop if ‖A(Us)Us−B‖≤εnon.
In this paper, we take εnon=10−5.
In this section, we give the prior estimation and analysis of maximum principle. Let E be the set of all cell-edges. Define the norms
||v||L2=(∑K∈Jv2Km(K))1/2,||∇v||=(∑σ∈E(vK−vL)2)1/2. |
Before giving the prior estimation, we need to give the assumption (H1) that the scheme (2.30) and (2.31) satisfies the coercivity property. That is, the following inequality holds:
∑σ∈EFK,σ(uK−uL)≥C1||∇u||2, | (3.1) |
where C1 is a constant independent of h.
For the nonlinear correction scheme in this paper, we can get the priori estimation.
Theorem 1. Under the assumption (H1), for any solution u of the scheme (2.30) and (2.31), there holds
||∇u||2≤C3||f||2L2, |
where C3 is a positive constant independent of h.
Proof. Multiply (2.30) by uK and sum up these products for all K to obtain
∑K∈J∑σ∈EKFK,σuK=∑K∈JfKuKm(K). |
Noticing the conservation of the normal flux, we can get
∑σ∈EFK,σ(uK−uL)=∑K∈JfKuKm(K). |
Using the assumption (H1), we can get the following inequality:
∑σ∈EFK,σ(uK−uL)≥C1||∇u||2. |
Hence, there is
||∇u||2≤1C1(||f||2L2+||u||2L2). |
Using the discrete Poincare inequality,
||u||L2≤C2||∇u|| |
We can obtain the inequality as follows:
||∇u||2≤1C1||f||2L2+1C1C22||∇u||2. |
Then, it follows that
||∇u||2≤C3||f||2L2. |
From the structure of FK,σ in Eqs (2.14), (2.22), (2.26) and (2.28), we figure out that the discrete flux has the form:
FK,σ=NK,σ∑i=1AK,σ,i(uK−uKi), |
where NK,σ is the number of cell-center unknowns involved in the flux FK,σ. We can easily know that AK,σ,i≥0. Then, the finite volume scheme (2.30) reads as:
NK∑i=1AK,i(uK−uKi)=fKm(K), |
where NK is the number of cell-center unknowns related to cell K, and AK,i≥0, which is the sum of some AK,σ,i. So far, we conclude that our scheme satisfies the DMP.
Theorem 2. The finite volume scheme (2.30) and (2.31) preserves the discrete maximum principle. Let umin=minK∈Pin∪PoutuK and umax=maxK∈Pin∪PoutuK, then umin and umax are only obtained on the boundary unless u is a constant in the whole domain. That is, umin can be only obtained on the boundary of domain unless u is a constant for f≥0, and umax can be only obtained on the boundary of domain unless u is a constant for f≤0.
The proof of this theorem is similar to some existing papers, so we do not prove it any more.
As usual, we use discrete L2−norms to evaluate approximate errors. The L2−norm for the solution u is taken to be εu2=[∑K∈T(uK−u(K))2m(K)]12 and the L2−norm for the flux F is taken to be εF2=[∑K∈T(FK,σ−FK,σ)2]12.
Test the linear elliptic equation with continuous coefficient in unit square Ω=(0,1)2. The diffusion coefficient is
κ=(cosθsinθ−sinθcosθ)(k100k2)(cosθ−sinθsinθcosθ), |
where k1=1+2x2+y2, k2=1+x2+2y2, and θ=5π12. The exact solution is taken as u(x,y)=sin(πx)sin(πy).
We apply our scheme and the scheme in [13] to solve this problem on quadrilateral meshes shown in Figure 2 and triangular meshes shown in Figure 3. Tables 1 and 2 exhibit the error and convergence of these two schemes for test 1 on these two kinds of meshes, respectively. From these two tables, it's easy to find that the convergence rate of our new scheme for the solution is almost second-order and the flux is more than first-order. Meanwhile, we discover that the error of the solution of our new method is similar to the scheme in [13] by this test example, but the accuracy of the flux remarkably reduced for our new scheme compared to the scheme in [13].
number of cells | 144 | 576 | 2304 | 9216 | 36,864 | |
εu2 | 3.71e-3 | 9.26e-4 | 2.03e-4 | 4.87e-5 | 1.25e-5 | |
our scheme | rate | - | 2.00 | 2.19 | 2.06 | 1.96 |
εF2 | 4.85e-1 | 2.22e-1 | 9.17e-2 | 3.56e-2 | 1.33e-2 | |
rate | - | 1.13 | 1.28 | 1.37 | 1.42 | |
εu2 | 3.80e-3 | 9.33e-4 | 3.13e-4 | 5.36e-5 | 1.37e-5 | |
scheme in [13] | rate | - | 2.03 | 1.58 | 2.54 | 1.97 |
εF2 | 9.00e-1 | 4.79e-1 | 2.13e-1 | 9.56e-2 | 4.30e-2 | |
rate | - | 0.91 | 1.17 | 1.16 | 1.15 |
number of cells | 288 | 1152 | 4608 | 18,432 | 73,728 | |
εu2 | 1.44e-2 | 3.91e-3 | 1.17e-3 | 3.04e-4 | 7.45e-5 | |
our scheme | rate | - | 1.88 | 1.74 | 1.94 | 2.03 |
εF2 | 1.84e-1 | 7.53e-2 | 2.86e-2 | 1.08e-2 | 3.91e-3 | |
rate | - | 1.29 | 1.40 | 1.41 | 1.47 | |
εu2 | 1.79e-2 | 5.87e-3 | 1.71e-3 | 4.18e-4 | 1.06e-4 | |
scheme in [13] | rate | - | 1.61 | 1.78 | 2.03 | 1.97 |
εF2 | 3.78e-1 | 1.84e-1 | 7.63e-2 | 3.35e-2 | 1.49e-2 | |
rate | - | 1.03 | 1.27 | 1.19 | 1.17 |
Consider the problem (2.1) and (2.2) with discontinuous coefficients in the unit square Ω=(0,1)2, where
κ(x,y)={4,(x,y)∈(0,23]×(0,1),1,(x,y)∈(23,1)×(0,1), |
and
f(x,y)={20π2sinπxsin2πy,(x,y)∈(0,23]×(0,1),20π2sin4πxsin2πy,(x,y)∈(23,1)×(0,1). |
The exact solution is
u(x,y)={sinπxsin2πy,(x,y)∈(0,23]×(0,1),sin4πxsin2πy,(x,y)∈(23,1)×(0,1). |
By using our scheme and the scheme in [13], we test the discontinuous problem on random quadrilateral and triangular meshes with a discontinuity given in Figures 4 and 5. The errors are exhibited in Tables 3 and 4, respectively. We can easily know that our scheme gains nearly second-order accuracy for the solution and more than first-order accuracy for the flux on both kinds of meshes.
number of cells | 144 | 576 | 2304 | 9216 | 36,864 | |
εu2 | 2.65e-2 | 7.72e-3 | 2.14e-3 | 6.04e-4 | 1.58e-4 | |
our scheme | rate | - | 1.78 | 1.85 | 1.83 | 1.94 |
εF2 | 3.56e-1 | 1.97e-1 | 8.25e-2 | 3.62e-2 | 1.63e-2 | |
rate | - | 0.85 | 1.26 | 1.19 | 1.15 | |
εu2 | 2.58e-2 | 7.42e-3 | 2.26e-3 | 6.95e-4 | 2.02e-4 | |
scheme in [13] | rate | - | 1.80 | 1.72 | 1.70 | 1.78 |
εF2 | 8.03e-1 | 4.11e-1 | 1.78e-1 | 7.99e-2 | 3.62e-2 | |
rate | - | 0.97 | 1.21 | 1.16 | 1.14 |
number of cells | 288 | 1152 | 4608 | 18,432 | 73,728 | |
εu2 | 5.15e-2 | 1.82e-2 | 4.96e-3 | 1.31e-3 | 3.10e-4 | |
our scheme | rate | - | 1.50 | 1.88 | 1.92 | 2.08 |
εF2 | 1.23 | 6.71e-1 | 2.67e-1 | 1.14e-1 | 4.79e-2 | |
rate | - | 0.87 | 1.33 | 1.23 | 1.25 | |
εu2 | 7.10e-2 | 3.03e-2 | 9.40e-3 | 2.79e-3 | 7.10e-4 | |
scheme in [13] | rate | - | 1.23 | 1.69 | 1.75 | 1.97 |
εF2 | 2.25 | 1.22 | 5.13e-1 | 2.32e-1 | 1.01e-1 | |
rate | - | 0.88 | 1.25 | 1.14 | 1.20 |
From Table 3, we can see that the accuracy of the solution of our scheme reduces a little compared to the scheme in [13], but the accuracy of the flux reduces a lot. From Table 4, the accuracy of the solution and the flux of our new scheme are both remarkably higher than the scheme in [13]. Overall, our new nonlinear scheme is relatively better suited for solving diffusion equations with anisotropic and discontinuous coefficients on distorted meshes.
Consider the problem (2.1) and (2.2) with diffusion coefficients
κ(x,y)={4,(x,y)∈(0,23]×(0,1)1,(x,y)∈(23,1)×(0,1), |
and source term f=0. Take the following linear solution:
u(x,y)={1+x+y,(x,y)∈(0,23]×(0,1)−1+4x+y,(x,y)∈(23,1)×(0,1). |
We set the stopping criterion εnon=10−14 for this example, and test it on random quadrilateral meshes and random triangular meshes, respectively. Computational results are shown in Tables 5 and 6. Both tables demonstrate that our scheme can accurately recover the linear solution.
number of cells | 144 | 576 | 2304 | 9216 |
εu2 | 8.8380e-15 | 4.6259e-15 | 2.3390e-15 | 3.6564e-15 |
εF2 | 5.0183e-13 | 3.1671e-13 | 5.5543e-13 | 4.6379e-13 |
number of cells | 288 | 1152 | 4608 | 18,432 |
εu2 | 1.6754e-14 | 2.1597e-14 | 2.6963e-15 | 5.1886e-15 |
εF2 | 1.5465e-12 | 1.8797e-12 | 1.2812e-12 | 2.0331e-12 |
Consider the problem (2.1) and (2.2) on the domain Ω=(0,1)2∖[4/9,5/9]2, whose boundary ∂Ω is composed of two disjoint parts Γ1 and Γ0 exhibited in Figures 6 and 7, where Γ1 is the interior boundary and Γ0 is the exterior boundary. Set f=0, g=0 on Γ0, and g=2 on Γ1. Take the anisotropic diffusion tensor κ as follows:
κ=(cosθsinθ−sinθcosθ)(k100k2)(cosθ−sinθsinθcosθ), |
where k1=1, k2={100,(x,y)∈(0,23]×(0,1)10,(x,y)∈(23,1)×(0,1), and θ=π6.
We test this example on random quadrilateral meshes with a hole shown in Figure 6 and random triangular meshes with a hole shown in Figure 7. The contour of the numerical solution of the scheme in [25] on these two kinds of meshes are shown in Figures 8 and 9, respectively. The analysis of both figures reveals that the numerical solution exhibits negative minima and surpasses the value of 2 at its maxima. Consequently, the scheme in [25] violates the DMP.
The numerical solution of our new scheme on these two kinds of meshes are shown in Figures 10 and 11, respectively. Both figures show that the numerical solution maintains a minimum value of 0 and reaches a maximum value of 2. These results testify that our scheme satisfies the DMP.
Consider the problem (2.1) and (2.2) with discontinuous and anisotropic diffusion tensor coefficients as follows:
κ={(500.5499.5499.5500.5),(x,y)∈(0,23]×(0,1)(1/21/31/31/2),(x,y)∈(23,1)×(0,1). |
The computational domain is Ω=(0,16)×(0,16). We set f=0, g(x,0)=0, g(16,y)=0,
g(0,y)={0.5y,0≤y<2,1,2≤y≤16, |
and
g(x,16)={1,0≤x≤14,8−0.5x,14<x≤16. |
Though the solution of the problem is unknown, the maximum principle states that the solution of this problem should stay between 0 and 1.
We first use the positivity-preserving scheme in [26] to test this example on the random quadrilateral meshes with 48×48 cells and the random triangular meshes with 48×48×2 cells. The contour of the numerical solution on random quadrilateral meshes is shown in Figure 12, and that on random triangular meshes is shown in Figure 13. Both figures reveal that the peak value of the numerical solution surpasses 1. The numerical findings indicate that the positivity-preserving scheme fails to maintain the upper bound constraints of the solution.
We use our nonlinear scheme to test this example on the same two kinds of meshes. Results are presented in Figures 14 and 15, respectively. From these two figures, we see that our new scheme avoids undershoot and overshoot, which testify that our scheme satisfies the DMP.
An improved nonlinear finite volume scheme which preserves the DMP for the diffusion problem with anisotropic and discontinuous coefficients is developed. This new scheme can solve diffusion equations with the discontinuous coefficient on any arbitrary distorted meshes, overcoming the drawback of existing schemes that require the interpolation coefficients of cell-edge unknowns to be nonnegative. We provide a prior estimation based on an assumption of the coercivity property. Numerical results demonstrate that the accuracy of this new scheme surpasses that of the existing scheme. Furthermore, numerical results testify that this new scheme satisfies the DMP. When solving the nonlinear algebraic system, we find that the Picard iteration is unsatisfactory in terms of computational efficiency. We hope to detect a useful iteration method that is adapted for this system in the future.
The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.
This work is partially supported by Shandong Provincial Natural Science Fundation (ZR2021QA109), National Natural Science Foundation of China (No. 12101536) and the LCP Fund for Young Scholar (No. 6142A05QN22004).
The authors declare there is no conflicts of interest.
[1] |
F. Hermeline, A finite volume method for the approximation of diffusion operators on distorted meshes, J. Comput. Phys., 160 (2000), 481–499. https://doi.org/10.1006/jcph.2000.6466 doi: 10.1006/jcph.2000.6466
![]() |
[2] |
J. M. Nordbotten, I. Aavatsmark, Monotonicity conditons for control volume methods on uniform parallelogram grids in homogeneous media, Comput. Geosci., 9 (2005), 61–72. https://doi.org/10.1007/s10596-005-5665-2 doi: 10.1007/s10596-005-5665-2
![]() |
[3] |
E. Bertolazzi, G. Manzini, A second-order maximum principle preserving finite volume method for steady convection-diffusion problems, SIAM J. Numer. Anal., 43 (2005), 2172–2199. https://doi.org/10.1137/040607071 doi: 10.1137/040607071
![]() |
[4] |
J. Droniou, Finite volume schemes for diffusion equations: Introduction to and review of modern methods, Math. Models Methods Appl. Sci., 24 (2014), 1575–1619. https://doi.org/10.1142/S0218202514400041 doi: 10.1142/S0218202514400041
![]() |
[5] | C. L. Potier, Finite volume monotone scheme for highly anisotropic diffusion operators on unstructured triangular meshes, C. R. Math., 341 (2005) 787–792. https://doi.org/10.1016/j.crma.2005.10.010 |
[6] |
K. Lipnikov. D. Svyatskiy, Y. Vassilevski, Monotone finite volume method for diffusion equations on unstructured triangular and shape-regular polygonal meshes, J. Comput. Phys., 227 (2007), 492–512. https://doi.org/10.1016/j.jcp.2007.08.008 doi: 10.1016/j.jcp.2007.08.008
![]() |
[7] |
Z. Sheng, J. Yue, G. Yuan, Monotone finite volume schemes of nonequilibrium radiation diffusion equations on distorted meshes, SIAM J. Sci. Comput., 31 (2009), 2915–2934. https://doi.org/10.1137/080721558 doi: 10.1137/080721558
![]() |
[8] |
K. Lipnikov, D. Svyatskiy, Y. Vassilevski, A monotone finite volume method for advection-diffusion equations on unstructured polygonal meshes, J. Comput. Phys., 229 (2010), 4017–4032. https://doi.org/10.1016/j.jcp.2010.01.035 doi: 10.1016/j.jcp.2010.01.035
![]() |
[9] |
K. Lipnikov, G. Manzini, D. Svyatskiy, Analysis of the monotonicity condition in the mimetic finite difference method for elliptic problems, J. Comput. Phys., 230 (2011), 2620–2642. https://doi.org/10.1016/j.jcp.2010.12.039 doi: 10.1016/j.jcp.2010.12.039
![]() |
[10] |
J. Camier, F. Hermeline, A monotone nonlinear finite volume method for approximating diffusion operators on general meshes, Int. J. Numer. Methods Eng., 107 (2016), 496–519. https://doi.org/10.1002/nme.5184 doi: 10.1002/nme.5184
![]() |
[11] | C. L. Potier, A nonlinear finite volume scheme satisfying maximum and minimum principles for diffusion operators, Int. J. Finite Vol., 2 (2009). |
[12] |
Z. Sheng, G. Yuan, The finite volume scheme preserving extremum principle for diffusion equations on polygonal meshes, J. Comput. Phys., 230 (2011), 2588–2604. https://doi.org/10.1016/j.jcp.2010.12.037 doi: 10.1016/j.jcp.2010.12.037
![]() |
[13] |
Z. Sheng, G. Yuan, Construction of nonlinear weighted method for finite volume schemes preserving maximum principle, SIAM J. Sci. Comput., 40 (2018), A607–A628. https://doi.org/10.1137/16m1098000 doi: 10.1137/16m1098000
![]() |
[14] |
Y. Yu, G. Yuan, Z. Sheng, The finite volume scheme preserving maximum principle for diffusion equations with discontinuous coefficient, Comput. Math. Appl., 79 (2020), 2168–2188. https://doi.org/10.1016/j.camwa.2019.10.012 doi: 10.1016/j.camwa.2019.10.012
![]() |
[15] |
S. Su, J. Wu, A symmetric and coercive finite volume scheme preserving the discrete maximum principle for anisotropic diffusion equations on star-shaped polygonal meshes, Appl. Numer. Math., 198 (2024), 217–235. https://doi.org/10.1016/J.APNUM.2024.01.008 doi: 10.1016/J.APNUM.2024.01.008
![]() |
[16] |
J. Droniou, C. L. Potier, Construction and convergence study of schemes preserving the elliptic local maximum principle, SIAM J. Numer. Anal., 49 (2011), 459–490. https://doi.org/10.1137/090770849 doi: 10.1137/090770849
![]() |
[17] |
Z. Sheng, G. Yuan, Analysis of nonlinear scheme preserving maximum principle for anisotropic diffusion equation on distorted meshes, Sci. China Math., 65 (2022), 2379–2396. https://doi.org/10.1007/S11425-021-1931-3 doi: 10.1007/S11425-021-1931-3
![]() |
[18] |
S. Korotov, M. Krizek. P. Neittaanmäki, Weakened acute type condition for tetrahedral triangulations and the discrete maximum principle, Math. Comput., 70 (2000), 107–119. https://doi.org/10.1090/s0025-5718-00-01270-9 doi: 10.1090/s0025-5718-00-01270-9
![]() |
[19] |
E. Burman, A. Ern, Discrete maximum principle for Galerkin approximatios of the Laplace operator on arbitrary meshes, C. R. Math., 338 (2004), 641–646. https://doi.org/10.1016/j.crma.2004.02.010 doi: 10.1016/j.crma.2004.02.010
![]() |
[20] |
C. Lu, W. Huang, J. Qiu, Maximum principle in linear finite element approximations of anisotropic diffusion-convection-reaction problems, Numer. Math., 127 (2014), 515–537. https://doi.org/10.1007/s00211-013-0595-8 doi: 10.1007/s00211-013-0595-8
![]() |
[21] |
W. Huang, Y. Wang, Discrete maximum principle for the weak Galerkin method for anisotropic diffusion problems, Commum. Comput. Phys., 18 (2015), 65–90. https://doi.org/10.4208/cicp.180914.121214a doi: 10.4208/cicp.180914.121214a
![]() |
[22] |
C. Cances, M. Cathala, C. L. Potier, Monotone corrections for generic cell-centered finite volume approximations of anisotropic diffusion equations, Numer. Math., 125 (2013), 387–417. https://doi.org/10.1007/s00211-013-0545-5 doi: 10.1007/s00211-013-0545-5
![]() |
[23] |
H. Yang, B. Yu, Y. Li, Monotonicity correction for second order element finite volume methods of anisotropic diffusion problems, J. Comput. Phys., 449 (2022), 110759. https://doi.org/10.1016/J.JCP.2021.110759 doi: 10.1016/J.JCP.2021.110759
![]() |
[24] | Z. Sheng, G. Yuan, A nonlinear scheme preserving maximum principle for heterogeneous anisotropic diffusion equation, J. Comput. Appl. Math., 436 (2024). https://doi.org/10.1016/J.CAM.2023.115438 |
[25] |
Z. Sheng, G. Yuan, A nine point scheme for the approximation of diffusion operators on distorted quadrilateral meshes, SIAM J. Sci. Comput., 30 (2008), 1341–1361. https://doi.org/10.1137/060665853 doi: 10.1137/060665853
![]() |
[26] |
Z. Sheng, G. Yuan, A new nonlinear finite volume scheme preserving positivity for diffusion equations, J. Comput. Phys., 315 (2016), 182–193. https://doi.org/10.1016/j.jcp.2016.03.053 doi: 10.1016/j.jcp.2016.03.053
![]() |
number of cells | 144 | 576 | 2304 | 9216 | 36,864 | |
εu2 | 3.71e-3 | 9.26e-4 | 2.03e-4 | 4.87e-5 | 1.25e-5 | |
our scheme | rate | - | 2.00 | 2.19 | 2.06 | 1.96 |
εF2 | 4.85e-1 | 2.22e-1 | 9.17e-2 | 3.56e-2 | 1.33e-2 | |
rate | - | 1.13 | 1.28 | 1.37 | 1.42 | |
εu2 | 3.80e-3 | 9.33e-4 | 3.13e-4 | 5.36e-5 | 1.37e-5 | |
scheme in [13] | rate | - | 2.03 | 1.58 | 2.54 | 1.97 |
εF2 | 9.00e-1 | 4.79e-1 | 2.13e-1 | 9.56e-2 | 4.30e-2 | |
rate | - | 0.91 | 1.17 | 1.16 | 1.15 |
number of cells | 288 | 1152 | 4608 | 18,432 | 73,728 | |
εu2 | 1.44e-2 | 3.91e-3 | 1.17e-3 | 3.04e-4 | 7.45e-5 | |
our scheme | rate | - | 1.88 | 1.74 | 1.94 | 2.03 |
εF2 | 1.84e-1 | 7.53e-2 | 2.86e-2 | 1.08e-2 | 3.91e-3 | |
rate | - | 1.29 | 1.40 | 1.41 | 1.47 | |
εu2 | 1.79e-2 | 5.87e-3 | 1.71e-3 | 4.18e-4 | 1.06e-4 | |
scheme in [13] | rate | - | 1.61 | 1.78 | 2.03 | 1.97 |
εF2 | 3.78e-1 | 1.84e-1 | 7.63e-2 | 3.35e-2 | 1.49e-2 | |
rate | - | 1.03 | 1.27 | 1.19 | 1.17 |
number of cells | 144 | 576 | 2304 | 9216 | 36,864 | |
εu2 | 2.65e-2 | 7.72e-3 | 2.14e-3 | 6.04e-4 | 1.58e-4 | |
our scheme | rate | - | 1.78 | 1.85 | 1.83 | 1.94 |
εF2 | 3.56e-1 | 1.97e-1 | 8.25e-2 | 3.62e-2 | 1.63e-2 | |
rate | - | 0.85 | 1.26 | 1.19 | 1.15 | |
εu2 | 2.58e-2 | 7.42e-3 | 2.26e-3 | 6.95e-4 | 2.02e-4 | |
scheme in [13] | rate | - | 1.80 | 1.72 | 1.70 | 1.78 |
εF2 | 8.03e-1 | 4.11e-1 | 1.78e-1 | 7.99e-2 | 3.62e-2 | |
rate | - | 0.97 | 1.21 | 1.16 | 1.14 |
number of cells | 288 | 1152 | 4608 | 18,432 | 73,728 | |
εu2 | 5.15e-2 | 1.82e-2 | 4.96e-3 | 1.31e-3 | 3.10e-4 | |
our scheme | rate | - | 1.50 | 1.88 | 1.92 | 2.08 |
εF2 | 1.23 | 6.71e-1 | 2.67e-1 | 1.14e-1 | 4.79e-2 | |
rate | - | 0.87 | 1.33 | 1.23 | 1.25 | |
εu2 | 7.10e-2 | 3.03e-2 | 9.40e-3 | 2.79e-3 | 7.10e-4 | |
scheme in [13] | rate | - | 1.23 | 1.69 | 1.75 | 1.97 |
εF2 | 2.25 | 1.22 | 5.13e-1 | 2.32e-1 | 1.01e-1 | |
rate | - | 0.88 | 1.25 | 1.14 | 1.20 |
number of cells | 144 | 576 | 2304 | 9216 |
εu2 | 8.8380e-15 | 4.6259e-15 | 2.3390e-15 | 3.6564e-15 |
εF2 | 5.0183e-13 | 3.1671e-13 | 5.5543e-13 | 4.6379e-13 |
number of cells | 288 | 1152 | 4608 | 18,432 |
εu2 | 1.6754e-14 | 2.1597e-14 | 2.6963e-15 | 5.1886e-15 |
εF2 | 1.5465e-12 | 1.8797e-12 | 1.2812e-12 | 2.0331e-12 |
number of cells | 144 | 576 | 2304 | 9216 | 36,864 | |
εu2 | 3.71e-3 | 9.26e-4 | 2.03e-4 | 4.87e-5 | 1.25e-5 | |
our scheme | rate | - | 2.00 | 2.19 | 2.06 | 1.96 |
εF2 | 4.85e-1 | 2.22e-1 | 9.17e-2 | 3.56e-2 | 1.33e-2 | |
rate | - | 1.13 | 1.28 | 1.37 | 1.42 | |
εu2 | 3.80e-3 | 9.33e-4 | 3.13e-4 | 5.36e-5 | 1.37e-5 | |
scheme in [13] | rate | - | 2.03 | 1.58 | 2.54 | 1.97 |
εF2 | 9.00e-1 | 4.79e-1 | 2.13e-1 | 9.56e-2 | 4.30e-2 | |
rate | - | 0.91 | 1.17 | 1.16 | 1.15 |
number of cells | 288 | 1152 | 4608 | 18,432 | 73,728 | |
εu2 | 1.44e-2 | 3.91e-3 | 1.17e-3 | 3.04e-4 | 7.45e-5 | |
our scheme | rate | - | 1.88 | 1.74 | 1.94 | 2.03 |
εF2 | 1.84e-1 | 7.53e-2 | 2.86e-2 | 1.08e-2 | 3.91e-3 | |
rate | - | 1.29 | 1.40 | 1.41 | 1.47 | |
εu2 | 1.79e-2 | 5.87e-3 | 1.71e-3 | 4.18e-4 | 1.06e-4 | |
scheme in [13] | rate | - | 1.61 | 1.78 | 2.03 | 1.97 |
εF2 | 3.78e-1 | 1.84e-1 | 7.63e-2 | 3.35e-2 | 1.49e-2 | |
rate | - | 1.03 | 1.27 | 1.19 | 1.17 |
number of cells | 144 | 576 | 2304 | 9216 | 36,864 | |
εu2 | 2.65e-2 | 7.72e-3 | 2.14e-3 | 6.04e-4 | 1.58e-4 | |
our scheme | rate | - | 1.78 | 1.85 | 1.83 | 1.94 |
εF2 | 3.56e-1 | 1.97e-1 | 8.25e-2 | 3.62e-2 | 1.63e-2 | |
rate | - | 0.85 | 1.26 | 1.19 | 1.15 | |
εu2 | 2.58e-2 | 7.42e-3 | 2.26e-3 | 6.95e-4 | 2.02e-4 | |
scheme in [13] | rate | - | 1.80 | 1.72 | 1.70 | 1.78 |
εF2 | 8.03e-1 | 4.11e-1 | 1.78e-1 | 7.99e-2 | 3.62e-2 | |
rate | - | 0.97 | 1.21 | 1.16 | 1.14 |
number of cells | 288 | 1152 | 4608 | 18,432 | 73,728 | |
εu2 | 5.15e-2 | 1.82e-2 | 4.96e-3 | 1.31e-3 | 3.10e-4 | |
our scheme | rate | - | 1.50 | 1.88 | 1.92 | 2.08 |
εF2 | 1.23 | 6.71e-1 | 2.67e-1 | 1.14e-1 | 4.79e-2 | |
rate | - | 0.87 | 1.33 | 1.23 | 1.25 | |
εu2 | 7.10e-2 | 3.03e-2 | 9.40e-3 | 2.79e-3 | 7.10e-4 | |
scheme in [13] | rate | - | 1.23 | 1.69 | 1.75 | 1.97 |
εF2 | 2.25 | 1.22 | 5.13e-1 | 2.32e-1 | 1.01e-1 | |
rate | - | 0.88 | 1.25 | 1.14 | 1.20 |
number of cells | 144 | 576 | 2304 | 9216 |
εu2 | 8.8380e-15 | 4.6259e-15 | 2.3390e-15 | 3.6564e-15 |
εF2 | 5.0183e-13 | 3.1671e-13 | 5.5543e-13 | 4.6379e-13 |
number of cells | 288 | 1152 | 4608 | 18,432 |
εu2 | 1.6754e-14 | 2.1597e-14 | 2.6963e-15 | 5.1886e-15 |
εF2 | 1.5465e-12 | 1.8797e-12 | 1.2812e-12 | 2.0331e-12 |