Articles | Volume 13, issue 1
https://doi.org/10.5194/se-13-229-2022
https://doi.org/10.5194/se-13-229-2022
Method article
 | 
28 Jan 2022
Method article |  | 28 Jan 2022

On the choice of finite element for applications in geodynamics

Cedric Thieulot and Wolfgang Bangerth
Abstract

Geodynamical simulations over the past decades have widely been built on quadrilateral and hexahedral finite elements. For the discretization of the key Stokes equation describing slow, viscous flow, most codes use either the unstable Q1×P0 element, a stabilized version of the equal-order Q1×Q1 element, or more recently the stable Taylor–Hood element with continuous (Q2×Q1) or discontinuous (Q2×P-1) pressure. However, it is not clear which of these choices is actually the best at accurately simulating “typical” geodynamic situations.

Herein, we provide a systematic comparison of all of these elements for the first time. We use a series of benchmarks that illuminate different aspects of the features we consider typical of mantle convection and geodynamical simulations. We will show in particular that the stabilized Q1×Q1 element has great difficulty producing accurate solutions for buoyancy-driven flows – the dominant forcing for mantle convection flow – and that the Q1×P0 element is too unstable and inaccurate in practice. As a consequence, we believe that the Q2×Q1 and Q2×P-1 elements provide the most robust and reliable choice for geodynamical simulations, despite the greater complexity in their implementation and the substantially higher computational cost when solving linear systems.

1 Introduction

For the past several decades, the geodynamics community's workhorse for numerical simulations of the incompressible Stokes equations has been the use of (continuous) piecewise bilinear and/or trilinear velocity and piecewise constant (discontinuous) pressure finite elements, often in combination with the penalty method for the solution of the resulting linear systems (e.g., Donea and Huerta2003). This velocity–pressure pair is often referred to as the Q1×P0 Stokes element and sometimes as the Q1×Q0 element (Gresho and Sani2000). It is used, for example, in the ConMan (King et al.1990), SOPALE (Fullsack1995), SLIM3D (Popov and Sobolev2008), CitcomCU (Moresi and Gurnis1996; Zhong2006), CitcomS (Zhong et al.2000; McNamara and Zhong2004; Zhong et al.2008), Ellipsis (Moresi et al.2003; O'Neill et al.2006), UnderWorld (Moresi et al.2003), DOUAR (Braun et al.2008), and FANTOM (Thieulot2011) codes and has therefore been used in hundreds of publications.

The popularity of this element can be explained by its very small memory footprint and ease of implementation and use. On the other hand, it has a rather low convergence order that makes it difficult to achieve high accuracy; maybe more importantly, the element is known not to satisfy the so-called Ladyzhenskaya–Babuška–Brezzi (LBB) condition condition (e.g., Donea and Huerta2003) and is therefore unstable. This instability noticeably manifests itself through oscillatory pressure modes (e.g., Fig. 18 of Thieulot et al.2008 or Fig. 36 of Thieulot2014) and makes it not suited for large-scale three-dimensional simulations coupled to iterative solvers (May and Moresi2008). The unreliability of the pressure also makes this element a dubious choice for models in which some of the parameters – e.g., the density or the viscosity – depend on the pressure.

The more modern alternative to this choice is the Taylor–Hood element that uses (continuous) polynomials of degree k for the velocity and of degree k−1 for the pressure, where k≥2.1 This element is not only LBB-stable, but owing to its higher polynomial degree is also convergent of higher order. It is therefore widely used in commercial flow solvers and is also the default element for the Aspect code in geodynamics (Kronbichler et al.2012; Heister et al.2017). This element is obviously more difficult to implement, and building efficient solvers and preconditioners is also more complicated (Kronbichler et al.2012; Clevenger et al.2020). However, these drawbacks can be mitigated by building on one of the widely available finite-element libraries that have appeared over the past 20 years; for example, Aspect inherits all of its finite-element functionality from the deal.II library (see Bangerth et al.2007; Arndt et al.2020). We will note that one can also use a number of variations of the underlying idea of the Taylor–Hood element, for example on quadrilaterals and hexahedra by using Qk×P-(k-1) (see, for instance, May et al.2015, Lechmann et al.2011, and Thielmann and Kaus2012) in which the pressure is discontinuous and of (total) polynomial degree k−1, but missing the part of the finite-element space on every cell that distinguishes the space Qk on quadrilaterals and hexahedra from the space Pk that is typically used on triangles and tetrahedra.2 Another variation is to enrich the pressure space by a constant shape function on each cell (see, for example, Boffi et al.2011, and the references therein). All of these alternatives are stable for k≥2, and in keeping with common usage of the term, we will also refer to all of these variations as Taylor–Hood or Taylor–Hood-like elements even though they are strictly speaking not what Taylor and Hood proposed in Taylor and Hood (1973).

A third option is the use of Q1×Q1 elements with both velocity and pressure using bilinear or trilinear shape functions. This combination of elements is not LBB-stable by default, but numerous stabilization techniques – typically adding a pressure-dependent term to the mass conservation equation – have been proposed in the literature (see, e.g., Norburn and Silvester2001; Elman et al.2014; Gresho et al.1995). Herein, we will discuss in particular the variation by Dohrmann and Bochev (2004) that is simple to implement and does not involve any tunable parameter. This approach is used in the Rhea code (Burstedde et al.2009, 2013) in conjunction with adaptive mesh refinement (AMR), allowing for the numerical solution of whole Earth models at high resolutions (Stadler et al.2010; Alisic et al.2012). Another example of the use of this method is the work of Leng and Zhong (2011), also using AMR, to study thermochemical mantle convection. Both the ELEFANT code with an application to the 3D thermal state of curved subduction zones (Plunder et al.2018) and the GALE code (Moresi et al.2012), with application to the 3D shapes of metamorphic core complexes (Le Pourhiet et al.2012) or oceanic plateau subduction (Arrial and Billen2013), use the stabilized Q1×Q1 method. Finally the ADELI code was coupled to a stabilized Q1×Q1 flow solver in the context of lithosphere–asthenosphere interaction studies (Cerpa et al.2014, 2015, 2018).

The availability of all of these options leads us to the main question of this paper: which element should one use in geodynamics computations based on the Stokes equations? Or, in the absence of clear-cut conclusions, which ones should not be used? On the face of it, this seems like a simple question: the consensus in the computational science community is that using moderately high-degree elements (say, k=3 or k=4) yields the best accuracy for a given computational effort (measured in CPU cycles) unless one wants to change the solver technology to use matrix-free methods whereby even higher polynomial degrees become more efficient. This conclusion is based on the higher convergence order of higher-degree methods but balanced by the rapidly growing cost of matrix assembly and linear solver effort for higher-degree methods. On the other hand, the recommendation to use higher-degree methods is predicated on the assumption that the solution is smooth enough – say, the velocity is in the Sobolev space Hk+1 of functions that have, loosely speaking, at least k+1 derivatives – that one can actually achieve a convergence rate of 𝒪(hk) in the energy norm and 𝒪(hk+1) in the L2 norm, where h is the mesh size. This assumption generally requires that all coefficients, such as density and viscosity, are sufficiently smooth on length scales resolvable by the mesh. This may not be the case in realistic geodynamics problems given that density and viscosity often depend discontinuously on the solution variables (velocity or strain rate, pressure, temperature, and compositional variables); indeed, in many models, the viscosity may vary by orders of magnitude on short length scales.

Such considerations put into question whether higher-order methods are really worth the effort for actual geodynamics simulations. Given these divergent theoretical thoughts, the only way to resolve the question is by way of numerical comparisons. We have consequently extended Aspect so that it can use all of the element combinations above, and we will use these implementations in the comparisons in this paper.

Goals of this paper. Having outlined the conflict between the expected superiority of higher-degree elements for the Stokes equation on the one hand and the expected lack of smoothness of solutions in realistic geodynamic cases, our goals in the paper are as follows.

  1. Quantitatively compare the solution accuracy of the various options (Q1×P0, Qk×Qk-1, Qk×P-(k-1) and stabilized Q1×Q1) using a variety of analytical benchmarks for which the exact solution is known. As we will see below, there is little point working with k>2 in geodynamics applications, and so the only cases we consider for Taylor–Hood-like elements are Q2×Q1 and Q2×P-1.

  2. Extend these numerical comparisons to cases in which it is known that the stabilized Q1×Q1 demonstrates problematic behavior that may make it unusable in many practical situations. In particular, we will consider the case of buoyancy-driven flows.

  3. Conclude our considerations by comparing the available options using a realistic geodynamical application. This will allow us to draw conclusions as to what element one might want to recommend for geodynamics applications.

While we have approached this study with an open mind and without a strong prior idea of which element might be the best, let us end this Introduction by noting that members of the crustal dynamics and mantle convection communities have occasionally expressed a dislike of the stabilized Q1×Q1 element for its inability to deal with large lithostatic pressures and free surfaces absent special modifications of the formulation. For example, Arrial and Billen (2013) comment on the need to modify the physical description of the problem due to the stabilization (with references replaced by ones listed at the end of this paper).

All the models were run with the open source code Gale. […] Gale uses Q1Q1 elements to describe the pressure and the velocity. However, this formulation is unstable and a slight compressible term is added in the divergence equation to stabilize it (Dohrmann and Bochev2004). Ideally, this term should be applied on the dynamic pressure and not on the full pressure. To fix this, a hydrostatic term corresponding to the reference density and temperature profile, is subtracted from the full pressure and the body force vector.

Few other negative comments concerning the Q1×Q1 element appear on record in the published literature, although one can find the following quote in Lehmann et al. (2015).

We do not consider the Q1×Q1/stab element (Dohrmann and Bochev2004; Bochev et al.2006; Burstedde et al.2009), as stabilization of this element is achieved by introducing an artificial compressibility that dominates for flows mainly driven by buoyancy variations (May et al.2015). In geophysical flow models this yields unphysical pressure artifacts for cases where both the free surface of the Earth and mantle flow are considered, because the driving density contrast between cold sinking plates and the warmer surrounding Earth's mantle is much smaller than the density difference between rocks and air (Kaus et al.2010; Popov and Sobolev2008; Mishin2011). In our experience, this results in artificial “compaction” of the Earth’s mantle if Q1×Q1/stab element is used, which makes them unsuitable for these purposes.

Indeed, our numerical experiments will encounter a similar issue; see Sect. 6.

