Invariant compact finite difference schemes
Ersin Ozbenli, Prakash Vedula

TL;DR
This paper introduces a novel method using equivariant moving frames to develop high-order invariant compact finite difference schemes that preserve Lie symmetries of PDEs, leading to simpler and more accurate numerical solutions.
Contribution
The paper presents a new approach for constructing invariant finite difference schemes using symmetry transformations and moving frames, enhancing accuracy and simplicity over standard methods.
Findings
Invariant schemes inherit PDE symmetries
Invariant schemes are more accurate than non-invariant ones
The method applies to linear and nonlinear PDEs
Abstract
In this paper, we propose a method, that is based on equivariant moving frames, for development of high order accurate invariant compact finite difference schemes that preserve Lie symmetries of underlying partial differential equations. In this method, variable transformations that are obtained from the extended symmetry groups of PDEs are used to transform independent and dependent variables, and derivative terms of compact finite difference schemes (constructed for these PDEs) such that the resulting schemes are invariant under the chosen symmetry groups. The unknown symmetry parameters that arise from the application of these transformations are determined through selection of convenient moving frames. In some cases, owing to selection of convenient moving frames, numerical representation of invariant (or symmetry preserving) compact numerical schemes, that are developed through the…
| Error | FTCS | COMP | SYM |
|---|---|---|---|
| RMSE |
| Error | FTCS | COMP | SYM |
|---|---|---|---|
| RMSE |
| Error | FTCS | COMP | SYM |
|---|---|---|---|
| RMSE |
| Error | FTCS | COMP | SYM-1 | SYM-2 |
|---|---|---|---|---|
| RMSE |
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.
\floatsetup
[table]capposition=top
Invariant compact finite difference schemes
E. Ozbenli
P. Vedula
School of Aerospace and Mechanical Engineering, University of Oklahoma, 865 Asp Ave., Norman, OK73019, USA
Abstract
In this paper, we propose a method, that is based on equivariant moving frames, for development of high order accurate invariant compact finite difference schemes that preserve Lie symmetries of underlying partial differential equations. In this method, variable transformations that are obtained from the extended symmetry groups of PDEs are used to transform independent and dependent variables, and derivative terms of compact finite difference schemes (constructed for these PDEs) such that the resulting schemes are invariant under the chosen symmetry groups. The unknown symmetry parameters that arise from the application of these transformations are determined through selection of convenient moving frames. In some cases, owing to selection of convenient moving frames, numerical representation of invariant (or symmetry preserving) compact numerical schemes, that are developed through the proposed method, are found to be notably simpler than that of standard, noninvariant compact numerical schemes. Further, the order of accuracy of these invariant compact schemes can be arbitrarily set to a desired order by considering suitable compact finite difference algorithms. Application of the proposed method is demonstrated through construction of invariant compact finite difference schemes for some common linear and nonlinear PDEs (including the linear advection-diffusion equation in 1D/2D, the inviscid and viscous Burgers’ equations in 1D). Results obtained from our numerical simulations indicate that invariant compact finite difference schemes not only inherit selected symmetry properties of underlying PDEs, but are also comparably more accurate than the standard, non-invariant base numerical schemes considered here.
keywords:
Lie symmetry, compact finite differencing, finite difference schemes, symmetry preserving schemes
1 Introduction
Compact finite differencing based on Padé approximants is a commonly used high order numerical method that is well-documented in the literature [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]. An important objective of this method is to achieve high order accuracy with a relatively small number of stencil points by relating a weighted sum of functions (or dependent variables) to a weighted sum of derivatives, evaluated at grid points. Hence, numerical solutions based on compact schemes are found to have good, spectral-like resolutions, solutions that exponentially converge with increasing resolution, especially in the case of short waves [1]. In this regard, Hirsh [1] presented a detailed application of compact finite differencing which included development and application of fourth order accurate compact schemes to three test problems, namely viscous Burgers’ equation, Howarth’s retarded boundary layer flow, and the incompressible driven cavity problem. The author also provided a brief discussion on how to treat boundary conditions when developing compact finite difference schemes, which could be problematic in some cases. In another work, Lele [2] extended the earlier works on compact finite differencing by presenting finite difference schemes that provide a better representation of shorter length scales for use on problems with a range of spatial scales. In addition, the author provided a detailed discussion on how to obtain compact finite difference schemes of various orders (up to tenth order) and treat the relevant boundary conditions. In a more recent work, Shukla et al. [7] presented a family of high order compact schemes that are built on non-uniform grids with spatial orders of accuracy ranging from 4th to 20th. These compact schemes are constructed such that they maintain high-order accuracy not only in the interior of a domain, but also at its boundaries. The authors demonstrated the application of these compact schemes to the linear wave equation and two-dimensional incompressible Navier-Stokes equations, and verified the achievement of high order accuracy for these problems. They further showed (via comparisons with benchmark solutions for the two-dimensional driven cavity flow, thermal convection in a square box, and flow past an impulsively started cylinder) that these high order compact schemes are stable and produce highly accurate results on stretched grids with more points clustered at boundaries.
Although compact finite differencing is an efficient method for construction of high order accurate numerical schemes, these schemes often ignore geometric properties of underlying differential equations as the focus is usually on the accuracy when developing these schemes. Schemes that preserve certain geometric properties (such as energy, momentum, symplecticity, Hamiltonian and Poisson structures of equations) are usually considered as geometric integrators. It is well-documented in literature that geometric integrators, which account for certain geometric properties of underlying differential equations, are likely to perform better than schemes standard schemes that ignore such properties [11, 12, 13, 14, 15, 16, 17, 18].
Lie symmetry groups of differential equations are also geometric properties that could be preserved in numerical schemes. Numerous researchers have proposed methods for construction of numerical schemes that preserve symmetry groups of underlying differential equations [19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43]. Most of these works can be categorized into two major groups. In the first group [20, 21, 22, 23, 24], invariants of difference equations are determined through Lie’s infinitesimal approach, and then, a set of these invariants are used to construct invariant schemes that converge to the original differential equations in the continuous limit. In the other group [33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43], point transformations based on symmetry groups of differential equations are applied to some base (non-invariant) numerical schemes, and the unknown symmetry parameters of these transformations are determined through moving frames that are based on Cartan’s method of normalization [44].
In this paper, we propose a mathematical approach for construction of high order accurate compact finite difference schemes that retain Lie symmetry groups of underlying differential equations. In the proposed method that is based on equivariant moving frames, extended symmetry groups of partial differential equations are used to obtain point transformations not only for independent and dependent variables of differential equations, but also for their derivative terms (which is a novel aspect of this paper that was not considered in earlier works [35, 36, 42]). Once point transformations for derivatives of differential equations are determined, then these transformations are applied to some (non-invariant) base compact finite difference schemes (of a desired order of accuracy) to obtain final invariant (or symmetry preserving) forms of these schemes. Here, we note that the unknown symmetry parameters that appear in these point transformations are determined by choosing convenient moving frames for which numerical representations of base schemes simplify notably, and their accuracy improves. The proposed method is applied to some commonly used linear and nonlinear problems, and for all the test problems, the resulting invariant schemes are found to perform significantly better than selected non-invariant base compact schemes in terms of numerical accuracy, verifying the potential advantages of symmetry preservation.
We demonstrate the implementation of the proposed method by considering fourth order accurate invariant compact finite difference schemes for one- and two-dimensional linear advection-diffusion equations and Burgers’ equations (i.e., inviscid, viscous). For numerical simplicity, we use forward differencing to discretize temporal derivatives, and fourth order compact schemes based on central differencing to discretize spatial derivatives. Note that the proposed construction of invariant schemes can also be extended to arbitrarily high order temporal and spatial discretizations. Results obtained from the proposed invariant compact schemes developed for these test problems suggest that symmetry preservation can lead to significant improvements in numerical accuracy, besides storing important geometric information (regarding the underlying differential equations) in associated numerical schemes.
This paper is organized as follows. In Section 2, the formulation for the fourth order accurate compact schemes along with a detailed discussion on Lie symmetry analysis and invariantization of compact schemes are provided. The step by step development of invariant compact schemes for some linear and nonlinear problems are noted in Section 3. Performance of the constructed invariant compact schemes, along with a detailed discussion of the results obtained from these schemes are presented in Section 4. And finally, the concluding remarks and a brief summary of the work are given in Section 5.
2 Mathematical formulation
In this section, the procedure (that is based on equivariant moving frames) for construction of invariant compact schemes is presented in detail. Brief discussions on Lie symmetry analysis and compact schemes are also included.
2.1 Construction of compact schemes
Compact finite difference methods are widely used for high order computations, and in some cases are favored over standard finite difference methods, due to their ability to achieve high order accuracy over smaller stencils. For instance, while a standard central difference approximation of the first derivative of a function on a three-point stencil is second order accurate, an approximation based on a compact scheme (that is also derived through central differencing) of the same derivative could be of higher orders. The implementation of compact schemes is rather simple. To illustrate construction of compact schemes through an example, let us develop fourth order accurate compact finite difference schemes for the first and second derivatives of a function . Consider the following Taylor series expansion of the function U at grid points :
[TABLE]
where is the discrete spatial step and the symbol denotes derivative with respect to variable . Similarly, the first and second derivative of can be expanded in a Taylor series as
[TABLE]
In order to eliminate the higher order derivatives (i.e., , and ) and obtain an implicit relationship between the first derivative and the function at nodes , one can multiply Eq. (1) with constant at point , and with constant at point , and multiply Eq. (2) with quantity at point , and with quantity at point , and sum up these resulting quantities to obtain the following equation:
[TABLE]
The arbitrary constants , , , and can be obtained via elimination of high order derivatives as . Hence, the final form of Eq. (2.1) is
[TABLE]
which relates the function U to its first derivative and provides a fourth order accurate implicit approximation for the first derivative of . Through similar algebraic manipulations, one can obtain the following fourth order accurate implicit approximation for the second derivative of the function U as well
[TABLE]
Both Eqs. (5)–(6) yield tridiagonal matrices that can easily be solved to accurately approximate the first and second derivatives of at all grid points. More information on compact schemes along with compact algorithms for derivatives with higher orders of accuracy, and a discussion on the treatment of boundary conditions in this approach can be found in the literature [1, 2].
2.2 Lie symmetry analysis
A differential equation is said to possess a symmetry property if one can transform every variable in the equation according to some transformations, such that the resulting output reads exactly the same as the original differential equation in new (transformed) variables. Further, a Lie point symmetry group is an algebraic structure that consists of a set of objects, which correspond to continuous symmetries (or coordinate transformations) that map a system to itself with a binary operation that satisfies the following group axioms:
- closure
- existence of identity element
- existence of inverse element
- associativity.
The procedure for determination of Lie point symmetries of equations is straightforward and well-documented in the literature [45, 46, 47, 48, 49].
In this context, consider a surface to be a partial differential equation, and let the following be a one-parameter (th-extended) Lie group :
[TABLE]
where the arbitrary constant is the symmetry (or group) parameter, and . Here, the vectors and denote the independent and dependent variables, respectively, and represents the vector of all possible th order derivatives of with respect to the independent variables. Also, the operator represents the partial derivative . The smooth transformation functions (, ) given in group can be further expanded in a Taylor series about the point to determine the infinitesimal form of the one-parameter Lie group as
[TABLE]
where and are known as the coordinate functions (or the group infinitesimals), which define the transformation of the coordinate variables under the action of the group . Similarly, is the th-extended group infinitesimal that defines how the th derivative is transformed under the action of , and is given by the following relation:
[TABLE]
where is the total derivative operator [46].
The surface is said to be invariant under the action of the group if the equation reads the same in new variables as represented below:
[TABLE]
In order to determine the Lie point symmetry group that will leave the surface invariant (or unchanged), the following invariance condition is applied
[TABLE]
where is the -extended group operator that is of the form
[TABLE]
Solution of the invariance condition given in Eq. (11) through determination of the coordinate functions yields the Lie point symmetry group associated with the surface . A more detailed discussion on Lie symmetry analysis, particularly regarding how to solve the invariance condition, can be found in the reference [46].
2.3 Invariantization of compact schemes
In this work, a compact finite difference scheme (corresponding to a surface ) is considered as an invariant compact scheme if its form remains unchanged under the action of a point symmetry group associated with the surface . In this context, let be an invariant compact finite difference scheme, and be a stencil equation for the surface where is the vector of the independent/dependent variables and derivatives, respectively. The compact scheme and the stencil equation are said to be invariant under the action of the group element (where ) if the following condition is satisfied [34, 35, 36]:
[TABLE]
where represents right moving frames defined on a manifold such that it is a topological map () that satisfies the following condition:
[TABLE]
for . For any given non-invariant compact finite difference scheme (constructed for a surface ), an invariant form of this scheme can be obtained by simply transforming every coordinate variable and derivative of the base (non-invariant) compact scheme according to the symmetry group as for all . The unknown group parameters (that appear when the action of a particular group element on the coordinate variables and derivatives is evaluated) can be determined via Cartan’s method of normalization. A more detailed discussion on Cartan’s method of normalization and equivariant moving frames can be found in the literature [44, 33, 34, 35].
3 Construction of invariant numerical schemes
In this section, the invariantization of compact finite difference schemes is illustrated through examples. In particular, fourth order accurate invariant compact schemes are constructed for some linear and nonlinear problems.
3.1 Inviscid Burgers’ equation
As our first test problem, we consider the inviscid Burgers’ equation (IBE), which is a model that describes nonlinear wave propagation, and is of the form
[TABLE]
A non-invariant compact scheme can be constructed for the IBE using the compact algorithms developed for the spatial first, Eq. (5), and second, Eq. (6), derivatives. As for the time derivative, for simplicity, a classical first order forward differencing technique can be considered. The order of accuracy can be improved from first to second order via truncation error analysis or defect correction. Hence the final form of the compact scheme develop for the inviscid Burgers’ equation can be found as
[TABLE]
Here, represents the defect correction terms (obtained from truncation error analysis) that are added to the scheme to improve accuracy and is given by
[TABLE]
where and denote the discrete time and space steps, respectively.
Further, the symmetry group associated with the inviscid Burgers’ equation can be found (via Lie symmetry analysis) as
[TABLE]
where , is the group operator that corresponds to that particular subgroup. The point transformations, , associated with a particular subgroup can be found using Lie series expansion as follows
[TABLE]
Here, we note that in order to find the extended point transformations , one should extend the group operators given in Eq. (3.1) such that it accounts for all the derivative terms before these groups are used in the Lie series given in Eq. (18). Alternatively, one can use the chain rule to find the extended point transformations. For instance, the transformation expression for the spatial first derivative can be found using
[TABLE]
once the point transformations for the independent and dependent variables are found. Similarly, point transformations associated with a multiple number of subgroups can be obtained by substituting each subgroup into Eq. (18) in an arbitrary order. Although it is possible to consider the full Lie algebra and obtain global transformations for the coordinate variables and derivatives, it is sometimes practical to choose only certain subgroups as the form of the point transformations obtained from the full Lie algebra could be cumbersome and not practical for preservation in associated compact finite difference schemes [42]. Hence, for this particular problem, we only choose the subgroups , , , and for preservation in the associated (non-invariant) compact scheme given in Eq. (15). The global transformations obtained from these particular subgroups are found via Eq. (18) as
[TABLE]
where . The compact scheme constructed for the inviscid Burgers’ equation, Eq. (15), can be invariantized by transforming every coordinate variable and derivative according to the above transformations
[TABLE]
Based on the point transformations given in Eq. (3.1), it appears that the symmetry parameter does not appear in the transformed scheme given in Eq. (20). All the other symmetry parameters can be determined through Cartan’s method of normalization. First, we consider convenient normalization conditions that lead to simple stencils. For instance, normalization conditions and , among infinite possibilities, yield a simple stencil where the symmetry parameters and are and , respectively. Second, we choose normalization conditions that remove terms from the truncation error of compact schemes under consideration and hence lead to a considerable improvement in numerical accuracy, besides simplifying their numerical representations [42]. In this context, the normalization condition can be used to determine the symmetry parameter
[TABLE]
as this particular normalization condition removes all the terms that include the spatial first derivative from the compact scheme given in Eq. (20) in the transformed space as shown in the following:
[TABLE]
The compact scheme given in Eq. (22) is invariant under the symmetry groups , , , and and can also be expressed in original variables as follows
[TABLE]
where . Note that for most of the test problems considered in this work, we use a time-space orthogonal mesh, and , and hence, for simplicity, we will replace with , and with in the following examples. Invariance of the compact scheme constructed for the inviscid Burgers’ equation, Eq. (23), can be verified by transforming every variable in this scheme according to the transformations given in Eq. (3.1), and the resulting transformed scheme should be identical to Eq. (23).
Here we also note that for this particular problem, for simplicity, we considered first order forward differencing for the time derivative and used the method of modified equations to improve the accuracy of the approximation from first to second order. However, one could also use higher order approximations or other discretization techniques (i.e., Runge-Kutta methods) for the time derivative if desired. A particularly interesting case occurs when a TVD-RK2 discretization technique is used for the time derivative in Eq. (14). In this case, the final form of the invariant compact scheme constructed using the transformations and moving frames considered for the IBE would be identical to the invariant compact scheme given in Eq. (23).
3.2 Linear advection-diffusion equation in 1D
As our second test problem, we choose the one-dimensional linear advection-diffusion equation of the form
[TABLE]
which describes the evolution of a quantity due to linear advection and diffusion processes. The symbols and denote the constant characteristic speed and diffusion coefficient, respectively. A non-invariant compact numerical scheme can be developed for Eq. (24) as
[TABLE]
where forward differencing is considered for the time derivative, and the spatial first and second derivatives are approximated according to Eq. (5) and Eq. (6), respectively. The symmetry group associated with the one-dimensional advection-diffusion equation is
[TABLE]
Considering the subgroups , , and , the following point transformations can be obtained
[TABLE]
where and . The other subgroups are neglected as their inclusion leads to point transformations of cumbersome structures that are difficult to implement. The normalization conditions and can be used to determine the symmetry parameters and , respectively. The symmetry parameter (corresponding to the projection group ) can be found by considering the normalization condition
[TABLE]
As all the unknown symmetry parameters are defined, the point transformations given in Eq. (3.2) can be implemented to the base compact numerical scheme, Eq. (25). This implementation appears to reduce the scheme to a form of linear advection equation in the transformed space as
[TABLE]
where the spatial second derivative is removed from the scheme owing to the normalization condition given in Eq. (28). Hence, the transformed compact scheme given in Eq. (29) that is constructed for the one-dimensional linear advection-diffusion equation and is invariant under the subgroups , , and can be expressed in the original discrete variables as follows
[TABLE]
where .
3.3 Viscous Burgers’ equation
As our third test problem, let us consider the viscous Burgers’ equation that is of the form
[TABLE]
and develop an invariant compact numerical scheme for this particular PDE. Similar to the one-dimensional linear advection-diffusion equation, we consider forward differencing for the time derivative and use Eqs. (5)–(6) for the spatial derivatives to construct the non-invariant base compact scheme for the solution of this PDE as shown in the following
[TABLE]
The symmetry group associated with the viscous Burgers’ equation is
[TABLE]
The point transformations that account for the projection group , Galilean transformation group , scaling group , and translation groups and can be found as
[TABLE]
where . As similar to the inviscid Burgers’ equation, the scaling symmetry parameter does not occur when these transformations are implemented to the compact scheme given in Eq. (32). The symmetry parameters associated with the translation groups and can be found by considering the same normalization conditions used for the previous problems. The Galilean parameter can be found by using the normalization condition . And finally, the projection parameter can be found by choosing a moving frame for which the approximation for the first derivative goes to zero in the transformed space
[TABLE]
The above normalization condition indicates that all terms in the base (non-invariant) compact scheme, Eq. (32), that include the spatial first derivative will be removed from the compact scheme in the transformed space leading to the following reduced form
[TABLE]
where . The transformed compact numerical scheme, Eq. (36), that is invariant under all the symmetry groups of the viscous Burgers’ equation can also be expressed in original variables as
[TABLE]
where .
3.4 Advection-diffusion equation in 2D
As our last test problem, we choose the two-dimensional linear advection-diffusion equation that is of the form
[TABLE]
to demonstrate the applicability of the proposed method to a multidimensional problem. Here and denote constant characteristic wave speeds along and coordinates, respectively. For this particular PDE, two different compact numerical schemes that are invariant under the same symmetry groups, but are constructed using different moving frames, are developed. Similar to the previous problems, the base (non-invariant) compact numerical scheme considered for this PDE is also developed considering forward differencing for the temporal derivative and fourth order compact finite difference algorithms, given in Eq. (5)–(6), for the spatial derivatives as shown in the following:
[TABLE]
Considering the symmetry group associated with the two-dimensional linear advection-diffusion equation,
[TABLE]
the following point transformations that are based on the subgroups , , , and , are found
[TABLE]
where
[TABLE]
The base compact scheme given in Eq. (39) can be transformed according to the above transformations as follows
[TABLE]
Here we note that, for simplicity, we ignore the Galilean ( and ) and scaling ( and ) groups and do not consider them for determination of the point transformations as their inclusion (besides the other symmetry groups) result in transformations that are laborious to implement. The symmetry parameters , , and can be determined by considering the normalization conditions , , and , respectively. As for the determination of the symmetry parameter , we consider two different normalization conditions to evaluate the effect of these selections on the numerical accuracy of the resulting invariant schemes. We choose
[TABLE]
as the first normalization condition and construct an invariant compact scheme (referred to as SYM-1) as follows
[TABLE]
In the second case, we consider the normalization condition
[TABLE]
and construct another invariant compact scheme (referred to as SYM-2) as
[TABLE]
Here we note that both Eq. (44) and Eq. (46) can also be expressed in the original variables by implementing the transformations given in Eq. (3.4).
4 Results
In this section, performance of the proposed invariant compact finite difference schemes developed for the inviscid Burgers’ equation, linear advection-diffusion equation (in 1D and 2D), and viscous Burgers’ equation is evaluated. Results obtained from these invariant schemes are compared with the standard schemes for numerical accuracy.
We first evaluate the performance of the invariant compact scheme constructed for the inviscid Burgers’ equation, Eq. (23), by comparing the results with the analytical solution
[TABLE]
over the spatial domain where . The initial and boundary conditions are noted from the analytical solution.
Snapshots of the propagating wave that are obtained from the exact solution, the proposed invariant (compact) scheme (SYM), standard fourth order accurate compact scheme (COMP), and the classical second order accurate forward in time central in space (FTCS) scheme are shown in figure 1 (left plot). The associated numerical errors of these schemes, which are estimated as , are also given in this figure 1 (right plot). It appears that the results obtained from the proposed invariant compact scheme (SYM) are significantly more accurate than those obtained from the standard finite difference scheme (FTCS) and are slightly better than those obtained from the standard compact finite difference scheme (COMP). Further, the root mean square error (RMSE), estimated as , and error, estimated as , of these numerical schemes, for this particular run, are given in table 1. According to the error analysis presented in this table, the errors obtained from the FTCS scheme, compact finite difference scheme, and the invariant scheme are , , and , respectively. Similarly, the root mean square errors for these numerical schemes are found as (FTCS), (COMP), and (SYM). As expected, the proposed invariant scheme (SYM) which preserves the symmetries of the underlying PDE has significantly less error compared to the standard FTCS scheme and has slightly less error than the standard compact finite difference scheme.
The variation of errors (obtained from the standard FTCS scheme, standard compact finite difference scheme, and the invariant scheme) with respect to the number of spatial grid points is demonstrated in figure 2. The proposed invariant scheme (SYM) appears to be two orders more accurate than the standard second order FTCS scheme and is at the same order as the standard compact finite difference scheme which is known to be fourth order accurate. Here, we note that a sufficiently small-time step is considered for this simulation as the fourth order compact algorithms (given in Eq. (5) and Eq. (6)) are only considered for the spatial derivatives.
Further, we evaluated the performance of the proposed method by developing a fourth order accurate invariant compact finite difference scheme for the one-dimensional linear advection-diffusion equation given in Eq. (24). The following analytical solution
[TABLE]
is considered over the spatial domain , where the initial and boundary conditions are obtained from the exact solution. Here, is the characteristic width of the kernel and assumed to be equal to 0.4 in all test cases. For this particular problem, evolution of the profile (from a given Gaussian initial profile) obtained from the proposed invariant scheme (SYM), standard FTCS scheme and compact finite difference (COMP) scheme is depicted in figure 3 (left figure). The spatial distribution of errors obtained from these numerical solutions is also shown in this figure (right figure). The invariant compact scheme appears to be capturing the wave propagation significantly better than the FTCS scheme, and slightly better than the compact scheme. Additionally, error and root mean square error measures corresponding to the proposed invariant compact scheme, FTCS scheme and standard compact finite difference scheme are presented in table 2. It appears that the invariant compact scheme is two orders of magnitude more accurate than the FTCS scheme and is one order of magnitude more accurate than the standard compact finite difference scheme.
Additionally, figure 4 shows the variation of errors associated to the invariant compact scheme, FTCS scheme, and standard noninvariant compact scheme with respect to the number of spatial grid points. The invariant scheme appears to be two orders more accurate than the standard second order FTCS scheme. Moreover, although both the invariant and standard non-invariant compact schemes are fourth order accurate, the invariant scheme appears to have slightly less numerical error.
In our next test case, we considered the viscous Burgers’ equation and developed a fourth order accurate invariant compact scheme that preserve the whole symmetry group, given in Eq. (33), associated with this PDE. The following analytical solution
[TABLE]
[TABLE]
is considered over the spatial domain where the initial and boundary conditions are determined from this solution.
Snapshots of the propagating shock, at , along with the spatial distribution of numerical errors, obtained from the fourth order accurate invariant compact scheme (SYM), standard second order FTCS scheme, and non-invariant fourth order compact finite difference scheme (COMP) are depicted in figure 5. Although a coarse grid with 101 nodes is used for this particular run, it appears that the invariant scheme performs well and captures the shock propagation significantly better than the standard FTCS scheme, particularly near the shock-front. Further, error and root mean square error analysis given in table 3 also confirms that the invariant compact scheme performs better than the standard FTCS scheme. For this particular run, root mean square errors corresponding to the invariant compact scheme, standard FTCS scheme, and non-invariant compact finite difference scheme are found to be 0.0140, 0.1251, and 0.0143, respectively. Similarly, errors of these schemes are determined as 0.1060 (SYM), 0.8962 (FTCS), and 0.0994 (COMP).
The variation of errors obtained from these numerical schemes with respect to number of spatial grid points is shown in figure 6. As expected, the results obtained from the invariant scheme are indeed fourth order accurate and are two orders more accurate than the standard FTCS scheme, which is known to be a second order accurate scheme. Also, both the invariant scheme and the standard fourth order compact scheme yield results of comparable order of accuracy with negligible differences.
As the proposed invariant compact scheme given in Eq. (37) preserves all the symmetry groups of the viscous Burgers’ equation (including the Galilean symmetry group), under transformations based on these symmetry groups, the invariant scheme is expected to perform significantly better than the standard numerical schemes that do not preserve these symmetry groups. For instance, under a Galilean transformation of the form
[TABLE]
the proposed invariant scheme (SYM) is likely to capture the evolution of the velocity profile significantly better than both the standard FTCS and compact schemes. This is expected as the invariant scheme preserves the Galilean transformation group given in Eq. (33) whereas the standard schemes do not. To test this particular advantage of the invariant scheme, we applied the Galilean transformation given in Eq. (50) to these numerical schemes and presented the snapshots of the evolution of the numerical solutions from (two different) given initial profiles in figure 7. Additionally, root mean square errors and errors associated with these numerical solutions are given in table 5 and table 5. These particular initial conditions along with the associated analytical solutions considered for the left and right plots in figure 7 can be found in reference [38]. Based on figure 7 and relevant error tables, it appears that when the Galilean parameter is equal to zero, all the numerical scheme captures the evolution of the solution well which is expected. However, for the cases when the Galilean parameter is nonzero, both the standard FTCS scheme and compact finite difference scheme appear to overpredict the solution leading to a significant lag in the solution, particularly for large values of . On the other hand, the invariant scheme, as it preserves the Galilean symmetry group, captures the evolution of the solution well even for nonzero values of the Galilean parameter . In fact, in the case of a numerical precision considered in table 5 and table 5, the results obtained from the invariant scheme for nonzero values of are found to be identical to the results of the case where . The latter indicates that the Galilean invariance property of the viscous Burgers’ equation is indeed preserved in the relevant difference equation. This property of symmetry preservation in numerical schemes can be particularly useful when differential equations associated to more complex symmetries are solved through difference equations.
As our last test case, we considered the two-dimensional linear advection-diffusion equation and constructed two different fourth order accurate invariant compact finite difference scheme (SYM-1 and SYM-2) for this PDE. The main difference between the constructed invariant schemes are that both are developed via selections of different moving frames, and the details of these selections are given in Section 3. The objective is to investigate the effect of these selections on the accuracy of the resulting invariant schemes. The following analytical solution
[TABLE]
is used to evaluate the quality of results obtained from the invariant schemes SYM-1 and SYM-2.
Spatial distribution of numerical errors corresponding to the proposed invariant compact finite difference scheme (SYM-2) and standard non-invariant FTCS scheme is given in figure 8. Based on this figure, it appears that the invariant scheme has significantly less numerical error compared to the standard non-invariant FTCS scheme in this case as well. This improvement in numerical accuracy is also verified by the error analysis given in table 6, where both invariant schemes (SYM-1 and SYM-2) perform better than the standard schemes. errors obtained from the invariant scheme SYM-1, invariant scheme SYM-2, FTCS scheme, and standard non-invariant compact scheme are noted as , , , and , respectively. It appears that the invariant schemes are at least two orders of magnitude more accurate than the standard FTCS scheme. Root mean square error measures of these numerical schemes also yield similar results, which are and for the invariant schemes SYM-1 and SYM-2, for the FTCS scheme, and for the non-invariant compact finite difference scheme.
The variation of errors (obtained from the proposed invariant schemes, standard FTCS scheme, and non-invariant compact scheme) with respect to the number of spatial grid points is presented in figure 9. As expected, both of the proposed invariant compact schemes constructed for the two-dimensional linear advection-diffusion equation are indeed fourth order accurate, and perform significantly better than the second order standard forward in time central in space finite difference scheme (FTCS). Moreover, these invariant schemes also perform with slightly less error compared to the non-invariant compact scheme which is known to be a fourth order accurate scheme. Further, the invariant scheme SYM-2 appears to be slightly more accurate than the invariant scheme SYM-1 which indicates that the selection of moving frames could affect the accuracy of resulting invariant schemes. Although for this particular problem, the differences in the results obtained from the invariant schemes appear to be minor, in general the moving frames must be chosen carefully.
5 Conclusion
Compact finite difference schemes are preferred over standard finite difference schemes as these schemes enable high order accuracy on stencils with comparably small number of grid points, and have good, spectral-like resolution. In this paper, we presented a method, that is based on moving frames, for construction of invariant compact finite difference schemes that preserve Lie symmetry groups of underlying partial differential equations. In this method, we first determine the extended symmetry groups of PDEs, and then obtain point transformations based on these symmetry groups. These transformations are then applied to some (non-invariant) base compact finite difference schemes such that all the system variables (i.e., independent and dependent variables) and derivatives of these compact schemes are transformed. We then determine the unknown symmetry parameters that exist in these symmetry-based point transformations by considering convenient moving frames that are obtained through Cartan’s method of normalization. In most cases, such convenient moving frames not only result in significant improvement in numerical accuracy but also notably simplify the numerical representations of the resulting invariant schemes, and eventually make them easier to program. Performance of the proposed method was evaluated via construction of high order accurate invariant compact finite difference schemes (built on simple three-point stencils) for some linear and nonlinear PDEs. Based on our evaluations, we concluded that symmetry preservation has the potential to significantly improve numerical accuracy of compact schemes, besides embedding important geometric properties of underlying PDEs.
As our first test case, we considered the inviscid Burgers’ equation and constructed a high order accurate invariant compact finite difference scheme for this PDE. Although the order of accuracy of compact schemes can be arbitrarily set by considering suitable compact finite difference algorithms, for this particular problem, we chose fourth order accurate compact algorithms to approximate the spatial derivatives and constructed an invariant scheme based on these algorithms. In all the test problems, the temporal derivatives were handled through standard forward differencing. For this particular PDE, in order to improve the numerical accuracy from first to second order in time, the base scheme was modified using defect correction techniques. The results obtained from this fourth order accurate invariant compact scheme were found to be slightly better than the results obtained from the standard compact scheme and were notably better than those of the standard FTCS scheme. For all the test cases, the computation times, required to run a simulation with a numerical error of comparable order, were found to be similar for both the proposed invariant scheme and standard compact scheme, and the differences were negligible.
As our next test problem, we considered the one-dimensional linear advection-diffusion equation and developed a fourth order accurate invariant compact scheme for this problem as well. For this particular problem, through the use of convenient moving frames (i.e., ), the numerical representation of the base scheme were reduced to a form of the linear advection equation () in the transformed space. Similar to the previous problem, the quality of results obtained from this invariant compact scheme (in terms of numerical accuracy) was found to be better than that of the standard FTCS and compact schemes.
Next we constructed a fourth order accurate invariant compact finite difference scheme for the viscous Burgers’ equation (which is of the form of a linear heat equation, , in the transformed space for the normalization condition ) that preserves all the symmetries of the Burgers’ equation, and compared our results with the standard schemes. As expected, the proposed invariant compact scheme developed for this problem yielded more accurate results than standard schemes in this case as well. In particular, the performance of the proposed invariant scheme was significantly better than that of the standard schemes when a Galilean transformation is applied to these schemes (see figure 7 and tables 5–5) to test how these schemes are affected by such transformations that are based on symmetries of the underlying differential equation. This is due to the fact that the invariant scheme preserves the Galilean symmetry group of the viscous Burgers’ equation, whereas the standard schemes do not.
In order to demonstrate the implementation of the proposed method to a multidimensional problem, as our last test case, we considered the two-dimensional linear advection-diffusion equation and constructed a couple of fourth order accurate invariant compact schemes for this problem, where different moving frames are used in the construction of each invariant scheme to evaluate how this action effects the accuracy of the resulting schemes. For the first invariant scheme SYM-1, a normalization condition of the form is used to determine the projection group parameter whereas for the other invariant scheme (SYM-2), this particular parameter was determined using the normalization condition . Although both normalization conditions simplify the base compact scheme considered for this PDE notably, the latter condition reduces the base scheme to the form of a two-dimensional linear advection equation () in the transformed space. As for the results obtained from these invariant schemes, SYM-2 appears to be slightly more accurate than SYM-1 where both of these schemes are notably more accurate than standard schemes. Although for this particular problem, selection of different moving frames in the construction of invariant schemes did not affect the accuracy of these schemes significantly, this may not be the case for other problems as there are usually infinitely many applicable moving frames, and not all of them will result in accurate invariant schemes.
While the proposed method could be effectively used for construction of invariant compact finite difference schemes with desired order of accuracy, there are few issues that need to be addressed in more detail. Further research is required to understand how the performance of invariant compact schemes (constructed through the proposed method) is affected by the choice of subgroups (considered for preservation in the difference equation), choice of moving frames among infinite number of possibilities, and the nature of initial/boundary conditions and their compatibility with the selected subgroups. Based on our simulations, we observed that although it is possible to consider the whole symmetry group of a PDE for preservation in difference equations, this often leads to cumbersome numerical representations without notably enhancing numerical accuracy. For instance, in the case of the viscous Burgers’ equation, the whole symmetry group of the PDE is preserved in the related difference equation. However, the advantages owing to the inclusion of the Galilean subgroup only become significant when the invariant scheme is actually transformed under a Galilean transformation as demonstrated in figure 7. Further, the choice of moving frames which are used to determine the unknown group parameters could affect the accuracy of resulting invariant schemes. To our knowledge, there is no systematic approach to select the best moving frame and one must consider all the pros and cons of a particular moving frame before making a selection. Based on our observations, we found that a moving frame that removes the leading order terms from truncation error of a difference equation is usually a good choice as such a moving frame also simplifies the base scheme (in the transformed space) and make it easier to program. Moreover, the performance of the constructed invariant schemes might be affected by the chosen initial/boundary conditions, especially if these conditions are not compatible with the chosen subgroups. This might be due to the fact that some of the limitations of base difference equations carry over to the constructed invariant schemes. For instance, for cases where discontinuities develop in solutions, the performance of the constructed invariant schemes will undoubtedly depend on the chosen base numerical schemes. This obstacle could be avoided by selecting base schemes that are better suited to handle such discontinuities.
Acknowledgments
The first author (PhD candidate) is grateful for financial support provided by the Ministry of National Education of Turkey.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] R. S. Hirsh, Higher order accurate difference solutions of fluid mechanics problems by a compact differencing technique, Journal of Computational Physics 19 (1) (1975) 90–109.
- 2[2] S. K. Lele, Compact finite difference schemes with spectral-like resolution, Journal of Computational Physics 103 (1) (1992) 16–42.
- 3[3] M. Ciment, S. H. Leventhal, Higher order compact implicit schemes for the wave equation, Mathematics of Computation 29 (132) (1975) 985–994.
- 4[4] K. Mahesh, A family of high order finite difference schemes with good spectral resolution, Journal of Computational Physics 145 (1) (1998) 332–358.
- 5[5] W. Dai, R. Nassar, A compact finite difference scheme for solving a three-dimensional heat transport equation in a thin film, Numerical Methods for Partial Differential Equations 16 (5) (2000) 441–458.
- 6[6] S. E. Sherer, J. N. Scott, High-order compact finite-difference methods on general overset grids, Journal of Computational Physics 210 (2) (2005) 459–496.
- 7[7] R. K. Shukla, M. Tatineni, X. Zhong, Very high-order compact finite difference schemes on non-uniform grids for incompressible Navier–Stokes equations, Journal of Computational Physics 224 (2) (2007) 1064–1094.
- 8[8] D. P. Rizzetta, M. R. Visbal, P. E. Morgan, A high-order compact finite-difference scheme for large-eddy simulation of active flow control, Progress in Aerospace Sciences 44 (6) (2008) 397–426.
