We perform a comparison of mass conservation properties of the continuous (CG) and discontinuous (DG) Galerkin methods on non-conforming, dynamically adaptive meshes for two atmospheric test cases. The two methods are implemented in a unified way which allows for a direct comparison of the non-conforming edge treatment. We outline the implementation details of the non-conforming direct stiffness summation algorithm for the CG method and show that the mass conservation error is similar to the DG method. Both methods conserve to machine precision, regardless of the presence of the non-conforming edges. For lower order polynomials the CG method requires additional stabilization to run for very long simulation times. We addressed this issue by using filters and/or additional artificial viscosity. The mathematical proof of mass conservation for CG with non-conforming meshes is presented in Appendix B.Keywords: adaptive mesh refinement, continuous Galerkin method, discontinuous Galerkin method, non-conforming mesh, compressible Euler equations, atmospheric simulations
IntroductionBoth element-based Galerkin methods and adaptive mesh refinement for atmospheric modeling are active fields of research. In [1] we provide an overview of the literature covering both topics, with particular attention to the discontinuous Galerkin method. In this paper we extend that work by comparing the continuous (CG) and discontinuous Galerkin (DG) methods with non-conforming adaptive mesh refinement. As a metric for the comparison we chose the mass conservation, as it is an important feature for many atmospheric applications. We believe this is a good metric because, for smooth solutions, both methods will yield similar accuracy; it is unclear how both methods will compare for non-smooth solutions but it is expected that they can achieve similarly good results, especially with the inclusion of stabilization techniques for both methods. However, this topic is beyond the scope of this paper but is something to address in the future. Both methods are implemented in a unified way, such that they use the same data structures and routines for computations, differing only in the inter-element communication, which is described in detail in Sec. 2.2. This approach allows us to be confident that the differences we see in the results are due to the different methods rather than their implementations.There is a vast collection of work in the literature on CG with geometrically non-conforming mesh refinement, starting with the early work of [2,3] and later [4,5]. Those approaches were based on the mortar element method, which employs integral projection to ensure a weak continuity across the non-conforming edges. In this paper we follow the approach by Fischer et al. [6], that uses an interpolation based method for reconciling the continuity condition on non-conforming edges. The two methods were compared in [7].