We are not aware of any other significant publications in the geodynamics literature that specifically discuss the relative trade-offs between the elements we consider herein, specifically between the Q1×P0 and Taylor–Hood elements, and consequently believe that our discussions here are useful for the community.

2 The governing equations

For the purpose of this paper, we are concerned with the accurate numerical solution of the incompressible Stokes equations:

(1)-2ηε(u)+p=ρginΩ,(2)-u=0inΩ,

where η is the viscosity, ρ the density, g the gravity vector, ε(⋅) denotes the symmetric gradient operator defined by ε(u)=12(u+uT), and ΩRd,d=2 or 3 is the domain of interest. Both the viscosity η and the density ρ will, in general, be spatially variable; in applications, this is often through nonlinear dependencies on the strain rate ε(u) or the pressure, but the exact reasons for the spatial variability are not of importance to us here: what matters is that these coefficients may vary strongly and on short length scales.

In applications, the equations above will be augmented by appropriate boundary conditions and will be coupled to additional and often time-dependent equations, such as ones that describe the evolution of the temperature field or of the composition of rocks (see, for example, Schubert et al.2001; Turcotte and Schubert2012). This coupling is also not of interest to us here.

3 Discretization using finite-element methods

3.1 Formulation and basic error estimates

For the comparisons we intend to make in this paper, Eqs. (1)–(2) are discretized using the finite-element method. A straightforward application of the Galerkin method yields the following finite-dimensional variational problem: find uhUh,phPh so that

(3) ε ( v h ) , 2 η ε ( u h ) - ( v h , p h ) = ( v h , ρ g ) , - ( q h , u h ) = 0 ,

for all test functions vhUh,qhPh. Here, (a,b)=Ωa(x)b(x)dx. For simplicity, we have omitted terms introduced through the treatment of boundary conditions. The finite-dimensional, piecewise polynomial spaces 𝒰h and Ph can be chosen in a variety of ways, as discussed in the Introduction. In particular, if they are chosen as 𝒰h=Qk and Ph=Qk-1 – i.e., the Taylor–Hood element – then the discrete problem is known to satisfy the LBB condition and the solution is stable (Elman et al.2014). Here, Qs is the space of continuous functions that are obtained on each cell K of a mesh 𝕋 by mapping polynomials of degree at most s in each variable from the reference cell [0,1]d. Likewise, the problem is stable if one chooses 𝒰h=Qk and Ph=P-(k-1), where now Ps is the space of discontinuous functions obtained by mapping polynomials of total degree at most s from the reference cell. In both of these cases, we expect from fundamental theorems of the finite-element method (see, for example, Elman et al.2014) that the convergence rates are optimal, i.e., that the errors satisfy the relationships

(4) ( u - u h ) L 2 = O ( h k ) , u - u h L 2 = O ( h k + 1 ) , p - p h L 2 = O ( h k ) ,

where h is the maximal diameter over all cells in the mesh 𝕋.

On the other hand, if one chooses 𝒰h=Q1 and 𝒫h=P0, i.e., the unstable Q1×P0 element with piecewise linear continuous velocities and piecewise constant discontinuous pressure, then the best convergence rates one can hope for would satisfy the following relationships based solely on interpolation error estimates:

(5) ( u - u h ) L 2 = O ( h ) , u - u h L 2 = O ( h 2 ) , p - p h L 2 = O ( h ) .

In practice, if the numerical solution shows pressure oscillations (see for instance Sani et al.1981a, b), one will not even observe the rates shown above but might in fact obtain a worse pressure convergence rate, for example p-phL2=O(h1/2).

Finally, if one uses 𝒰h=Q1 and 𝒫h=Q1, then this unstable element combination can be made stable if one replaces the discrete formulation (3) by the following stabilized version due to Dohrmann and Bochev (2004):

(6) ε ( v h ) , 2 η ε ( u h ) - ( v h , p h ) = ( v h , ρ g ) , ( q h , u h ) - ( I - π 0 ) q h , 1 η ( I - π 0 ) p h = 0 .

Here, I is the identity operator and π0 is the projection onto piecewise constant functions – i.e., π0f is the function that on each cell is equal to the mean value of f on that cell. For this element, the rates one might hope for are as follows (see again Dohrmann and Bochev2004):

(7) ( u - u h ) L 2 = O ( h ) , u - u h L 2 = O ( h 2 ) , p - p h L 2 = O ( h ) .

Dohrmann and Bochev (2004) report that for some test cases, one might in fact obtain p-phL2=O(ht) with t≈1.5, though it is not clear whether this rate can be obtained for all possible applications. We also observe this improved rate in one of our benchmarks in Sect. 5.

We end this section by noting that in many of the setups we use in Sect. 5, the boundary conditions we impose lead to a problem in which the pressure is only determined up to an additive constant. The same is then true for the linear system one has to solve after discretization. As a consequence, we can only meaningfully compute quantities such as p-phL2 if both the exact and the numerical solution are normalized; a typical normalization is to ensure that their mean values are zero. Aspect enforces this normalization after solving the linear system.

3.2 A closer look at the error estimates

A comparison of Eq. (4) with Eqs. (5) and (7) would suggest that the Taylor–Hood element can obtain substantially better rates of convergence if one only chooses the polynomial degree k large enough.

However, this is an incomplete understanding because the 𝒪(hm) notation hides the fact that the constants in this behavior depend on the solution. More specifically, a complete description of the error behavior would replace Eq. (4) by the following statement: there are constants C1,C2,C3< so that

(8) ( u - u h ) L 2 C 1 h k k + 1 u L 2 , u - u h L 2 C 2 h k + 1 k + 1 u L 2 , p - p h L 2 C 3 h k k p L 2 .

The validity of these statements clearly depends on the solution being regular enough so that k+1u and kp actually exist and are square-integrable – in other words, that uHk+1 and pHk, where Hk represents the usual Sobolev function spaces. 3 On the other hand, all that is guaranteed by the existence theory for partial differential equations is that uH1 and pL2=H0; any further smoothness should only be expected if, for example, the domain Ω is convex and if viscosity η and right-hand side ρg are also smooth. Indeed, this is the case for many artificial benchmarks for which these functions are chosen a priori; on the other hand, in “realistic” geodynamics applications, one might expect η and ρ to be discontinuous at phase boundaries and potentially vary widely. In such cases, one needs to accept that the solutions only satisfy uHq and pHq-1 with q≥1 but possibly q<k+1. Numerical analysis predicts that in such cases, the best-case rates in Eq. (8) will be replaced by the following:

(9) ( u - u h ) L 2 C 1 h min { q - 1 , k } min { q , k + 1 } u L 2 , u - u h L 2 C 2 h min { q , k + 1 } min { q , k + 1 } u L 2 , p - p h L 2 C 3 h min { q - 1 , k } min { q - 1 , k } p L 2 .

Similar considerations apply for the Q1×P0 and the stabilized Q1×Q1 combinations; a closer examination yields the following rates that would replace Eqs. (5) and (7):

(10) ( u - u h ) L 2 C 1 h min { q - 1 , 1 } min { q , 2 } u L 2 , u - u h L 2 C 2 h min { q , 2 } min { q , 2 } u L 2 , p - p h L 2 C 3 h min { q - 1 , 1 } min { q - 1 , 1 } p L 2 .

In other words, we will only benefit from the added expense of the Taylor–Hood element with k≥2 if the solution is sufficiently smooth, namely if at least q>k2. The question of whether q>2 indeed for a given situation is one of partial differential equation (PDE) theory and difficult to answer in general without using particular knowledge of η, ρg, and Ω. On the other hand, one can observe convergence rates experimentally for a number of cases of interest, so in some sense, it would be legitimate to ask the following question: what is the regularity index q of typical solutions in geodynamics applications? At the same time, this requires careful convergence studies on problems that are already typically quite challenging to solve on any reasonable mesh, let alone several further refined ones. As a consequence, we cannot answer this question in the generality stated above. Instead, we will approach it below by considering a number of benchmarks that illustrate typical features of geodynamic settings in an abstracted way (in Sect. 5), followed by a model application (in Sect. 6). In particular, the examples in Sect. 5.2 and 5.3 will illustrate cases in which the exact solution is not smooth enough to achieve the optimal convergence rate.

We end this section by noting that all of the estimates shown above guarantee that the error on the left of an inequality decreases at least at the rate shown on the right side, but they do not state that on a given sequence of meshes, the rate might not in fact be better. Indeed, this often happens: for example, if one aligns meshes with a discontinuity in coefficients (as we do for the SolCx benchmark discussed in Sect. 5.2), one often observes optimal rates – or convergence rates between the minimal theoretically guaranteed and the optimal ones – for some elements even if the solution lacks regularity. Actually observing the minimal theoretically guaranteed convergence rate for solutions lacking regularity often requires choosing randomly arranged meshes – a case we will not consider herein.

4 Comments about the use of the Q1×Q1 element in geodynamics computations

Before delving into the details of numerical experiments, let us consider one other theoretical aspect. An interesting complication of geodynamics simulations compared to many other applications of the Stokes equations is that the hydrostatic component of the pressure is often vastly larger than the dynamic pressure, even though only the dynamic component is responsible for driving the flow. As we will discuss in the following, this has no importance when using the Q1×P0 or the Taylor–Hood elements, but it turns out to be rather inconvenient when using a stabilized formulation that contains an artificial compressibility term. This issue is also mentioned in the quote from Arrial and Billen (2013) reproduced in the Introduction and in May et al. (2015).

To illustrate the issue, consider the force balance equation (Eq. 1). We can split the pressure into hydrostatic and dynamic components, p=ps+pd, where we define the hydrostatic pressure via the relationship

(11) z p s = ρ ref ( z ) g z ( z ) ,

coupled with the normalization that ps=0 at the top of the domain. In defining ps this way, we have made the assumption that the vertical component gz of the gravity vector dominates its other components. Furthermore, we have introduced a reference density ρref that somehow reflects a depth-dependent profile. As we will discuss below, there is really no unique or accepted way to define this profile, though one should generally think of it as capturing the bulk of the three-dimensional variation in the density via a one-dimensional function.

By splitting the pressure in this way, Eq. (1) can then be rewritten as follows:

-2ηϵ(u)+pd=ρg-ρrefgzezinΩ.

