Unconditionally Positive and Conservative Third Order Modified Patankar-Runge-Kutta Discretizations of Production-Destruction Systems
Stefan Kopecz, Andreas Meister

TL;DR
This paper develops third order Modified Patankar-Runge-Kutta schemes that are unconditionally positive and conservative for production-destruction systems, extending previous second order methods with proven theoretical conditions and numerical validation.
Contribution
It introduces necessary and sufficient conditions for third order MPRK schemes, enabling their construction independent of specific systems.
Findings
Third order MPRK schemes are unconditionally positive and conservative.
Theoretical conditions for third order accuracy are established.
Numerical experiments confirm the theoretical results.
Abstract
Modified Patankar-Runge-Kutta (MPRK) schemes are numerical methods for the solution of positive and conservative production-destruction systems. They adapt explicit Runge-Kutta schemes to ensure positivity and conservation irrespective of the time step size. The first two members of this class were introduced in [Burchard et. al.: A high-order conservative Patankar-type discretisation for stiff systems of production-destruction equations. Appl. Numer. Math., 47(1):1-30, 2003] and have been successfully applied in a large number of applications. Recently, we introduced a general definition of MPRK schemes and presented a thorough investigation of first and second order MPRK schemes in [Kopecz. S, Meister, A.: On order conditions for modified patankar-runge-kutta schemes. arXiv:1702.04589 [math.NA], 2017.]. A potentially third order Patankar-type method was introduced in [Formaggia…
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.
Taxonomy
TopicsComputational Fluid Dynamics and Aerodynamics · Fluid Dynamics and Turbulent Flows · Nanofluid Flow and Heat Transfer
Unconditionally positive and conservative third order modified Patankar-Runge-Kutta discretizations of production-destruction systems
Stefan Kopecz
Institute of Mathematics, University of Kassel, Kassel, Germany
Andreas Meister
Institute of Mathematics, University of Kassel, Kassel, Germany
Abstract
Modified Patankar-Runge-Kutta (MPRK) schemes are numerical methods for the solution of positive and conservative production-destruction systems. They adapt explicit Runge-Kutta schemes in a way to ensure positivity and conservation irrespective of the time step size.
The first two members of this class, the first order MPE scheme and the second order MPRK22(1) scheme, were introduced in [BDM03] and have been successfully applied in a large number of applications. Recently, we introduced a general definition of MPRK schemes and presented a thorough investigation of first and second order MPRK schemes in [KM17].
A potentially third order Patankar-type method was introduced in [FS11]. This method uses the MPRK22(1) scheme of [BDM03] as a predictor and a modification of the BDF(3) multistep method as a corrector. It restricts to the MPRK22(1) approximation, whenever the positivity of the corrector cannot be guaranteed. Hence, this method is at most third order accurate and at least second order accurate.
In this paper we continue the work of [KM17] and present necessary and sufficient conditions for third order MPRK schemes. For the first time, we introduce MPRK schemes, which are third order accurate independent of the specific positive and conservative system under consideration. The theoretical results derived within the first part are subsequently confirmed by numerical experiments for the entire domain of linear and nonlinear as well as nonstiff and stiff systems of differential equations.
1 Introduction
A wide variety of mathematical models for real life problems are given in the form of a system of partial differential equations including stiff production-destruction terms. The development of numerical methods is therefore often based on splitting approaches, where the discretization of the convection and diffusion terms is conducted within a first step and the approximation of the source terms is realized subsequently. Thereby, the time step size of the first part should also be applicable within the second step and even particular properties like conservativity of the source terms and positivity of the constituents have to be maintained independent of the time step size in order to obtain a reliable, appropriate and efficient simulation. Whereas finite volume schemes are well established for the discretization of convection-diffusion equations, the development of unconditionally positivity preserving and conservative methods of higher order for stiff systems of ordinary differential equations is still a challenge. To overcome this gap, the paper is devoted to the derivation and investigation of a class of third order modified Patankar schemes. Therefore, we consider production-destruction systems (PDS) of the form
[TABLE]
By we denote the vector of constituents, which depends on time . Both, the production terms and the destruction terms are assumed to be non-negative, that is for . Furthermore, the production and destruction terms can be written as
[TABLE]
where is the rate at which the th constituent transforms into the th component, while is the rate at which the th constituent transforms into the th component.
We are interested in PDS which are positive as well as fully conservative.
Definition 1.1**.**
The PDS (1) is called positive, if positive initial values, for , imply positive solutions, for , for all times .
Definition 1.2**.**
The PDS (1), (2) is called conservative, if for all and , we have The system is called fully conservative, if in addition holds for all and .
In the following, we will assume that the PDS (1) is fully conservative, since every conservative PDS can be rewritten as an equivalent fully conservative PDS. For a fully conservative PDS, (2) can be written as
[TABLE]
But for the sake of a simple notation, we will always use the form (2). Examples of positive and conservative PDS, which model academic as well as realistic applications, can be found in Section 3.
If a PDS is conservative the sum of its constituents remains constant in time, since we have
[TABLE]
This motivates the definition of a conservative numerical scheme.
Definition 1.3**.**
Let denote an approximation of at time level . The one-step method
[TABLE]
is called
- •
unconditionally conservative, if
[TABLE]
is satisfied for all and .
- •
unconditionally positive, if it guarantees for all and .
An explicit -stage Runge-Kutta method for the solution of an ordinary differential equation is given by
[TABLE]
The method is characterized by its coefficients , , for , and can be represented by the Butcher tableau
[TABLE]
with , and . Applied to (1) the method reads
[TABLE]
The idea of the modified Patankar-Runge-Kutta (MPRK) schemes is to adapt explicit Runge-Kutta schemes in such a way that they become positive irrespective of the chosen time step size , while still maintaining their inherent property to be conservative. One approach to achieve unconditional positivity is the so-called Patankar-trick introduced in [Pat80] as source term linearization in the context of turbulent flow. If we modify (3b) and add a weighting of the destruction terms like
[TABLE]
we obtain
[TABLE]
Thus, if , the weights for and are positive, so is . The crucial idea of the Patankar-trick is to multiply the destruction terms with weights that comprise as a factor themselves.
Weighting only the destruction terms will result in a non-conservative scheme. So the production terms have to be weighted accordingly as well. Since we have , the proper weight for is .
Definition 1.4**.**
Given a non-negative Runge-Kutta matrix , non-negative weights and , the scheme
[TABLE]
for , is called modified Patankar-Runge-Kutta scheme (MPRK) if
and are unconditionally positive for and , 2. 2.
is independent of and is independent of for and .
The weights and are called Patankar-weights and the denominators and are called Patankar-weight denominators (PWD).
Due to the introduction of the Patankar-weights, linear systems of size need to be solved to obtain the stage values and the approximation at the next time level. In consideration of for , the scheme (4) can be written in matrix-vector notation as
[TABLE]
with and
[TABLE]
for and
[TABLE]
If , the matrices become diagonal and the production terms appear on the right hand side of (5a).
The following two lemmas of [KM17] show that MPRK schemes, as defined in Definition 1.4, are indeed unconditionally positive and conservative.
Lemma 1.5**.**
A MPRK scheme (4) applied to a conservative PDS is unconditionally conservative. If , the same holds for all stage values, this is for .
Lemma 1.6**.**
A MPRK scheme (4) is unconditionally positive. The same holds for all the stages of the scheme, this is for all and we have for .
Lemmas 1.5 and 1.6 show that the MPRK schemes as defined in Definition 1.4 possess the desired properties of unconditional positivity and conservation. The only quantities left to choose are the PWDs and for and . In [KM17] we introduced the second order MPRK22() schemes, which use and for .
The MPRK22(1) scheme is equivalent to the original MPRK scheme introduced in [BDM03]. This scheme and the first order modified Patankar-Euler scheme of [BDM03] have been successfully applied to solve physical, biogeochemical and ecosystem models ([BDM05, BBK*+*06, BMZ09, HB10b, HB10a, MB10, WHK13, SD17]), and have also proven beneficial in astrophysics [KM10, Gre16].
In [SB11] it was demonstrated that the MPRK22(1) scheme outperforms standard Runge-Kutta and Rosenbrock methods when solving biogeochemical models without multiple source compounds per system reactions. The same was shown with respect to workload in [BR16], where the Brusselator PDS was solved with different time integration schemes.
In [BBKS07, BRBM08] second order schemes, which ensure conservation in a biochemical sense, were introduced. These schemes require the solution of a non-linear equation in each time step. Other schemes for the same purpose were recently presented in [RB15]. These explicit schemes incorporate the MPRK schemes of [BDM03] to achieve multi-element conservation for stiff problems. A potentially third order Patankar-type scheme was introduced in [FS11]. This method uses the MPRK22(1) scheme a as predictor and a modification of the BDF(3) multistep method as a corrector. It yields the MPRK22(1) approximation, whenever the positivity of the corrector approximation cannot be guaranteed.
Modified Patankar-Runge-Kutta type schemes are also used in the context of partial differential equations. An implicit first order Patankar-type scheme based on a third order SDIRK method was presented in [MO14] and applied to the shallow water equations. In [OH16] Patankar-type Runge-Kutta schemes for linear PDEs were investigated.
In the present paper, we extend the work of [KM17] to third order. We present necessary and sufficient conditions for third order three-stage MPRK schemes, and introduce two families of third order MPRK methods. To our knowledge, this is the first time that third order Patankar-type schemes are presented.
The paper is organized as follows. Section 2 deals with the derivation of conditions for third order three-stage MPRK schemes. In this section also novel third order MPRK schemes are introduced. The test problems of Section 3 are used in Section 4 to show numerical experiments with these novel schemes.
2 Third order MPRK schemes
In this section we assume that all occurring PDS are positive. To prove convergence of the MPRK schemes we investigate the local truncation errors. In doing so we make frequent use of the Landau symbol and omit to specify the limit process each time. As customary, we identify and for when studying the truncation errors. Furthermore, since we are dealing with positive PDS we assume for .
To derive necessary conditions that guarantee a certain order of an MPRK scheme, it suffices to consider specific PDS. In this regard, the following family of PDS will be very helpful. Given parameters , , and , we consider
[TABLE]
and initial values for . The PDS can be written in the form
[TABLE]
For the exact solution is given by
[TABLE]
and for the exact solution is given by
[TABLE]
This shows that the PDS is positive. Writing
[TABLE]
with
[TABLE]
we see that the PDS is also fully conservative.
The following lemmas are helpful to find necessary and sufficient conditions for the PWDs of third order MPRK schemes. The first one ensures the boundedness of the MPRK approximations and the stage values.
Lemma 2.1**.**
Let , be given by (7), (6) with and , . Then we have
[TABLE]
for .
Proof.
See [KM17]. ∎
The next lemma is useful to separate complicated conditions for the PWDs into simpler ones.
Lemma 2.2**.**
The identity
[TABLE]
is equivalent to
[TABLE]
Proof.
Let . Since (9) is valid for all , we have
[TABLE]
for . This can be rewritten as
[TABLE]
with
[TABLE]
Since all are distinct for , is a Vandermonde matrix, and hence, regular. Multiplication of (11) with yields
[TABLE]
Hence, (10) is satisfied. On the other hand, if (10) is satisfied, so is (9). ∎
As a three-stage MPRK scheme is build on an explicit three-stage Runge-Kutta scheme with non-negative parameters, we must characterize these schemes in some way. It is well known, that an explicit three-stage Runge-Kutta scheme
[TABLE]
is third order accurate, if the conditions
[TABLE]
are satisfied. The last condition particularly implies .
The following lemma shows, that all explicit three-stage Runge-Kutta schemes of order three can be parameterized by families with at most two free parameters. Later we will use this lemma to characterize all explicit three-stage Runge-Kutta schemes of order three with non-negative parameters.
Lemma 2.3**.**
All explicit third order Runge-Kutta schemes can be parameterized with at most two parameters. The following three cases can occur:
Case I:
[TABLE]
with , , .
Case II:
[TABLE]
with .
Case III:
[TABLE]
with .
Proof.
To build an MPRK scheme based on an explicit third order three-stage Runge-Kutta scheme, we must ensure the non-negativity of the occurring parameters. The following lemma characterizes all such Runge-Kutta schemes.
Lemma 2.4**.**
All explicit three-stage third order Runge-Kutta schemes with non-negative parameters can be represented by the following Butcher tableaus:
Case I:
[TABLE]
with
[TABLE]
and
[TABLE]
Case II:
[TABLE]
with
[TABLE]
Proof.
According to Lemma 2.3 we have to distinguish between three different cases.
In case III we have and . Thus, implies and hence, negative Runge-Kutta parameters are inevitable in this case.
In case II we must restrict , such that and . This is the case for .
In case I things become more technical. First, we need to ensure . Since and , we must have , and due to , must hold as well. Next, we present conditions for the non-negativity of the remaining Runge-Kutta parameters subject to . From we can conclude
[TABLE]
To ensure , we must have
[TABLE]
The requirement demands
[TABLE]
To guarantee , the conditions
[TABLE]
are necessary. Finally, implies
[TABLE]
Merging the above conditions, we obtain (13), in which denotes the unique solution of . The region of feasibility, which contains all pairs that ensure non-negativity of the Runge-Kutta parameters, is shown in Figure 1.
∎
To see that and for are necessary conditions for the PWDs of a third order MPRK scheme, the following lemma will be helpful.
Lemma 2.5**.**
Given an explicit three-stage Runge-Kutta scheme of order three with non-negative parameters, the nonlinear system
[TABLE]
has the unique positive solution
[TABLE]
Proof.
First, we note that (15) is a solution of (14), owing to (12).
Next, we show that no other solutions exist. If , (12d) becomes and hence (14a) reads , which implies . Similar, owing to (12e), is the only positive solution of (14b), hence, we can conclude from (14c). Thus, (15) is the only solution of (14), if .
From now on, we assume . As as well, since , and , (14a) represents a line and (14b) represents an ellipse in the --plane. There are at most two intersections of the line and the ellipse, and thus, the system (14) has at most two solutions. We already know that one of them is (15). To find the hypothetical other one, we assume and compute the intersection of the line (14a) and the hyperbola (14c). Subtraction of (12d) from (14a) yields
[TABLE]
which becomes
[TABLE]
owing to (14c). Division by results in
[TABLE]
and thus, we have
[TABLE]
Next, we compute the intersection of the ellipse (14b) and the hyperbola (14c). We obtain
[TABLE]
by subtracting (12e) from (14b), and utilization of (14c) yields
[TABLE]
Owing to , as , we can divide by and find
[TABLE]
Altogether, owing to (16) and (17), only yields a potential second solution of (14). This solution reads
[TABLE]
The remaining question is, if there are any explicit third order Runge-Kutta schemes with non-negative parameters that satisfy . According to Lemma 2.4, we have to consider two cases to answer this question. In case I, can be written as
[TABLE]
This is satisfied if
[TABLE]
which can be reformulated as
[TABLE]
holds true. Thus, must be a point on the boundary of the circle with center and radius .
Figure 2 shows the feasible region from Lemma 2.4, together with the circle (19). Computing the intersection of the circle (19) and the parabola , yields . As this value of is excluded in case I, there is no solution of the system (14) in the situation of case I.
In case II of Lemma 2.4, is equivalent to , which is satisfied for . Due to , (18) becomes (15). All things considered, we have shown that (15) is the unique positive solution of (14). ∎
An MPRK scheme (4) with three stages is given by
[TABLE]
for . The next theorem gives necessary and sufficient conditions for the Patankar-weights of a third order three stage MPRK scheme.
Theorem 2.6**.**
Given an explicit three-stage third order Runge-Kutta scheme with non-negative weights, the MPRK scheme (20) is of third order, if and only if the conditions
[TABLE]
are satisfied.
Proof.
We use the notation to represent for a given function . As (20) is an MPRK scheme, all Patankar-weights are positive, i. e. , and for .
The Runge-Kutta scheme is of third order and substitution of (12a) and (12b) into (12d) and (12e) shows
[TABLE]
hold true. Furthermore, equation (12f) ensures .
For a sufficiently smooth function and some , we can expand in the form
[TABLE]
in which denotes the Hessian matrix of evaluated at . The Taylor expansion of the exact solution of (1) reads
[TABLE]
for .
To derive necessary conditions, which allow for third order accuracy, we assume that the MPRK scheme (20) is third order accurate, this is
[TABLE]
for . Subtracting (24) from (25) shows . Utilizing (20i) and (24) this can be written as
[TABLE]
for .
From now on, we focus on the solution of the PDS (8) with , , and . Since and , it follows that , with denoting the th unit column vector and . Hence, (26) with becomes
[TABLE]
For the destruction terms can be expanded as
[TABLE]
since derivatives of order higher than two vanish. Substituting this into (27), results in
[TABLE]
Owing to (20b), we have
[TABLE]
and from (20f), (2) and (30) we see
[TABLE]
Before we introduce (30) and (2) into (29), we set , which implies . Hence, we can drop the terms containing second derivatives in (29) and (2). We can exploit these conditions, when we consider (29) with , as some terms can be neglected. Setting , we have
[TABLE]
according to (30) and (2), since . Substituting this into (29) yields
[TABLE]
A subsequent division by and utilization of results in
[TABLE]
Since was chosen arbitrary, we find that this holds true for all . From Lemma 2.2 we can conclude that
[TABLE]
hold true.
The above equations contain products of Patankar-weights. To find conditions for the PWDs, we determine the limits of the Patankar-weights. In this regard, equation (32) shows . Substitution of this into (33) and (34) yields
[TABLE]
and
[TABLE]
Next, we show that none of the Patankar-weights and can tend to infinity. To do so, we must consider two cases. If , (22a) becomes , so we can conclude from (35) and thus, from (36). If , both terms on the left hand side of (35) are positive, since and , hence, and . Consequently, owing to (36), we find that none of the Patankar-weights or can tend to zero, as this would require the other weight to tend to infinity. Denoting by and the limits of and , we have
[TABLE]
with and
[TABLE]
Now we consider the case in (29). From (2) and (37) we see
[TABLE]
which implies
[TABLE]
Together with (30) we find
[TABLE]
and
[TABLE]
Substituting this and (32) into (29) yields
[TABLE]
Owing to (33) and (34), we find
[TABLE]
which shows
[TABLE]
due to (32) and (37). Utilization of (37) results in an additional equation
[TABLE]
containing and . To determine the values and we can use Lemma 2.5, which shows that the system (38), (39) and (40) has the unique solution
[TABLE]
Together with (32) and (34), this leads to
[TABLE]
Substituting this into (30) and (2), we find and . Hence, we obtain
[TABLE]
from which we conclude
[TABLE]
In an analogous manner, we can conclude
[TABLE]
from (41). Since was chosen arbitrary, we can let it run from 1 to and find that (21a) and (21b) are necessary conditions.
The same is true for the other equations derived above. In particular,
[TABLE]
hold true. These equations are helpful to find a concise representation of (33). On account of (20b) and (45), we have
[TABLE]
for . Similar, (20f) and (46) show
[TABLE]
for . According to (47), we have , and from (23) we see
[TABLE]
Hence,
[TABLE]
follows from (48). Substituting this into (33), and taking account of (43) and (44), results in
[TABLE]
Again, was chosen arbitrary, and letting it run from to , shows that condition (21c) is necessary. Finally, analogous to (42), (32) and (25) show
[TABLE]
By letting run from to , we see that also condition (21d) is necessary.
Now we show that the conditions (21) are sufficient, to make (20) a third order MPRK scheme. We start our investigation with the choice . The MPRK scheme (20) can be written in the form of three linear systems
[TABLE]
Since , utilizing Lemma 2.1 yields , and . Thus, we can conclude , and . Together with conditions (21a), (21b), and (21d), this results in
[TABLE]
for , since . The boundedness of the Patankar-weights (49) shows that (20b) yields
[TABLE]
for . This allows us to use (23) to expand and in the form
[TABLE]
for . Substituting this into (20f), and taking account of (50), we find
[TABLE]
as well. Now, we show that (52) and (54) are valid for as well. In this case, owing to (20b), we have
[TABLE]
for . Since according to (21a), we can conclude and thus for . Utilizing this in (20b) we find
[TABLE]
as before in (52). Hence, (53) is holds true for as well. This, together with (21b), shows
[TABLE]
and in addition for . Consequently, we have
[TABLE]
for , as in (54). The remaining part of the proof is independent of the value of .
Owing to (52) and (54), (23) shows
[TABLE]
for and . Utilizing this and (51), the solution on the next time level (20i) satisfies
[TABLE]
for . Hence, we can conclude
[TABLE]
from (21d). Inserting this and (55) into (20i) shows
[TABLE]
for , since according to (12c). Now, we can conclude
[TABLE]
from (21d). Introducing this relation and (55) into (20i) yields
[TABLE]
for . From (52) and (21a) we can conclude
[TABLE]
thus, (20b) shows
[TABLE]
for . Similar, (50) and (20f) imply
[TABLE]
for . Thus, inserting this and (55) into (20f) shows
[TABLE]
for . Finally, substitution of (57) and (59) into (56) results in
[TABLE]
since due to (12). Hence, we even have
[TABLE]
for .
This enables the proof of the third order accuracy of the MPRK scheme. Substitution of (60) and (55) into (20i) yields
[TABLE]
Taking account of (57) and (59), and using , this can be written in the form
[TABLE]
It remains to expand up to . Therefore, we use (20f) and (55) to see
[TABLE]
for . Insertion of (57) and (58) shows
[TABLE]
for . Utilization of (20b) results in
[TABLE]
for , since owing to (12f). Substitution of (57) and (59) into (62) in combination with (21c) yields
[TABLE]
for . Inserting this into (61) results in
[TABLE]
for . A comparison with (24) completes the proof. ∎
The following theorem defines a family of third order MPRK schemes. It is based on the idea to use a second order MPRK22() scheme of [KM17] to compute the PWDs , as condition (21d) of Theorem 2.6 shows that must be a second order approximation of for .
Theorem 2.7**.**
Given an explicit three-stage third order Runge-Kutta scheme with non-negative weights, the MPRK scheme (20) is of third order, if we choose
[TABLE]
Proof.
We need to verify that the choice of PWDs (63) satisfies conditions (21) of Theorem 2.6. Therefore, we make repeatedly use of the statements of the proof of Theorem 2.6. We also use Newton’s generalized binomial theorem111The theorem can be deduced from the binomial series , which is convergent for . See for instance [How01]., which states that
[TABLE]
with
[TABLE]
holds true for , if and . The theorem implies
[TABLE]
and
[TABLE]
for , since .
First, we note that condition (21a) is clearly satisfied by (63a). This allows us to conclude
[TABLE]
for , along the same lines as in (57) of Theorem 2.6. Introducing this into (63b) shows
[TABLE]
for . Thus, condition (21b) holds true as well.
Next, we verify condition (21c). From (66) and (67) we find
[TABLE]
for . Defining for some constants and , we can conclude , and hence,
[TABLE]
for . Consequently,
[TABLE]
for . Substituting this and (63a) into condition (21c) shows
[TABLE]
for . Hence, condition (21c) holds true. Finally, (20b) and (63f) with PWDs (63c) form the MPRK22() scheme of [KM17]. As this is a second order scheme, condition (21d) is satisfied as well. ∎
The family of schemes introduced in Theorem 2.7 can be written in the form
[TABLE]
with , , and for . We denote the members of this family, which derive from case I in Lemma 2.4, by MPRK43I(,) if and by MPRK43Incs(,) if . If the method comes from case II in Lemma 2.4, we denote it by MPRK43II() if and by MPRK43IIncs() if .
To our knowledge, this is the first time that third order MPRK schemes are presented. A third order Patankar type scheme based on a BDF method was presented in [FS11].
As the schemes (68) incorporate the MPRK22() scheme, we must restrict to . Hence, the permissible Runge-Kutta parameters are given by the Butcher tableaus of Lemma 2.4 with the additional restriction in case I.
The MPRK scheme (68) can be understood as a four stage MPRK scheme with corresponding Butcher tableau
[TABLE]
The extra stage to compute the PWDs requires no additional function evaluations, but nevertheless an additional linear system needs to be solved. It is a future concern to prove or disprove, whether the construction of a third order three stage MPRK scheme is possible.
In the numerical experiments of Section 4 we consider six specific MPRK43 schemes. Choosing and in case I of Lemma 2.4 yields the Butcher tableau
[TABLE]
The corresponding scheme MPRK43I(,) is the only MPRK43 scheme with and it uses the original MPRK22(1) scheme from [BDM03], which is based on Heun’s method, to compute the PWDs . Setting and in case I of Lemma 2.4, we obtain the Butcher tableau
[TABLE]
and the method MPRK43I(,) with . This method uses the MPRK22() scheme, which is adapted from the midpoint method, to compute the PWDs . Case II of Lemma 2.4 with provides the Butcher tableau
[TABLE]
The associated MPRK scheme MPRK43II() with . It employs Ralston’s method MPRK22(2/3) to calculate the PWDs . Besides the above three schemes, we also use their counterparts with in the numerical experiments of Section 4.
Of course, many other schemes are members of the family (68). Here we made the restriction to allow for the same PWDs in (68c) and (68d). We also selected schemes, which use MPRK22() schemes to compute the PWDs , that were investigated in [KM17].
The numerical experiments, presented in Section 4, will confirm the third order accuracy of the MPRK43 schemes. Additionally, numerical solutions of the Robertson problems will show that these schemes have the ability to integrate stiff PDS.
3 Test problems
For our numerical experiments, we consider the same test cases as in [KM17]. A simple linear test problem for which the analytical solution is known, two non-stiff nonlinear test problems and the stiff Robertson problem.
Linear test problem
The simple linear test case is given by
[TABLE]
with a constant parameter and initial values and . We can write the right hand side in the form (2) with
[TABLE]
and for . The system describes exchange of mass between to constituents. The analytical solution is
[TABLE]
with the asymptotic solution
[TABLE]
The system is conservative and we get
[TABLE]
In the numerical simulations of Section 4 we use and initial values and . The solution is approximated on the time interval .
Nonlinear test problem
The non-stiff nonlinear test problem reads
[TABLE]
with initial conditions for . To express the right hand side in the form (2) we can use
[TABLE]
and for all other combinations of and .
The system represents a biogeochemical model for the description of an algal bloom, that transforms nutrients () via phytoplankton () into detritus (). In the numerical simulations of Section 4 we use the initial conditions , and . The solution is approximated on the time interval .
Original Brusselator test problem
As another non-stiff nonlinear test case we consider the original Brusselator problem [LN71, HNW93]
[TABLE]
with constant parameters and initial values for . The system can be written in the form (2), setting
[TABLE]
and for all other combinations of and .
In the numerical simulations of Section 4 we set for and the initial values , , and . The time interval of interest is .
Robertson test problem
To demonstrate the practicability of MPRK schemes in the case of stiff systems, we apply the schemes to the Robertson test case, which is given by
[TABLE]
with initial values for . For this problem the production and destruction rates (2) are given by
[TABLE]
and for all other combinations of and .
We use the initial values and in the numerical simulations of Section 4.
In this problem the reactions take place on very different time scales, the time interval of interest is . Therefore, a constant time step size is not appropriate. In the numerical simulations we use with in the th time step. The small initial time step size is chosen to obtain an adequate resolution of .
4 Numerical results
In this section, we confirm the theoretical convergence order of the novel MPRK43 schemes. We also show numerical approximations of MPRK43 schemes applied to the stiff Robertson problem (72), the nonlinear test problem (70) and the Brusselator problem (71).
To visualize the order of the MPRK schemes we use a relative error taken over all time steps and all constituents:
[TABLE]
where denotes the number of executed time steps. To compute the error we need to know the analytic solution, which is known for the linear test case, but not for the other test problems. Hence, we computed a reference solution, using the Matlab functions ode45 for the non-stiff nonlinear problems and ode23s for the Robertson problem. In both cases we utilized the tolerances .
Convergence order
Figure 3 shows error plots of six MPRK43 schemes applied to the linear test problem (69), the nonlinear test problem (70) and the Brusselator (71). In all cases the third order accuracy is confirmed. Moreover, Figure 3(a) shows that MPRK43I(1,1/2) is less accurate than MPRK43IIncs(1,1/2) and MPRK43I(1/2,3/4) is more accurate than MPRK43Incs(1/2), when applied to the linear test problem. Hence, we cannot make a general statement, whether to choose or in the MPRK43 schemes.
Stiff problems
Figure 4 shows numerical approximations of six MPRK43 schemes applied to the stiff Robertson problem (72). As mentioned, the time step size in the th time step was chosen as with initial time step size . Hence, only 29 time steps are necessary to traverse the time interval . The small initial time step was chosen to obtain an adequate resolution of the component in the starting phase. To visualize the evolution of , it is multiplied by .
All six schemes generate adequate solutions. For this test problem, the variants with conservative stage values (left column) can be seen to be more accurate than those with non-conservative stage values (right column). But the overall accuracy is excellent with regard to the fairly large time steps in use.
In [KM17] we reported that some MPRK22ncs schemes generate oscillations, when applied to the Robertson problem. In case of the MPRK43 schemes, we did not encounter any issues.
Like in [KM17], we additionally show numerical solutions of the six MPRK43 schemes applied to the nonlinear test problem (70) and the Brusselator (71) in Figures 5 and 6.
5 Summary and Outlook
In this paper we have extended the work of [KM17] to third order by deriving necessary and sufficient conditions for three-stage third order schemes. We also introduced the MPRK43I and MPRK43II schemes, which, to our knowledge, are the first third order Patankar-type schemes presented in literature. These schemes can be regarded as four-stage third order MPRK schemes and it is a future research topic, to investigate the construction of three-stage third order MPRK schemes. In addition, the search for other possible PWDs is of interest as well.
The numerical experiments have shown that the MPRK43 schemes are capable of integrating stiff ODEs, such as the Robertson problem. However, in absence of a thorough analysis of truncation errors and stability, we cannot make statements which schemes of the MPRK43 family are preferable. This is a future research topic as well.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[BBK + 06] H. Burchard, K. Bolding, W. Kühn, A. Meister, T. Neumann, and L. Umlauf. Description of a flexible and extendable physical–biogeochemical model system for the water column. J. Marine Sys. , 61(3–4):180–211, 2006.
- 2[BBKS 07] J. Bruggeman, H. Burchard, B. W. Kooi, and B. Sommeijer. A second-order, unconditionally positive, mass-conserving integration scheme for biochemical systems. Appl. Numer. Math. , 57(1):36–58, 2007.
- 3[BDM 03] H. Burchard, E. Deleersnijder, and A. Meister. A high-order conservative Patankar-type discretisation for stiff systems of production–destruction equations. Appl. Numer. Math. , 47(1):1–30, 2003.
- 4[BDM 05] H. Burchard, E. Deleersnijder, and A. Meister. Application of modified Patankar schemes to stiff biogeochemical models for the water column. Ocean Dyn. , 55(3):326–337, 2005.
- 5[BMZ 09] J. Benz, A. Meister, and P. A. Zardo. A conservative, positivity preserving scheme for advection-diffusion-reaction equations in biochemical applications. In Eitan Tadmor, Jian-Guo Liu, and Athanasios Tzavaras, editors, Hyperbolic Problems: Theory, Numerics and Applications , volume 67.2 of Proceedings of Symposia in Applied Mathematics , pages 399–408. American Mathematical Society, Providence, Rhode Island, 2009.
- 6[BR 16] L. Bonaventura and A. Della Rocca. Unconditionally Strong Stability Preserving Extensions of the TR-BDF 2 Method. J. Sci. Comp. , pages 1–37, 2016.
- 7[BRBM 08] N. Broekhuizen, G. J. Rickard, J. Bruggeman, and A. Meister. An improved and generalized second order, unconditionally positive, mass conserving integration scheme for biochemical systems. Appl. Numer. Math. , 58(3):319–340, 2008.
- 8[FS 11] L. Formaggia and A. Scotti. Positivity and conservation properties of some integration schemes for mass action kinetics. SIAM J. Numer. Anal. , 49(3):1267–1288, 2011.
