hp-adaptive least squares spectral element method for hyperbolic partial differential equations

Similar documents
Introduction. J.M. Burgers Center Graduate Course CFD I January Least-Squares Spectral Element Methods

Least-Squares Spectral Collocation with the Overlapping Schwarz Method for the Incompressible Navier Stokes Equations

Non-Conforming Finite Element Methods for Nonmatching Grids in Three Dimensions

Overlapping Schwarz preconditioners for Fekete spectral elements

Lecture Note III: Least-Squares Method

PART IV Spectral Methods

PARTITION OF UNITY FOR THE STOKES PROBLEM ON NONMATCHING GRIDS

1. Introduction. We consider the model problem that seeks an unknown function u = u(x) satisfying

A Least-Squares Finite Element Approximation for the Compressible Stokes Equations

Available online at ScienceDirect. Procedia Engineering 90 (2014 )

Journal of Computational and Applied Mathematics. Multigrid method for solving convection-diffusion problems with dominant convection

1 Introduction. J.-L. GUERMOND and L. QUARTAPELLE 1 On incremental projection methods

Isogeometric Analysis:

Numerical Solutions to Partial Differential Equations

PSEUDO-COMPRESSIBILITY METHODS FOR THE UNSTEADY INCOMPRESSIBLE NAVIER-STOKES EQUATIONS

Linear Algebra Massoud Malek

PDEs, part 1: Introduction and elliptic PDEs

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

PhD dissertation defense

256 Summary. D n f(x j ) = f j+n f j n 2n x. j n=1. α m n = 2( 1) n (m!) 2 (m n)!(m + n)!. PPW = 2π k x 2 N + 1. i=0?d i,j. N/2} N + 1-dim.

A High Order Conservative Semi-Lagrangian Discontinuous Galerkin Method for Two-Dimensional Transport Simulations

Research Article A Two-Grid Method for Finite Element Solutions of Nonlinear Parabolic Equations

ERROR ANALYSIS OF STABILIZED SEMI-IMPLICIT METHOD OF ALLEN-CAHN EQUATION. Xiaofeng Yang. (Communicated by Jie Shen)

Finite Elements. Colin Cotter. February 22, Colin Cotter FEM

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

SECOND ORDER TIME DISCONTINUOUS GALERKIN METHOD FOR NONLINEAR CONVECTION-DIFFUSION PROBLEMS

K. BLACK To avoid these diculties, Boyd has proposed a method that proceeds by mapping a semi-innite interval to a nite interval [2]. The method is co

Performance Evaluation of Generalized Polynomial Chaos

Discontinuous Galerkin Method for interface problem of coupling different order elliptic equations

A fast and well-conditioned spectral method: The US method

Two-scale Dirichlet-Neumann preconditioners for boundary refinements

Local discontinuous Galerkin methods for elliptic problems

Hilbert Spaces. Hilbert space is a vector space with some extra structure. We start with formal (axiomatic) definition of a vector space.

Boundary Value Problems and Iterative Methods for Linear Systems

Finite difference method for elliptic problems: I

On the relationship of local projection stabilization to other stabilized methods for one-dimensional advection-diffusion equations

PDEs in Image Processing, Tutorials

NONSTANDARD NONCONFORMING APPROXIMATION OF THE STOKES PROBLEM, I: PERIODIC BOUNDARY CONDITIONS

Energy norm a-posteriori error estimation for divergence-free discontinuous Galerkin approximations of the Navier-Stokes equations

arxiv: v1 [math.na] 27 Jan 2016

Local pointwise a posteriori gradient error bounds for the Stokes equations. Stig Larsson. Heraklion, September 19, 2011 Joint work with A.

Basic Concepts of Adaptive Finite Element Methods for Elliptic Boundary Value Problems

On Pressure Stabilization Method and Projection Method for Unsteady Navier-Stokes Equations 1

arxiv: v1 [math.na] 11 Jul 2011

Efficiency-based h- and hp-refinement strategies for finite element methods

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations

On an Approximation Result for Piecewise Polynomial Functions. O. Karakashian

