Copyright c 2007 Tech Science Press CMES, vol.17, no.2, pp.95-114, 2007
Fictitious Domain Approach for Spectral/hp Element Method
L. Parussini1
Abstract: We propose a fictitious domain approaches have been developed to implement method combined with spectral/hp elements for immersed conditions and we can find different the solution of second-order differential prob- applications: to acoustics [Heikkola, Kuznetsov, lems. This paper presents the formulation, and Lipnikov (1999); Hetmaniuk and Farhat validation and application of fictitiuos domain- (2002); Hetmaniuk and Farhat (2003)], fluid dy- spectral/hp element algorithm to one- and two- namics [Glowinski, Pan, and Periaux (1994); dimensional Poisson problems. Fictitious domain Glowinski, Pan, and Periaux (1995); Glowin- methods allow problems formulated on an intri- ski, Pan, and Periaux (1997); Glowinski, Pan, cate domain Ω to be solved on a simpler domain Hesla, Joseph, and Periaux (1999); Glowinski, Π containing Ω. The Poisson equation, extended Pan, Hesla, Joseph, and Periaux (2001)], bio- to the new domain Π, is expressed as an equiv- medical problems [Arthurs, Moore, Peskin, Pit- alent set of first-order equations by introducing man, and Layton (1998); Roma, Peskin, and the gradient as an additional indipendent variable, Berger (1999); Jung and Peskin (2001); de Hart, and spectral/hp element method is used to develop Peters, Schreurs, and Baaijens (2000); Baaijens the discrete model. Convergence of relative en- (2001); de Hart, Peters, Schreurs, and Baaijens ergy norm η is verified computing smooth solu- (2003)]. In general we have to distinguish the tions to one- and two-dimensional Poisson equa- case of Dirichlet, Neumann or Robin conditions. tions. Thermal field calculations for heatsink pro- Methods to implement Dirichlet conditions can file is presented to demonstrate the predictive ca- be classified in penalty methods and Lagrangian pability of the proposed formulation. methods, as illustrated by [Heikkola, Kuznetsov, Neittanmaki, and Pironneau (2003)]. There are Keyword: fictitious domain, Lagrange multi- examples of Elimination method [Zienkiewicz pliers, spectral/hp element method, Poisson prob- and Taylor (2000)], Penalty method [Zienkiewicz lem. and Taylor (2000); Ramiere, Angot, and Bel- liard (2005)], Distributed Lagrangian method 1 Introduction [Haslinger, Maitre, and Tomas (2001); Glowinski, Pan, Hesla, and Joseph (1999); Glowinski, Pan, The main motivation for fictitious domain ap- Hesla, Joseph, and Periaux (2000)], Boundary proach, alternatively called immersed boundary Lagrangian method [Stenberg (1995); Joly and method, is that, defining the extended problem Rhaouti (1999)], Fat Boundary method [Maury on a simple domain, enables the use of effi- (2001)]. Among all the possible approaches, a cient discretization methods on simple structured technique which is popular, given its efficiency, grids. Literature on fictitious domain methods is to enforce the Dirichlet condition by Lagrange goes back to the sixties [Saul’ev (1963)]. In multipliers, which is the method we propose in the following years there has been a crescent in- this paper. Unfortunately, the same approach can terest on this kind of methodologies [Babuska not be adopted for Neumann immersed boundary (1973); Pitkaranta (1979); Pitkaranta (1980); condition because that one can not be directly en- Pitkaranta (1981); Barbosa and Hughes (1991); forced by Lagrange multipliers [Hetmaniuk and Barbosa and Hughes (1992)]. So that several Farhat (2003)]. Enforcing Neumann boundary conditions within a fictitious domain framework 1 University of Trieste, Mech. Eng. Dept., ITALY. 96 Copyright c 2007 Tech Science Press CMES, vol.17, no.2, pp.95-114, 2007 is not an easy task. To treat them within a as follows: fictitious domain framework least-squares for- find φ(x) such that mulations have been proposed by [Dean, Dihn, Glowinski, He, Pan, and Periaux (1992)], vector − φ = f inΩ (1) s dual formulations with Lagrange multipliers have φ = φ on Γφ (2) been presented in [Joly and Rhaouti (1999); Quar- ∇φ • nˆ = qs on Γ (3) teroni and Valli (1999)] and an algebraic fictitious n q domain approach in [Rossi and Toivanen (1999); where Γ = Γφ Γq and Γφ Γq = 0,/ f is the Makinen, Rossi, and Toivanen (2000)]. We have source term, nˆ is the outward unit normal on chosen to impose it via Lagrange multipliers, in- boundary Γ, φ s is the prescribed value of φ on troducing the gradient of the primal variable as Γ s boundary φ and qn is the prescribed normal flux an unknown and converting Neumann condition on boundary Γq. into a Dirichlet-like condition for this new vari- To enable the implementation of Neumann able. This technique seems to be very efficient, at boundary condition via Lagrange multipliers, we the expense of an increase of computational cost proceed by replacing the Poisson problem, Eq. 1- as it replaces a scalar problem by a vector prob- Eq. 3, with its equivalent first-order system, at the lem. expense of additional variables. The equivalent New approach, we present in this paper, is the problem writes as: coupling of fictitious domain together with an find φ(x) and u(x) such that high order method. To discretize the problem un- der study we use the spectral/hp element method, u−∇φ = 0inΩ (4) based on higher order functions, locally defined −∇• u = f inΩ (5) over finite size parts of domain. The advantage φ = φ s Γ of such kind of method, in comparison with tra- on φ (6) • = s Γ ditional finite element method, is its exponential u nˆ qn on q (7) convergence property with the increasing of poly- nomial order p. Moreover using fictitious domain where u is a vector valued function whose com- φ approach, where extended problem is defined on ponents are the fluxes of scalar function ,asde- a simple domain, enables the use of efficient com- fined in Eq. 4. putational grids, in our case just simple Cartesian We can write the system Eq. 4-Eq. 5 defined on Ω grids. domain in matrix form as: Good accuracy properties of the method are LΦ = F (8) demonstrated by numerical experiments. These ones are performed with several mesh size and where L is the matrix operator, Φ is the vector of polinomyal order of modal function to better unknowns and F is the vector of known terms. In quantify the performance of the proposed solution two dimensions it is: ⎡ ⎤ procedure. Finally, the calculation of the thermal ∂ ⎧ ⎫ ⎧ ⎫ 10− ⎨ φ ⎬ ⎨ ⎬ field for a heatsink fin illustrates the capabilities ⎢ ∂x ⎥ x 0 ⎣ 01− ∂ ⎦ φ = of the method in a practical engineering example. ∂y ⎩ y ⎭ ⎩ 0 ⎭ (9) − ∂ − ∂ φ f ∂x ∂y 0 2 Formulation of the problem: the Poisson φ = ∂φ φ = ∂φ equation with x ∂x y ∂y . Let Ω be the closure of an open bounded region 3 Fictitious domain method Ω in ℜn,wheren represents the number of space =( ,..., ) dimensions, and let x x1 xn be a point in Several variants of fictitious domain method ex- Ω = Ω ∂Ω,where∂Ω = Γ is the boundary of ist: the basic idea is to extend the operator and the Ω. We want to solve the Poisson problem stated domain into a larger simple shaped domain. The Fictitious Domain Approach for Spectral/hp ElementMethod 97
2 most important ways to do this are algebraic and Π ⊃ Ω with fΠ extension of f to L (Π) and im- functional analytic approaches. In algebraic fic- mersed constraints enforced via Lagrange mul- titious domain methods the problem is extended tipliers. The variational formulation of the new typically at algebraic level in such a way that the equivalent problem will be: solution of original problem is obtained directly as a restriction of the solution of extended prob- , − ,∇φ + ,λ = lem without any additional constraint. There are v u Π v Π v q Γq 0 (12) several variants of such an approach [Rossi and −ϕ,∇• uΠ +ϕ,λφ Γφ =(ϕ, f )Π (13) Toivanen (1999); Makinen, Rossi, and Toivanen μ ,uΓ = 0 (14) (2000)] and they can be rather efficient, but typi- q q μ ,φ = cally they are restricted to quite a narrow class of φ Γφ 0 (15) problems. where Γ = ∂Ω and Γ = Γφ Γ . The Lagrange More flexibility and better efficiency can be ob- q multiplier defined on Γφ is denoted by λφ , with μφ tained by using a functional analytic approach the associated weight function, and the Lagrange where the use of constraints ensures that the so- multiplier defined on Γ is denoted by λ , with μ lution of extended problem coincides with the so- q q q the associated weight function (see [Zienkiewicz lution of original problem. In our implementation and Taylor (2000)] for more details). we enforce constraints by Lagrange multipliers. The solution of Poisson problem, Eq. 1-Eq. 3, will For simplicity, let us consider the model problem be the restriction to Ω of the solution of Eq. 12- Eq. 4-Eq. 5 with homogeneous boundary condi- Eq. 15, which are defined on domain Π. tions. The standard approach to solve it is to search for the solution which minimizes the vari- 4 Discretization: spectral/hp element method ational problem, in practice: find (φ,u) ∈ X such that for all admissible weight- The problem Eq. 12-Eq. 15 can not be solved ing functions (ϕ,v) ∈ X analytically and therefore it is necessary to use a numerical method to get approximated solu- tion. The spectral/hp element method is a numeri- , − ,∇φ = v u Ω v Ω 0 (10) cal technique for solving partial differential equa- −ϕ,∇• uΩ =(ϕ, f )Ω (11) tions based on variational formulation of bound- ary and initial value problems [Karniadakis and where ·,·Ω and (·,·)Ω denote the stand- = Sherwin (1999); Pontaza and Reddy (2003); Es- ard H1 and L2 inner products and X 1 1 kilsson and Sherwin (2005); Gerritsma and Maer- (φ,u) ∈ H (Ω) ×H (Ω) : φ|Γ = 0, u• nˆ|Γ = 0 . φ q schalck (2005); Wu, Liu, Scarpas, and Ge (2006); Mitra and Gopalakrishnan (2006)]. The solution Π is represented by a finite number of basis func- tions. Spectral/hp element method is based on higher order functions, which are locally defined Ω over finite size parts of domain (elements). The advantage of such kind of method respect to tra- Γ ditional finite element method is its exponential convergence property with the increasing of poly- nomial order p. Figure 1: Example of a fictitious rectangular do- Historically there is a distinction between hp-type main Π containing the original domain Ω FEM and spectral element method cause of the expansion which can be modal or nodal. According to fictitious domain methodology the In hp-FEM the expansion basis is normally problem is extended to a simple shaped domain modal, i.e. the basis functions are of increasing 98 Copyright c 2007 Tech Science Press CMES, vol.17, no.2, pp.95-114, 2007 order (hierarchical) and the set of order p − 1is contained within the set of order p. In modal ap- ⎧ ⎪1 −ξ proach the expansion coefficients do not have any ⎪ for p = 0 ⎨⎪ 2 particular physical meaning. −ξ +ξ ψ = 1 1 α,β < < , ≥ In contrast in nodal spectral element methods the p ⎪ Pp−1 for 0 p P P 1 ⎪ 2 2 expansion basis are non-hierarchical and consists ⎩⎪1 +ξ for p = P of p +1 polynomial of order p. Moreover the ex- 2 pansion coefficients are associated with a set of (17) nodal points where only one basis function has non-zero value. Hence the expansion coefficients can be interpreted as the physical solution value at the nodal points. 1 1 ψ ψ The methods are mathematically equivalent, in 0 3 numerical practice however the two approches 0-1 0 1 0-1 0 1 do have different numerical properties in terms ξ ξ of implementation efficiency, ability to vary the polynomial order and conditioning of global -1 -1 1 1 sparse systems (see [Karniadakis and Sherwin ψ ψ (1999)] for more details). For this reason we 1 4 choose a modal approach. 0 0 -1 0ξ 1 -1 0ξ 1 We proceed to define a discrete problem by choos- ing appropriate finite element subspaces for φ, -1 -1 each of the components of the vector valued func- 1 1 tion u and Lagrange multipliers λ .Thereareno ψ ψ 2 5 restrictive compatibility conditions on the discrete spaces, so we choose the same finite element sub- 0 0 -1 0 1 -1 0 1 space for each of the primary variables φ and u. ξ ξ The only requirement on approximating spaces is that we choose continuous piecewise polynomials -1 -1 that are at least bi-linear in two dimensions or tri- linear in three dimensions. Figure 2: Shape of modal expansion modes for a Consider the two-dimensional case and let Ph be polynomial order of P = 5 a family of quadrilateral finite elements Ωe that make up the connected model Ωh.WemapΩe Ωˆ =[− , ] × [− , ] to a bi-unit square e 1 1 1 1 ,where and Δ are coefficients associated with each of (ξ,η) Ωˆ Ωˆ i is a point in e. Over a typical element e, the modes of hierarchical basis. In Eq. 17 we approximate φ by the expression α,β Pp are the Jacobi polynomials of order p (see Appendix A: Jacobi Polynomials for more de- tails), in particular ultraspheric polynomials cor- responding to the choice α = β with α = β = 1. n This choice is due to the considerations about the φ(ξ,η)= Δ ϕ (ξ,η) Ωˆ ∑ i i in e. (16) sparsity of the matrices we obtain discretizing the i=1 problem presented by [Karniadakis and Sherwin (1999)]. In Fig. 3 it is shown the construction of a two-dimensional modal expansion basis from the In modal expansion, ϕi are tensor products of the product of two one-dimensional expansions of or- one-dimensional C0 p-type hierarchical basis der P = 4. Fictitious Domain Approach for Spectral/hp ElementMethod 99
sociated with φ, u, λφ and λq. The system will be solved using a direct method.
5 Validation and application In the following we present numerical results ob- tained with the proposed formulation. The solved problems have been selected to assess the predic- tive capabilities on function and gradient using fictitious domain-spectral/hp element models. We verify the accuracy of numerical algorithm com- paring the result to exact solution. Next we con- Figure 3: Construction of a two-dimensional sider the one- and two-dimensional Poisson prob- modal expansion basis from the product of two lem and then the one dimensional diffusion prob- one-dimensional expansions of order P = 4 lem in a cooling fin where exact solution can be computed. In the last example we consider the diffusion problem for a two-dimensional heatsink profile where the exact solution has been com- We approximate the components of the vector val- puted using a finite element solver with a fine ued function u on Ωˆ in similar manner as we e mesh. did for φ in Eq. 16. The approximation of La- grange multipliers requires the discretization of 5.1 One-dimensional stationary Poisson prob- Γ the immersed boundary into curvilinear one- lem dimensional elements Γe, which are mapped to linear unit elements Γˆ e =[−1,1]. On these ele- We solve the one-dimensional boundary value ments the function λ is approximated by the ex- Poisson problem defined on Ω =[−1.0,1.0]: pression d2φ = π2sin(πx) (20) m dx2 λ (ξ)=∑ Δ ψ (ξ) onΓˆ (18) i i e with homogenous Dirichlet boundary conditions: i=1 where ψi are defined in Eq. 16 and Δi are the coef- φ(−1)=0 ficients associated with expansion modes of func- (21) tion λ . In this way we proceed to generate a sys- φ(1)=0. tem of linear algebraic equations at element level The analytical solution of the problem under using Eq. 12-Eq. 15. The integrals in these equa- study Eq. 20-Eq. 21 is φ(x)=sin(πx), whose tions are evaluated using Gauss quadrature rules. dφ ( )=−π (π ) derivative is dx x cos x ,asshownin In our implementation the Gauss-Legendre rules Fig. 4. are used for the modal expansions, and full inte- To solve problem Eq. 20 we employ the fictitious gration is used to evaluate the integrals. domain method, so the computational domain we The global system of equations is assembled from consider is Π =[−1.2,1.2], larger than the origi- the element contributions using the direct summa- nal one Ω (Π ⊃ Ω), and we impose the boundary tion approach. The assembled system of equa- constraints Eq. 21, which are now immersed in tions can be written as the domain, via Lagrange multipliers (Appendix C: Implementation of fictitious domain for one- GY = F (19) dimensional problems). In one-dimensional prob- lems the Lagrange multiplier is just a constant de- where Y are the modal unknown coefficients as- fined on the constrained point. To get the solution 100 Copyright c 2007 Tech Science Press CMES, vol.17, no.2, pp.95-114, 2007
10-1
function 3.0 2elements derivative 3elements 4elements 10-2 5elements 2.0
1.0 η 10-3
0.0
10-4 -1.0
-2.0 10-5 1 3 5 7 9 11 13 p -3.0
-1.0 -0.5 0.0 0.5 1.0 (a) function x
10-1
2elements Figure 4: Analytical solution of one-dimensional 3elements 4elements stationary Poisson test problem Eq. 20-Eq. 21 10-2 5elements
η 10-3 of the equivalent problem spectral elements have been employed. The domain Π has been meshed uniformly. To understand how the accuracy of so- 10-4 lution improves we have tested different grids, in . particular the grid size H has been varied from 1 2 10-5 1 3 5 7 9 11 13 to 0.48, that means Π has been divided into 2, 3, p 4 and 5 equal elements. (b) derivative In Fig. 5(a) we plot the relative energy norm η of φ as a function of the expansion order p of spec- Figure 5: Relative energy norm η of function φ tral elements comparing different grid size. dφ and derivative dx versus the expansion order p of The relative energy norm is defined as spectral elements for Poisson test problem Eq. 20- Eq. 21 [ (φ −φ )2dΩ]1/2 η = Ω numeric analytic (22) [ φ 2 Ω]1/2 Ω analyticd and its derivative. We have to remark that the CPU In Fig. 5(b) we perform the same analysis for the dφ time required to solve the problem increases faster gradient dx . with polynomial order of trial functions, rather During these tests we have observed that accu- than with grid size of fictitious domain. racy increases faster with polynomial order p than number of spectral elements, even if using a fic- titiuos domain approach the spectral convergence of η is lost. For the problem under study with 5.2 Two-dimensional stationary Poisson prob- high numbers of p the number of elements does lem not influence the accuracy at all. If p ≥ 5there- sults are significantly accurate for both function φ The Poisson problem under study is: Fictitious Domain Approach for Spectral/hp ElementMethod 101