Since this is the only equation in which the pressure appears, it is obvious that the velocity field so computed is the same whether or not one uses the original formulation solving for u and p or the one solving for u and pd. More concisely, the observation shows that the velocity field so computed does not depend on how one chooses the reference density ρref. The original formulation is recovered by using the simplest choice, ρref=0. As a consequence, many geodynamics codes use formulations that only compute the dynamic pressure pd using a reference density ρref(z). Importantly, however, there is no canonical way for this definition: one might choose a constant reference density, a depth-dependent adiabatic profile, or one computed at each time step by laterally averaging the current three-dimensional density field ρ(x,y,z,t); each of these options – and likely more – have been used in numerical simulations one can find in the literature. In any case, pressure-dependent coefficients such as the density or viscosity are then evaluated by using ps+pd, where pd is computed as part of the solution of the Stokes problem and ps is the hydrostatic pressure defined by Eq. (11) using the particular choice of reference density used by a code. On the other hand, the Aspect code notably always computes the full pressure instead of splitting it in hydrostatic and dynamic components (see the discussion in Kronbichler et al.2012) corresponding to the particular choice ρref=0.

The problem with the stabilized Q1×Q1 formulation – different from the use of the other element choices – is that the velocity field computed from the Stokes solution is not independent of the choice of the reference density. This is because the mass conservation equation is modified by the stabilization term and – in the simple case of a constant viscosity – reads

(12) - u - 1 η Π p d = 0 .

Here, Π=(I-π0) is the operator that corresponds to the stabilization term in Eq. (6). 4

The point of these considerations is that different choices of ρref (including the choice ρref=0 that leads to the original formulation) do have an effect here because they lead to different pd=p-ps for which Πpd is different: that is, the amount of artificial compressibility depends on the splitting of the pressure into static and dynamic pressures. In other words, the discretization errors u-uhL2 and (u-uh)L2 discussed in the previous section will in general depend on the choice of the reference density profile, and the latter will need to be carefully defined in order to lead to acceptable error levels. As we will show in the benchmarking section, the specific choice of ρref in fact has a rather large effect. This is in line with the previously quoted comments in Arrial and Billen (2013).

Let us end this section by commenting on two aspects of why this issue may not be as relevant in other contexts in which stabilized formulations have been used. First, in many important applications of the Stokes equations, the flow is not driven by buoyancy effects but by inflow and outflow boundary conditions (e.g., Turek1999; Zienkiewicz and Taylor2002). Indeed, in those conditions both the density and the gravity vector are generally considered spatially constant, and the choice of reference density and hydrostatic pressure is then obvious and unambiguous. In these cases, computations are always performed with only the dynamic pressure because the hydrostatic pressure does not enter the problem at all except in the rare cases of fluids with pressure-dependent viscosities.

Second, while we have here considered the stabilization first introduced in Dohrmann and Bochev (2004), earlier stabilized formulations used a pressure Laplacian in place of the operator Π above. (See, for example, Brezzi and Pitkäranta1984, or the variation in Silvester and Kechkar1990, as well as the analysis in Bochev et al.2006.) That is, instead of Eq. (12) they used a formulation of the form

(13) - u - c h 2 Δ p = 0 ,

where c is a tuning parameter that also incorporates the viscosity. If one uses this formulation for cases in which the reference density is chosen as a function that is constant in depth – as was often done in earlier mantle convection codes considering the Boussinesq approximation – and if one computes in a Cartesian box with a constant gravity vector g=gez, then ps is a linear function, and consequently Δps=0. In other words, Δp=Δ(p-ps)=Δpd, which implies that the computed velocity field again did not depend on the exact choice of ρref as long as it was chosen constant. This property does not hold for the formulation of Dohrmann and Bochev because ΠpΠ(p-ps)=Πpd for linear pressures ps because Πps≠0: Π subtracts from ps the average value on each cell, leaving a piecewise linear discontinuous function.

Of course, whether one uses the Dohrmann–Bochev formulation (Eq. 12) or the addition of a pressure Laplace as in Eq. (13), the formulation is consistent. That is, as the mesh size h goes to zero, the added stabilization term also goes to zero. In the limit, the numerical solution therefore satisfies the original mass conservation equation. In other words, the limit is independent of the choice of ρref, even though the solutions on a finite mesh are not.

5 Numerical results for artificial benchmarks

In this section, let us present computational results for three analytical problems and a buoyancy-driven flow community benchmark. While the first of these (Sect. 5.1) is simply used to establish the best convergence rates one can hope for in the case of smooth solutions, the remaining test cases were chosen because they illustrate aspects of what we think “typical” solutions of geodynamic applications look like in an abstracted, controlled way. In particular, the “SolCx” benchmark in Sect. 5.2 demonstrates features of solutions in which the mesh can be aligned with sharp features in the viscosity, and the “SolVi” benchmark in Sect. 5.3 does so in the more common case in which the mesh cannot be aligned. Finally, the “sinking block” case in Sect. 5.4 shows a buoyancy-driven situation in which all of the discussions of the previous section on the choice of a reference density will come into play. All of these cases are simple enough that we know (quantitative or qualitative features of) the solution to sufficient accuracy to investigate convergence rigorously.

While these benchmarks provide us with insight that allows us to conjecture which elements may or may not work in practical application, they still are just abstract benchmarks. As a consequence, we will consider an actual geodynamic application in Sect. 6.

All models are run with the Aspect code. We have limited ourselves to two-dimensional cases as we do not expect that three-dimensional models would shed any more light on the conclusions reached. Although Aspect is built for adaptive mesh refinement (AMR), we have chosen not to use this feature in order to reflect the fact that the majority of existing codes use structured meshes.

5.1 The Donea and Huerta benchmark

Let us start our numerical experiments with the simple 2D benchmark presented in Donea and Huerta (2003). The exact definition involves lengthy formulas not worth repeating here, but in short it consists of the following ingredients: (i) the domain is a unit square, (ii) the viscosity and density are set to 1, and (iii) velocity and pressure fields are chosen to correspond to smooth polynomials describing circular flow with no-slip boundary conditions. We then choose an (unphysical) gravity vector field that produces these velocity and pressure fields. This setup produces the smooth solution shown in Fig. 1 for which we would expect that the higher-order Taylor–Hood element is highly accurate.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f01

Figure 1Donea and Huerta benchmark. Velocity (a) and pressure (b) fields obtained on a 32×32 mesh with Q2×Q1 elements.

Download

We verify this in Fig. 2 for the four element choices of interest in this work: Q1×P0, stabilized Q1×Q1, Q2×Q1, and Q2×P-1. Looking at the velocity error, we recover a cubic convergence rate (q=3) for the Q2×Q1 and Q2×P-1 elements and a quadratic convergence rate (q=2) for those choices using the Q1 elements for the velocity. The pressure error is of linear rate for the Q1×P0 element and of quadratic rate for the Q2×Q1 and Q2×P-1 elements. All of these are as expected. For the stabilized Q1×Q1, we obtain the better-than-expected rate of 1.5 already mentioned in Dohrmann and Bochev (2004); see also Sect. 3.

Figure 3 shows the root mean square velocity as a function of the mesh size as obtained with the four elements in question. Again, the second-order elements are more accurate.

These results are not surprising: the solution is smooth, and consequently one would expect to obtain optimal order convergence in all cases. One can carry out similar experiments for the SolKz benchmark (Zhong1996), which also has a smooth solution; we have obtained identical error convergence rates.

Finally, we also investigate the cost associated with solving this problem using the various elements. Fig. 3 shows the number of outer FGMRES iterations (Kronbichler et al.2012) iterations of the Stokes solver as a function of the mesh size.5 This number is nearly constant with increasing resolution for the stable or stabilized elements, while it becomes exceedingly large for the unstable Q1×P0 element, reflecting the fact that lack of LBB stability corresponds to the smallest eigenvalue of the system matrix tending to zero – and thereby driving the condition number to infinity. Indeed, our linear solver does not converge in the 1000 iterations we chose as a limit for the smallest mesh sizes.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f02

Figure 2Donea and Huerta benchmark. Error convergence as a function of the mesh size h. (a) Velocity error ||u-uh||L2. (b) Pressure error ||p-ph||L2. The two leftmost points are missing for Q1×P0 since the solver failed to converge; the data points for Q2×Q1 and Q2×P-1 are on top of each other.

Download

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f03

Figure 3Donea and Huerta benchmark. (a) Root mean square velocity as a function of the mesh size h. The dotted line is the analytical value. (b) Number of FGMRES solver iterations as a function of the mesh size h.

Download

5.2 The SolCx benchmark

The SolCx benchmark is a common benchmark found in many geodynamical papers (e.g., Zhong1996; Duretz et al.2011; Kronbichler et al.2012; Thielmann et al.2014). It uses a discontinuous viscosity profile with a large jump in the viscosity value along the middle of the domain, resulting in a discontinuous pressure field. The domain is a unit square, boundary conditions are free-slip on all edges, and the gravity vector points downwards with |g|=1. The density for SolCx is given by ρ(x,y)=sin(πy)cos(πx) and the viscosity field is such that

η(x,y)=1,if0x0.5106if0.5<x1.

We show the velocity and pressure fields in Fig. 4. The discontinuous jump of the viscosity field by a factor of 106 results in separate convective cells on the left and right sides of the domain, though with vastly different strengths. The pressure also reflects this disjoint behavior.