Improved Newton s method with exact line searches to solve quadratic matrix equation

Scientific Computing I

IMPROVED LEAST-SQUARES ERROR ESTIMATES FOR SCALAR HYPERBOLIC PROBLEMS, 1

Simple Examples on Rectangular Domains

Rational Chebyshev pseudospectral method for long-short wave equations

Domain Decomposition Algorithms for an Indefinite Hypersingular Integral Equation in Three Dimensions

RESIDUAL BASED ERROR ESTIMATES FOR THE SPACE-TIME DISCONTINUOUS GALERKIN METHOD APPLIED TO NONLINEAR HYPERBOLIC EQUATIONS

Discrete Projection Methods for Incompressible Fluid Flow Problems and Application to a Fluid-Structure Interaction

Oblique derivative problems for elliptic and parabolic equations, Lecture II

Scientific Computing WS 2018/2019. Lecture 15. Jürgen Fuhrmann Lecture 15 Slide 1

NUMERICAL SOLUTION OF CONVECTION DIFFUSION EQUATIONS USING UPWINDING TECHNIQUES SATISFYING THE DISCRETE MAXIMUM PRINCIPLE

DISCRETE HODGE HELMHOLTZ

SECOND-ORDER FULLY DISCRETIZED PROJECTION METHOD FOR INCOMPRESSIBLE NAVIER-STOKES EQUATIONS

Euler Equations: local existence

Vectors in Function Spaces

A note on discontinuous Galerkin divergence-free solutions of the Navier-Stokes equations

Some remarks on the stability coefficients and bubble stabilization of FEM on anisotropic meshes

Local Mesh Refinement with the PCD Method

arxiv: v1 [math.na] 29 Feb 2016

The Convergence of Mimetic Discretization

The Spectral-Element Method: Introduction

Algebra C Numerical Linear Algebra Sample Exam Problems

A FAST SOLVER FOR ELLIPTIC EQUATIONS WITH HARMONIC COEFFICIENT APPROXIMATIONS

Splitting Enables Overcoming the Curse of Dimensionality

Vector Spaces. Vector space, ν, over the field of complex numbers, C, is a set of elements a, b,..., satisfying the following axioms.

Geometric Multigrid Methods

Multilevel Preconditioning of Graph-Laplacians: Polynomial Approximation of the Pivot Blocks Inverses

NUMERICAL SIMULATION OF INTERACTION BETWEEN INCOMPRESSIBLE FLOW AND AN ELASTIC WALL

Math Introduction to Numerical Analysis - Class Notes. Fernando Guevara Vasquez. Version Date: January 17, 2012.

Spectral element agglomerate AMGe

Adaptive Time Space Discretization for Combustion Problems

High Order Accurate Runge Kutta Nodal Discontinuous Galerkin Method for Numerical Solution of Linear Convection Equation

PREPRINT 2010:23. A nonconforming rotated Q 1 approximation on tetrahedra PETER HANSBO

Lehrstuhl Informatik V. Lehrstuhl Informatik V. 1. solve weak form of PDE to reduce regularity properties. Lehrstuhl Informatik V

Chapter 1 Foundations of Elliptic Boundary Value Problems 1.1 Euler equations of variational problems

Numerical Solutions to Partial Differential Equations

EFFICIENT MULTIGRID BASED SOLVERS FOR ISOGEOMETRIC ANALYSIS

Yongdeok Kim and Seki Kim

A PLANAR SOBOLEV EXTENSION THEOREM FOR PIECEWISE LINEAR HOMEOMORPHISMS

Well-posedness, stability and conservation for a discontinuous interface problem: an initial investigation.

The Generalized Empirical Interpolation Method: Analysis of the convergence and application to data assimilation coupled with simulation

Une méthode de pénalisation par face pour l approximation des équations de Navier-Stokes à nombre de Reynolds élevé

A comparison of interpolation grids over the triangle or the tetrahedron

The purpose of this lecture is to present a few applications of conformal mappings in problems which arise in physics and engineering.

(bu) = f in Ω, (1.1) u = g on Γ I, (1.2)

