EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

A unstructured nodal spectral-element method for the Navier-Stokes equations.pdf

Commun. Comput. Phys. doi: 10.4208/cicp.070111.140711a V ol.12, No. 1, pp. 315-336 July 2012 A Unstructured Nodal Spectral-Element Method for the Navier-Stokes Equations Lizhen Chen1, Jie Shen 1,2 and Chuanju Xu 1, ∗ 1 School of Mathematical Sciences, Xiamen University, 36100 5 Xiamen, China. 2 Department of Mathematics, Purdue University, West Lafaye tte, IN, 47907, USA. Received 7 January 2011; Accepted (in revised version) 14 Ju ly 2011 Communicated by George Karniadakis Available online 30 January 2012 Abstract. An unstructured nodal spectral-element method for the Navier-Stokes equa- tions is developed in this paper. The method is based on a tria ngular and tetrahedral rational approximation and an easy-to-implement nodal bas is which fully enjoys the tensorial product property . It allows arbitrary triangular and tetrahedral mesh, afford- ing greater flexibility in handling complex domains while ma intaining all essential features of the usual spectral-element method. The details of the implementation and some numerical examples are provided to validate the efficie ncy and flexibility of the proposed method. AMS subject classifications : 65N35, 65N22, 65F05, 35J05 Key words: Navier-Stokes equations, unstructured mesh, triangular spectral element method. 1 Introduction The spectral-element method combines the geometric flexibi lity of finite elements with the high accuracy of spectral methods. It exhibits several f avorable computational prop- erties, such as the use of tensor products, naturally diagon al mass matrices, and suitabil- ity for parallel computation. However, in order to use the properties of the tensor product , the standard spectral- element method is usually limited to quadrilateral/hexahe dral partitions. This require- ment makes it difficult to use unstructured mesh for complex ge ometries. One way to overcome this drawback is to allow the use of triangles/tetr ahedrons in the partition. There has been a number of works addressing the so-called tri angular spectral methods. The existing spectral methods on triangle can be classified in to different types according ∗Corresponding author. Email addresses: xunyicao2009@yeah.net (L. Chen), shen7@purdue.edu (J. Shen), cjxu@xmu.edu.cn (C. Xu) http://www .global-sci.com/ 315 c⃝2012 Global-Science Press https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 316 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 to the class of functions used in the approximations: (i) app roximations by polynomials in triangle through mapping (see, e.g., [2, 5, 9, 14, 19]); (ii) approximations by polynomials in triangle using special nodal points such as Fekete points (see, e.g., [8, 15, 16, 20]); and (iii) approximations by non-polynomial functions in trian gle (see, e.g., [1, 7, 18]). The triangular spectral method based on polynomial spaces w ere motivated by the classical result that any smooth function can be well approximated by polynomials. Koorn- winder [10] and Dubiner [5] constructed the orthogonal poly nomials on triangle, often referred as the Dubiner’s basis in the spectral-element com munity . The first practical im- plementation of the Dubiner basis in the solution of incompr essible Navier-Stokes equa- tions was carried out in the spectral-element package NekTar [9, 19]. Their approach is based on the modal formulation in which the basis functions are Jacobi polynom ials with index varying with the polynomial order. A drawback of this m odal basis is that there is no corresponding nodal basis, making it more difficult, to implement. Recently , a tri an- gular spectral method using rational polynomials was propo sed and analyzed for elliptic problems (cf. [18]). It is extended to the Stokes problem on a triangle in [3]. The main ad- vantage of this method is that a nodal basis is available, so it can be incorporated into the usual nodal spectral-element framework. In particular, it preserves the tensor product structure which enables the fast evaluation of the matrix-v ector multiplications. In this paper, we design an unstructured spectral-element m ethod for the Navier- Stokes equations. More precisely , we describe in detail how t o formulate the nodal basis with two-dimensional unstructured meshes for the Stokes eq uations, and apply them for solving time dependent Navier-Stokes equations. Our no dal basis functions in tri- angles/tetrahedrons are constructed from the standard ten sor product of Lagrangian polynomials defined on the 2-D Gauss-Lobatto points through t he Duffy mapping. The advantages of this nodal basis are that it allows arbitrary m ixture of triangular and rect- angular elements; enjoys the fully tensorial-product prop erty , and can be easily incorpo- rated into an existing spectral-element code. The paper is organized as follows. In the next section, we first present the ratio- nal spectral-element method for the Stokes equations on a si ngle triangle. In Section 3, we extend the method to 2-D unstructured mesh with arbitrary mixture of triangular and quadrilateral elements. In Section 4, we apply this spec tral-element method to the Navier-Stokes equations and present several numerical exp eriments exhibiting its flexi- bility and accuracy . Some concluding remarks are given in th e final section. 2 Preliminaries In this section, we introduce some necessary notations and r ecall briefly the triangular spectral method for the Stokes equations developed recentl y in [3]. Throughout this paper, we use boldface letters to denote vectors and vector functions. Let c be a generic positive constant independent of any functions and of any discretiza- tion parameters. We use the expression A≲B to mean that A⩽cB, and use the expression https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 317 A ∼ = B to mean that A ≲ B ≲ A. For a bounded domain Ω and a generic positive weight function ω , we denote the inner product of L2 ω (Ω) by (u,v)ω ,Ω := ∫ Ω uvω dx and the associated norm by ∥·∥ω ,Ω. We also use Hm ω (Ω) and Hm 0,ω (Ω) to denote the usual weighted Sobolev spaces, whose norm and semi-norm are denoted by ∥u∥m,ω ,Ω and |u|m,ω ,Ω, respectively . We also need the space L2 0,ω ( Ω) = { φ ∈ L2 ω (Ω) : ∫ Ω φω dx = 0 } . In cases where no confusion would arise, ω (if ω = 1 particularly) and/or Ω may be dropped from the notations. We denote by N the set of all non-negative integers and Λ= (− 1,1). For any N ∈ N, we denote by PN(Λ) the set of all polynomials of degree ≤ N defined in Λ, and set P0 N(Λ) := {φ ∈ PN(Λ) : φ (± 1) =0}. Let us denote by △ the triangle domain △ = { (x,y) : 0 < x,y < 1, 0 < x+y < 1 } . We consider the Stokes equations in △ : For a given forcing function f ∈ L2(△ )2, find the velocity vector u and the pressure p such that    − ∆u+∇ p = f, in △ , ∇· u = 0, in △ , u = 0, on ∂ △ . (2.1) 2.1 Duffy mapping In order to describe the triangular spectral method for (2.1 ), we will use two coordinate systems: the Cartesian coordinate (x,y)-system for the triangle △ and the (ξ ,η )-system for the square □ := Λ2 connected by the Duffy mapping x = F(ξ) (x = (x,y) and ξ = (ξ ,η )): x = 1 4 (1+ξ )(1− η ), y = 1+η 2 , ∀(ξ ,η ) ∈ □, (2.2) with its inverse ξ = F− 1(x) from △ to □ by ξ = 2x 1− y − 1, η = 2y− 1, ∀(x,y) ∈ △ . (2.3) Note that the mapping (2.2) is singular as it maps the top side of □ to the single vertex (0,1) of △ . https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 318 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 (a) •(0,0) ❅ ❅ ❅ ❅ ❅ ❅ ❅❅ •(1,0) •(0,1) (b) •(-1,-1) • •(1,1) (1,-1) •(-1,1) Figure 1: (a) Domain △ with coordinate x. (b) Domain □ with coordinate ξ. We collect below some properties of Duffy map, which will be u sed in the sequel: ∂ξ ∂ x = 2 1− y = 4 1− η , ∂ξ ∂ y = 2x (1− y)2 = 2(1+ξ ) 1− η , ∂η ∂ x = 0, ∂η ∂ y = 2, (2.4) ∂ x ∂ξ = 1− y 2 = 1− η 4 , ∂ x ∂η = x 2(1− y) = − 1+ξ 4 , ∂ y ∂ξ = 0, ∂ y ∂η = 1 2 . (2.5) From the above, one easily finds the determinant of the Jacobia n for (2.2): det (∂ (x,y) ∂ (ξ ,η ) ) = 1− η 8 = 1− y 4 . (2.6) Throughout the paper, we shall associate a function u in △ with a function ˜u in □ through ˜u(ξ ,η ) =u(x,y), x = 1 4 (1+ξ )(1− η ), y = 1+η 2 , ∀(ξ ,η ) ∈ □. Then we have ∇ xu = (∂ xu, ∂ yu)T = ( 4 1− η ∂ ξ ˜u, 2(1+ξ ) 1− η ∂ ξ ˜u+2∂ η ˜u ) T , (2.7) and inversely , ∇ ξ ˜u = (∂ ξ ˜u, ∂ η ˜u)T = (1− y 2 ∂ xu, x 2(1− y) ∂ xu+ 1 2 ∂ yu ) T . (2.8) From (2.7), we have immediately ∂ ξ ˜u(ξ ,1) =0 a.e. if ∂ xu is a measurable function. (2.9) In other words, if the approximation solution is chosen such that its partial derivative with respect to x is bounded in △ , then its transformation in □ by Duffy mapping must be constant at the top side. This fact should be kept in mind in constructing the basis functions for the approximation space. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 319 2.2 Rational approximation in triangle The approximation space to be used in our method consists of t he rational functions generated by polynomials in the reference square through the Duffy transform. Precisely , let ˜Rmn(ξ ,η ) be the polynomial in □ defined by: ˜Rmn(ξ ,η ) = J0,0 m (ξ )J1,0 n (η ), ∀(ξ ,η ) ∈ □, (2.10) where Jα ,β k (ζ ), ζ ∈ Λ, is the classical Jacobi polynomial of degree k. Then we define the rational function Rmn(x,y) in △ by the Duffy transformation of ˜Rmn(ξ ,η ), i.e., Rmn(x,y) = ˜Rmn ( 2x 1− y − 1,2y− 1 ) = J0,0 m ( 2x 1− y − 1 ) J1,0 n (2y− 1), ∀(x,y) ∈ △ , and the approximation spaces and their transformations as f ollows: QN(△ ) =span{Rmn(x,y), 0 ≤ m,n ≤ N,(x,y) ∈ △} , (2.11a) ˜QN(□) =span{ ˜Rmn(ξ ,η ), 0 ≤ m,n ≤ N,(ξ ,η ) ∈ □}, (2.11b) Q0 N(△ ) ={v ∈ QN (△ ),v|∂ △ = 0}, (2.11c) ˜Q0 N(□) ={v ∈ ˜QN(□),v|∂ □ = 0}. (2.11d) By the properties of the Jacobi polynomials, we have the foll owing orthogonality: ∫ △ Rmn(x,y)Rm′n′(x,y)dxdy = 1 8 ∫ 1 − 1 J0,0 m (ξ )J0,0 m′ (ξ )dξ ∫ 1 − 1 J1,0 n (η )J1,0 n′ (η )(1− η )dη = γ mnδ mm′δ nn′, with γ mn = 1 2(n+1)(2m+1) . Therefore, any function u ∈ L2(△ ) has the expression u(x,y) = ∞ ∑ m=0 ∞ ∑ n=0 ˆumnRmn(x,y), with the coefficient ˆumn given by ˆumn = 1 γ mn ∫ △ u(x,y)Rmn(x,y)dxdy. (2.12) On the other hand, we have ˜u∈ L2 ̟ (□) if and only if u∈ L2(△ ), where the weight function ̟ := 1− η 8 (2.13) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 320 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 is the Jacobian in (2.6), and ˜u(ξ ,η ) = ∞ ∑ m=0 ∞ ∑ n=0 ˆumn ˜Rmn(ξ ,η ), with ˆumn given in (2.12), or expressed in the alternative form: ˆumn = 1 γ mn ∫ □ ˜u(ξ ,η ) ˜Rmn(ξ ,η )̟ dξ dη . The inner product on L2(△ ) is defined as (φ ,ψ ) = ∫ △ φ (x,y)ψ (x,y)dxdy = ∫ □ ˜φ (ξ ,η ) ˜ψ (ξ ,η ) 1− η 8 dξ dη , ∀φ ,ψ ∈ C(△ ), where (1− η )/8 is the Jacobian given in (2.6). Let ξ p, p=0,1, ···, N, be the Legendre-Gauss-Lobatto points associated to LN, i.e., zeros of (1− z2)L′ N(z), and ω p, p=0,1, ···, N, be the corresponding weights. We can then define the discrete inner product (·,·)N on △ : (φ ,ψ )N = N ∑ p,q=0 ˜φ (ξ p,ξ q) ˜ψ (ξ p,ξ q) 1− ξ q 8 ω pω q, ∀φ ,ψ ∈ C(△ ). (2.14) 2.3 T riangular spectral method for the Stokes equations Now we are in a position to define our triangular spectral metho d for (2.1). Let us denote X = H1 0 (△ ), M = L2 0(△ ) and X = X2. We introduce the bilinear form a(·,·) over X× X by a(v,w) = ∫ △ ∇ v∇ wdxdy, ∀v,w ∈ X, and the bilinear form b(·,·) over X× M by , b(v,q) =− ∫ △ ∇· vqdxdy , ∀v ∈ X, q ∈ M. Then, the weak form of (2.1) reads: Find u ∈ X and p ∈ M such that { a(u,v)+ b(v, p) = (f,v), ∀v ∈ X, b(u,q) =0, ∀q ∈ M. (2.15) Let us define the rational approximation spaces XN = X∩ QN(△ ), MN = M∩ QN− 2(△ ), XN = X2 N , (2.16) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 321 and the discrete bilinear forms aN(uN,vN) = (∇ uN,∇ vN)N, bN(vN,qN) =− (qN,∇· vN)N. (2.17) Then, our triangular spectral method for (2.15) is as follow s: Find uN ∈ XN, pN ∈ MN, such that { aN(uN,vN)+ bN(vN, pN) = (f,vN), ∀vN ∈ XN, bN(uN,qN) =0, ∀qN ∈ MN. (2.18) The well-posedness of the discrete problem (2.18) as well as its error analysis was established in [3]. 2.4 A nodal basis Under the Duffy mapping, XN, MN are transformed into: ˜XN := {ϕ ∈ ˜Q0 N(□),∂ ξ ϕ (ξ ,1) =0}, ˜MN := ˜QN− 2(□)∩ L2 0,̟ (□) , where ̟ is defined in (2.13) and ˜QN(□) is given in (2.11). Let hp(ξ ), p = 0,1, ···, N, are the one-dimensional Lagrangian interpolants associa ted with the Legendre-Gauss-Lobatto points, such that hp(ξ )∈ PN(Λ), hp(ξ q)=δ pq, 0≤ p,q≤ N. Let lp(ξ ), p=1,···, N− 1, are the one-dimensional Lagrangian interpolants associated with the N− 1 interior Legendre-Gauss-Lobatto points, such that lp(ξ ) ∈ PN− 2(Λ), lp(ξ q) =δ pq, 1 ≤ p,q ≤ N− 1. Then, ˜QN(□) =span{hi(ξ )hj(η ), 0 ≤ i, j ≤ N}, ˜Q0 N(□) =span{hi(ξ )hj(η ), 1 ≤ i, j ≤ N− 1}, ˜XN = ˜Q0 N(□), ˜MN = span{li(ξ )lj(η ), 1 ≤ i, j ≤ N− 1}∩ L2 0,̟ (□) . Let ˜ϕ ij(ξ ,η ) =hi(ξ )hj(η ), ˜ψ ij (ξ ,η ) =li(ξ )lj(η ), and define the basis functions ϕ ij(x,y) = ˜ϕ ij (ξ ,η ), ψ ij (x,y) = ˜ψ ij (ξ ,η ) through the Duffy mapping, then we have XN = span{(ϕ ij (x,y),0),(0, ϕ ij (x,y)), 1 ≤ i, j ≤ N− 1}, MN = span{ψ ij (x,y), 1 ≤ i, j ≤ N− 1}∩ L2 0(△ ) . https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 322 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 Figure 2: Mapping of the triangle to square domain. We can then express uN and pN, solution of (2.18), as follows: uN(x,y) =˜uN(ξ ,η ) = N− 1 ∑ i,j=1 uij ˜ϕ ij(ξ ,η ), pN(x,y) = ˜pN(ξ ,η ) = N− 1 ∑ i,j=1 pij ˜ψ ij (ξ ,η ), where, by definition of the basis functions, uij = ˜uN(ξ i,ξ j) =uN(xi,yj), pij = ˜pN(ξ i,ξ j) = pN(xi,yj), 1 ≤ i, j ≤ N− 1, with (xi,yj) the mapped points in △ of the Gauss-Lobatto points (ξ i,ξ j), i.e., (xi,yj) = F(ξ i,ξ j); see Fig. 2. Plugging the above expansions into (2.18), we arrive at the f ollowing matrix system: { ANu+DN p = BNf, DT Nu = 0, (2.19) where f is a vector representation of f at the Gauss-Lobatto points. The matrices AN, DN, and BN are block-diagonal matrices with 2 blocks each. The blocks o f AN are the discrete Laplace operator, and those of DN are associated to the different components of the discrete gradient operators, while blocks of BN are the mass matrices. 3 Unstructured nodal spectral-element method We now provide some details on integrating the triangular spectral method for the Stokes equations presented in the last section into the general spe ctral-element framework. This integration will enable us to use an arbitrary mixture of tri angular and quadrilateral ele- ments in a traditional spectral-element code. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 323 3.1 Spectral-element formulation with unstructured mesh Let Ω be a polygonal domain, which is decomposed into a number of el ements: Ω = K⋃ k=1 Ωk, Ωi ∩ Ωj = ∅, i ̸= j; each Ωi is a triangle or a quadrilateral. We assume that the decomposition is conforming in the sense that the intersection Ωk∩ Ωj (1 ≤ k ≤ j ≤ K) is either empty or a vertex or a whole side of Ωk and Ωj. Let Fk be the mapping which maps □ onto Ωk. If Ωk is a triangle, the mapping is given in (A.1) below; while if Ωk is a quadrilateral, we use the usual bilinear blended mappin g (cf. [6]). Remark 3.1. Note that the above partition and mapping are not “spectrall y admissible” (cf. [11]) in the usual sense of spectral-element formulati on, since the Jacobian of the in- verse mapping of F k, in the case Ωk is a triangle, is not bounded. This relaxation on Fk allows us to use unstructured mesh with both quadrilaterals and triangles while main- taining the spectral accuracy . We now define the local approximation space and spectral-elem ent spaces as follows: Qk N = {vN ∈ L2(Ωk), vN ◦Fk ∈ ˜QN(□)}, 1 ≤ k ≤ K, (3.1a) Xk N = Qk N ∩ H1(Ωk), (3.1b) XN = {vN ∈ H1 0 (Ω), vN|Ωk ∈ Xk N, 1 ≤ k ≤ K}, (3.1c) MN = {qN ∈ L2 0( Ω), qN|Ωk ∈ Qk N− 2, 1 ≤ k ≤ K}. (3.1d) It is readily seen that the local space Qk N contains rational functions if Ωk is a triangle, while it reduces to classical polynomial space if Ωk is a quadrilateral. With the above preparation, the unstructured nodal spectra l-element approximation to the Stokes equations on Ω is as follows: Find uN ∈ XN, pN ∈ MN such that          K ∑ k=1 (∇ uN,∇ vN)N,Ωk − K ∑ k=1 (pN,∇· vN)N,Ωk = K ∑ k=1 (f,vN)N,Ωk, ∀vN ∈ XN, K ∑ k=1 (qN,∇· uN)N,Ωk = 0, ∀qN ∈ MN, (3.2) where (φ ,ψ )N,Ωk = N ∑ p,q=0 φ ◦Fk(ξ p,ξ q)ψ ◦Fk(ξ p,ξ q)Jkω pω q, (3.3) with Jk being Jacobian of the mapping Fk. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 324 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 3.2 Implementation details We now describe the implementation details of our unstructu red spectral method (3.2) based on a simple nodal basis for the velocity and pressure. Mo re precisely , we describe below the formation of the linear system corresponding to (3.2) and the fast matrix-vector multiplications. Let us describe how to deal with the term (∇ uN,∇ vN)N,Ωk in detail. Other terms can be treated in a similar fashion. By definition, we have (∇ uN,∇ vN)N,Ωk = N ∑ p,q=0 Gk 1(ξ p,ξ q) ∂ ˜uk N ∂ξ ∂ ˜vk N ∂ξ (ξ p,ξ q)ω pω q + N ∑ p,q=0 Gk 2(ξ p,ξ q) ∂ ˜uk N ∂η ∂ ˜vk N ∂η (ξ p,ξ q)ω pω q + N ∑ p,q=0 Gk 3(ξ p,ξ q) ( ∂ ˜uk N ∂ξ ∂ ˜vk N ∂η + ∂ ˜uk N ∂η ∂ ˜vk N ∂ξ ) (ξ p,ξ q)ω pω q, (3.4) where, for a function v defined in Ωk, ˜vk means v◦Fk, and Gk 1,Gk 2, and Gk 3 are defined as Gk 1 = 1 |Jk| [(∂ x ∂η ) 2 + (∂ y ∂η ) 2] , (3.5a) Gk 2 = 1 |Jk| [(∂ x ∂ξ ) 2 + (∂ y ∂ξ ) 2] , (3.5b) Gk 3 = − 1 |Jk| [ ∂ x ∂ξ ∂ x ∂η + ∂ y ∂ξ ∂ y ∂η ] . (3.5c) The evaluation of these geometric factors in the case of tria ngular elements are given in the Appendix. To derive the linear system associated to problem (3.2), we need a suitable basis for the spectral-element approximation spaces defined in (3.1). We start by constructing the basis functions for the local spaces associated to a given element Ωk. Since the construction for the quadrilateral elements is standard (cf. [17, 22]), we sh all only consider the case with triangular elements. In this case, as indicated in (2.9), we see that the transform ation of the velocity local space Qk N ∩ H1(Ωk) satisfies Xk N = { vN ∈ H1(Ωk), vN ◦Fk ∈ ˜QN(□), ∂ ξ (vN ◦Fk)(·,1) =0 } , where, no loss of generality , we have supposed that the top si de of □ is the collapsed side, which is mapped to a vertex of the triangle Ωk through Fk. In other words, the transformation in □ of the velocity local space consists of the polynomials of de gree ≤ N, https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 325 which take constant values at the top side. A closer examinat ion shows that the most natural basis for the space Xk N is the set of the following rational functions: Xk N = span { ϕ ij(x,y), ϕ 0N(x,y) : ϕ ij ◦Fk(ξ ,η ) =hi(ξ )hj(η ), 0 ≤ i ≤ N, 0 ≤ j ≤ N− 1, ϕ 0N ◦Fk(ξ ,η ) =hN (η ) } . Introducing the index set ΞN := {(i, j) : 0≤ i ≤ N, 0 ≤ j ≤ N− 1} ∪{ (0,N)}, (3.6) we can then write Xk N = span { ϕ ij(x,y) : (i, j) ∈ ΞN } . Here, one needs to pay a particular attention to the basis fun ction ϕ ij corresponding to (i, j) = (0,N). This basis function is associated to the vertex which corre sponds to the col- lapsed side in the reference domain □. Therefore all basis functions satisfy the condition: ∂ ξ ˜ϕ ij(ξ ,1) =0, ∀ξ ∈ Λ, ∀(i, j) ∈ ΞN. Concerning the pressure local space, we have the following n atural choice for the basis: Qk N = span { ψ ij (x,y) : ψ ij ◦Fk(ξ ,η ) =li(ξ )lj(η ), 1 ≤ i, j ≤ N− 1 } . We can now express the local solutions in a given element Ωk as ˜uk N(ξ ,η ) = N ∑ i=0 N− 1 ∑ j=0 uk ij hi(ξ )hj(η )+ uk 0NhN (η ), ˜pk N(ξ ,η ) = N− 1 ∑ i,j=1 pk ij li(ξ )lj(η ), where uk ij = uN ◦Fk(ξ i,ξ j), i = 0,···, N, j = 0,···, N− 1; uk 0N = uN ◦Fk(0,1); pk ij = pN ◦Fk(ξ i,ξ j), i, j = 1,···, N− 1. Plugging the above expansions into (3.2), and choose the nod al basis functions of XN as https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 326 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 test functions, we find that the term (3.4) becomes: for m = 0,1, ···, N; n = 0,1, ···, N− 1, ∑ (i,j)∈ ΞN ak mn,ij uk ij = ak N (uk N, ϕ mn) = N ∑ p,q=0 [ Gk 1(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij h′ i(ξ p)hj(ξ q) ) h′ m(ξ p)hn(ξ q)ω pq ] + N ∑ p,q=0 [ Gk 2(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij hi(ξ p)h′ j(ξ q)+ uk 0Nh′ N(ξ q) ) hm(ξ p)h′ n(ξ q)ω pq ] + N ∑ p,q=0 [ Gk 3(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij h′ i(ξ p)hj(ξ q) ) hm(ξ p)h′ n(ξ q)ω pq ] + N ∑ p,q=0 [ Gk 3(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij hi(ξ p)h′ j(ξ q)+ uk 0Nh′ N(ξ q) ) h′ m(ξ p)hn(ξ q)ω pq ] = N ∑ p=0 Gk 1(ξ p,ξ n)Dpm ( N ∑ i=0 Dpiuk in ) ω pn + N ∑ q=0 Gk 2(ξ m,ξ q)Dqn (N− 1 ∑ j=0 Dqj uk mj + DqN uk 0N ) ω mq + N− 1 ∑ q=0 Gk 3(ξ m,ξ q)Dqn ( N ∑ i=0 Dmiuk iq ) ω mq + N ∑ p=0 Gk 3(ξ p,ξ n)Dpm (N− 1 ∑ j=0 Dnj uk pj + DnN uk 0N ) ω pn, where Dkj = h′ j(ξ k), Gk 1,Gk 2 and Gk 3 are geometric factors in (3.5) related to the mapping (A.1). For the basis function, hN(η ), corresponding to the index (m,n) = (0,N), noticing that the derivative of hN(η ) with respect to ξ vanishes, we have ∑ (i,j)∈ ΞN ak 0N,ij uk ij = ak N(uk N,hN(η )) = N ∑ p,q=0 [ Gk 2(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij hi(ξ p)h′ j(ξ q)+ uk 0Nh′ N(ξ q) ) h′ N(ξ q)ω pq ] + N ∑ p,q=0 [ Gk 3(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij h′ i(ξ p)hj(ξ q) ) h′ N(ξ q)ω pq ] = N ∑ p,q=0 [ Gk 2(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij δ pi Dqj +uk 0N DqN ) DqN ω pq ] + N ∑ p,q=0 [ Gk 3(ξ p,ξ q) ( N ∑ i=0 N− 1 ∑ j=0 uk ij Dpiδ qj ) DqN ω pq ] = N ∑ q=0 [ N ∑ p=0 Gk 2(ξ p,ξ q)DqN (N− 1 ∑ j=0 Dqjuk pj + DqN uk 0N ) ω pq ] + N− 1 ∑ q=0 [ N ∑ p=0 Gk 3(ξ p,ξ q)DqN ( N ∑ i=0 Dpiuk iq ) ω pq ] . https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 327 It is worthwhile to mention that in the last equality , the ter m corresponding to q = N disappears due to the presence of the Kronecker symbol δ qj. We see that, despite the possible presence of singular Jacobian Jk at the top side, the matrix-vector multiplication corresponding to (∇ uN,∇ vN)N,Ωk contains no singular term. Obviously , the matrix-vector multiplication corresponding to (pN,∇· vN)N,Ωk, namely N− 1 ∑ i,j=1 dk mn,ij pk ij , m,n = 1,···, N− 1 can be treated in a similar fashion. The global matrix system can be built by assembling the local matrix system, together with the continuity conditions for the velocity , which can b e accomplished by requir- ing that the neighboring solutions share same nodal values a t the interfaces. Finally the resulting set of algebraic equations can be written in a matr ix form, { ANu+DN p = BNf, DT Nu = 0, (3.7) or, in component form,            K ∑ k=1 Γ [ ∑ (i,j)∈ Ξk N ak mn,ij uk ij + N − 1 ∑ i,j=1 dk mn,ij pk ij ] = K ∑ k=1 Γbk mnfk mn , (m,n) ∈ Ξk N, N− 1 ∑ i,j=1 dk ij,mn uk ij = 0, m,n = 1,···, N− 1; k = 1,···,K, where Ξk N is the set {(i, j);0 ≤ i, j ≤ N} if Ωk is a quadrilateral or is defined by (3.6) if Ωk is a triangle, and ∑Γ means the summation after taking into account the continuit y of the velocity on the elemental interfaces and the Dirichle t boundary conditions on the velocity . Using a block Gaussian elimination, this discrete spectral -element saddle problem (3.7) can be decoupled into two positive definite systems for t he pressure and the ve- locity respectively , which are then solved by using a precon ditioned conjugate gradient method. For more detail in this regard, we refer to [12, 21]. 4 Numerical results We present in this section several numerical experiments to demonstrate the flexibil- ity , accuracy as well as the shortcomings of the proposed uns tructured spectral-element method. In particular, we demonstrate the applicability of this method for simulations of incompressible flows governed by the Navier-Stokes equatio ns. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 328 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 Figure 3: Triangular partition (left); Quadrangular parti tion (right). 4.1 Accuracy and stability test We examine here the accuracy and stability of the triangular spectral-element method and compare them with the quadrangular spectral-element me thod. We consider the Navier-Stokes equations              ∂ u ∂ t +u·∇ u− ν ∆u+∇ p = f, in Ω× (0,T), ∇· u = 0, in Ω× (0,T), u = g, on ∂ Ω× (0,T), u = u0, on Ω×{ 0}. (4.1) The above equations are first discretized in time by using a second-order semi-implicit BDF-Adam-Bashforth scheme. This leads to, at each time step , a generalized Stokes prob- lem which is then discretized by using the triangular and qua drangular spectral-element methods. The final linear system after the space discretization is solved by using an inner- outer preconditioned conjugate gradient procedure combined with the Uzawa algorithm (cf. [12]). We first solve the above equations with ν = 1 and with the steady state solution u(x,y,t) = (sinxcosy,− cosxsiny), p(x,y,t) =sin xsiny. In Fig. 4, we plot, in a semi-log scale, the L2-errors and the H1-errors obtained from the triangular and quadrangular spectral-element methods with the partitions in Fig. 3. It is observed that the errors of the numerical solutions dec ay exponentially , and the convergence rates using the two partitions are comparable. Next, we examine the effect of clustering of points near the s ingular vertex on the stability of a popular time discretization scheme in which t he time derivative is approxi- mated by the second-order BDF formula while the nonlinear co nvective terms are treated https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 329 1e-14 1e-12 1e-10 1e-08 1e-06 0.0001 0.01 1 2 4 6 8 10 12 14 error N quadrangle,u,H1 quadrangle,u,L2 triangular,u,H1 triangular,u,L2 1e-14 1e-12 1e-10 1e-08 1e-06 0.0001 0.01 1 2 4 6 8 10 12 14 error N quadrangle,p,L2 triangular,p,L2 Figure 4: Errors in the L2- and H1-norms versus the polynomial degree, obtained with the tria ngular and the quadrangular spectral-element methods. Left: velocity er ror; Right: pressure error. in the frame of semi-Lagrange method [21]. In Table 1, we list the maximum allowable time steps for solving the Navier-Stokes equations (4.1) wi th ν = 0.001 using the quadri- lateral and triangular partitions in Fig. 3. It is observed t hat the time steps required for the triangular spectral-element method are generally 2-3 t imes smaller than that for the corresponding quadrangular spectral-element method. Table 1: Maximum allowable time steps for the quadrilateral and triangular partitions. N 4 6 8 10 12 14 △ 0.091-0.092 0.044-0.045 0.026-0.027 0.016-0.017 0.012-0.013 0.0092-0.0093 □ 0.15-0.16 0.13-0.14 0.078-0.079 0.05-0.051 0.035-0.036 0.022-0.023 4.2 Effects on conditioning While the use of nodal tensorial triangular elements offers the geometric flexibility , it does have a negative impact on the conditioning of the system matrix due to the fact that collocation points are densely clustered near the collapse d node (see Fig. 2). Let AN be the system matrix associated with the Laplace operator us ing the quadran- gular and triangular spectral-element partitions in Fig. 3 , and HN := β I +AN We compare in Table 2 their condition numbers and growth rates α defined by α C = log(cond(C))/log N for a given matrix C. It is shown that the condition numbers of both AN and HN (with β = 1000) in the triangular case grow much faster than the quadra ngular case. Next, we examine the condition numbers for the Uzawa operato r SN := DNA− 1 N DT N and the mass-matrix preconditioned Uzawa operator ˜SN := ˜B − 1 N SN, where ˜BN is the mass https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 330 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 Table 2: Condition numbers for the generalized Helmholtz op erator. △ □ N cond(AN) α AN cond(HN) α HN cond(AN) α AN cond(HN) α HN 4 270.8 4.04 63.7 3.00 58.2 2.93 32.5 2.51 8 2319.3 3.73 356.4 2.83 218.9 2.59 49.5 1.88 12 9959.7 3.70 2224.6 3.10 530.3 2.52 81.2 1.77 16 30932.1 3.73 8104.2 3.24 1105.3 2.53 147.5 1.80 Table 3: Condition numbers for the Uzawa operator. △ □ N cond(SN) α SN cond(˜ SN) α ˜ SN cond(SN) α SN cond(˜ SN) α ˜ SN4 17.4 2.06 6.7 1.37 11.8 1.78 7.5 1.45 8 29.7 2.73 8.7 1.04 57.0 1.94 8.6 1.0 12 1616.2 2.97 9.3 0.90 146.5 2.01 9.2 0.89 16 5384.7 3.10 9.6 0.82 286.5 2.04 9.6 0.82 matrix associated to the Gauss quadrature. We observe in Table 3 that while the condition numbers of SN in the triangular case grows faster than that in the quadrangular case, their preconditioned matrices behave very similarly and only gro w very slowly . 4.3 Moffatt flow Next, we consider the Moffatt flow near a sharp corner at zero Re ynolds number (Stokes flow). The computational domain is a triangle with three vert exes (− 1,0),(1,0),(0,− 4). The domain is partitioned into 30 triangular elements (cf. l eft of Fig. 5) with N = 18. The flow is driven by a tangential velocity (1− x)(1+ x) along the top of the domain. The streamline contours are plotted on the right of Fig. 5. We are able to capture a cascade of Figure 5: The domain partition (left), and the contours of th e stream function (right). https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 331 small eddies towards the bottom vertex. The results are in ag reement with the Fig. 23 in paper [19]. 4.4 Flow through a backward facing step We now apply our spectral-element method to simulate the flow through a backward facing step by solving the Navier-Stokes equations (4.1) in the domain illustrated in Fig. 6. Γ0 Γ0 ✲ ✻ y x ✲ ✲ ✲ Γ1 Γ0, Γ2 (-0.8,0) (-0.8,0.4) (0,-0.2) (4.3,-0.2) Figure 6: Domain configuration. The boundary and initial conditions in (4.1) for the backwar d facing step flow are specified as follows: g =        (0,0), on Γ0,( 1− (1− 5y)2,0 ) , on Γ1, (2 3 [ 1− ( 1− 10 3 (y+0.2) ) 2] ,0 ) , on Γ2, (4.2) u0 = (2 3 [ 1− ( 1− 10 3 (y+0.2) ) 2] ,0 ) . (4.3) We consider the case of Reynolds number Re = ¯u(H− h)/ν = 191, where ¯u is the aver- age velocity at the entrance, H and h are respectively the height of the outlet and the en- trance. So H− h means the height of the step. The expansion ratio of the step i s h: H =2:3. The profile of the inflow boundary condition is taken parabolic , as specified in (4.2). The outlet boundary is taken far away from the step (22 step heigh ts) to avoid possible artifi- cial reflection. The spectral-element meshes based on a pure quadrangular partition and a mixed triangular/quadrangular partition are shown in Fig . 7. The Navier-Stokes equations (4.1) are first discretized in ti me by using a second order BDF scheme for the linear part, and the nonlinear convective terms are treated in the frame of semi-Lagrange method [21]. We used N = 8 in each macro-element and the time step size △ t = 2× 10− 4. All the presented results correspond to the numerical solution cap tured at t = 1.482. We validated the unstructured spectral-element method by c omparing the results with those obtained by a structured rectangular spectral-e lement mesh. Figs. 8-10 show respectively the velocity vectors, pressure and streamline contours obtained by the quad- rangular spectral-element method (top) and triangular spe ctral-element method (bot- tom). There is no noticeable difference between the two meth ods. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 332 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 Figure 7: Domain partitions and spectral-element meshes fo r the backward facing step flow. The domain is broken into pure quadrangular elements (up) and mixed trian gular/quadrangular elements (down). Figure 8: Instantaneous velocity vectors distribution. Th e results are essentially the same for the classical spectral-element method (up) and triangular spectral-ele ment method (down). Figure 9: Pressure contours obtained respectively from the quadrangular spectral-element method (up) and triangular spectral-element method (down). Figure 10: Streamline contours: quadrangular spectral-el ement method (up) and triangular spectral-element method (down). https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 333 Figure 11: Enlarged pressure contourlines in the vicinity o f the step: quadrangular spectral element method (left); triangular spectral-element method (right). In order to make a more detailed comparison, we present in Fig . 11 an enlarged view of the pressure pattern near the step. It is observed that the unstructured mesh produces smoother pressure fields than the structured one. This is due t o the fact that there are more grid points around the step corner in the unstructured m esh. This indicates that the clustering of the grid points near the “collapsed” vertex in the triangular elements is not always wasteful and can be useful in resolving corner singul arities and sharp layers. We observe that the triangular spectral method does lead to larger condition numbers and require more CG iterations as expected. However, it is wo rthwhile to mention that in most cases only a few triangular elements are needed to resol ve the geometric singularity and allow geometric flexibility . For instance, in the backwa rd-facing step example (cf. Fig. 7) considered above, only six triangular elements are needed near the re-entry corner. Hence, it is expected that the effect of the triangular eleme nts on the assembled system matrices will not be as pronounced as in the single element ca se. This is confirmed by the results in Table 4 where we list the numbers of the outer Uzawa iterations for the Stokes problem and the number of inner CG iterations (for a toleranc e of 10 − 8) for solving the two velocity components with the two meshes in Fig. 7. Table 4: Condition numbers and iteration numbers of the Stok es solver in the backward-facing step flow. condition # of # of outer # of inner # of inner Uzawa operator Uzawa iterations iterations for u1 iterations for u2 △ 155.9 42 265 236 □ 152.7 41 194 176 Note that we have only considered the straightforward diago nal and mass-matrix preconditioners here, it is expected that condition number s and iteration numbers can be reduced significantly by using a low-order finite-element meth od on the same grid as a preconditioner (cf. [4, 13]). However, how to efficiently sol ve the finite-element system on a spectral-element mesh which is not shape regular requir es further investigation. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 334 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 5 Conclusions We presented an unstructured nodal spectral-element metho d for the two-dimensional Stokes and Navier-Stokes equations. The method is based on a rational approximation in triangle/tetrahedrons and an easy-to-implement nodal basis. The main advantages of the proposed method are: (i) flexibility in handling complex dom ains; (ii) full tensor product property; (iii) an easy-to-implement nodal basis; and (iv) it can be easily extended to the three-dimensional case. We presented several two-dimensional numerical experimen ts which demonstrated the flexibility and accuracy of the method for a variety of pro blems including incom- pressible flows governed by the time dependent Navier-Stoke s equations. It is also observed that the use of triangular elements leads to larger condition num- bers and requires more iterations when a simple CG iteration with diagonal precondi- tioner is used. This loss in computational efficiency is the pr ice we pay for the geometric flexibility . On the other hand, the loss can be significantly re duced if only a few neces- sary triangular elements are used to resolve the geometric s ingularity as in the backward facing step example. However, for full unstructured grid, i t becomes important to con- struct a more efficient preconditioner by using perhaps a finitedifference or finite element method on the same grid (cf. [4, 13]). We shall leave this and t he extension to three di- mensional tetrahedral cases to a future work. Acknowledgments The work of the second author is partially supported by NFS gr ant DMS-0610646. The research of the third author was partially supported by Nati onal NSF of China (Grant number 11071203). Appendix: Computation of the geometric factors Gk i Let the three vertexes of Ωk be (x1,y1),(x2,y2), and (x3,y3). Then, the one-to-one trans- formation from □ to Ωk reads        x = 1 4 (1+ξ )(1− η )(x2 − x1)+ 1 2 (1+η )(x3 − x1)+ x1, y = 1 4 (1+ξ )(1− η )(y2 − y1)+ 1 2 (1+η )(y3 − y1)+ y1, ∀(ξ ,η ) ∈ □, (A.1) with the inverse transformation        ξ = 2 (x− x1)(y3 − y1)− (x3 − x1)(y− y1) (x− x3)(y2 − y1)− (x2 − x1)(y− y3) − 1, η = 2 (x− x1)(y2 − y1)− (x2 − x1)(y− y1) (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) − 1, ∀(x,y) ∈ Ωk. (A.2) https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 335 In addition, we can easily derive the following formulas: ∂ξ ∂ x = 2 [ (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) ] (y− y3) [ (x− x3)(y2 − y1)− (x2 − x1)(y− y3) ]2 , (A.3a) ∂ξ ∂ y = − 2 [ (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) ] (x− x3) [ (x− x3)(y2 − y1)− (x2 − x1)(y− y3) ]2 , (A.3b) ∂η ∂ x = 2 y2 − y1 (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) , (A.3c) ∂η ∂ y = − 2 x2 − x1 (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) , (A.3d) ∂ x ∂ξ = (x2 − x1) 1− η 4 , ∂ x ∂η = − (x2 − x1) 1+ξ 4 + 1 2 (x3 − x1), (A.3e) ∂ y ∂ξ = (y2 − y1) 1− η 4 , ∂ y ∂η = − (y2 − y1) 1+ξ 4 + 1 2 (y3 − y1), (A.3f) Jk = det (∂ (x,y) ∂ (ξ ,η ) ) = 1− η 8 [ (x2 − x1)(y3 − y1)− (x3 − x1)(y2 − y1) ] . (A.3g) In virtue of above formulas, we obtain a relationship betwee n ∇ x ϕ (x,y) and ∇ ξ ˜ϕ (ξ ,η ) as follows: ∂ϕ ∂ x = 2 [ (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) ] (y− y3) [ (x− x3)(y2 − y1)− (x2 − x1)(y− y3) ]2 ∂ϕ ∂ξ +2 y2 − y1 (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) ∂ϕ ∂η , ∂ϕ ∂ y = − 2 [ (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) ] (x− x3) [ (x− x3)(y2 − y1)− (x2 − x1)(y− y3) ]2 ∂ϕ ∂ξ − 2 x2 − x1 (x3 − x1)(y2 − y1)− (x2 − x1)(y3 − y1) ∂ϕ ∂η , ∂ ˜ϕ ∂ξ = (x2 − x1) 1− η 4 ∂ϕ ∂ x +( y2 − y1) 1− η 4 ∂ϕ ∂ y , ∂ ˜ϕ ∂η = [ − (x2 − x1) 1+ξ 4 + 1 2 (x3 − x1) ] ∂ϕ ∂ x + [ − (y2 − y1) 1+ξ 4 + 1 2 (y3 − y1) ] ∂ϕ ∂ y . References [1] J. P . Boyd. Chebyshev and Fourier spectral methods. Dove r Publications Inc., Mineola, NY , second edition, 2001. [2] D. Braess and C. Schwab. Approximation on simplices with respect to weighted Sobolev norms. J. Approx. Theory, 103(2):329–337, 2000. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at 336 L. Chen, J. Shen and C. Xu / Commun. Comput. Phys., 12 (2012), pp. 315-336 [3] L. Chen, J. Shen, and C. Xu. A triangular spectral method f or the Stokes equations. Numer. Math.: Theory , Methods and Applications, to appear. [4] M. O. Deville and E. H. Mund. Chebyshev pseudospectral so lution of second-order elliptic equations with finite element preconditioning. J. Comput. P hys., 60:517–533, 1985. [5] M. Dubiner. Spectral methods on triangles and other doma ins. J. Sci. Comput., 6(4):345–390, 1991. [6] W . J. Gordon and C. A. Hall. Transfinite element methods: b lending-function interpolation over arbitrary curved element domains. Numer. Math., 21:10 9–129, 1973/74. [7] W . Heinrichs and B. I. Loch. Spectral schemes on triangul ar elements. J. Comput. Phys., 173(1):279–301, 2001. [8] J. S. Hesthaven. From electrostatics to almost optimal n odal sets for polynomial interpola- tion in a simplex. SIAM J. Numer. Anal., 35(2):655–676 (elec tronic), 1998. [9] G. E. Karniadakis and S. J. Sherwin. Spectral/ hp element methods for CFD. Numerical Mathematics and Scientific Computation. Oxford University Press, New Y ork, 1999. [10] T. Koornwinder. Two-variable analogues of the classic al orthogonal polynomials. In Theory and application of special functions (Proc. Advanced Sem., Math. Res. Center, Univ . Wiscon- sin, Madison, Wis., 1975), pages 435–495. Math. Res. Center , Univ . Wisconsin, Publ. No. 35. Academic Press, New Y ork, 1975. [11] Y . Maday and A. T. Patera. Spectral element methods for t he incompressible Navier-Stokes equations. In IN: State-of-the-art surveys on computation al mechanics (A90-47176 21-64). New Y ork, American Society of Mechanical Engineers, 1989, p . 71-143. Research supported by DARP A., volume 1, pages 71–143, 1989. [12] Y . Maday , D. Meiron, A. T. Patera, and E. M. Rønquist. Ana lysis of iterative methods for the steady and unsteady Stokes problem: application to spectra l element discretizations. SIAM J. Sci. Comput., 14(2):310–337, 1993. [13] S. A. Orszag. Spectral methods for complex geometries. J. Comput. Phys., 37:70–92, 1980. [14] R. G. Owens. Spectral approximations on the triangle. R . Soc. Lond. Proc. Ser. A Math. Phys. Eng. Sci., 454(1971):857–872, 1998. [15] R. Pasquetti and F . Rapetti. Spectral element methods o n triangles and quadrilaterals: com- parisons and applications. Journal of Computational Physi cs, 198(1):349–362, 2004. [16] R. Pasquetti and F . Rapetti. Spectral element methods o n unstructured meshes: comparisons and recent advances. J. Sci. Comput., 27(1-3):377–387, 200 6. [17] A. T. Patera. A spectral element method for fluid dynamic s: laminar flow in a channel expansion. Journal of Computational Physics, 54(3):468–4 88, 1984. [18] J. Shen, L.-L. W ang, and H. Li. A triangular spectral ele ment method using fully tensorial rational basis functions. SIAM J. Numer. Anal., 47(3):1619 –1650, 2009. [19] S. J. Sherwin and G. E. Karniadakis. A triangular spectr al element method; applications to the incompressible Navier-Stokes equations. Comput. Meth ods Appl. Mech. Engrg., 123(1- 4):189–229, 1995. [20] M. A. T aylor, B. A. Wingate, and R. E. Vincent. An algorit hm for computing Fekete points in the triangle. SIAM J. Numer. Anal., 38(5):1707–1720 (elect ronic), 2000. [21] C. Xu and R. Pasquetti. On the efficiency of semi-implici t and semi-Lagrangian spectral methods for the calculation of incompressible flows. Intern ational Journal for Numerical Methods in Fluids, 35(3):319–340, 2001. [22] C. Xu and Y . Maday . A spectral element method for the time -dependent two-dimensional euler equations: applications to flow simulations. J. Compu t. Appl. Math., 91(1):63–85, 1998. https:/www.cambridge.org/core/terms. https://doi.org/10.4208/cicp.070111.140711a Downloaded from https:/www.cambridge.org/core. University of South Carolina Libraries, on 06 Mar 2017 at 13:08:53, subject to the Cambridge Core terms of use, available at

采集于

查看校方原文 ↗