As in the Donea and Huerta benchmark, we compute the velocity and pressure error convergence for all four elements. Those are shown in Fig. 5. As documented in Kronbichler et al. (2012), the second-order element with discontinuous pressure Q2×P-1 performs better (pressure error convergence is 𝒪(h2)) than its continuous pressure counterpart Q2×Q1 (convergence is only O(h1/2), but the better convergence order with the discontinuous pressure can only be obtained if the discontinuity in the viscosity is aligned with cell boundaries – which is the case here. Also of interest here is the fact that the Q1×P0 outperforms the Q1×Q1 element for both velocity and pressure. All of these observations are readily explained by the fact that a discontinuous pressure can only be approximated well when using discontinuous pressure elements with cell interfaces aligned with the discontinuity in the viscosity.

Figure 6 shows the number of outer FGMRES iterations of the Stokes solver as a function of the mesh size. We find this time that this number is nearly constant with increasing resolution for all four elements. Unsurprisingly the Q1×P0 element requires more iterations than all the others but by less than a factor of 2. The quadratic elements require the same number of iterations, while the stabilized Q1×Q1 requires only half their number: this is surprising, but the conclusions from the previous paragraph remain about it being the least accurate of all four elements here.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f04

Figure 4SolCx benchmark. Velocity (a) and pressure (b) fields obtained on a mesh with a resolution of 32×32 grid with the Q2×Q1 element.

Download

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f05

Figure 5SolCx benchmark. Error convergence as a function of the mesh size h. (a) Velocity error; (b) pressure error.

Download

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f06

Figure 6SolCx benchmark. Number of FGMRES solver iterations as a function of the mesh size h.

Download

5.3 The SolVi (circular inclusion) benchmark

The SolCx benchmark in the previous section allows for aligning mesh interfaces with the discontinuity in the viscosity. This is an artificial situation that will, in general, not happen in actual large-scale geodynamics applications for which the interfaces between materials may be at arbitrary locations and orientations in the domain and may also move with time. An example is the simulation of a cold subducting slab (with correspondingly large viscosity) surrounded by hot low-viscosity mantle material. Consequently, it is worth considering a situation in which it is impractical to align mesh and viscosity interfaces. This is done by the SolVi inclusion benchmark, which solves a problem with a viscosity that is discontinuous along a circle. This in turns leads to a discontinuous pressure along the interface, which is difficult to represent accurately. Using the regular meshes used by a majority of codes, the discontinuity in the viscosity and pressure then never aligns with cell boundaries. Even though Aspect can use arbitrary unstructured meshes (and can also use curved cell edges), we will honor the setup of this benchmark by only considering regular meshes.

Schmid and Podlachikov (2003) derived a simple analytical solution for the pressure and velocity fields for such a circular inclusion under pure shear, and this benchmark is showcased in many publications (Deubelbeiss and Kaus2008; Suckale et al.2010; Duretz et al.2011; Kronbichler et al.2012; Gerya et al.2013; Thielmann et al.2014). The velocity and pressure fields are shown in Fig. 7.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f07

Figure 7SolVi benchmark with inclusion of radius 0.2. Velocity (a) and pressure (b) fields obtained on a 256×256 mesh using Q2×Q1 elements.

Download

A characteristic of the analytic solution is that the pressure is zero inside the inclusion, while outside it follows the relation

(14) p = 4 ϵ ˙ η m ( η i - η m ) η i + η m r i 2 r 2 cos ( 2 θ ) ,

where ηi=103 is the viscosity of the inclusion, ηm=1 is the viscosity of the background medium, r=x2+y2, θ=arctan(y/x), and ϵ˙=1 is the applied strain rate if one were to extend the domain to infinity. The formula above makes it clear that the pressure is discontinuous along the perimeter of the disk, with the jump largest at θ=0,±π2,π.

Deubelbeiss and Kaus (2008) thoroughly investigated this problem with various numerical methods (FEM, FDM), with and without tracers, and conclusively showed how various schemes of averaging the density and viscosity lead to different results. Heister et al. (2017) also come to this conclusion and also considered how averaging the coefficient on each cell affects the number of iterations necessary to solve the linear systems. We repeat these experiments here but with our larger set of different elements. Specifically, results obtained with no averaging inside the element (“No”), arithmetic averaging (“Arith”), geometric averaging (“Geom”), and harmonic averaging (“Harm”) are shown in Fig. 8. We see that (i) all four elements show the same rate of convergence: 𝒪(h) for velocity errors and 𝒪(h0.5) for pressure errors; (ii) harmonic averaging always yields lower errors, validating the findings of Heister et al. (2017); (iii) the number of iterations in the Stokes solver is the lowest for the stabilized Q1×Q1 element; and (iv) this number is not strongly affected by the method of averaging (with the exception of the Q2×P-1 element). The observation that none of the elements reach their optimal convergence rate also supports our decision, briefly mentioned in the “Goals of this paper” part of the Introduction, to not further investigate higher-order Taylor–Hood elements Qk×Qk-1 or Qk×P-(k-1) with k>2: we know from experiments such as the current one that these elements will not yield better convergence orders despite their additional cost.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f08

Figure 8SolVi benchmark. Left to right: Q1×P0, stabilized Q1×Q1, Q2×Q1, and Q2×P-1. Top to bottom: velocity error, pressure error, and number of FGMRES iterations for the Stokes solve. The individual lines in each graph correspond to different ways of averaging coefficients on each cell: dotted lines use the correct unaveraged values of coefficients at each quadrature point; dash-dotted lines compute the arithmetic average of the values at the quadrature points on a cell and use the average for all quadrature points; dashed lines use the geometric average; solid lines use the harmonic average. The gray dotted line in the first two rows indicates 𝒪(h) convergence for velocity and 𝒪(h0.5) for pressure.

Download

Since harmonic averaging yields the lowest errors we select this averaging and now turn to the pressure field for all elements as shown in Fig. 9. We find that the recovered pressures on the line y=1 follow the analytical solution outside the inclusion but are less accurate inside the inclusion where it should be identically zero (Fig. 10).

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f09

Figure 9SolVi benchmark. Pressure field for the Q1×P0, stabilized Q1×Q1, Q2×Q1, and Q2×P-1 elements from left to right and top to bottom at resolution 128×128 with no averaging. Note the different color scales, illustrating the differing size of overshoots and undershoots for the different discretizations.

Download

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f10

Figure 10SolVi benchmark. Pressure on the horizontal ray starting from the center of the inclusion at x=1.

Download

5.4 The sinking block

As discussed in Sect. 4, the stabilized Q1×Q1 element is sensitive to the choice of a reference density profile as not only the computed pressure, but also the computed velocity field, depends on this choice. This is only relevant for buoyancy-driven flows, but because none of the benchmarks shown previously are driven by buoyancy effects in the presence of a background lithostatic pressure to any significant degree, let us next consider a setup in which this is the dominant effect. To this end, we perform an experiment based on a benchmark similar or identical to the ones presented in May and Moresi (2008), Gerya (2019), Thieulot (2011), and Schuh-Senlis et al. (2020).

It consists of a two-dimensional 512×512 km domain filled with a fluid (the “mantle”) of density ρ1=3200 kg m−3 and viscosity η1=1021 Pa s. A square block of size 128×128 km is placed in the domain and is centered at location (xc, yc) = (256, 384 km) so as to ensure that its sides align with cell boundaries at all resolutions, avoiding cases in which the quadrature within one element corresponds to different density or viscosity values. It is filled with a fluid of density ρ2=ρ1+δρ and viscosity η2. The gravity vector points downwards with |g|=10 m s−2. Boundary conditions are free-slip on all sides. The pressure null space is removed by enforcing ΩpdV=0, and only one time step is carried out. The benchmark then solves for the instantaneous pressure and velocity field for this setup.

In a geodynamical context, the block could be interpreted as a detached slab (δρ>0) or a plume head (δρ<0). As such its viscosity and density can vary (a cold slab has a higher effective viscosity than the surrounding mantle, while it is the other way around for a plume head). The block density difference δρ can then vary from a few to several hundred kilograms per cubic meter (kg m−3) to represent a wide array of scenarios. As shown in Appendix A.2 of Thieulot (2011), one can independently vary η1, ρ2, and η2 and measure |vz| for each combination: the quantity ν=|vz|η1/δρ is then found to be a simple function of the ratio η=η2/η1. At high enough mesh resolution all data points collapse onto a single line.

In the following, we will denote as Method 1 the approach whereby we do calculations with the density field as specified above. Method 2 consists of a “reduced” density field from which the quantity ρ1 has been uniformly removed so that the block has a density δρ, while the surrounding fluid has zero density. As discussed above, the two choices will result in different pressure but the same velocity fields.

We have carried out measurements for all four elements with η[10-4:106] and δρ/ρ1{0.25%,1%,4%} corresponding to δρ{8,32,128} kg m−3. Results for ν=f(η) for all elements, the three block density values, and five different mesh resolutions are shown in Fig. 11 for the two methods.

When using the full density, we see that all elements, with the exception of the stabilized Q1×Q1 element, yield results which align on a single curve on the plots once sufficient resolution is reached. We find that measurements pertaining to a given resolution but different δρ are always collapsed onto a single line. It is worth noticing that the Q2×P-1 element results seem to be the least resolution-dependent. On the other hand, the stabilized Q1×Q1 element yields very anomalous results which are orders of magnitude off at all resolutions, especially for η1/η21. In addition, we find that for this element, the value of δρ strongly affects the measurements, as expected based on the discussions in Sect. 4; as a result, the curves for the same mesh resolution but different δρ2 no longer coincide (see Fig. 11b).

When reduced densities are used results are unchanged for the stable elements (only Q2×Q1 results are shown in Fig. 11e), and the results for the stabilized Q1×Q1 results are substantially improved. For values η1/η2<1 we see that all results align on the expected curve, but this is far from true for η1/η21 even at high resolution.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f11

Figure 11Sinking block benchmark. (a–d) ν=|vz|η1/δρ as a function of η=η2/η1 as obtained with the four elements with full density; (e, f) same with reduced density for only two element types. Legend: 16×16 resolution, 32×32 resolution, 64×64 resolution, 128×128 resolution, 256×256 resolution. Colors represent the element used. For each mesh resolution, we show separate curves for δρ/ρ1{0.25%,1%,4%}; for all but the stabilized Q1×Qq element, these curves coincide. Note the different y axis used for the stabilized Q1×Q1 element in (b) and (f).

Download

In Fig. 12 we show the velocity field in the case η=10-4 (i.e., the viscosity of the block is 10 000 times smaller than the surrounding mantle) and δρ=8 kg m−3. When the Q2×Q1 element is employed in conjunction with Method 1 we see in Fig. 12a that the velocity field is strongest inside the block with a maximum value of about 5 mm yr−1 in its center. We see that the Q2×Q1 and Q2×P-1 elements yield nearly identical results (Fig. 12b), so we consider this to be the correct solution of the physical experiment. The same setup with the stabilized Q1×Q1 (left half of Fig. 12c) yields a velocity field that is also maximal in the middle of the block but nearly 1000 times larger in amplitude. If we now switch to Method 2 (right half of Fig. 12c) the amplitude of the velocity is reduced by 2 orders of magnitude, but it is still much too large compared to the true solution.

These observations illustrate the unreliable nature of the results obtained with stabilized Q1×Q1 elements in the context of buoyancy-driven flows. Looking at Fig. 11f we see that increasing the resolution to 512×512 or 1024×1024 would probably yield the expected curve, but such resolutions are intractable in three dimensions and better results can be obtained at much lower resolutions with other elements.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f12

Figure 12Sinking block benchmark with δρ/ρ=0.25 % and η=104 on a 256 × 256 element mesh. (a) Viscosity and velocity field. (b) Velocity field obtained with the Q2×Q1 element (left of vertical white line) and Q2×P-1 element (right of vertical line), both using full density; (c) velocity field obtained with stabilized Q1×Q1 with full density (left) and stabilized Q1×Q1 with reduced density (right).

Download

Finally, in Fig. 13 we plot the normalized pressure p=p/(δρgLb) at the center of the block (where Lb is the size of the block) as a function of the viscosity ratio η in the case in which a reduced density field is used. For the Q2×Q1 and the stabilized Q1×Q1 elements, the pressure at this point is uniquely defined since the elements have continuous pressures. For the other two elements the pressure is discontinuous across element edges, and it is therefore not uniquely defined at our measurement point. We have then chosen to measure it at four locations corresponding to (xc±δx,yc±δy), where δx=δy=0.1 m, and show the normalized pressures at all four of these locations in the figure. For the Q2×P-1 element, the difference between these values is negligible but not so for the Q1×P0 for which the pressure is a stairstep function with very different values depending on which step an evaluation point is on. The distance between the two lines for the Q1×P0 element decreases with mesh refinement (indicating convergence of the pressure to the true value), but only slowly and, matching the observation in Sect. 5.1, at the cost of not only a fine mesh but also very large numbers of linear solver iterations.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f13

Figure 13Sinking block benchmark. Normalized pressure p/(δρgLb) in the center of the block as a function of the viscosity ratio η. These computations use a 256 × 256 mesh and the reduced density. For the Q1×P0 and Q2×P-1 elements with their discontinuous pressure spaces, we show the normalized pressures at several slightly displaced points (xc±δx,yc±δy). For the Q2×P-1 element, the difference is not visible, but for the Q1×P0 this yields the two very different red curves; this is due to the fact that the pressure for this element forms a stairstep function for which two of the evaluation points are on a lower and two on a higher step.

Download

In addition to the slow convergence of the Q1×P0 element, the most striking conclusion of this benchmark is that for buoyancy-driven flows, the solution obtained using the stabilized Q1×Q1 element on typical meshes not only strongly depends on the choice of the otherwise arbitrary reference density, but is also almost entirely unreliable even on meshes that are already quite fine.

6 Numerical results for a model application

While the previous sections have built our intuition for which element may actually work in the context of geodynamics applications, they have only done so through abstract and idealized benchmarks. It is therefore interesting to investigate what one would find in more realistic setups, and consequently we have also investigated convergence for a situation still sufficiently simple that numerical simulations can reach reasonably high accuracy but that has more of the complexity one would generally find in “real” simulations. Given that the previous examples have highlighted the fact that the stabilized Q1×Q1 element has difficulties with the pressure approximation, we are specifically interested in a situation in which the material behavior is pressure-dependent.

To this end, we consider an example of continental extension here. The setup is similar to ones that can be found in Huismans and Beaumont (2002), Jammes and Huismans (2012), Naliboff and Buiter (2015), and Brune et al. (2017), and we specifically use the one that can be found in the “continental extension” cookbook of the manual of the Aspect code (Bangerth et al.2022). The situation we model here is characterized by the following building blocks: on a domain of size 400 km × 100 km, we impose an extensional horizontal velocity component of ±0.25 cm yr−1 on the sides and a vertical upward velocity of 0.125 cm yr−1 at the bottom. The tangential components are left free. At the top, we allow for a free boundary. More interestingly, we use a pressure- and temperature-dependent viscoplastic rheology of Drucker–Prager type with parameters for viscous deformation based on dislocation creep flow laws:

(15) η disl = A - 1 / n ε ˙ - 1 + 1 / n exp Q + p V n R T ,

where A is a material constant, n is an index typically between 3 and 4, Q is the activation energy, V is the activation volume, R the gas constant, T the temperature, and ε˙ is the effective strain rate (the square root of the second invariant of the corresponding tensor). Stresses are limited plastically at a yield stress σy=Ccos(ϕ)+Psin(ϕ) via a Drucker–Prager criterion where C is the cohesion and ϕ the angle of friction. We use distinct values for some of these parameters in the initially 20 km thick upper crust (wet quartzite), an initially 10 km thick lower crust (wet anorthite), and the mantle (dry olivine), which initially occupies the remaining 70 km in depth. Deformation is seeded by a weak area within the mantle lithosphere. We only carry out a single time step as obtained with a CFL number of 0.5.

A complete and concise description of this setup has more parameters than are worth spelling out in detail here. For a detailed description, see Naliboff and Buiter (2015) and the section of the Aspect manual along with the corresponding input files. For the purposes of this paper, the important part is that both the yield stress and the dislocation creep rheology depend on the pressure; as a consequence, we can anticipate that elements that result in poor pressure accuracy may not yield accurate simulations in general.

This setup produces localized shear zones that accommodate the majority of the deformation. Figure 14 illustrates the structure of the resulting solution. Each panel of the figure shows in its left half the solution produced by the stabilized Q1×Q1 element and its right half that produced by the Taylor–Hood Q2×Q1 element. Because the solution is symmetric, the two halves should be mirror images. It is, however, clear from several of the panels that this is not the case: the Q1×Q1 element produces large artifacts at depth where the pressure is large and the pressure dependence of the material strong.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f14

Figure 14Application example. (a) Vertical component of the velocity field; (b) pressure field; (c) effective viscosity field; (d) effective strain rate field. In all panels, the left half (left of the vertical line) shows data obtained with the stabilized Q1×Q1 element, whereas the right half shows results obtained with the Q2×Q1 element. Note the large deviations between the two towards the bottom of the domain. All results were obtained on an 800×200 mesh with a cell size of 0.5 km.

Download

This effect is also demonstrated in a different way in Fig. 15 where we show laterally averaged quantities for the different elements and different mesh resolutions. Even though it is clear from Fig. 14 that lateral averaging should result in a better approximation (than pointwise evaluations) of the correct quantities for a given depth, Fig. 15 shows that even the average is far from correct. On the other hand, the figure shows that with increasing mesh resolution, the solutions produced by the Q1×Q1 seem to converge to the solutions generated by the other elements – albeit very slowly and at what one might consider an unacceptable cost.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f15

Figure 15Application example. (a) Laterally averaged effective viscosity; (b) laterally averaged velocity magnitude. The line styles chosen become increasingly assertive (dotted to solid lines) as mesh resolution is increased.

Download

To investigate the origin of these convergence problems of the Q1×Q1 element, one should recall that the model is nonlinear. As a consequence, the artifacts may be related to the discretization or to a failure of the nonlinear iteration – and the two may be connected. All of the solutions we show were taken after 100 Picard iterations to resolve the nonlinearity of the model, with nonlinear convergence shown in Fig. 16. (One could accelerate convergence by using a Newton solver – Fraters et al.2019 – but this is not relevant for the work herein.) Looking at the evolution of the nonlinear residual during these iterations, we see that it decreases quickly and for most element choices then plateaus at about 10−5 relative to the starting residual. In contrast, for the stabilized Q1×Q1 element, increasing the mesh resolution yields lower nonlinear residuals – but even on the finest mesh, the nonlinear residuals are still substantially worse than for any of the other elements, with no apparent progress after about 20 iterations. Of course, we are not the first to observe that convergence is hard to come by for these sorts of problems (see, for example, Spiegelman et al.2016), and recent approaches to regularize visco(–elasto)–plastic deformation by Duretz et al. (2020) and Jacquey et al. (2021) have been found to improve the convergence behavior of the nonlinear solvers.

https://se.copernicus.org/articles/13/229/2022/se-13-229-2022-f16

Figure 16Application example. Nonlinear residual as a function of nonlinear iteration step for all four elements and for different mesh resolutions.

Download

Our interpretation of this experiment is that the inability of the Q1×Q1 element to generate accurate pressure fields leads to values for the pressure-dependent rheology that are so far away from their correct values – and, indeed, from the values on nearby cells – that they greatly increase the condition number of the linear systems that have to be solved in each nonlinear iteration. The resulting difficulty of solving these Picard steps accurately then affects the speed with which the nonlinear residual is reduced by the Picard iteration to the point at which the condition number is so large that convergence can no longer be achieved. Only mesh refinement, with the attendant increased accuracy of the pressure solution (and, consequently, a more accurate viscosity), helps to restore the ability to actually solve this problem to small nonlinear residuals.

7 Conclusions

In this contribution, we have provided a side-by-side comparison of the most widely used quadrilateral finite elements. As outlined in the Introduction, most finite-element solvers used in the geodynamics community rely on one or the other of these. At the same time, we are not aware of a comprehensive comparison of their relative strengths – or their weaknesses, as they may be.

Using the artificial linear benchmarks discussed in Sect. 5, we can infer that when the solution is smooth, the Taylor–Hood variations Q2×Q1 and Q2×P-1 provide far better accuracy than the lower-order elements Q1×P0 and the stabilized Q1×Q1. This advantage is largely lost when one considers problems in which the viscosity is discontinuous. Since we believe that the real Earth has relatively narrow phase transition zones where the viscosity may jump by large factors, benchmarks like the SolVi one in Sect. 5.3 are relevant and illuminate important aspects.

From these considerations, one may conclude that the Taylor–Hood variations are too expensive – in terms of their number of degrees of freedom and the attendant memory and CPU time cost. However, we believe that this is not so.

  • For buoyancy-driven flows such as the sinking block benchmark in Sect. 5.4, the stabilized Q1×Q1 element is largely unable to reproduce the correct solution and, furthermore, depends on using a formulation in which one subtracts a reference density from the actual density; this is equivalent to defining a hydrostatic pressure profile and only attempting to solve for the “dynamic” component of the pressure. Crucially, however, there are many ways of defining such a reference density, neither of which is canonical and “obviously right” in complex mantle convection simulations. Since the solution obtained with the stabilized Q1×Q1 element strongly depends on the specific choice of reference density, we conclude that the element cannot be made robust for the kinds of flows we encounter in real mantle convection situations. We have also verified this assertion using an application in which we consider continental extension (Sect. 6) and in which the inability to produce accurate pressure solutions also greatly affects the convergence of the nonlinear solver to the point at which the computed solution must be considered unusable. We have shown that these errors can be reduced when choosing very fine meshes, but the attendant cost is unacceptable when compared with that of using other elements on far coarser meshes.

    There are other considerations to believing that the procedure of trying to subtract a reference density (or a hydrostatic pressure) cannot be a successful strategy. For example, simulations of free or deformable surfaces (at the Earth's surface as well as at the core–mantle boundary) require accurate knowledge of the total pressure. This is true for coupled formulations of flow and surface deformation (Rose et al.2017) as well as approaches such as the “sticky air” method (Crameri et al.2012). But similar considerations also apply to nonlinear material laws in which the pressure enters the viscosity or, more commonly, phase computations that determine the density and other thermodynamic material properties from the pressure and the temperature. Indeed, one could conjecture that the stabilized Q1×Q1 element would also fail for compressible Stokes simulations, though we have not verified this here.

    We conclude from these thoughts that the stabilized Q1×Q1 element is not a viable choice for mantle convection simulations. It is important to point out that the cases we consider to be crucial here – buoyancy-driven flows, large hydrostatic pressures, and pressure-dependent rheologies – are uncommon in most of the engineering applications for which the Q1×Q1 was originally developed; as a consequence, it is not surprising that what we find here contradicts substantial parts of the engineering literature wherein the element remains widely used.

  • We believe that the Q1×P0 element is also not a viable choice. As shown by several of the analytical benchmarks, the errors that result from using this element can be orders of magnitude larger than the corresponding errors that result from the Taylor–Hood-type elements. This is no longer the case once we consider discontinuous viscosity profiles (see Sect. 5.3), but this element is also unable to accurately solve the buoyancy-driven case discussed in Sect. 5.4. Furthermore, as pointed out before, this element is not LBB-stable, which, despite considerable efforts in the past decades, has limited its use in combination with iterative methods: because of the corresponding condition number increase, the number of iterations is found to grow in a somewhat unpredictable manner with an increase in resolution. This may explain why, despite the Citcom codes' success over 2 decades with studies based on models counting up to  100 million elements on several hundred processors (e.g., Jadamec and Billen2012), the current generation of massively parallel codes relies on either stable (Kronbichler et al.2012; May et al.2015) or stabilized elements (Burstedde et al.2013), or they use the finite-difference method (Kaus et al.2016).

In summary, we think that the Taylor–Hood variations Q2×Q1 and Q2×P-1 present the best compromise for robust mantle convection and crustal dynamics simulations based on the finite-element method. This is not because these elements are “obviously better” than the others but due more to a “last man standing” argument: the other choices simply disqualified themselves by failing to provide adequate accuracy in one situation or another. At the same time, the lack of regularity one expects of typical scenarios also implies that we should not expect higher-order Taylor–Hood elements Qk+1×Qk or Qk+1×P-k with k>2 to provide substantially better accuracy compared to their much higher computational cost. Although we have only shown results for two-dimensional simulations, experience – including the experience with the Aspect code used here that solves two- and three-dimensional problems within the same framework – suggests that all of these considerations would also apply to the three-dimensional (hexahedral) analogs of the ones we have used.

The experiments we have shown do not provide clear guidance on whether one should use the Q2×Q1 or Q2×P-1 element. But other considerations can provide such guidance. Most notably, the elements with discontinuous pressure elements (namely, the Q2×P-1 but also the Q1×P0 elements) have the “local conservation” property for which the velocity satisfies

Kuh=Knuh=0

on every cell K of the mesh, a property also satisfied by the exact solution. Local conservation is useful when considering that the velocity computed in geodynamics models is often used in a second step to advect both the temperature field and chemical compositions (see, for example, Schubert et al.2001). A comprehensive investigation of the interplay of local conservation and transport can be found in Dawson et al. (2004).

Of course, the choices we have considered here are not the only ones. One could, for example, consider “simplicial” (triangular and tetrahedral) elements instead of the quadrilateral and hexahedral ones we have used here. Indeed, some existing mantle convection codes use this strategy. One successful example is the TERRA-NEO code that uses equal-order linear tetrahedra (Gmeiner et al.2015; Weismüller et al.2015) stabilized by means of a pressure-stabilization approach based on the addition of linear least-squares terms (the “PSPG” approach, see Brezzi and Douglas1988; Elman et al.2014); other examples include Fluidity (Davies et al.2011), MILAMIN (Dabrowski et al.2008), and LaCoDe (de Montserrat et al.2019). While we have not evaluated simplicial elements, one might conjecture that many of the same conclusions would also hold: the unstable P1×P0 provides low accuracy and is unstable, the stabilized P1×P1 has difficulties with buoyancy-driven flows and large hydrostatic pressures, and the Taylor–Hood element P2×P1 is expensive but robust.

Finally, there are other more exotic elements one could work with. Examples include the Rannacher–Turek element (Rannacher and Turek1992), the Crouzeix–Raviart element (Crouzeix and Raviart1973; Dabrowski et al.2008), or the DSSY element (Douglas et al.1999). We have not investigated these kinds of choices for four reasons: (i) the paper at hand is long enough as it stands; (ii) these elements are not widely used, both within and outside our community; (iii) many of these elements are difficult to implement in one regard or another, including complications with boundary conditions and with dealing with unstructured and possibly curvilinear cells; and finally, (iv) the elements mentioned above are not as widely available or completely implemented in common software frameworks, and their use thus requires substantial additional implementation work.

While we have not investigated these two possible directions for alternatives to the elements we have considered, we think that such studies would be interesting. We hope that our careful choice of test cases might also be useful to such studies.

Code availability

Aspect is an open-source code licensed under the GNU Public License (GPL) version 2 or later. It is available at https://aspect.geodynamics.org/ (ASPECT developers2022). Version 2.2.0-pre (master, commit hash 6b134ad4c) was used for this work, and the corresponding input files for the benchmarks are already available in the current distribution and discussed in the software's manual.

Author contributions

CT conceived the study and ran all models. WB implemented the stabilized Q1×Q1 element in Aspect. Both authors discussed the results and jointly wrote the paper.

Competing interests

The contact author has declared that neither they nor their co-author has any competing interests.

Disclaimer

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Acknowledgements

The authors thank Dave May, Matthew Knepley, and an anonymous reviewer for their comments that have helped improve the paper. We thank the Computational Infrastructure for Geodynamics (http://geodynamics.org, last access: 21 June 2021) for their support of the Aspect code. Cedric Thieulot also wishes to thank Riad Hassani for his help at the very early stages of this work. Wolfgang Bangerth gratefully acknowledges support by the National Science Foundation.

Financial support

CIG is funded by the National Science Foundation under award EAR-1550901. Additional support was provided by the National Science Foundation through awards EAR-1550901 and OAC-1835673 as part of the Cyberinfrastructure for Sustained Scientific Innovation (CSSI) program, as well as EAR-1925595.

Review statement

This paper was edited by Susanne Buiter and reviewed by Dave May, Matthew Knepley, and one anonymous referee.

References

Alisic, L., Gurnis, M., Stadler, G., Burstedde, C., and Ghattas, O.: Multi-scale dynamics and rheology of mantle flow with plates, J. Geophys. Res., 117, B10402, https://doi.org/10.1029/2012JB009234, 2012. a

Arndt, D., Bangerth, W., Davydov, D., Heister, T., Heltai, L., Kronbichler, M., Maier, M., Pelteret, J.-P., Turcksin, B., and Wells, D.: The deal. II finite element library: Design, features, and insights, Comput. Math. Appl., 81, 407–422, https://doi.org/10.1016/j.camwa.2020.02.022, 2020. a

Arrial, P.-A. and Billen, M.: Influence of geometry and eclogitization on oceanic plateau subduction, Earth Planet. Sc. Lett., 363, 34–43, https://doi.org/10.1016/j.epsl.2012.12.011, 2013. a, b, c, d

ASPECT developers: ASPECT: Advanced Solver for Problems in Earth's ConvecTion, available at: https://aspect.geodynamics.org/, last access: 17 January 2022. a

Bangerth, W., Hartmann, R., and Kanschat, G.: A General-Purpose Object-Oriented Finite Element Library, ACM T. Math. Software, 33, 24–51, https://doi.org/10.1145/1268776.1268779, 2007. a

Bangerth, W., Dannberg, J., Fraters, M., Gassmöller, R., Glerum, A., Heister, T., Myhill, B., and Naliboff, J.: ASPECT: Advanced Solver for Problems in Earth’s ConvecTion, Computational Infrastructure for Geodynamics, available at: https://www.math.clemson.edu/~heister/manual.pdf, last access: 17 January 2022. a

Bochev, P. B., Dohrmann, C. R., and Gunzburger, M. D.: Stabilization of Low-order Mixed Finite Elements for the Stokes Equations, SIAM Journal on Numerical Analysis, 44, 82–101, https://doi.org/10.1137/s0036142905444482, 2006. a, b

Boffi, D. and Gastaldi, L.: On the quadrilateral Q2–P1 element for the Stokes problem, Int. J. Numer. Meth. Fl., 39, 1001–1011, 2002. a

Boffi, D., Cavallini, N., Gardini, F., and Gastaldi, L.: Local Mass Conservation of Stokes Finite Elements, J. Sci. Comput., 52, 383–400, https://doi.org/10.1007/s10915-011-9549-4, 2011. a

Braun, J., Thieulot, C., Fullsack, P., DeKool, M., and Huismans, R.: DOUAR: a new three-dimensional creeping flow model for the solution of geological problems, Phys. Earth. Planet. Int., 171, 76–91, 2008. a

Brezzi, F. and Douglas, J.: Stabilised mixed methods for the Stokes problem, Numer. Math., 53, 225–235, 1988. a

Brezzi, F. and Pitkäranta, J.: On the stabilization of finite element approximations of the Stokes equations, Vol. 10, Notes on numerical fluid mechanics, edited by: Hackbusch, W., 11–19, Vieweg+Teubner Verlag, https://doi.org/10.1007/978-3-663-14169-3_2, 1984. a

Brune, S., Heine, C., Clift, P. D., and Pérez-Gussinyé, M.: Rifted margin architecture and crustal rheology: reviewing Iberia-Newfoundland, central South Atlantic, and South China sea, Mar. Petrol. Geol., 79, 257–281, 2017. a

Burstedde, C., Ghattas, O., Stadler, G., Tu, T., and Wilcox, L.: Parallel scalable adjoint-based adaptive solution of variable-viscosity Stokes flow problems, Comput. Method. Appl. M., 198, 1691–1700, https://doi.org/10.1016/j.cma.2008.12.015, 2009. a, b

Burstedde, C., Stadler, G., Alisic, L., Wilcox, L., Tan, E., Gurnis, M., and Ghattas, O.: Large-scale adaptive mantle convection simulation, Geophy. J. Int., 192, 889–906, https://doi.org/10.1093/gji/ggs070, 2013. a, b

Cerpa, N., Hassani, R., Gerbault, M., and Prévost, J.-H.: A fictitious domain method for lithosphere-asthenosphere interaction: Application to periodic slab folding in the upper mantle, Geochem. Geophy. Geosy., 15, 1852–1877, https://doi.org/10.1002/2014GC005241, 2014. a

Cerpa, N., Araya, R., Gerbault, M., and Hassani, R.: Relationship between slab dip and topography segmentation in an oblique subduction zone: Insights from numerical modeling, Geophys. Res. Lett., 42, 5786–5795, https://doi.org/10.1002/2015GL064047, 2015. a

Cerpa, N., Guillaume, B., and Martinod, J.: The interplay between overriding plate kinematics, slab dip and tectonics, Geophys. J. Int., 215, 1789–1802, 2018. a

Clevenger, T., Heister, T., Kanschat, G., and Kronbichler, M.: A flexible, parallel, adaptive geometric multigrid method for FEM, ACM T. Math. Software, 47, 7, https://doi.org/10.1145/3425193, 2020. a

Crameri, F., Schmeling, H., Golabek, G., Duretz, T., Orendt, R., Buiter, S., May, D., Kaus, B., Gerya, T., and Tackley, P.: A comparison of numerical surface topography calculations in geodynamic modelling: an evaluation of the “sticky air” method, Geophys. J. Int., 189, 38–54, 2012. a

Crouzeix, M. and Raviart, P.-A.: Conforming and nonconforming finite element methods for solving the stationary Stokes equations I, RAIRO, 7, 33–75, 1973. a

Dabrowski, M., Krotkiewski, M., and Schmid, D.: MILAMIN: Matlab based finite element solver for large problems, Geochem. Geophy. Geosy., 9, Q04030, https://doi.org/10.1029/2007GC001719, 2008. a, b

Davies, D., Wilson, C., and Kramer, S.: Fluidity: A fully unstructured anisotropic adaptive mesh computational modeling framework for geodynamics, Geochem. Geophy. Geosy., 12, Q06001, https://doi.org/10.1029/2011GC003551, 2011. a

Dawson, C., Sun, S., and Wheeler, M. F.: Compatible algorithms for coupled flow and transport, Comput. Method. Appl. M., 193, 2565–2580, 2004. a

de Montserrat, A., Morgan, J. P., and Hasenclever, J.: LaCoDe: a Lagrangian two-dimensional thermo-mechanical code for large-strain compressible visco-elastic geodynamical modeling, Tectonophysics, 767, 228173, https://doi.org/10.1016/j.tecto.2019.228173, 2019. a

Deubelbeiss, Y. and Kaus, B.: Comparison of Eulerian and Lagrangian numerical techniques for the Stokes equations in the presence of strongly varying viscosity, Phys. Earth Planet. In., 171, 92–111, https://doi.org/10.1016/j.pepi.2008.06.023, 2008. a, b

Dohrmann, C. and Bochev, P.: A stabilized finite element method for the Stokes problem based on polynomial pressure projections, Int. J. Num. Meth. Fluids, 46, 183–201, https://doi.org/10.1002/fld.752, 2004. a, b, c, d, e, f, g, h

Donea, J. and Huerta, A.: Finite Element Methods for Flow Problems, John Wiley & Sons, ISBN 978-0-471-49666-3, 2003. a, b, c

Douglas, J., Santos, J. E., Sheen, D., and Ye, X.: Nonconforming Galerkin methods based on quadrilateral elements for second order elliptic problems, ESAIM: Math. Model. Num., 33, 747–770, 1999. a

Duretz, T., May, D., Gerya, T., and Tackley, P.: Discretization errors and free surface stabilisation in the finite difference and marker-in-cell method for applied geodynamics: A numerical study, Geochem. Geophy. Geosy., 12, Q07004, https://doi.org/10.1029/2011GC003567, 2011. a, b

Duretz, T., de Borst, R., Yamato, P., and Le Pourhiet, L.: Towards robust and predictive geodynamic modelling: the way forward in frictional plasticity, Geophys. Res. Lett., 47, e2019GL086027, https://doi.org/10.1029/2019GL086027, 2020. a

Elman, H., Silvester, D., and Wathen, A.: Finite Elements and Fast Iterative Solvers, Oxford Science Publications, ISBN 978-0-19-967879-2, 2014. a, b, c, d, e

Fraters, M., Bangerth, W., Thieulot, C., Glerum, A., and Spakman, W.: Efficient and Practical Newton Solvers for Nonlinear Stokes Systems in Geodynamic Problems, Geophys. J. Int., 218, 873–894, https://doi.org/10.1093/gji/ggz183, 2019. a

Fullsack, P.: An arbitrary Lagrangian-Eulerian formulation for creeping flows and its application in tectonic models, Geophys. J. Int., 120, 1–23, https://doi.org/10.1111/j.1365-246X.1995.tb05908.x, 1995. a

Gerya, T.: Numerical Geodynamic Modelling, 2nd Edn., Cambridge University Press, ISBN 978-1-107-14314-2, 2019. a

Gerya, T., May, D., and Duretz, T.: An adaptive staggered grid finite difference method for modeling geodynamic Stokes flows with strongly variable viscosity, Geochem. Geophy. Geosy., 14, 1200–1225, https://doi.org/10.1002/ggge.20078, 2013. a

Gmeiner, B., Rüde, U., Stengel, H., Waluga, C., and Wohlmuth, B.: Performance and scalability of hierarchical hybrid multigrid solvers for Stokes systems, SIAM J. Sci. Comput., 37, C143–C168, https://doi.org/10.1137/130941353, 2015. a

Gresho, P. and Sani, R.: Incompressible flow and the Finite Element Method, vol II, John Wiley and Sons, Ltd, ISBN 978-0471492504, 2000. a

Gresho, P., Chan, S., Christon, M., and Hindmarsch, A.: A little more on stabilised Q1Q1 for transient viscous incompressible flow, Int. J. Numer. Meth. Fl., 21, 837–856, 1995. a

Heister, T., Dannberg, J., Gassmöller, R., and Bangerth, W.: High Accuracy Mantle Convection Simulation through Modern Numerical Methods. II: Realistic Models and Problems, Geophys. J. Int., 210, 833–851, https://doi.org/10.1093/gji/ggx195, 2017. a, b, c

Huismans, R. and Beaumont, C.: Complex rifted continental margins explained by dynamical models of depth-dependent lithospheric extension, Geology, 30, 211–214, 2002. a

Jacquey, A. B., Rattez, H., and Veveakis, M.: Strain localization regularization and patterns formation in rate-dependent plastic materials with multiphysics coupling, J. Mech. Phys. Solids, 152, 104422, https://doi.org/10.1016/j.jmps.2021.104422, 2021. a

Jadamec, M. and Billen, M.: The role of rheology and slab shape on rapid mantle flow: Three-dimensional numerical models of the Alaska slab edge, J. Geophys. Res.-Sol. Ea., 117, B02304, https://doi.org/10.1029/2011JB008563, 2012. a

Jammes, S. and Huismans, R.: Structural styles of mountain building: Controls of lithospheric rheologic stratification and extensional inheritance, J. Geophys. Res., 117, B10403, https://doi.org/10.1029/2012JB009376, 2012. a

John, V.: Finite Element Methods for Incompressible Flow Problems, Springer, https://doi.org/10.1007/978-3-319-45750-5, 2016. a, b

Kaus, B., Mühlhaus, H., and May, D.: A stabilization algorithm for geodynamic numerical simulations with a free surface, Phys. Earth Planet. In., 181, 12–20, https://doi.org/10.1016/j.pepi.2010.04.007, 2010. a

Kaus, B., Popov, A., Baumann, T., Pusok, A., Bauville, A., Fernandez, N., and Collignon, M.: Forward and Inverse Modelling of Lithospheric Deformation on Geological Timescales, 11–12 February 2016, NIC Symposium 2016, Forschungszentrum Jülich GmbH, John von Neumann Institute for Computing (NIC), 299–307, 2016. a

King, S., Raefsky, A., and Hager, B.: ConMan: Vectorizing a finite element code for incompressible two-dimensional convection in the Earth’s mantle, Phys. Earth Planet. In., 59, 195–208, https://doi.org/10.1016/0031-9201(90)90225-M, 1990. a

Kronbichler, M., Heister, T., and Bangerth, W.: High accuracy mantle convection simulation through modern numerical methods, Geophys. J. Int., 191, 12–29, https://doi.org/10.1111/j.1365-246X.2012.05609.x, 2012. a, b, c, d, e, f, g, h, i

Le Pourhiet, L., Huet, B., May, D., Labrousse, L., and Jolivet, L.: Kinematic interpretation of the 3D shapes of metamorphic core complexes, Geochem. Geophy. Geosy., 13, Q09002, https://doi.org/10.1029/2012GC004271, 2012. a

Lechmann, S., May, D., Kaus, B., and Schmalholz, S.: Comparing thin-sheet models with 3-D multilayer models for continental collision, Geophys. J. Int., 187, 10–33, 2011. a

Lehmann, R., Lukacova-Medvidova, M., Kaus, B., and Popov, A.: Comparison of continuous and discontinuous Galerkin approaches for variable-viscosity Stokes flow, Z. Angew. Math. Mech., 96, 733–746, https://doi.org/10.1002/zamm.201400274, 2015. a

Leng, W. and Zhong, S.: Implementation and application of adaptive mesh refinement for thermochemical mantle convection studies, Geochem. Geophy. Geosy., 12, Q04006, https://doi.org/10.1029/2010GC003425, 2011. a

Matthies, G. and Tobiska, L.: The Inf-Sup Condition for the Mapped Qk-Pk-1disc Element in Arbitrary Space Dimensions, Computing, 69, 119–139, https://doi.org/10.1007/s00607-002-1451-3, 2002. a

May, D. and Moresi, L.: Preconditioned iterative methods for Stokes flow problems arising in computational geodynamics, Phys. Earth Planet. In., 171, 33–47, https://doi.org/10.1016/j.pepi.2008.07.036, 2008. a, b

May, D., Brown, J., and Le Pourhiet, L.: A scalable, matrix-free multigrid preconditioner for finite element discretizations of heterogeneous Stokes flow, Comput. Method. Appl. M., 290, 496–523, https://doi.org/10.1016/j.cma.2015.03.014, 2015. a, b, c, d

McNamara, A. K. and Zhong, S.: Thermochemical structures within a spherical mantle: Superplumes or piles?, J. Geophys. Res.-Sol. Ea., 109, B07402, https://doi.org/10.1029/2003JB002847, 2004. a

Mishin, Y.: Adaptive multiresolution methods for problems of computational geodynamics, PhD thesis, ETH Zurich, https://doi.org/10.3929/ethz-a-007347901, 2011. a

Moresi, L. and Gurnis, M.: Constraints on the lateral strength of slabs from three-dimensional dynamic flow models, Earth Planet. Sc. Lett., 138, 15–28, https://doi.org/10.1016/0012-821X(95)00221-W, 1996. a

Moresi, L., Dufour, F., and Mühlhaus, H.: A Lagrangian integration point finite element method for large deformation modeling of visco-elastic geomaterials, J. Comput. Phys., 184, 476–497, https://doi.org/10.1016/S0021-9991(02)00031-1, 2003. a, b

Moresi, L., Landry, W., Hodkison, L., Turnbull, R., Lemiale, V., May, D., Stegman, D., Velic, M., Sunter, P., and Giordani, J.: Gale v2.0.1, Computational Infrastructure for Geodynamics [software], available at: https://geodynamics.org/cig/software/gale/ (last access: 17 January 2022), 2012. a

Naliboff, J. and Buiter, S.: Rift reactivation and migration during multiphase extension, Earth Planet. Sc. Lett., 421, 58–67, 2015. a, b

Norburn, S. and Silvester, D.: Fourier analysis of stabilized Q1-Q1 mixed finite element approximation, SIAM J. Numer. Anal., 39, 817–833, https://doi.org/10.1137/S0036142999362274, 2001. a

O'Neill, C., Moresi, L., Müller, D., Albert, R., and Dufour, F.: Ellipsis 3D: a particle-in-cell finite element hybrid code for modelling mantle convection and lithospheric deformation, Comput. Geosci., 32, 1769–1779, 2006. a

Plunder, A., Thieulot, C., and van Hinsbergen, D. J. J.: The effect of obliquity on temperature in subduction zones: insights from 3-D numerical modeling, Solid Earth, 9, 759–776, https://doi.org/10.5194/se-9-759-2018, 2018. a

Popov, A. and Sobolev, S.: SLIM3D: a tool for three-dimensional thermomechanical modelling of lithospheric deformation with elasto-visco-plastic rheology, Phys. Earth Planet. In., 171, 55–75, https://doi.org/10.1016/j.pepi.2008.03.007, 2008. a, b

Rannacher, R. and Turek, S.: Simple Nonconforming Quadrilateral Stokes Element, Numer. Meth. Part. D. E., 8, 97–111, 1992. a

Rose, I., Buffet, B., and Heister, T.: Stability and accuracy of free surface time integration in viscous flows, Phys. Earth Planet. In., 262, 90–100, 2017. a

Sani, R., Gresho, P., Lee, R., and Griffiths, D.: The cause and cure (?) of the spurious pressures generated by certain FEM solutions of the incompressible Navier-Stokes equations: part 1, Int. J. Numer. Meth. Fl., 1, 17–43, https://doi.org/10.1002/fld.1650010104, 1981a. a

Sani, R., Gresho, P., Lee, R., Griffiths, D., and Engelman, M.: The cause and cure (?) of the spurious pressures generated by certain FEM solutions of the incompressible Navier-Stokes equations: part 2, Int. J. Numer. Meth. Fl., 1, 171–204, https://doi.org/10.1002/fld.1650010206, 1981b. a

Schmid, D. and Podlachikov, Y.: Analytical solutions for deformable elliptical inclusions in general shear, Geophys. J. Int., 155, 269–288, https://doi.org/10.1046/j.1365-246X.2003.02042.x, 2003. a

Schubert, G., Turcotte, D. L., and Olson, P.: Mantle Convection in the Earth and Planets, Cambridge University Press, https://doi.org/10.1017/CBO9780511612879, 2001. a, b

Schuh-Senlis, M., Thieulot, C., Cupillard, P., and Caumon, G.: Towards the application of Stokes flow equations to structural restoration simulations, Solid Earth, 11, 1909–1930, https://doi.org/10.5194/se-11-1909-2020, 2020. a

Silvester, D. and Kechkar, N.: Stabilised bilinear-constant velocity-pressure finite elements for the conjugate gradient solution of the stokes problem, Comput. Method. Appl. M., 79, 71–86, https://doi.org/10.1016/0045-7825(90)90095-4, 1990. a

Spiegelman, M., May, D., and Wilson, C.: On the solvability of incompressible Stokes with viscoplastic rheologies in geodynamics, Geochem. Geophy. Geosy., 17, 2213–2238, 2016. a

Stadler, G., Gurnis, M., Burstedde, C., Wilcox, L., Alisic, L., and Ghattas, O.: The dynamics of plate tectonics and mantle flow: from local to global scales, Science, 329, 1033–1038, https://doi.org/10.1126/science.1191223, 2010. a

Suckale, J., Nave, J.-C., and Hager, B.: It takes three to tango: 1. Simulating buoyancy-driven flow in the presence of large viscosity contrasts, J. Geophys. Res., 115, B07409, https://doi.org/10.1029/2009JB006916, 2010. a

Taylor, C. and Hood, P.: A numerical solution of the Navier-Stokes equations using the finite element technique, Comput. Fluids, 1, 73–100, 1973. a, b

Thielmann, M. and Kaus, B.: Shear heating induced lithospheric-scale localization: Does it result in subduction?, Earth Planet. Sc. Lett., 359–360, 1–13, 2012. a

Thielmann, M., May, D., and Kaus, B.: Discretization errors in the Hybrid Finite Element Particle-In-Cell Method, Pure Appl. Geophys., 171, 2164–2184, https://doi.org/10.1007/s00024-014-0808-9, 2014. a, b

Thieulot, C.: FANTOM: two- and three-dimensional numerical modelling of creeping flows for the solution of geological problems, Phys. Earth. Planet. In., 188, 47–68, https://doi.org/10.1016/j.pepi.2011.06.011, 2011. a, b, c

Thieulot, C.: ELEFANT: a user-friendly multipurpose geodynamics code, Solid Earth Discuss., 6, 1949–2096, https://doi.org/10.5194/sed-6-1949-2014, 2014. a

Thieulot, C., Fullsack, P., and Braun, J.: Adaptive octree-based finite element analysis of two- and three-dimensional indentation problems, J. Geophys. Res., 113, B12207, https://doi.org/10.1029/2008JB005591, 2008. a

Turcotte, D. and Schubert, G.: Geodynamics, 2nd Edn., Cambridge, https://doi.org/10.1017/CBO9780511807442, 2012. a

Turek, S.: Efficient Solvers for Incompressible Flow Problems, Springer, https://doi.org/10.1007/978-3-642-58393-3, 1999. a

Weismüller, J., Gmeiner, B., Ghelichkhan, S., Huber, M., John, L., Wohlmuth, B., Rüde, U., and Bunge, H.-P.: Fast asthenosphere motion in high-resolution global mantle flow models, Geophys. Res. Lett., 42, 7429–7435, https://doi.org/10.1002/2015GL063727, 2015.  a

Zhong, S.: Analytic solutions for Stokes’ flow with lateral variations in viscosity, Geophys. J. Int., 124, 18–28, https://doi.org/10.1111/j.1365-246X.1996.tb06349.x, 1996. a, b

Zhong, S.: Constraints on thermochemical convection of the mantle from plume heat flux, plume excess temperature, and upper mantle temperature, J. Geophys. Res., 111, B04409, https://doi.org/10.1029/2005JB003972, 2006. a

Zhong, S., Zuber, M., Moresi, L., and Gurnis, M.: The role of temperature-dependent viscosity and surface plates in spherical shell models of mantle convection, J. Geophys. Res., 105, 11063–11082, https://doi.org/10.1029/2000JB900003, 2000. a

Zhong, S., McNamara, A., Tan, E., Moresi, L., and Gurnis, M.: A benchmark study on mantle convection in a 3-D spherical shell using CitcomS, Geochem. Geophy. Geosy., 9, Q10017, https://doi.org/10.1029/2008GC002048, 2008. a

Zienkiewicz, O. and Taylor, R.: The Finite Element Method. Vol. 1: The basis, Butterworth and Heinemann, ISBN 0-7506-5049-4, 2002. a

1

Strictly speaking, Taylor and Hood (1973) only introduced the Q2×Q1 element on quadrilaterals. However, finite-element practitioners use the term “Taylor–Hood” for both the 2D and 3D cases, for the case of both simplex and quadrilateral–hexahedral meshes, and for all cases with k≥2. See also John (2016, p. 98).

2

The discontinuous space P-(k-1) for the pressure can be interpreted in two incompatible ways: first, one can map the corresponding space from the reference cell to each of the cells of the mesh, as one also does for the velocity; or, one can define shape functions directly in the global coordinate system, without mapping from the reference cell. The two agree on cells that are parallelograms but not on more general meshes. Since our experiments are all on meshes where all cells are rectangles, the distinction does not matter for the current paper, but we point out that the error estimates (Eq. 4) stated in Sect. 3.1 only hold for the latter definition. See Boffi and Gastaldi (2002), Matthies and Tobiska (2002), and John (2016, Sect. 3.6.4) for more information.

3

For a concise definition of the Lebesgue space L2 and the Sobolev spaces of functions Hk, see Elman et al. (2014). Loosely speaking, L2 is the set of all functions f for which the integral of the square over the domain, Ω|f(x)|2dx, is finite. We say that such functions are “square-integrable”. Hk is the set of all functions whose kth (weak) derivatives are square-integrable.

4

To arrive at this form for the operator, one needs to rewrite Eq. (6) using (I-π0)qh,1η(I-π0)ph=qh,1η(I-π0)(I-π0)ph, where the asterisk denotes the adjoint operator. One then shows (I-π0)=(I-π0) and finally that Π=(I-π0)2=I-π0, which follows by recalling that projection operators are idempotent.

5

The concrete number of iterations of course depends on the preconditioner used – here the one described in Kronbichler et al. (2012). The important point of the figure, however, is how the number of iterations changes (or does not) with the mesh size h.

Download
Short summary
One of the main numerical methods to solve the mass, momentum, and energy conservation equations in geodynamics is the finite-element method. Four main types of elements have been used in the past decades in hundreds of publications. For the first time we compare results obtained with these four elements on a series of geodynamical benchmarks and applications and draw conclusions as to which are the best ones and which are to be preferably avoided.