An Accurate Fourier-Spectral Solver for Variable Coefficient Elliptic Equations

Math 5520 Homework 2 Solutions

Space-time Finite Element Methods for Parabolic Evolution Problems

LEAST-SQUARES FINITE ELEMENT MODELS

Besov regularity for the solution of the Stokes system in polyhedral cones

2 Two-Point Boundary Value Problems

EXISTENCE AND REGULARITY OF SOLUTIONS FOR STOKES SYSTEMS WITH NON-SMOOTH BOUNDARY DATA IN A POLYHEDRON

Iterative Methods for Linear Systems

Transcription:

Journal of Computational and Applied Mathematics 215 (2008) 409 418 www.elsevier.com/locate/cam hp-adaptive least squares spectral element method for hyperbolic partial differential equations Árpád Galvão a, Marc Gerritsma a,, Bart De Maerschalck b a Department of Aerospace Engineering, Delft University of Technology, Kluyverweg 1, 2629 HS Delft, The Netherlands b Von Karman Institute for Fluid Dynamics, Waterloosesteenweg 72, 1640 Sint Genesius, Belgium Received 10 September 2005 Abstract This paper describes a hp-adaptive spectral element formulation which is used to discretize the weak formulation obtained by minimizing the residuals in the L 2 -norm. The least-squares error indicator will be briefly discussed. Refinement of the numerical approximation is based on an estimate of the regularity of the underlying exact solution; if the underlying exact solution is sufficiently smooth polynomial enrichment is employed, in areas with limited regularity h-refinement is used. For this purpose the Sobolev regularity is estimated. Functionally and geometrically non-conforming neighbouring elements are patched together using so-called mortar elements. Results of this approach are compared to uniform h- and p-refinement for a linear advection equation. 2007 Elsevier B.V. All rights reserved. MSC: 65M50; 65M60; 65M70 Keywords: Least-squares formulation; Spectral element method; Mortar element method; Error indicator; Sobolev regularity estimation 1. Introduction The least-squares spectral element method (LSQSEM) is a novel approach to solve systems of partial differential equations. The method combines the least-squares formulation with a spectral approximation. The method was developed simultaneously by Proot and Gerritsma [18,16,17] and Pontaza and Reddy [14,15]. LSQSEM combines the locality of the finite element method, the symmetric positiveness of the least-squares formulation and the higher order accuracy of spectral methods. In addition, the least-squares formulation circumvents compatibility requirements between approximating function spaces in mixed problems, such as the inf sup condition for the incompressible Navier Stokes equations. Despite these advantages LSQSEM becomes a very expensive method when higher order approximations are used uniformly throughout the whole computational domain. Therefore, an adaptive scheme has been developed, which signals regions that require refinement and takes the appropriate steps to reduce the error locally. Corresponding author. E-mail addresses: M.I.Gerritsma@LR.TUDelft.nl (M. Gerritsma), demaersc@vki.ac.be (B. De Maerschalck). 0377-0427/$ - see front matter 2007 Elsevier B.V. All rights reserved. doi:10.1016/j.cam.2006.03.063

