Finite volume and finite element schemes for the euler equations in cylindrical and spherical coordinates
Abstract
A numerical scheme is presented for the solution of the compressible Euler equations over unstructured grids in cylindrical and spherical coordinates. The proposed scheme is based on a mixed finite volume / finite element approach. Numerical simulations are presented for the explosion problem in two spatial dimensions in cylindrical and spherical coordinates, and the numerical results are compared with the one-dimensional simulation for cylindrically and spherically symmetric explosions.
Full text
289 IV International Conference on Computational Methods for Coupled Problems in Science and Engineering COUPLED PROBLEMS 2011 M. Papadrakakis, E. O˜nate and B. Schrefler (Eds) FINITE VOLUME AND FINITE ELEMENT SCHEMES FOR THE EULER EQUATIONS IN CYLINDRICAL AND SPHERICAL COORDINATES DANTE DE SANTIS∗, GIANLUCA GERACI∗AND ALBERTO GUARDONE† ∗INRIA Bordeaux–Sud-Ouest, `equipe-projet Bacchus Cours de la Lib´eration, 33405 Talence, France e-mail: dante.de [email protected], gianlu[email protected] †Dipartimento di Ingegneria Aerospaziale Politecnico di Milano Via La Masa 34, 20156 Milano, Italy e-mail: [email protected] Key words: Compressible flows, Cylindrical/Spherical Coordinates, Explosion problem, Finite Element/Volume Methods. Abstract. A numerical scheme is presented for the solution of the compressible Euler equations over unstructured grids in cylindrical and spherical coordinates. The proposed scheme is based on a mixed finite volume / finite element approach. Numerical simulations are presented for the explosion problem in two spatial dimensions in cylindrical and spherical coordinates, and the numerical results are compared with the one-dimensional simulation for cylindrically and spherically symmetric explosions. 1 INTRODUCTION Some gasdynamics problems exhibit such strong symmetries that could be more convenient to describe these problems in a curvilinear reference, i.e. cylindrical or spherical, rather than in a Cartesian one. These are, e.g., astrophysical flows, Inertial Confinement Fusion (ICF) applications, sonoluminescence phenomena and nuclear explosions [1]. To compute the numerical solution of the compressible flow equations for these kind of flows, an interesting possibility is provided by the use of a mixed finite volume (FV) / finite element (FE) approach [2]. For example, in viscous flows, it is possible to use the FV and the FE to compute the advection and dissipation terms, respectively, within the same algorithm. The combined use of these two different techniques is made possible by the introduction of suitable equivalence conditions that relate the FV metrics, i.e. cell volumes and inte- 1
290 Dante De Santis, Gianluca Geraci and Alberto Guardone grated normals, to the FE integrals. Equivalence conditions relating FV and FE schemes have been derived for Cartesian coordinates in two and three spatial dimensions [3],[4] and for cylindrical coordinates in axially symmetric two-dimensional problems [6]. In both cited references, equivalence conditions are obtained by neglecting higher order FE contributions. Subsequently in [7], equivalence conditions for the cylindrical coordinates have been derived for the first time without introducing any approximation into the FE discrete expression of the divergence operator, and in [8] the differences between the consistent scheme and an alternative one violating the the equivalence conditions have been quantified for the case of one-dimensional problems in cylindrical and spherical coordinates. In the present paper the consistent formulation is presented in the cylindrical and spherical reference systems. Numerical results for the explosion problem are also provided to demonstrate the correctness of the proposed approach. The present paper is structured as follows. In section 2, the scalar equations in cylindrical and spherical coordinates are introduced. In sections 3 and 4 the spatial discretizations of the scalar equation by FE and FV are presented in cylindrical and spherical coordinates respectively. Equivalence conditions between FE and FV metrics are also shown. In section 3, numerical simulations are presented for the explosion problem in the cylindrical coordinates on the R–θplane and in the the spherical coordinates on the r–φplane. Numerical results are also compared to one-dimensional simulations. 2 SCALAR EQUATIONS IN CYLINDRICAL AND SPHERICAL COORDINATES For simplicity we consider first a multidimensional scalar conservation law. The model equation in a three-dimensional cylindrical reference reads ∂u ∂t +∂fZ ∂Z +1 R ∂ ∂R(RfR)+ 1 R ∂fθ ∂θ =0,(1) where tis the time, Z,R and θare the axial, radial and azimuthal coordinates, respectively, u=u(Z,R,θ, t) is the scalar unknown and f∅(u)=(fZ,f R,f θ) is the so-called flux function. A more compact form of the above equation is obtained by introducing the divergence operator in three-dimensional cylindrical coordinates ∇∅·(·) as follows ∂(u) ∂t +∇∅·f∅(u)=0.(2) The model equation in a three-dimensional spherical reference reads ∂u ∂t +1 r2 ∂ ∂r(r2fr)+ 1 rsin θ ∂ ∂θ(sin θfθ)+ 1 rsin θ ∂fφ ∂φ =0, where r,θand φare the radial, polar and azimuthal coordinates, respectively, u= u(r,θ,φ, t) is the scalar unknown and f(u)=(fr,f θ,f φ) is the flux function. In a 2
291 Dante De Santis, Gianluca Geraci and Alberto Guardone compact form, using the divergence operator in three-dimensional spherical coordinates ∇·(·), it can be rearranged as ∂(u) ∂t +∇·f(u)=0.(3) 3 FINITE VOLUME/ELEMENT METHOD IN CYLINDRICAL COORDINATES 3.1 Node-pair finite element discretization The scalar conservation law (2) is now written in a weak form by multiplying it by the radial coordinate Rand by a suitable Lagrangian test function φi∈Vh⊂H1(Ω). Integrating over the support Ωiof ϕigives Ωi Rϕi ∂u ∂t dΩi+Ωi Rϕi∇∅·f∅(u)dΩi=0,∀i∈N,(4) where Nis the set of all nodes of the triangulation. Note that by multiplying by R, the numerical singularity of the cylindrical reference system is formally removed [6]. In the following, to simplify the notation, the infinitesimal volume dΩ=RdRdθdZ is not indicated in the integrals. Integrating by parts immediately gives Ωi Rϕi ∂u ∂t =Ωi Rf∅·∇ ∅ ϕi+Ωi ϕif∅·∇ ∅ R−∂Ω∂ i Rϕif∅·n∅ i(5) where ∂Ω∂ i=∂Ωi∩∂Ω, with ∂Ωiand ∂Ω are the boundary of Ωiand of the computational domain Ω, respectively, and where n∅ i=nZˆ Z+nRˆ R+nθˆ θis the outward normal versor to Ωi. The scalar unknown is now interpolated as u(Z,R,θ,t)≃uh(Z,R,θ,t)= k∈N uk(t)ϕk(Z,R,θ), and the flux function f∅(uh) is now expanded using the same shape functions φh∈Vh[9] as follows f∅uh=f∅ k∈N uk(t)ϕk(Z,R,θ)≃ k∈N f∅ k(t)ϕk(Z,R,θ), to obtain k∈Ni M∅ ik duk dt= k∈Ni f∅ k(t)·Ωik Rϕk∇∅ ϕi+ k∈Ni f∅ k(t)·Ωik ϕiϕk∇∅ R − k∈N ∂ i f∅ k(t)·∂Ω∂ ik Rϕiϕkn∅ i, 3
292 Dante De Santis, Gianluca Geraci and Alberto Guardone where Niis the set of shape functions ϕkwhose support Ωkoverlap Ωiof ϕi,N∂ iis the set of all boundary nodes of Ωi,Ω ik =Ω i∩Ωkand ∂Ω∂ ik =∂Ωi∩∂Ωk∩∂Ω The previous equation simplifies to [6] k∈Ni M∅ ik duk dt=− k∈Ni,=f∅ k+f∅ i 2·η∅ ik −f∅ k−f∅ i 2·ζ∅ ik +f∅ i· L ∅ i− k∈N ∂ i,= f∅ k−f∅ i 2·χ∅ ik −f∅ i·ξ∅ i, (6) where Ni,==Ni\{i}and N∂ i,==N∂ i\{i}, and the following FE metric quantities have been introduced M∅ ik def =Ωik Rϕiϕk,M ik def =Ωik ϕiϕk,ζ∅ ik def =Ωik ϕiϕkˆ R, L ∅ i def = k∈Ni ζ∅ ik =Ωik ϕiˆ R, η∅ ik def =Ωik R(ϕi∇∅ ϕk−ϕk∇∅ ϕi),χ∅ ik def =∂Ω∂ ik Rϕiϕk,ξ∅ i def =∂Ω∂ ik Rϕi. In the next section, the corresponding FV metrics are derived. 3.2 Edge-based finite volume discretization The spatially discrete form of the scalar conservation law (2) is now obtained according to the node-centred finite volume approach [10]. To this purpose, the integral form of (2) times the radial coordinate Ris enforced over a finite number of non-overlapping finite volumes Ci, with boundary ∂Ci. Over each control volume Cithe cell-averaged unknown is introduced as follows u(Z,R,θ,t)≃ui(t)= 1 ViCi u(Z,R,θ,t), where Viis the volume of the i-th cell. Splitting the boundary integral into interface and edge contributions V∅ i dui dt=− k∈Ni,=∂Cik Rf∅·n∅ i−∂C∂ i Rf∅·n∅ i+Ci f∅·ˆ R,(7) where Ni,=is the set of the finite volume Cksharing a boundary with Ci, excluding Ci and where ∂Cik =∂Ci∩∂Ck=∅,k =i, is the so-called cell interface. As it is standard practice, the flux vector is assumed to be constant over each cell interface. Under this assumption, the domain and boundary contributions read ∂Cik Rf∅·n∅ i≃f∅ ik ·∂Cik Rn∅ i=f∅ ik ·ν∅ ik with ν∅ ik def =∂Cik Rn∅ iand ∂C∂ i Rf∅·n∅ i≃f∅ i·∂C∂ i Rn∅ i=f∅ i·ν∅ iwith ν∅ i def =∂C∂ i Rn∅ i, 4
293 Dante De Santis, Gianluca Geraci and Alberto Guardone respectively. If a second-order centred approximation of the fluxes is considered, namely, fik =(f∅ i+f∅ k)/2, the final form of the finite volume approximation of (2) reads, V∅ i dui dt=− k∈Ni,= f∅ i+f∅ k 2·ν∅ ik +f∅ i· V ∅ i−f∅ i·ν∅ iwith V ∅ i def =Ci ˆ R,(8) to be compared with the corresponding FE discretization (6). 3.3 Finite Element/Volume equivalence The equivalence conditions relating the above FV metric quantities and the FE ones defined in the previous section are now derived. To this purpose, relevant properties of the FE and FV discretizations are briefly recalled. Considering FE metric quantities first, from its definition the vector η∅ ik is asymmetric, namely, η∅ ik =−η∅ ki which will be referred in the following as property FEM-a. Property FEM-b is obtained by noting that k∈Ni(η∅ ik −ζ∅ ik)+ξ∅ i=0which gives immediately L ∅ i= k∈Ni,= η∅ ik +ξ∅ i.(9) Property FEM-c stems from the following identity 3L∅ i=Ωi Rϕi∇∅·p∅=∂Ω∂ i Rϕip∅·n∅ i−Ωi ϕip∅·ˆ R−Ωi Rp∅·∇ ∅ ϕi.(10) By substituting the exact expansion p∅=k∈Nip∅ kϕk, and applying node-pair representation described in section 4.1, Eq. (10) can be written as 3L∅ i= k∈Ni,=p∅ k+p∅ i 2·η∅ ik −p∅ k−p∅ i 2·ζ∅ ik − L ∅ i·p∅ i+ k∈N ∂ i,= p∅ k−p∅ i 2·χ∅ ik +p∅ i·ξ∅ i. By substituting property FEM-b in the above identity, one finally obtain property FEM-c as 3L∅ i= k∈Ni,=p∅ k+p∅ i 2·η∅ ik −p∅ k−p∅ i 2·ζ∅ ik+ k∈N ∂ i,= p∅ k−p∅ i 2·χ∅ ik.(11) Considering now FV metric quantities, from the fact that n∅ i=−n∅ kover ∂Cik, property FVM-a reads ν∅ ik =−ν∅ ki,which corresponds to the conservation property of the scheme. From the Gauss theorem, one also has Ci ∇∅ R= ∂Ci Rn∅ i, 5
294 Dante De Santis, Gianluca Geraci and Alberto Guardone which, from the definition of FV metric quantities, gives property FVM-b as V ∅ i= k∈Ni,= ν∅ ik +ν∅ i.(12) Property FVM-c is obtained by noting that 3V∅ i=Ci R∇∅·p∅=∂Ci Rp∅·n∅ i−Ci ˆ R·p∅.(13) The right hand side of (13) is now computed by means of the FV discretization described in section 3.2 as 3V∅ i= k∈Ni,= p∅ k+p∅ i 2·ν∅ ik −p∅ i· L ∅ i+p∅ i·ν∅ i. which from property FVM-b becomes 3V∅ i= k∈Ni,= p∅ k+p∅ i 2·ν∅ ik.(14) Therefore, a FV approximation can be formally obtained from FE metric quantities defined over the same grid points by setting (see properties FEM/FVM-a and -b) ν∅ ik =η∅ ik,ν∅ i=ξ∅ i, V ∅ i= L ∅ i. Note that the mass lumping approximation, k∈Ni M∅ ik duk dt≃L∅ i dui dt has to be introduced in the Eq. (6) for the equivalence conditions to be applicable. By subtracting Eq. (11) to Eq. (14), one finally has V∅ i=L∅ i+ k∈Ni,= p∅ k−p∅ i 6·ζ∅ ik − k∈N ∂ i,= p∅ k−p∅ i 6·χ∅ ik.(15) It is remarkable that, differently from the Cartesian case [3, 4], in the cylindrical reference the FV cell is not coincident with the FE lumped mass matrix. Moreover, the shape of the FV cells that guarantees equivalence with FE discretization still remains to be determined. 6
295 Dante De Santis, Gianluca Geraci and Alberto Guardone 4 FINITE VOLUME/ELEMENT METHOD IN SPHERICAL COORDINATES 4.1 Node-pair finite element discretization In the present section the spatial discretization of conservation law in a spherical reference system is presented. The scalar conservation law (3) is multiplied by the quantity rsin θto formally remove the singularity of the spherical coordinate system along the zenith direction. The FE node-pair discretization is obtained as done in the cylindrical case, namely M ik dui dt=− k∈Ni,=f k+f i 2·η ik −f k−f i 2·ζ ik+f i· L i − k∈N ∂ i,= f k−f i 2·χ ik −f i·ξ i, (16) where Ni,==N \{i}and N∂ i,==N∂\{i}and the following metric quantities have been introduced M ik def =Ωik rsin θϕiϕkdΩ,η ik def =Ωik rsin θ(ϕi∇ ϕk−ϕk∇ ϕi), ζ ik def =Ωik ϕiϕkˆr, L i def = k∈Ni ζ ik, χ ik def =∂Ω∂ ik rsin θϕiϕk,ξ i def =∂Ω∂ ik rsin θϕi. 4.2 Edge-based finite volume discretization The FV spatially discrete form of the scalar conservation law (3) multiplied by the quantity rsin θreads V i dui dt=− k∈Ni,= f i+f k 2·ν ik +f i· V i−f i·ν i(17) where V i def =∂C∂ i ˆr,ν ik def =∂Cik rsin θn iand ν i def =∂C∂ i rsin θn i 7
296 Dante De Santis, Gianluca Geraci and Alberto Guardone 4.3 Finite Element/Volume equivalence The equivalence conditions relating the FV and FE scheme are obtained like in the cylindrical case. The following properties are introduced for the FE metric quantities η ik =−η ki (FEM −a), L i= k∈Ni,= η ik +ξ i(FEM −b),(18) 3L i=∂Ω∂ i rsin θϕix·n i−Ωi ϕix·ˆr−Ωi rsin θx·∇ ϕi,(FEM −c) and for the FV metric quantities n i=−n k(FVM −a), V i= k∈Ni,= ν ik +ν i(FVM −b),(19) 3V i= k∈Ni,= x i+x k 2·ν ik.(FVM −c) Therefore, a FV approximation can be formally obtained from FE metric quantities defined over the same grid points by setting (see properties FEM/FVM-a and -b) ν ik =η ik,ν i=ξ i, V i= L i. By subtracting (FEM–c) to (FVM–c), one finally has V i=L i+ k∈Ni,= x k−x i 6·ζ ik − k∈N ∂ i,= x k−x i 6·χ ik,(20) where, like the cylindrical case, the mass lumping approximation has been introduced. It is clear that also in this case he FV cell is not coincident with the FE lumped mass matrix and the shape of the FV cells that guarantees equivalence with FE discretization still remains undetermined. 5 FULLY DISCRETE FORM OF THE EULER EQUATIONS IN CYLINDRICAL AND SPHERICAL COORDINATES The Euler equations in cylindrical and spherical coordinates for compressible inviscid flows are now briefly recalled. The differential form reads ∂u∅ ∂t +∇∅·f∅=1 Rs∅and ∂u ∂t +∇·f=1 rsin θs, where u∅(Z,R,θ, t)=(ρ, m∅,Et)Tand u(r,θ,φ, t)=(ρ, m,Et)T, with ρdensity, m∅=(mZ,m R,m θ)T,m=(mr,m θ,m φ)Tmomentum and Ettotal energy per unit 8
297 Dante De Santis, Gianluca Geraci and Alberto Guardone volume. The flux function and the source term are defined as follow in the cylindrical case f∅= mZmRmθ m2 Z ρ+Π mRmZ ρ mθmZ ρ mZmR ρ m2 R ρ+Π mθmR ρ mZmθ ρ mRmθ ρ m2 θ ρ+Π mZ ρ(Et+ Π) mR ρ(Et+ Π) mθ ρ(Et+ Π) ,s∅= 0 0 m2 θ ρ+Π mθmR ρ 0 , and in the spherical one f(u)= mrmθmφ m2 r ρ+Π mθmr ρ mφmr ρ mrmθ ρ m2 θ ρ+Π mφmθ ρ mrmφ ρ mθmφ ρ m2 φ ρ+Π mr ρ(Et+ Π) mθ ρ(Et+ Π) mφ ρ(Et+ Π) , s(u)= 0 m2 θ ρ+Π +m2 φ ρ+Π −mθmr ρ −mφmr ρ 0 ˘s sin θ+ 0 0 m2 φ ρ+Π −mφmθ ρ 0 ¯s cos θ. The FV spatially-discrete form of the Euler equations reads V∅ i du∅ i dt=− k∈Ni,= f∅ k+f∅ i 2·η∅ ik +Lis∅ i−f∅ i·ξ∅ i,(21) V i du i dt=− k∈Ni,= f i+f k 2·η ik +f i· L i−f i·ξ i+˘s iˆ Li+¯s iˇ Li, where the following notation has been used s∅ i def =s∅(u∅ i), ˘s i def =˘s(u i), ¯s i def =¯s(u i). The terms V∅ iand V iare computed from the equivalence condition in cylindrical and 9