410 Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 This technique requires three new ingredients compared to the LSQSEM algorithms published previously. First of all a method should be developed which patches together elements of different sizes and with different numerical representations such as different polynomial degrees. One way of doing so is to use the discontinuous least-squares formulation [4], but in the current paper the mortar element method (MEM) is employed [2,5,10]. Next an error indicator needs to be used to flag which elements need to be refined. Having established which elements will be refined, we now need to decide how to refine; decrease the element size, h-refinement, or increase the polynomial degree, p-enrichment. This decision is based on the estimated regularity of the exact solution. A more thorough discussion of hp-adaptive refinement applied to the LSQSEM can be found in [2]. The outline of this paper is as follows: Section 2 gives a brief introduction to the LSQSEM. Section 3 presents a way to patch together elements with different sizes and different approximating function spaces. Section 4 introduces a least-squares error estimator which flags the elements eligible for refinement. In order to establish how to refine we need a regularity estimator as described in Section 5. The resulting hp-adaptive LSQSEM scheme is applied to a space time linear advection equation in Section 6. Conclusions are drawn in Section 7. 2. The least-squares spectral element method The LSQSEM combines the least-squares formulation with a spectral element discretization. In this section both ingredients will be addressed succinctly. 2.1. The least-squares formulation The least-squares formulation is based on the minimization of the residual in a suitable norm. For convenience one usually minimizes the residual in the L 2 -norm. In addition, we rewrite the differential equation in an equivalent first order system of differential equations to mitigate continuity requirements between adjacent elements and reduce the condition number of the resulting system of algebraic equations. Introduce Lu = f, x Ω, (2.1) as a system of first order partial differential equations defined on the domain Ω and supplemented with the boundary conditions Ru = g, x Γ Ω. (2.2) Let L be a linear differential operator which maps elements from the function space X into the function space Y, L : X Y, such that there exist two constants C 1,C 2 > 0 for which we have C 1 u X Lu Y C 2 u X u X. (2.3) Both inequalities, coercivity and continuity, respectively, assert that Lu Y defines a norm equivalent to u X.So minimizing u u ex X is equivalent to minimizing L(u u ex ) Y = Lu f Y. Here u ex denotes the exact solution. If we chose for Y the Hilbert space Y = L 2 (Ω), minimization of the residual amounts to Find u X such that (Lu, Lv) L 2 (Ω) = (f, Lv) L 2 (Ω) v X. (2.4) Instead of using the infinite-dimensional function space X to look for a minimizer, we generally restrict ourselves to a finite-dimensional space X h in which case the least-squares formulation reads Find u h X h such that (Lu h, Lv h ) L 2 (Ω) = (f, Lvh ) L 2 (Ω) v h X h. (2.5) For a more extensive treatment of the least-squares formulation, see [7,8].

2.2. Spectral element approximation Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 411 For the finite-dimensional subspace X h, mentioned in the previous subsection, we use a spectral approximation. The domain Ω is sub-divided into K non-overlapping quadrilateral sub-domains Ω k : K Ω = Ω k, k=1 Ω k Ω l =, k = l. (2.6) Each sub-domain is mapped onto the unit cube [ 1, 1] d, where d = dim Ω. Within this unit cube the unknown function are approximated by Lagrangian functions where u h (ξ, η) = N i=0 j=0 M u ij h i (ξ)h j (η) for d = 2, (2.7) (ξ 2 1)L N h i (ξ) = (ξ) N(N + 1)L N (ξ i )(ξ ξ i ). (2.8) Here the points ξ i are the Gauss Lobatto Legendre (GLL) points given by the zeroes of (1 x 2 )L N (x), where L N (x) is the Legendre polynomial of degree N. Instead of Legendre polynomials Chebyshev polynomials may be used [12,19], or more general Jacobi polynomials [3]. In this paper only Legendre polynomials will be considered. After transformation of the least-squares formulation (2.5) to the unit cube and insertion of the higher order approximation (2.7), an algebraic system for the unknowns u ij can be set up. The integrals appearing in (2.5) are evaluated using Gauss Lobatto integration 1 1 f(x)dx P f(x p )w p, (2.9) p=0 where x p are the GLL points and the GLL weights w p are the solution of the linear system P j=0 1 xj i w j = x i dx 1 for i = 0,...,N. (2.10) Note that Gauss Lobatto integration is exact for polynomials of degree 2P 1. If we assemble the numerical integration weights w p in a diagonal matrix W = diag(w 0,...,w P ) the discrete least-squares formulation at elemental level can be written as L T WL u k = L T Wf k, (2.11) here L ij =Lψ j (x i ) denotes the differential operator acting on the jth two-dimensional basis function ψ j =h k (ξ)h l (η), evaluated at the ith Gauss Lobatto integration point x i = (ξ s, η t ), where 0 j (N + 1)(M + 1) within one spectral element and 0 i (P +1) 2. The right-hand side vector f i =f(x i ) is the load-vector in the original differential equation evaluated at the integration point x i = (ξ s, η t ). The vector of unknowns u k j are the unknown expansion coefficients in the two-dimensional representation (2.7) in element k. In general the matrix L will have more rows than columns, thus comprising an over-determined, but consistent system of algebraic equations. 3. The mortar element method In the MEM, neighbouring elements in R d are patched together by mortar-like elements in R d 1.InR 2 the mortar elements consist of line segments as sketched in Fig. 1. The ith boundary of element k, denoted by Γ k i, is associated with a number of mortars, γ j. The solution on the mortars,, is connected to the solution at the border of the two neighbouring elements. This establishes a connection between the solution at the edge of an element, denoted by u b,

412 Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 Computational domain Ω 2 Ω 3 Ω 1 Mortar γ Ω 2 Ω 3 Ω 1 Fig. 1. The mortar element approach patching the element edges with one approximation space. and the mortar solution. If we choose a polynomial approximation for on the mortar, we can express the expansion coefficients at the boundary of the element, u b, in terms of the expansion coefficients of the solution on the mortar,, as u b = Z. (3.1) The precise relation is inconsequential as long as the matrix Z is of full rank for at least one of the elements associated with the mortar. This condition prevents the appearance of spurious mortar solutions. Having established the relation between the elemental boundary unknowns and the mortar unknowns, we can express the global system in terms of the inner element unknowns, u i and the mortar unknowns only: [ ub u k = u i ] = ( )[ Z 0 0 I u i ] =[Z k ]ũ k, (3.2) where ũ k represents the true unknowns, i.e. the projected mortar values and the internal unknowns. This transformation converts the least-squares formulation at the element level, as given in (2.11), into L T WL u k = L T Wf k [Z k ] T L T WL[Z k ]ũ k =[Z k ] T L T Wf k. (3.3) Assembling all element contributions by summing over the projected element matrices gives the global system to be solved. In this paper the solution on the mortar is defined by an L 2 -projection of the element boundary solution (u Ω k )ψ ds = 0 sides l and k = 1,...,K, (3.4) Γ k l where ψ P M ( Γ k l ) and M is the polynomial degree of the mortar solution. M should be greater or equal than the degree of the solution in the adjoining elements to prevent spurious mortar solutions. When the Lagrangian basis functions defined in Section 2 are employed, the vertex condition [10] is automatically satisfied. For a more extensive treatment of the MEM the reader is referred to [2,5,10]. 4. The error estimator Having discussed how to match spectral elements with different size and polynomial representation, we now have to find a way to detect those elements that need refinement. In the least-squares formulation we select the solution which minimizes the residual globally over the whole domain Ω. Having obtained such a minimizing solution we can evaluate the least-squares functional locally over every subdomain A Ω. This gives η 2 A = Luh f 2 L 2 (A) = L(uh u ex ) 2 L 2 (A), (4.1) due to the linearity of L. Well-posedness of problem (2.3) then implies that C 1 e 2 X(A) η2 A C 2 e 2 X(A), (4.2)

Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 413 where e = u h u ex. This means that the effectivity index θ A,X, defined by θ A,X = η A e X(A), (4.3) which compares the estimated error η A to the exact error in the X-norm is bounded by C1 θ A C 2. (4.4) Alternatively, we may compare the estimated norm η A with the residual norm R L 2 (A) using the fact that the residual norm is norm equivalent to e X. Denoting this effectivity index by θ A,R gives the rather trivial result θ A,R := η A Lu h f Y (A) 1. (4.5) Based on this observation η A will be used to identify those regions (elements in case A = Ω k ) which are selected for refinement. This estimator has also been used by Liu [9] and Berndt et al. [1]. 5. Estimation of the Sobolev regularity Having found a way to match functionally and geometrically non-conforming elements and an indicator η Ω k which flags elements for refinement, we now have to determine how to refine. This choice is based on the smoothness of the underlying exact solution. If the exact solution is locally sufficiently smooth, polynomial enrichment is employed. However, if on the other hand, the underlying exact solution has limited smoothness h-refinement is used. Let κ be a spectral element with size parameter h κ and polynomial degree p κ. Let u κ ex be the exact solution in that element, where u κ ex H k κ, where k κ 0 denotes the Sobolev regularity of the exact solution. Let u h κ p κ denote the LSQSEM solution with u h κ p κ H q,0 q k κ then u κ ex uh κ p κ H q C (h κ) s k q (p κ ) k κ q uκ ex H kκ, (5.1) where s κ = min(p κ + 1,k κ ) and C is a generic constant. This error estimate tells us that if the solution is very smooth (k κ very large) then the error decreases more rapidly by increasing p κ in the denominator. For practical purposes the function is considered smooth if k κ >p κ + 1 and non-smooth when k κ p κ + 1, in which h-refinement is more effective. So the choice between h-refinement and p-enrichment is dictated by the Sobolev index of the exact solution. Although the exact solution is in general not available, we can still estimate this index from its numerical approximation. Houston et al. [6] have developed a method to estimate the Sobolev index from a truncated Legendre series. They assume that the one-dimensional solution is in L 2 ( 1, 1) which allows for a Legendre expansion u(x) = i=0 a i L i (x) with a i = 2i + 1 2 1 1 u(x)l i (x) dx. (5.2) By Parseval s identity the fact that u L 2 ( 1, 1) is equivalent to convergence of the series i=0 a i 2 2 2i + 1. (5.3) In [6] it is shown that if i=[k+1] a i 2 2 Γ(i + k + 1) 2i + 1 Γ(i k + 1), (5.4)

414 Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 converges, then u Hw k ( 1, 1), where k 1 Hw k = u L2 ( 1, 1) D (j) u(x) 2 (1 x 2 ) j dx<, (5.5) j=0 1 for integer values of k. By using the Γ-function in (5.4) this identity can be extended to fractional Sobolev spaces, see [6] for details. Given the Legendre coefficients a i, convergence of the series in (5.4) can be established by well-known techniques such as the ratio test, or the root test. In this work the root test is employed. This leads to the calculation of l k = log((2k + 1)/2 a k 2 ). (5.6) 2 log k If lim k l k > 2 1 l 1/2 ε then u Hw ( 1, 1) ε > 0. Else u L 2 ( 1, 1). Since in a numerical solution only a finite number of Legendre coefficients a i are available, this test is applied to the highest Legendre coefficient available in the numerical approximation. Based on the estimated Sobolev index l 2 1, the decision is made whether to refine the mesh, or to increase the polynomial degree locally. This one-dimensional estimate of the Sobolev index can be extended to multi-dimensional problems by treating each co-ordinate direction separately, see [6] for details. Several test have been conducted to establish the validity of this estimator. Proposition 5.1. If an element κ at refinement level r with characteristic mesh size h r κ and polynomial degree pr κ is flagged for refinement by the error indicator, we calculate l pκ by (5.6). Then for the Sobolev index k pκ = l pκ 2 1 we have { If kpκ >pκ r + 1 then pr+1 κ pκ r + 1, If k pκ pκ r + 1 then hr+1 κ h r κ /2. (5.7) 6. Application to the space time linear advection equation This section uses the one-dimensional, linear advection problem to validate the presented hp-adaptive theory. The application of LSQSEM to hyperbolic equations has been studied by De Maerschalck [11,13,12]. The model problem is defined as u t + a u = 0 with 0 x L, t 0, a R, (6.1) x u(0,t)= 0, (6.2) 1 u(x, 0) = 2 1 ( 2 cos 2π x x ) 0 if x 0 x x 0 + L 0, L 0 (6.3) 0 if elsewhere, where a is the advection speed and L is the length of the domain in spatial direction. On the left boundary of the domain a Dirichlet boundary condition, u(0, t) = 0, is imposed. The initial disturbance, u(x, 0), is a cosine-hill with offset x 0 and width L 0. We use a space time formulation that treats the one-dimensional advection problem with a two-dimensional least-squares formulation and considers the time variable t as second spatial variable. Instead of calculating the solution over the whole domain at once, we use a semi-implicit approach. The domain is subdivided into several space time strips for which the solution is approximated using the LSQSEM, see [11] for details. In the following, 32 time strips are used within the domain Ω =[0, 1], where each time strip has initially 32 cells. Each time strip uses the solution at the previous strip as initial condition, except for the first strip that uses the prescribed initial condition (6.3). All time strips use the Dirichlet condition (6.2) on the left boundary. The advection speed a = 0.85, x 0 = 0.13 and L 0 = x 0 + 0.5. The exact solution of this problem u ex H 5/2 ε (Ω), for all ε > 0. The regularity of the

Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 415 Y 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 0.5 1 X Fig. 2. Illustration of the unstructured mesh and continuous propagation of the cosine-hill with hp-refinement. exact solution is limited in space time along the lines x at = x 0 and x at = x 0 + L 0. For all other points in the space time domain the solution is infinitely smooth. 6.1. Illustration of a hp-adaptive strategy Note that even though only the second derivative is discontinuous, the regularity estimator accurately identifies the region with limited regularity as depicted in Fig. 2.Noh-refinement is used in the smooth parts of the domain. Fig. 3 shows the final polynomial degree distribution. We imposed the so-called one-level adaptivity, where the difference in refinement level between neighbouring elements may not be more than one. In the regions where the exact solution is zero neither p-enrichment nor h-refinement is used. Along the cosine-hill polynomials of degree N = 4 are used, the light grey strip. The only place where the algorithm uses higher order elements is along the lines with limited regularity. Along these lines both p-enrichment and h-refinement are employed. The reason high order elements are used along these lines is that in order to predict the Sobolev regularity accurately enough, one needs sufficiently high Legendre coefficients. This is also illustrated by the convergence plots for one time strip, Figs. 4 and 5. Note that no coarsening is applied in this example. In both figures it can be seen that adaptive p- and adaptive hp-refinement is much more efficient than adaptive h-refinement, even for a relatively smooth problem as considered in this paper. Initially, in the refinement process only polynomial enrichment is employed which is illustrated by the fact that the curves for p- and hp-refinement coincide at low NDOF. Once the available Legendre coefficients are sufficiently high to identify the regions with limited regularity, h-refinement is applied locally. Figs. 4 and 5 show that once h-refinement is used p-refinement converges faster than hp-convergence. This behaviour is deceptive, because the hp-adaptive scheme could be improved by simultaneously lower the polynomial degree in those elements that are split. Another way to improve the performance of the algorithm is to adapt only a certain percentage of the elements flagged for refinement. Elements with high errors generally pollute neighbouring elements and by adapting only the elements with the highest error, the error in the other elements decreases as well although these elements get no special treatment. Both these techniques, adaptive coarsening and adapting only a certain percentage of elements flagged for refinement, are incorporated in the code.

416 Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 1 0.9 0.8 0.7 8 7 6 5 4 3 2 0.6 Y 0.5 0.4 0.3 0.2 0.1 0 0 0.5 1 X Fig. 3. Polynomial degree distribution for hp-adaptivity with in each element. 10-5 L 2 10-6 10-7 1000 2000 3000 4000 Fig. 4. The L 2 -error as function on the degrees of freedom, adaptive h-refinement (diamonds), adaptive p-refinement (circles) and adaptive hp-refinement (squares). NDOF In this example refinement is applied to all elements flagged for refinement and no coarsening is applied. The results show that no elements are refined where nothing happens and refinement takes place in the interesting areas. The example demonstrates that the current algorithm couples elements with different size and polynomial representation, identifies the correct regions where refinement is necessary and is also capable of identifying the regions where the local regularity is limited.

Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 417 10-2 10-3 H 1 10-4 1000 2000 3000 4000 Fig. 5. The H 1 -error as function on the degrees of freedom, adaptive h-refinement (diamonds), adaptive p-refinement (circles) and adaptive hp-refinement (squares). NDOF 7. Conclusions We have shown that the MEM is an elegant way to match functional and geometrical non-conforming neighbouring elements. Moreover, it appears that the solution propagates continuously across the element boundaries. The error indicator marks correctly the elements which need refinement. The Sobolev regularity estimator leads indeed to h-refinement where it is to be expected, near the foot of the cosinehill, despite the fact that for the Sobolev regularity estimator only low order Legendre coefficients are available. Since LSQSEM does not require artificial diffusion to stabilize the numerical scheme, no smearing of the numerical solution takes place, which would increase the estimated Sobolev regularity. No coarsening of the grid has been applied. Once the critical regions in the problem have been resolved, small elements may be merged if their estimated error is below a certain tolerance. Alternatively, the polynomial degree may be lowered if the estimated error is below a certain tolerance. The choice whether to merge elements or to decrease the polynomial degree can be based on the estimated Sobolev regularity. References [1] M. Berndt, T.A. Manteuffel, S.F. McCormick, Local error estimation and adaptive refinement for first-order system least squares (FOSLS), Electron. Trans. Numer. Anal. 6 (1997) 35 43. [2] A. Galvão, hp-adaptive least squares spectral element method for hyperbolic partial differential equations, http://www.aero.lr.tudelft.nl/ marc/hpadaptivelsqsem.pdf, TUDelft, 2005. [3] M.I. Gerritsma, T.N. Phillips, Spectral element method for axisymmetric stokes problems, J. Comput. Phys. 164 (2000) 81 103. [4] M.I. Gerritsma, M.M.J. Proot, Analysis of a discontinuous least-squares spectral element method, J. Sci. Comput. 17 (2002) 323 334. [5] R.D. Henderson, G.E. Karniadakis, Unstructured spectral methods for simulation of turbulent flows, J. Comput. Phys. 122 (1995) 191 217. [6] P. Houston, B. Senior, E. Süli, Sobolev regularity estimation for hp-adaptive finite element methods, Report NA-02-02, University of Oxford, UK, 2002. [7] B.-N. Jiang, The Least-Squares Finite Element Method, Theory and Applications in Computational Fluid Dynamics and Electromagnetics, Springer, Berlin, 1998. [8] B.-N. Jiang, On the least-squares method, Comput. Methods Appl. Mech. Engrg. 152 (1998) 239 257. [9] J.-L. Liu, Exact a posteriori error analysis of the least squares finite element method, Appl. Math. Comput. 116 (2000) 297 305. [10] Y. Maday, C. Mavriplis, A. Patera, Non-conforming mortar element methods: application to spectral discretizations, SIAM 7 (1989) 392 418. [11] B. De Maerschalck, Space time least-squares spectral element method for unsteady flows application and evaluation for linear and non-linear hyperbolic scalar equations, http://www.aero.lr.tudelft.nl/ bart, 2003.

418 Á. Galvão et al. / Journal of Computational and Applied Mathematics 215 (2008) 409 418 [12] B. De Maerschalck, M.I. Gerritsma, The use of the Chebyshev approximation in the space time least-squares spectral element method, Numer. Algorithm 38 (2005) 173 196. [13] B. De Maerschalck, M.I. Gerritsma, Higher-order Gauss lobatto integration for non-linear hyperbolic equations, J. Sci. Comput. 27 (2006) 201 214. [14] J.P. Pontaza, J.N. Reddy, Spectral/hp least squares finite element formulation for the incompressible Navier Stokes equation, J. Comput. Phys. 190 (2003) 523 549. [15] J.P. Pontaza, J.N. Reddy, Space time coupled spectral/hp least squares finite element formulation for the incompressible Navier Stokes equation, J. Comput. Phys. 197 (2004) 418 459. [16] M.M.J. Proot, M.I. Gerritsma, A least-squares spectral formulation for the Stokes problem, J. Sci. Comput. 17 (2002) 311 322. [17] M.M.J. Proot, M.I. Gerritsma, Least-squares spectral elements applied to the Stokes problem, J. Comput. Phys. 181 (2002) 454 477. [18] M.M.J. Proot, The least-squares spectral element method, Ph.D. Thesis, TU Delft, 2003. [19] M.M.J. Proot, M.I. Gerritsma, Application of the least-squares spectral element method using Chebyshev polynomials to solve the incompressible Navier Stokes equations, Numer. Algorithm 38 (2005) 155 172.