NURBS-Enhanced finite element hybridizable discontinuous Galerkin method with degree adaptivity for steady Stokes flow
Abstract
The aim of this project is to develop a high-order accurate space discretisation method for the solution of Stokes problems. The approach will consider a p-adaptive HDG method and NURBS-enhanced finite element method to account for the exact geometric description given by a CAD model. The proposed approach will be tested by using problems with analytical solution and compared to a p-adaptive HDG methodology with isoparametric elements.
Full text
Treball realitzat per: Karthik Neerala Suresh Dirigit per: Prof Antonio Huerta Dr Rubén Sevilla Màster en: Erasmus Mundus M.Sc. in Computational Mechanics Barcelona, 13 June 2017 Departament: Laboratori de Càlcul Numèric TREBALL FINAL DE MÀSTER NURBS-Enhanced Finite Element Hybridizable Discontinuous Galerkin method with degree adaptivity for steady Stokes flow
NURBS-Enhanced Finite Element Hybridizable Discontinuous Galerkin method with degree adaptivity for steady Stokes flow submitted in the partial fulfillment for the Erasmus Mundus Master in Computational Mechanics Centre Internacional de M`etodes Num`erics a l’Enginyeria (CIMNE) Submitted by Karthik Neerala Suresh MSc Computational Mechanics Universitat Polit´ecnica de Catalunya, BarcelonaTech (UPC) Supervised by Prof Antonio Huerta Universitat Polit´ecnica de Catalunya Dr Rub´en Sevilla Swansea University 13 June 2017
Abstract High-order methods have the potential to deliver high accuracy with less degrees of freedom when compared with lower order methods. However high-order methods are still not being utilized in industrially relevant computational fluid dynamics (CFD) problems because of their claimed higher computational cost. The hybridizable discontinuous Galerkin (HDG) method is a novel discontinuous Galerkin (DG) method with very attractive properties. While retaining the advantages of other DG methods like the inherent stabilization and the local conservation properties, the HDG method reduces the total number of degrees of freedom compared to other DG methods such as the local DG or the compact DG. The HDG method achieves this by performing a hybridization similar to the static condensation traditionally used in high-order continuous finite element methods. Another salient feature of the HDG is that an element-by-element postprocessing technique resulting in a superconvergent solution. The superconvergent postprocess solution can be used to define a reliable and computationally cheap error estimator. The main advantages of HDG, and other DG methods, which are found when a high-order functional approximation is considered can, however, be limited by the accuracy of the geometric approximation of curved boundaries when isoparamteric elements are used. This work proposes the combination of HDG and NURBS-enhanced finite element method (NEFEM) for the solution of Stokes flow problems using degree adaptivity. The ability of NEFEM to exactly represent the boundary of the domain by means of its NURBS boundary representation is used to ensure that the geometric description is independent on the degree of the polynomials used in the functional approximation. As a result, the degree adaptivity process is only driven by the error of the functional approximation and not by the error of both the functional and the geometric approximation.
Acknowledgements After an intensive period of eight months, today is the day: writing this note of thanks is the finishing touch on my thesis. It has been a period of intense learning for me, not only in the scientific arena, but also on a personal level. Writing this thesis has had a big impact on me. I would like to reflect on the people who have supported and helped me so much throughout this period. First and foremost, I would like to thank my advisor at UPC, Barcelona. Prof Antonio Huerta has been a great source of inspiration. I have learned a great deal during every interaction with you. Your support and kind words during the toughest phase of my life has indeed helped me grow as a person. Dr Rub´en Sevilla has been much more than a supervisor to me. Since the day I arrived at Swansea University you have been a constant support to me. I cannot thank you enough for your excellent cooperation and for all of the opportunities I was given to conduct my research and further my thesis initially at Swansea University and then at UPC, Barcelona. I would have definitely not completed my M.Sc. had it not been for your constant encouragement. I would also like to thank my colleagues at LaC`aN, Luca, Jordi and Matteo for their wonderful collaboration. You supported me greatly and were always willing to help me. My parents need to be thanked for their wise counsel and sympathetic ear. You are always there for me. Then, there are my friends, Salik, Kamal and Xiaolong. We were not only able to support each other by deliberating over our problems and findings, but also helped each other stay happy by talking about things other than just our papers. Finally, three amazing people have helped me the most to stay focused and relaxed during the days of this project. I would have been in no position to write this thesis had it not been for these incredible people: my classmate and most reliable friend Sai Chandana, my sister Amrutha and my sweetheart Surabhi. I thank you whole-heartedly for putting up with my tantrums and anxiety. Thank you very much, everyone! Karthik Neerala Suresh Barcelona, June 13, 2017.
Contents 1 Introduction 1 1.1 Motivation ................................ 1 1.2 Objective of the research ........................ 3 2 Derivation of Stokes’ equations 5 2.1 The basic conservation equations ................... 5 2.1.1 Mass equation .......................... 6 2.1.2 Momentum equation ...................... 6 2.1.3 Total energy equation ..................... 8 2.2 Simplifying compressible Navier-Stokes equations to Stokes equations 9 2.2.1 Compact form of the conservation equations ......... 10 2.2.2 Simplifications leading to steady Stokes equations ...... 12 2.2.2.1 Formulation in terms of Cauchy stress ....... 12 2.2.2.2 Formulation in terms of velocity and pressure . . . 13 3 HDG formulation for Stokes’ equations 14 3.1 Problem statement ........................... 14 3.2 Functional and interpolation setting .................. 15 3.3 HDG formulation ............................ 17 3.3.1 The HDG local problem .................... 17 3.3.2 The HDG global problem ................... 21 3.3.3 Local postprocessing for velocity ................ 23 3.3.4 Neumann local problems .................... 24 4 Spatial discretization and degree adaptivity 26 4.1 Spatial Discretization .......................... 26 4.1.1 Isoparametric formulation ................... 26 4.1.2 NEFEM formulation ...................... 27 4.1.2.1 Curved elements ................... 28 4.1.2.2 High-order approximation in curved elements . . . 29 4.1.2.3 Numerical integration in curved elements ...... 31 ii
iii Contents 4.2 Degree adaptivity ............................ 32 4.2.1 Error estimation and adaptive strategy based on Richardson extrapolation .......................... 33 4.2.1.1 Richardson extrapolation based size update for hadaptivity ....................... 33 4.2.1.2 Extending Richardon extrapolation to obtain order update for degree adaptivity ............. 35 4.3 Caveats concerning implementation .................. 35 4.3.1 Ensuring compatibility of numerical integration along faces/edges 35 4.3.2 Ensuring geometrical compatibility in meshes with curved elements ............................. 36 5 Numerical examples 38 5.1 Validation of HDG for Stokes equations ................ 38 5.1.1 The 2-D case .......................... 38 5.1.1.1 Meshes with triangular elements .......... 39 5.1.1.2 Meshes with quadrilateral elements ......... 45 5.1.1.3 Hybrid mesh ..................... 50 5.1.1.4 Comparison of triangular and quadrilateral meshes 52 5.1.1.5 Comparison of classical and Neumann formulations of HDG ........................ 53 5.1.2 The 3-D case .......................... 54 5.1.2.1 Meshes with tetrahedral elements .......... 54 5.1.2.2 Meshes with hexahedral elements .......... 59 5.1.2.3 Hybrid mesh ..................... 63 5.1.2.4 Comparison of tetrahedral and hexahedral meshes . 64 5.2 Validation of HDG for Stokes equations using meshes with non uniform degree of approximation ..................... 66 5.2.1 The 2-D case .......................... 67 5.2.2 The 3-D case .......................... 69 5.3 Validation of NEFEM-HDG for Stokes equations ........... 73 5.4 Degree adaptivite HDG for Stokes equations ............. 77 5.4.1 The 2-D case .......................... 78 5.4.1.1 Isoparametric Formulation .............. 78 5.4.1.2 NEFEM Formulation ................. 79 5.4.2 The 3-D case .......................... 83 6 Conclusions and future developments 86 Bibliography 88
iv Contents Appendices 94 A Curves 95 A.1 Power basis form of a curve ...................... 95 A.2 B´ezier curves .............................. 96 A.3 Rational B´ezier curves ......................... 96 A.4 B-spline basis functions and curves .................. 96 A.5 Non-Uniform Rational B-Splines (NURBS) .............. 97 B Implementational Details 98 B.1 Isoparametric formulation ....................... 98 B.2 NEFEM formulation ..........................100
List of Figures 4.1 Parametrization of a curved triangular element with a edge on the NURBS boundary [24]. ......................... 29 5.1 Two dimensional triangular meshes. .................. 39 5.2 Numerical solution for Stokes problem in 2D obtained with two different meshes with triangular elements. .............. 42 5.3 h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with triangular elements using classical formulation of HDG. ............................. 43 5.4 h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with triangular elements using Neumann formulation of HDG. ............................. 44 5.5 Two dimensional quadrilateral meshes. ................ 45 5.6 Numerical solution for Stokes problem in 2D obtained with two different meshes with quadrilateral elements. ............. 47 5.7 h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with quadrilateral elements using classical formulation of HDG. ............................ 48 5.8 h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with quadrilateral elements using Neumann formulation of HDG. ............................ 49 5.9 Two dimensional hybrid meshes. .................... 50 5.10 Numerical solution for Stokes problem in 2D obtained with two different degrees of approximation in a mesh with both triangular and quadrilateral elements. ....................... 51 5.11 Comparison of triangular and quadrilateral meshes: error of uh and u? hin the L2(Ω) norm as a function of pdim(ˆ u) for the HDG formulation with triangular and quadrilateral meshes ........ 52 5.12 Comparison of classical and Neumann formulations: Analytical solutions (top) and error of uhand u? hin the L2(Ω) norm as a function of pdim(ˆ u) (bottom), for different values of λ............ 53 v
vi List of Figures 5.13 Three dimensional tetrahedral meshes. ................ 55 5.14 h-convergence for different degrees of approximation kfor 3D Stokes problem for meshes with tetrahedral elements using classical formulation of HDG. ............................. 56 5.15 Numerical solution for Stokes problem in 3D obtained with two different meshes with tetrahedral elements. .............. 57 5.16 h-convergence for different degrees of approximation kfor 3D Stokes problem for meshes with tetrahedral elements using Neumann formulation of HDG. ............................ 58 5.17 Three dimensional hexahedral meshes. ................ 59 5.18 Numerical solution for Stokes problem in 3D obtained with two different meshes with hexahedral elements. .............. 61 5.19 h-convergence for different degrees of approximation kfor 3D Stokes problem for meshes with hexahedral elements using classical formulation of HDG. ............................. 62 5.20 h-convergence for different degrees of approximation kfor 3D Stokes problem for meshes with hexahedral elements using Neumann formulation of HDG. ............................ 63 5.21 Three dimensional hybrid meshes. ................... 64 5.22 Numerical solution for Stokes problem in 3D obtained with two different degrees of approximation in a mesh with tetrahedral, hexahedral, prismatic and pyramid elements. ............... 65 5.23 Comparison of tetrahedral and hexahedral meshes: error of uhand u? hin the L2(Ω) norm as a function of pdim(ˆ u) for the HDG formulation with tetrahedral and hexahedral meshes .......... 66 5.24 Two dimensional meshes with variable degrees of approximation, k= 1,2,3 within the elements. Coloured elements are the elements of interest considered for element-wise h-convergence study with the colours blue, green and red respectively representing k= 1, k= 2 and k= 3 ................................ 68 5.25 h-convergence for different combinations of non uniform degrees of approximation kin the elements of the meshes for 2D Stokes problem. 70 5.26 Three dimensional meshes with variable degrees of approximation, k= 1,2,3 within the elements. Coloured elements are the elements of interest considered for element-wise h-convergence study with the colours blue, green and red respectively representing k= 1, k= 2 and k= 3 ................................ 71 5.27 h-convergence for different combinations of non uniform degrees of approximation kin the elements of the meshes for 3D Stokes problem. 72 5.28 NEFEM-HDG validation: Two dimensional triangular meshes. . . . 74
4 Introduction the discretized version of the systems of equations that are obtained. Two different formulations of the HDG method are developed for Stokes equations, the so called classical (Dirichlet) and the Neumann formulations. This is presented in chapter 3. The discretization of the weak form of the HDG formulation for Stokes equatiosn using the isoparametric and NEFEM formulations. Discretization using NEFEM formulation is presented explaining the details of high-order approximation and numerical integration in curved elements. This is presented in the first section of chapter 4. The development of degree adaptive technique based on the concept of Richardson extrapolation using the postprocessed solution obtained using the HDG method for error estimation. The Richardson extrapolation for h-adaptivity is studied and then concept is extended to degree adaptivity. Also come caveats concerning the implementation, such as compatibility of numerical integration and geometrical compatibility of the mesh upon adaptive refinement are detailed. Validate the implementation of the HDG codes. Numerical examples with analytical solution are considered in two and three dimensions for validating the codes developed to solve the Stokes equations. In all cases the objective is to test the optimal convergence of the solution and the implementation of the postprocess that offers superconvergence properties in the HDG framework. The workability of the code using both the formulations of HDG are presented. Further the ability of the code to handle meshes with different types of elements in both two and three dimensions are shown. Also the code is validated to work with meshes that have varying degrees of approximations in their elements. Code developed for NEFEM-HDG formulation applied to Stokes’ equations is validated. Finally cases to show the performance of degree adaptive method providing high-order accuracy and high computational efficiency are presented. All these examples are collectively shown in Chapter 5.
Chapter 2 Derivation of Stokes’ equations In certain fluids viscosity may be so large that it only flows with difficulty. Heavy oils, honey, even tight crowds of people, show insignificant effects of inertia, and are instead dominated by internal friction. Such fluids do not make spinning vortices or become turbulent, but rather ooze or creep around obstacles. Fluid flow which is dominated by viscosity is quite appropriately called creeping flow. Stokes flow, another name for creeping flow which is sometimes called creeping motion, is a type of fluid flow where advective inertial forces are small compared with viscous forces [26]. This is a typical situation in flows where the fluid velocities are very slow, the viscosities are very large, or the length-scales of the flow are very small. Though creeping flow was first studied to understand lubrication, in nature this type of flow occurs in the swimming of microorganisms and sperm [27] and the flow of lava. Blood flowing through a microscopic capillary can be as sluggish as heavy oil. Tiny organisms like bacteria live in air and water like ourselves, but theirs is a world of creeping and oozing rather than whirls and turbulence, and movement requires special devices, for example oar-like cilia or whip-like flagella [28]. Some bacteria have even mounted a rotating helical tail in a journal bearing (the only one known to biology), which like a corkscrew allows them to advance through the thick fluid that they experience water to be. A spermatozoan pushes forward like a slithering snake in the grass by undulating its tail. In technology, creeping flow occurs in paint, MEMS devices, and in the flow of viscous polymers generally. 2.1 The basic conservation equations To serve as an introduction to the discussion on incompressible Stokes flow, in this section the differential forms of the conservation equations for mass, momentum and energy are presented. 5
6 Derivation of Stokes’ equations 2.1.1 Mass equation A fundamental law of Newtonian mechanics is the conservation of the mass contained in a material volume. The law of mass conservation for a time varying material volume Vtoccupied by fluid is given by [29] 0 = dM dt =d dt ZVt ρ dV, (2.1) where ρis the fluid density. The material time derivative of the integral of a scalar function f(x, t) (where fis defined in the spatial domain) over Vtis given by the following well-known expression, often referred to as the Reynolds transport theorem: d dt ZVt f(x, t)dV =ZVc≡Vt ∂f(x, t) ∂t dV +ZSc≡St f(x, t)u·ndS, (2.2) which holds for smooth functions f(x, t). Here uis the velocity of the fluid. The volume integral on the r.h.s. is defined over a control volume Vc(fixed in space) which coincides with the moving material volume Vtat the considered instant, t, in time. Similarly, the fixed control surface Sccoincides at time twith the closed surface Stbounding the material volume Vt. Applying to integral expression in (2.1), the formula in (2.2) for the rate of change of integrals over a moving volume and the divergence theorem, one obtains 0 = dM dt =ZVt ∂ρ ∂t dV +ZSt ρu·ndS =ZVt∂ρ ∂t +∇·(ρu)dV. Since this relation is valid for all choices of the volume Vt, the integrand must be identically zero. Hence ∂ρ ∂t +∇·(ρu) = 0.(2.3) at all points in the fluid. Equation (2.3) is the mass-conservation equation, or continuity equation. 2.1.2 Momentum equation The momentum equation, also termed the equation of motion, is a relation equating the rate of change of momentum of a selected portion of fluid and the sum of all forces acting on that portion of fluid. For the portion of fluid of volume Vt enclosed by the material surface St, the momentum is RVtρudV and making use
7 Derivation of Stokes’ equations of the Reynolds transport theorem in vector form, that is (2.2), its rate of change is found to be d dt ZVt ρudV =ZVc≡Vt ∂ρu ∂t dV +ZSc≡St (ρu⊗u)·ndS =ZVt∂ρu ∂t +∇·(ρu⊗u)dV. (2.4) where the notation u⊗udenotes the tensor [uiuj], i, j = 1, ..., nsd. Here nsd is the number of spatial dimensions. The the well-known equation that relates the material and the spatial time derivatives is given by df dt =∂f ∂t +u·∇f. (2.5) Making use of the continuity equation (2.3) and expression for the material time derivative given in formula (2.5), Equation (2.4) can be transformed to d dt ZVt ρudV =ZVt ρdu dt dV, (2.6) which is simply the sum of the product of mass and acceleration for all the elements dV of the material volume Vt. In general, a portion of fluid is acted upon by both volume and surface forces. The volume force per unit mass of fluid is denoted by s, so that the total volume force on the selected portion of fluid is RVtρsdV . On the other hand, the icomponent of the surface force exerted across a surface element of area dS and normal nis given by σijnijdS, so that the total force exerted on the selected portion of fluid by the surrounding matter can be expressed in terms of the Cauchy stress σas ZSt σ·ndS =ZVt ∇·σdV, The momentum balance for the selected material volume of fluid, which accounts for both previous actions, is expressed by ZVt ρdu dt dV =ZVt ρsdV +ZVt ∇·σdV, This integral relation holds for all choices of the material volume Vt. Thus, ρdu dt =ρs+∇·σ.(2.7)
8 Derivation of Stokes’ equations at all points of the fluid. This equation is the equation of motion; making use of (2.5) it becomes ∂ρu ∂t +∇·(ρu⊗u)−∇·σ=ρs.(2.8) This is the conservation form of the momentum equation. 2.1.3 Total energy equation The total energy per unit mass of the fluid is the sum E=e+1 2||u||2 of the internal energy, e, and the kinetic energy. The rate of change of the total energy per unit mass of a material element is thus dE dt =de dt +u·du dt .(2.9) It can be shown that in the absence of heat transfer effects, the rate of change of internal energy per unit mass of a material element of fluid is thus given by [29] de dt =σ ρ:∇u(2.10) Making use of the momentum equation (2.8) and of the internal energy equation (2.10), it becomes ρdE dt =σ:∇u+u·(ρs+∇·σ) In terms of the partial time derivative, the total energy equation can be written as ∂ ∂t(ρE) + ∇·(ρEu)−∇·(σ·v) = u·ρs.(2.11)
9 Derivation of Stokes’ equations 2.2 Simplifying compressible Navier-Stokes equations to Stokes equations From the previous section the conservation equations in Eulerian form for mass, momentum and energy can be written as Mass: ∂ρ ∂t +∇·(ρu)=0, Momentum: ∂ρu ∂t +∇·(ρu⊗u)−∇·σ=ρs, Total energy: ∂ ∂t(ρE) + ∇·(ρEu)−∇·(σ·v) = u·ρs. (2.12a) Typically, Newtonian fluids are considered, that is σ= (−p+λ∇·u)Insd + 2µ∇su=−pInsd +σ0,(2.13) where subindexes are introduced to clarify the dimensions of matrices, ∇suis the rate of deformation (or strain rate) tensor, i.e. ∇su=1 2(∇+∇T), pis the thermodynamical pressure, µis the coefficient of dynamic viscosity of the fluid, and λis the 2nd coefficient of viscosity. Under Stokes’ Hypothesis, 3λ+2µ= 0, the bulk viscosity of the fluid is null, i.e. λ+ 2µ/3 = 0, and that the thermodynamic pressure coincides with the mechanical one, i.e. p= tr(σ). σ0is the deviatoric stress. The conservation and constitutive equations (2.12) form a total of nsd + 2 equations. The material parameters µ,λare characteristic of a given fluid, and thus, a priori, known. However, these nsd + 2 equations contain nsd + 3 unknowns, ρ,ρu,ρE, and p. One further equation comes from the equation of state for pressure, namely p=p(ρ, T), which introduces a new unknown T, thus making a total of nsd + 4 unknowns. The final equation comes from the equation of state for internal energy, e=e(ρ, T). For a calorically perfect gas, such as air, these state equations read p=ρRT and e=cvT, where Ris the gas constant per unit mass and cvis the specific heat at constant volume. Thus, the usual form for these equations of state are T=1 cvE−1 2u·u, p= (γ−1)ρE−1 2u·u, (2.14) where, see [29], the constant γ=cp/cvis the ratio of the specific heat at constant pressure, cp, and the specific heat at constant volume, cv, and relates the specific
10 Derivation of Stokes’ equations heat constants and the gas constant per unit mass, namely cp=γ γ−1Rand cv=R γ−1. Thus, equations (2.14) can be rewritten as T= (γ−1)E−1 2u·u/R, p= (γ−1)ρE−1 2u·u, (2.15) for a calorically perfect gas. Remark 1 [Mach and Reynolds numbers] Other pertinent parameters are the Mach and Reynolds numbers. They are used to characterize the flow problem and are defined as Characteristic Mach: Ma=uref/cref, Characteristic Reynolds: Re=ρref uref `ref/µref, where reference values are used for every variable. `ref is a characteristic length scale, which depends on the problem whereas all the others: velocity uref, speed of sound cref, density ρref, pressure pref, and viscosity µref are, in general, the inflow/far-field values, viz. uref =ku∞k. The speed of sound is defined as c=pγp/ρ =√γRT. 2.2.1 Compact form of the conservation equations Replacing the equations of state (2.15) and the constitute equations (2.13) in the conservation equations (2.12a) the final equations for unsteady viscous compressible flow are obtained as ∂U ∂t +∂Fk ∂xk−∂Gk ∂xk =S,(2.16) where Uis the vector of conservative variables, Fkare the associated advection flux vectors for each spatial dimension (k= 1,...,nsd), Gkare the corresponding diffusion ones, and Sis a source term. As usual, repeated indexes indicate sum. These vectors, which are all in Rnsd+2, are defined as follows: U= ρ ρU ρE ,S= 0 ρs U·ρs ,
11 Derivation of Stokes’ equations and for k= 1,...,nsd, then Fk= ρ uk ρUuk+pek ρE uk+p uk = ρ uk ρUuk+ (γ−1)(ρE −1 2ρU·U)ek γρE uk−(γ−1)1 2(ρU·U)uk , Gk= 0 σ0·ek U·σ0·ek = 0 λ(∇·U)ek+ 2µ∇sU·ek λ(∇·U)uk+ 2µU·∇sU·ek , Where ekis the unit vector in the xkdirection (i.e. the standard canonical basis in Rnsd ). Moreover, the previous equations are usually written and programmed in dimensionless form, namely: ∂ ∂t ρ ρU ρE +∇· ρUT ρU⊗U+ (γ−1)(ρE −1 2ρU·U)Insd γρE −(γ−1)1 2ρU·UUT −Re−1∇· 0T nsd λ(∇·U)Insd + 2µ∇sU λ(∇·U)U+ 2µU·∇sUT =Fr−2 0 ρb U·ρb ,(2.17) where, in spite of the notation, which is not changed to simplify the presentation, density, ρ, velocity, U, and total energy per unit mass, Eare in dimensionless form. The characteristic length `ref and velocity vref introduced in Remark 1scale the spatial coordinates and velocities. Typically one can chose to define either a characteristic density ρref or a characteristic pressure pref and they verify pref = ρrefv2 ref. The characteristic time is `ref/vref, the one for the total energy is v2 ref and the one for the body forces, b, which are also in dimensionless form in (2.17), are scaled with gref. The Froude number, Fr, which is a dimensionless number defined as the ratio of the flow inertia to the external field (typically due to gravity), affects the independent term and is defined as Fr=vref/plrefgref. Remark 2 Some authors prefer to scale the total energy with a characteristic speed of sound, that is using c2 ref instead of v2 ref. This modifies the last equation in (2.17) into ∂ρE ∂t +∇·(γρE −(γ−1)Ma2 2ρu·u)u −Ma2 Re ∇·λ(∇·u)u+ 2µu·∇su=Ma2 Fr2u·ρb.
12 Derivation of Stokes’ equations With this scaling it is easy to analyze the incompressibility limit, i.e. Ma→ 0, and see uncoupling of the conservation of energy with respect to the other conservation equations. 2.2.2 Simplifications leading to steady Stokes equations In the case of highly viscous flow such as Stokes flow where convective forces are small compared with viscous forces, the convective terms in the Navier-Stokes equations can often be neglected if compared with the dominant viscous terms. The resulting equations are called equations of Stokes flow [29]. The Reynolds number for such flows is low, i.e. Re1. The choice of Re1 is very interesting and an important assumption, for it is relevant to many practical problems, especially in a world where many products of technology, including those manipulating fluids, are shrinking in size. In this work the steady Stokes problem is considered. That is, in addition to the convective term, the time-dependent terms of the full Navier-Stokes equations are also neglected. Two distinct formulations of Stokes problem are possible. First, the momentum equation is written in terms of the Cauchy stress (also known as stress-divergence form). The Stokes’ constitutive law is only invoked after setting the weak form. The advantage of this approach is that it can readily treat problems with fluid constitutive equations more general than the linear Stokes’ law. Second, the problem is directly formulated in terms of velocity and pressure. Use is made of Stokes’ law and of the incompressibility condition to express the viscous term as the Laplacian of velocity. This is the standard form of the Stokes equations. Once the governing equations are defined boundary must be adequately prescribed in order to close the problem. Two types of boundary conditions are used in this report: Dirichlet and Neumann. Dirichlet boundary conditions prescribe the value of the unknown function. Neumann conditions impose the normal gradient of the unknown function along the boundary. Robin boundary conditions can also be prescribed, though such boundary conditions are not considered in this work. 2.2.2.1 Formulation in terms of Cauchy stress In differential form, a steady Stokes problem is stated as follows in terms of Cauchy stress: given the body force σ, prescribed velocities uDon the Dirichlet portion ΓDof the boundary and imposed boundary tractions ton the Neumann portion ΓN, determine the velocity field uand the pressure field psuch that
13 Derivation of Stokes’ equations −∇·σ=sin Ω, ∇·u= 0 in Ω, u=uDon ΓD, n·(σ=ton ΓN, (2.18) A constitutive equation is needed to close the problem. That is, the Cauchy stress, σ, must be related to velocity, u, and pressure, p, that is σ=σ(p, u). The linear Stokes’ law can be used as the constitutive equation [29] σ=−pInsd + 2µ∇su(2.19) 2.2.2.2 Formulation in terms of velocity and pressure The formulation of the Stokes problem in terms of Cauchy stress has the advantage that it is applicable to arbitrary fluid constitutive relations. When the linear Stokes’ law can be invoked, it is preferable to start from a strong form of written in terms of velocity and pressure because in this form the velocity components are uncoupled. The steady Stokes problem can then be restated as follows: −∇·(ν∇u) + ∇p=sin Ω, ∇·u= 0 in Ω, u=uDon ΓD, −pn+n·(ν∇u) = ton ΓN, (2.20) where ν=µ/ρ is the kinematic viscosity and pdenotes the dynamic pressure. Cauchy stress tensor (normalized by density) can be obtained by Stokes’ law (2.19). In the rest of this report, the velocity-pressure formulation of the Stokes equation is considered.
20 HDG formulation for Stokes’ equations as functions of (ˆ ui, ρi), and the system shown in Equations (3.11) becomes: Ai Li ui pi = fL fu fp 0 i + ALˆu Auˆu Apˆu 01,nsdnfn i ˆ ui+ 0n2 sdnen,1 0nsdnen,1 0nen,1 1 ρi,(3.12) for i= 1, ..., nel, where Ai= ALL ALu 0n2 sdnen,nen AuL Auu Aup 0nen,n2 sdnen Apu 0nen 01,n2 sdnen 01,nsdnen aρp i For implementation purposes, some auxiliary vectors are defined. Equations (3.12) can be written as Li ui pi =zf i+Zf iˆ ui+zρ iρi,for i= 1, ..., nel,(3.13) where zf i=A+ i fL fu fp 0 i ;Zf i=A+ i ALˆu Auˆu Apˆu 01,nsdnfn i and zρ i=A+ i 0n2 sdnen,1 0nsdnen,1 0nen,1 1 i . Here A+ iare generalized inverse of the rectangular matrix Aisatisfying the following properties: (1) Matrices A+ iof dimensions (n2 sdnen +nsdnen +nen),(n2 sdnen +nsdnen +nen +1) are generalized inverse of Aias x=A+ iyis a solution to the equation Aix=yfor any ysuch that the equation Aix=yis consistent, (2) Matrices Aiand A+ isatisfy the condition AiA+ iAi=Ai, (3) AiA+ iis idempotent and R(AiA+ i) = R(Ai) or R(A+ iAi) = R(Ai) where R(·) denotes the rank of the matrix, for i= 1, ..., nel.
21 HDG formulation for Stokes’ equations 3.3.2 The HDG global problem The local problem described in the previous section for each element allows to represent the approximations (Li,ui,pi) in terms of the velocities on the mesh skeleton, ˆ ui, and a vector of boundary mean pressures ρi. The global problems, which will be dealt with in this subsection, are used to determine the aforementioned variables, ˆ uiand ρi. The global problem is constructed imposing continuity of velocities and fluxes along the mesh skeleton, which are the so called transmission conditions, the Neumann boundary condition and the element-by-element compatibility condition. The transmission conditions were already introduced in (3.4) to ensure inter-element continuity when the broken computational domain formulation was presented, Ju⊗nK=0on Γ, Jn·(−pI+νL)K=0on Γ Note that the first equation in the transmission conditions imposes continuity of ualong Γ. But u=ˆ uon Γ as imposed by the local problems in Equation (3.6). Hence, continuity of the primal variable, Ju⊗nK= 0, is imposed automatically because ˆ uis unique for adjacent elements. In summary, the global problem is simply Jn·(−pI+νL)K=0on Γ, n·(νL+pI) = −ton ΓN,(3.14) with the compatibility condition Z ∂Ωi∩ΓD uD·ndΓ + Z ∂Ωi\ΓD ˆ u·ndΓ=0. The discrete weak form equivalent to this global problem becomes: find ˆ uh∈ Mhand ρ∈Rnel such that nel X i=1 n<µ,n·(νLh+phI)>∂Ωi\ΓD+<µ, τuh>∂Ωi\ΓD −<µ, τ ˆ uh>∂Ωi\ΓDo=− nel X i=1 <µ,t>∂Ωi∩ΓN∀µ∈ Mh <n·ˆ uh,1>∂Ωi\ΓD=−<n·uD,1>∂Ωi∩ΓDfor i= 1, ..., nel. These equations allow to identify the different terms, that will contribute to
22 HDG formulation for Stokes’ equations the final global system of equations. nel X i=1 ((AˆuL)iLi z }| { <µ, νn·Lh>∂Ωi\ΓD+ (Aˆuu)iui z }| { <µ, τuh>∂Ωi\ΓD+ (Aˆup)ipi z }| { <µ, phn>∂Ωi\ΓD (Aˆuˆu)iˆ ui z }| { −<µ, τ ˆ uh>∂Ωi\ΓD)=− nel X i=1 (fˆu)i z}| { <µ,t>∂Ωi∩ΓN, (3.16a) (aρˆu)iˆ ui z }| { <n·ˆ uh,1>∂Ωi\ΓD= (fρ)i z }| { −<n·uD,1>∂Ωi∩ΓDfor i= 1, ..., nel. (3.16b) which can be written in matrix as nel X i=1 Bi Li ui pi + [Aˆuˆu]iˆ ui = nel X i=1 {fˆu}i(3.17a) (aρˆu)iˆ ui= (fρ)ifor i= 1, ..., nel,(3.17b) where Bi=AˆuL Aˆuu Aˆup ifor i= 1, ..., nel. This equation clearly identifies the element-by-element contributions of different matrices and vectors. Upon introducing the local solution (see Equations (3.13)) into Equations (3.17a), we get nel X i=1 (Binzf i+Zf iˆ ui+zρ iρio+ [Aˆuˆu]iˆ ui)= nel X i=1 {fˆu}i, which can be written as nel X i=1 nBZf+Aˆuˆuiˆ ui+Bizρ iρio= nel X i=1 n{fˆu}i−Bizf io. Therefore, the elemental contributions to the global system b Kˆ U=ˆ f(3.18)
23 HDG formulation for Stokes’ equations are b K= nen A i=1 BZf+AˆuˆuBzρ aρˆu0i ,ˆ f= nen A i=1 fˆu−Bzf fρi . It is very clear that the global system is a non-symmetric matrix. Nevertheless, this system has only velocity as unknowns on the mesh skeleton, ∂Ωi\ΓD, and one unknown mean pressure per element. It is worth noting that the number of nodes on the mesh skeleton depends on the degree of the polynomials used for approximation, and this number is significantly lower than the number of nodes per element for higher values of the degree of the interpolation polynomial. Since the HDG method is a high order method, this feature is a huge advantage for the method. Also independent of the degree of the approximation polynomial for pressure, there is only one unknown pressure that has to be computed in each element in the global problem. Thus using a high degree approximation polynomial will be advantageous for the HDG method. 3.3.3 Local postprocessing for velocity The solution of HDG problem defined in Equations 3.18 and 3.12 computes the numerical solution for both uand Lwith optimal rate of convergence k+ 1 in L2 norm. This is because the polynomial used to approximate both these variables are of the same degree. It is known that L, which is the gradient of velocity, will in reality be one degree lower than u, if uwas to be a polynomial function. This cognizance is used to develop the concept of superconvergence using local postprocessing, which was proposed in [13,36,37]. Local postprocessing can be used to obtain a superconvergent solution for velocity, namely u?. This is achieved by solving the following equations element-by-element, thus proving be computationally inexpensive. (∇·∇u?=−∇·Lin Ωi, n·∇u?=−n·Lon ∂Ωi,(3.19) with additional constraint ZΩi u?dΩ = ZΩi udΩ,(3.20) where u?∈ Pk+1(Ωi) and kis polynomial degree of approximation for both uand L. The weak form of the problem can be written as, (∇v,∇u?)Ωi=−(∇v,L)Ωi∀v∈ Pk+1(Ωi),(3.21) (∇u?,1)Ωi= (∇u,1)Ωi.(3.22) u?converges asymptotically at a faster rate of k+ 2 in L2norm for uniform degree of the approximation polynomial k.
24 HDG formulation for Stokes’ equations 3.3.4 Neumann local problems It is possible to further reduce the number of variables that need to be computed by solving the global system. This can be done by a minor modification of the previous formulation which will induce a smaller global problem. It involves prescribing the Neumann boundary conditions already in the corresponding local problem. This modifies the original strong forms in Equations (3.6) and (3.14) into the HDG local and global problems as L+∇u=0in Ωi,for i= 1, ..., nel ∇·(νL+pI) = sin Ωi,for i= 1, ..., nel ∇·u= 0 in Ωi,for i= 1, ..., nel u=uDon ∂Ωi∩ΓD, n·(νL+pI) = −ton ∂Ωi∩ΓN, u=ˆ uon ∂Ωi∩Γ, (3.23) with the mean pressure, ρion the element boundary imposed in those elements where the local problem is of Dirichlet type, Z∂Ωj p dΓ = ρj∀Ωj|∂Ωj∩ΓN6=∅.(3.24) and Jn·(νL+pI)K=0on Γ.(3.25) with the compatibility condition Z ∂Ωi∩ΓD uD·ndΓ + Z ∂Ωi\ΓD ˆ u·ndΓ = 0 ∀Ωj|∂Ωj∩ΓN6=∅. It also implies a new definition for the numerical traces of the fluxes, thus Equation (3.10) becomes n·\ (νL+pI) := −ton ∂Ωi∩ΓN n·(νL+pI) + τ(u−uD) on ∂Ωi∩ΓD n·(νL+pI) + τ(u−ˆ u) elsewhere (3.26) Upon performing all the steps shown in subsections 3.3.1 and 3.3.2, the local and global problems in the discrete space for the Stokes problem for the Neumann formulation are as follow
25 HDG formulation for Stokes’ equations ALLLi z }| { (G,Lh)Ωi ALuui z }| { −(∇·G,uh)Ωi+<n·G,uh>∂Ωi∩ΓN = ALˆuˆ ui z }| { −<n·G,ˆ uh>∂Ωi\∂Ω fL z }| { −<n·G,uD>∂Ωi∩ΓD,(3.27a) AuLLi z }| { (∇v, νLh)Ωi−<v, νn·Lh>∂Ωi\ΓN Auuui z }| { −<v, τuh>∂Ωi\ΓN + Auppi z }| { (∇·v, ph)Ωi−<v, phn>∂Ωi\ΓN= Auˆuˆ ui z }| { −<v, τ ˆ uh>∂Ωi\∂Ω fu z }| { −<v, τuD>∂Ωi∩ΓD−<v,t>∂Ωi∩ΓN−(v,s)Ωi(3.27b) Apuui z }| { (∇q, uh)Ωi−< q, n·uh>∂Ωi∩ΓN = Apˆuˆ ui z }| { < q, n·ˆ uh>∂Ωi\∂Ω+ fp z}| { < q, n·uD>∂Ωi∩ΓD,(3.27c) aρppi z }| { < ph,1>∂Ωi=ρi,(3.27d) and nel X i=1 ((AˆuL)iLi z }| { <µ, νn·Lh)>∂Ωi\∂Ω+ (Aˆuu)iui z }| { <µ, τuh>∂Ωi\∂Ω (Aˆup)ipi z }| { <µ, phn>∂Ωi\∂Ω (Aˆuˆu)iˆ ui z }| { −<µ, τ ˆ uh>∂Ωi\∂Ω)= 0 (3.28a) (aρˆu)iˆ ui z }| { <n·ˆ uh,1>∂Ωi\ΓD= (fρ)i z }| { −<n·uD,1>∂Ωi∩ΓDfor i= 1, ..., nel.(3.28b) Equation (3.27) is the weak form of the local problem in Neumann formulation while Equation (3.28a) is the first equation of the global system. Note that, in this case, the dimension of ˆ ucorresponds only to the degrees of freedom along the interior skeleton Γ, which is slightly smaller than in the previous case where unknowns had also to be determined along the Neumann boundary. In terms of computation time this formulation is slightly more advantageous.
Chapter 4 Spatial discretization and degree adaptivity 4.1 Spatial Discretization This section is dedicated to the presentation of details of techniques employed during the discretization of the spatial solution domain. Two different formulations are used for the spatial discretization namely, the standard isoparametric formulation [38] and the NURBS-enhanced finite element method (NEFEM) [24]. 4.1.1 Isoparametric formulation In this formulation, the interpolation functions and their derivatives are defined in a reference element with local coordinates ξ= (ξ1, ξ2, ξ3) and the isoparametric transformation is used to relate local and Cartesian coordinates, namely, x(ξ) = nen X j=1 xjNj(ξ),(4.1) where xjdenote the elemental nodal coordinates at node j, while Njis the shape function associated with node j. When using an isoparametric formulation for spatial discretization, the primal variable u, the dual variable L, pressure p, and the hybrid variable ˆ uappearing in the HDG formulation of Stokes equations are all interpolated in this manner as, u(x)≃uh(x(ξ)) = nen X j=1 ujNj(ξ), L(x)≃Lh(x(ξ)) = nen X j=1 LjNj(ξ), 26
27 Spatial discretization and degree adaptivity Table 4.1: The reference elements of order k, their approximation spaces and the dimension of these spaces [39]. Element Approximation space Dimension Triangle Pk(ξ1, ξ2) = ξa 1ξb 2, a +b⩽k1 2(k+ 1)(k+ 2) Quadrilateral Qk(ξ1, ξ2) = ξa 1ξb 2, a, b ⩽k(k+ 1)2 Tetrahedron Pk(ξ1, ξ2, ξ3) = ξa 1ξb 2ξc 3, a +b+c⩽k1 6(k+ 1)(k+ 2)(k+ 3) Hexahedron Qk(ξ1, ξ2, ξ3) = ξa 1ξb 2ξc 3, a, b, c ⩽k(k+ 1)3 Prism Pk(ξ1, ξ2)⊗Pk(ξ3)1 2(k+ 1)2(k+ 2) Pyramid Pk(ξ1, ξ2, ξ3)⊕Pr−1 c=0 ξ1ξ2 1−ξ3r−kPk(ξ1, ξ2)1 6(k+ 1)(k+ 2)(2k+ 3) p(x)≃ph(x(ξ)) = nen X j=1 pjNj(ξ), ˆ u(x)≃ˆ uh(x(ξ)) = nfn X j=1 ˆ ujb Nj(ξ), where uj,Lj,pjand ˆ ujare nodal values of the respective variables. Triangles and quadrilaterals are employed to provide a consistent discretization of the spatial solution domain, Ω, for two dimensional problems. In three dimensions, consistent meshes consisting of tetrahedra, hexahedra, prisms and pyramids are used. Apart from the pyramid, which requires special attention, optimal nodal finite elements of arbitrary order are readily defined for all these shapes [39]. For the pyramid, a recently proposed approximation space [40] is adopted. This space is well suited for discontinuous approximations and is optimal, i.e. the a priori error estimate is O(hk+1) in the L2norm. The approximation spaces that are employed are summarised in Table 4.1. In two dimensions, a Fekete nodal distribution is adopted for the triangle [41] and a tensor product of one dimensional Fekete nodal distributions for the quadrilateral. In three dimensions, the nodal distributions proposed in [42] for the tetrahedron and in [40] for the pyramid are used. A tensor product of one dimensional Fekete nodal distributions is used for the hexahedron and a tensor product of triangular and one dimensional Fekete nodal distributions is used for the prism. 4.1.2 NEFEM formulation This formulation considers nodal polynomial interpolation in each element, see [24] for more details. To ensure reproducibility of polynomials in the physical space,
28 Spatial discretization and degree adaptivity NEFEM approach defines the approximation directly with Cartesian coordinates, x. The solution domain is considered as an open bounded domain Ω, whose boundary ∂Ω, or a portion of it, is parametrized by NURBS curves in 2D, is considered. For more information on curves, see Appendix A. In 2D every NURBS is assumed to be parametrized by C: [0,1] →C([0,1]) ⊆∂Ω⊂R2. A regular partition of the domain ¯ Ω = Se¯ Ωein simplices is assumed, such that ΩiTΩj=∅, for i6=j. As customary in FE mesh generation codes, it is considered that every curved boundary face belongs to a unique NURBS. As a result of this assumption, one element face can not be defined by portions of two, or more, different NURBS. It is, however, worthwhile to note that the piecewise definition of each NURBS is independent on the mesh discretization. Thus, within one face, the definition of NURBS parametrization can change, that is, there is no necessity for the edges of elements to coincide with knot lines. Note that special attention must to be paid to the numerical integration over elements affected by the NURBS boundary representation upon allowing changes of NURBS parametrization to be independent on the spatial discretization. When an element does not have any edge or face in contact with NURBS boundaries, it is interpreted and considered as a standard FE in NEFEM. In this work which involves the integration of the HDG method and NEFEM, these elements not in contact with exterior curved boundaries are treated as standard isoparametric elements. Therefore, in the bulk of the domain, interpolation and numerical integration are typical of isoparametric HDG, preserving the computational efficiency of the HDG method. Specific numerical schemes for interpolation and numerical integration are required only in those elements influenced by NURBS boundaries. 4.1.2.1 Curved elements In NEFEM, curved elements are characterised in terms of the NURBS boundary representation of the domain. The formal definition of curved faces and elements in a NEFEM mesh is given in this section. Let Γebe an edge on the NURBS boundary parametrized by C, and x1,x2∈ ∂Ω the two vertices on the NURBS boundary, see Figure 4.1. The edge is defined by Γe:= C([λe 1, λe 2,]), where λe 1and λe 2are the parametric coordinates (in the parametric space of the NURBS) of the end points of Γe.
29 Spatial discretization and degree adaptivity Figure 4.1: Parametrization of a curved triangular element with a edge on the NURBS boundary [24]. A curved triangular element with an edge on the NURBS boundary is defined as a convex linear combination of the curved NURBS edge and the interior vertex. For instance, element represented in Figure 4.1 is parametrized by ψ:R→Ωe, (λ, ϑ)7→ ψ(λ, ϑ) := (1 −ϑ)C(λ) + ϑx3,(4.2) where R= [λe 1, λe 2]×[0,1] and x3is the internal vertex of Γe, see Figure 4.1. 4.1.2.2 High-order approximation in curved elements In this work we propose to use a Cartesian approximation for the variables u,L and p, namely, u(x)≃uh(x) = nen X j=1 ujNj(x), L(x)≃Lh(x) = nen X j=1 LjNj(x), p(x)≃ph(x) = nen X j=1 pjNj(x), where uj,Ljand pjare nodal values of the respective variables and Njare polynomial shape functions (Lagrange polynomials) of order kin x. This is in contrast to isoparametric FEM or p-FEM, where the approximation is defined in a reference element. However, in their cases, as opposed to NEFEM, the definition of the polynomial basis for high-order curved elements does not ensure reproducibility of polynomials in the physical space.
36 Spatial discretization and degree adaptivity 2-D) with the correct order is important to ensure optimal convergence. Thus, on a face shared by two elements with differing orders of approximation polynomials in them, ˆ uis interpolated using the polynomial whose order is greatest of the two. As a result of this care must be taken while integrating terms involving any of the local variables, L,uor p, and the global variable ˆ u. For clarity, consider two neighbouring elements, Ω1and Ω2, sharing a face Γ12. The orders of approximation used in Ω1and Ω2, respectively, are k1and k2, with k1> k2. On face Γ12,ˆ uis approximated using polynomial of order k1. While integrating functional composed of local variables and ˆ uon Γ12 to compute elemental contributions of Ω2, care must be taken to ensure that the quadrature points chosen are the ones that are capable of exactly integrating functional involving product of polynomials of degree k1. It is a general practice during implementation to evaluate the interpolation functions and their derivatives only at the quadrature points required to exactly integrate polynomials of the order of the interpolation function. However, from the above discussion, it is clear that interpolation functions of order k2must be evaluated at the quadrature points required for integrating polynomials of order k1. In general, in the case when varying order of approximation are used in elements of the solution domain, there is a necessity to evaluate lower order interpolation functions at higher order quadrature points to ensure compatible numerical integration. This is quite important in the context of p-adaptive mesh refinement as this process results in a mesh with varying order of approximation within its elements. 4.3.2 Ensuring geometrical compatibility in meshes with curved elements When p-adaptive high order isoparametric formulation is used for meshes with curved edges, in addition to ensuring compatibility during numerical integration, establishing geometrical compatibility of shared faces and edges (only edges in 2-D) is also crucial. In isoparametric transformation, the nature of a curved face is decided by the order of the basis functions used for defining the isoparametric transformation used to relate the local and Cartesian coordinates. For instance in 2-D, basis functions of k= 3, results in an curved edge which at most a cubic curve. Further, upon increasing the order of the approximation polynomial in the element containing this curved edge during p-adaptivity, new nodes are placed along the cubic curve without changing the nature of the curve. However, upon reducing the order of the approximation, the nature of the curved edge changes. The curved edge becomes a parabola or a straight line upon reducing the order to k= 2 or k= 1, respectively. Thus, the situation of geometrical incompatibility arises only when the order of approximation in a neighbouring element goes lower
37 Spatial discretization and degree adaptivity than the initial order of approximation used. Geometrical incompatibility of the mesh, arising as a result of lowering the order of approximation in one of the elements below the initial order, is fixed by changing the nodal coordinates of the faces and edges shared by all the neighbouring elements with this element. The changed nodal coordinates will ensure the position of nodes on faces and edges shared by elements are same when seen from any element. This, in fact, results in a modified definition of the isoparametric transformation relating the reference space of the face/edge to its physical coordinates. Even though the order of basis functions used in the transformation to relate elemental reference coordinates to physical coordinates is higher in the neighbouring elements, the modified nodal coordinates of the shared face/edge will ensure that the Jacobian of the transformation of this face/edge is the same when seen from any element containing it. Once the geometrical compatibility of the mesh has been ensured, it becomes imperative to ensure perfect placement of the interior nodes in elements with k⩾3 so as to obtain optimal rates of convergence of the variables. Previous studies [24,25] have proved that the position of the interior nodes greatly influences the rate of convergence in high order methods. Incorrect placing of these nodes will result in a loss of high order accuracy of the methods and the rate of convergence obtained will always be 2 [24,25], irrespective of the order of the approximation function. This is fixed by considering a linear elastic model to deform the modified mesh, hence an a posteriori approach [43]. The equation governing the static deformation of a linear elastic medium, Ω, with closed boundary Γ, is considered in the form ∇·σ=0in Ωe,(4.16) where the sub index erepresents the elements whose faces/edges have been modified for geometrical compatibility of the mesh. The stress tensor is given by σ=λtr(ε)+2µε, (4.17) where εis the deformation tensor and λand µdenote the Lam´e coefficients for the medium. This constitutive relation is often expressed, alternatively, in terms of Young’s modulus Eand Poisson’s ratio νfor the medium [44,45]. The solution to Equation (4.16) is sought subject to appropriate boundary conditions. In the current context, these conditions will be zero displacement uDon the face nodes. The elastic parameter values E= 10 and ν= 0.49 are used as it has been found that this combination allows the minimum scaled Jacobian to be maximised and, at the same time, allows the condition number of the linear system to be minimised [43]. Thus by elastically deforming the elements whose faces/edges have been modified will ensure accurate placement of the interior nodes.
Chapter 5 Numerical examples 5.1 Validation of HDG for Stokes equations The first set of examples are performed in order to validate the code written to solve Stokes’ equations using the HDG method. Validation of the code is done using convergence plots for both the 2-D and 3-D cases. In both these cases, the workability of the code is shown for both the classical and Neumann formulations of HDG, and also for meshes with different types of elements, namely, triangles and quadrilaterals in case of 2-D, while tetrahedrals and hexahedrals in case of 3-D. Finally results obtained using hybrid meshes comprising of multiple element types are also shown. 5.1.1 The 2-D case In order to illustrate the results of HDG for Stokes equations for a 2-D case, the model problem in (3.1) is solved in Ω :=]0,1[×]0,1[ with ΓN={(x, y)∈∂Ω|y= 0} and ΓD=∂Ω\ΓN. The source and boundary conditions are taken such that the analytical solution is given by u=2ay −bλ exp(−λy) cos(λx) bλ exp(−λy) sin(λx) and p= 0. This test case, proposed by [56], is used to test the performance of the HDG for a two dimensional flow that presents a boundary layer type behaviour. The coefficients appearing in the analytical expression of the velocity are set to a= 1, b= 1 and λ= 10, leading to large variations of the velocity at the bottom of the 38
39 Numerical examples computational domain. The problem is solved in meshes with triangular elements, quadrilateral elements and those containing a mixture of both kinds of elements. 5.1.1.1 Meshes with triangular elements (a) Mesh 1, k= 4 (b) Mesh 2, k= 3 (c) Mesh 3, k= 2 (d) Mesh 4, k= 1 Figure 5.1: Two dimensional triangular meshes. Five computational meshes are considered with characteristic element size, h, equal to 1/2√2, 1/4√2, 1/8√2, 1/16√2 and 1/32√2 respectively and the order of the approximation, k, in each mesh, is increased from k= 1 to k= 4. Figure 5.1 shows the first four meshes with the nodal distribution corresponding to a degree of approximation k= 4, k= 3, k= 2 and k= 1. The total number of elements and global degrees of freedom in each mesh and for different degree of approximation is summarized in Table 5.1. Figure 5.2 shows the numerical solution for velocity and pressure computed with quadratic and cubic approximation, k= 2 and k= 3, in the first and second
40 Numerical examples of the meshes shown in Figure 5.1. The postprocessed solution, see Section 3.3.3, is also represented in each case. It can be clearly observed that postprocessing offers a significant improvement in the solution. Table 5.1: Total number of elements and global degrees of freedom in each mesh with triangular and for different degree of approximation hnel ndof k 1 2 3 4 1/2√2 16 113 153 193 233 1/4√2 64 481 657 833 1009 1/8√2 256 1985 2721 3457 4193 1/16√2 1024 8065 11073 14081 17089 1/32√2 4096 32513 44673 56833 68993 An h-convergence study is performed to validate the implementation. The five meshes described above are considered and the relative error of the numerical solution uhand the postprocessed solution u? hin the L2(Ω) norm, defined as ||eu||L2(Ω) = ZΩ (uh−u)·(uh−u)dΩ ZΩ u·udΩ (1/2) (5.1) and in the H1(Ω) norm, defined as ||eu||H1(Ω) =||eu||L2(Ω) + ZΩ (∇uh−∇u):(∇uh−∇u)dΩ ZΩ ∇u:∇udΩ (1/2) (5.2) are evaluated in each case. Figure 5.3 shows the error of the numerical solution and the postprocessed solution as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 4, for velocity, postprocessed velocity (5.3c and 5.3d) and pressure (5.3a and 5.3b) in both the L2(Ω) and H1(Ω) norms. The convergence rates are reported in Table 5.2 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis obtained, namely k+ 1 in the L2(Ω) norm and kin the H1(Ω) norm. The table also shows
41 Numerical examples that optimal rate of convergence is obtained for the postprocessed solution u? h, namely k+ 2 in the L2(Ω) norm and k+ 1 in the H1(Ω) norm. Finally Figure 5.4 shows the error of the numerical solution and the postprocessed solution obtaned using the Neumann formulation of the HDG method as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 4, for velocity, postprocessed velocity (5.4c and 5.4d) and pressure (5.4a and 5.4b) in both the L2(Ω) and H1(Ω) norms. In this case too the convergence rates are reported in Table 5.3 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis obtained, namely k+ 1 and kin the L2(Ω) and H1(Ω) norms, respectively and the optimal rate of convergence of k+ 2 and k+ 1 respectively in the L2(Ω) and H1(Ω) norms is obtained for the postprocessed solution u? h. Table 5.2: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 2D Stokes problem for meshes with triangular elements using classical formulation of HDG. k||e||L2||e||H1 u u?pu u?p 1 2.0 3.0 2.0 1.1 2.0 1.0 2 3.0 4.0 3.0 2.1 3.0 2.0 3 4.0 5.0 4.0 3.1 4.0 3.0 4 5.0 6.0 5.0 4.1 5.0 4.0 Table 5.3: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 2D Stokes problem for meshes with triangular elements using Neumann formulation of HDG. k||e||L2||e||H1 u u?pu u?p 1 2.0 3.0 2.0 1.1 2.0 1.0 2 3.0 4.0 3.0 2.1 3.0 2.0 3 4.0 5.0 4.0 3.1 4.0 3.0 4 5.0 6.0 5.0 4.1 5.0 4.0
42 Numerical examples (a) Pressure, Mesh 1, k= 3 (b) Pressure, Mesh 2, k= 2 (c) Velocity, Mesh 1, k= 3 (d) Velocity, Mesh 2, k= 2 (e) Velocity postprocessed, Mesh 1, k= 3 (f) Velocity postprocessed, Mesh 2, k= 2 Figure 5.2: Numerical solution for Stokes problem in 2D obtained with two different meshes with triangular elements.
43 Numerical examples -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -7 -6 -5 -4 -3 -2 -1 0 1 2 5 1 4 1 3 1 2 1 (a) ||ep||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -4 -3 -2 -1 0 1 2 3 4 1 3 1 2 1 1 1 (b) ||ep||H1 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -10 -8 -6 -4 -2 0 6 1 5 1 4 1 3 1 2 1 (c) ||eu||L2and ||eu?||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -8 -7 -6 -5 -4 -3 -2 -1 0 5 1 4 1 3 1 2 1 1 1 (d) ||eu||H1and ||eu?||H1 Figure 5.3: h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with triangular elements using classical formulation of HDG.
44 Numerical examples -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -7 -6 -5 -4 -3 -2 -1 0 1 2 5 1 4 1 3 1 2 1 (a) ||ep||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -4 -3 -2 -1 0 1 2 3 4 1 3 1 2 1 1 1 (b) ||ep||H1 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -10 -8 -6 -4 -2 0 6 1 5 1 4 1 3 1 2 1 (c) ||eu||L2and ||eu?||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -8 -7 -6 -5 -4 -3 -2 -1 0 5 1 4 1 3 1 2 1 1 1 (d) ||eu||H1and ||eu?||H1 Figure 5.4: h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with triangular elements using Neumann formulation of HDG.
45 Numerical examples 5.1.1.2 Meshes with quadrilateral elements (a) Mesh 1, k= 4 (b) Mesh 2, k= 3 (c) Mesh 3, k= 2 (d) Mesh 4, k= 1 Figure 5.5: Two dimensional quadrilateral meshes. Seven computational meshes are considered with characteristic element size, h, equal to 1/2, 1/4, 1/8, 1/16, 1/32, 1/64 and 1/128 respectively and the order of the approximation, k, in each mesh, is increased from k= 1 to k= 4. Figure 5.5 shows the first four meshes with the nodal distribution corresponding to a degree of approximation k= 4, k= 3, k= 2 and k= 1. The total number of elements and global degrees of freedom in each mesh and for different degree of approximation is summarized in Table 5.4. Figure 5.6 shows the numerical solution for velocity and pressure computed with quadratic and cubic approximation, k= 2 and k= 3, in the first and second of the meshes shown in Figure 5.5. The postprocessed solution is also represented in each case. In this case as well it can be clearly observed that postprocessing offers a significant improvement in the solution.
52 Numerical examples 5.1.1.4 Comparison of triangular and quadrilateral meshes From the discussion in subsection 5.1.1.1 and 5.1.1.2, it could be seen that in both the cases, i.e, meshes with triangular and quadrilateral elements, the error in the computation of the variables was asymptotically converging at the optimal rate of convergence. Also it is worth noting that in the case of meshes with triangles with only four mesh refinements, the optimal rates of convergence were seen. However, in the case of quadrilateral meshes, six levels of mesh refinement were not sufficient to see the error converge at the optimal convergence rate. At face value, this seems to be indicating that triangular meshes perform better than meshes with quadrilateral elements. This is, however, not completely true. 0 50 100 150 200 250 300 -8 -7 -6 -5 -4 -3 -2 -1 0 Figure 5.11: Comparison of triangular and quadrilateral meshes: error of uhand u? hin the L2(Ω) norm as a function of pdim(ˆ u) for the HDG formulation with triangular and quadrilateral meshes . Figure 5.11 shows the evolution of the error of uhand u? hin the L2(Ω) norm as a function of the square root of the number of degrees of freedom of the global system of equations, i.e. ndof = dim(ˆ u). From this plot it can be clearly seen that to compute a solution with a given error, quadrilateral meshes require less degrees of freedom in the global system. This is key in terms of computational time as a smaller global system ensures lesser computational time to solve the system of equations. Thus,in the case of meshes with quadrilateral elements, though the error in the computation of the variables seems to approach the optimal rate of convergence with more levels of mesh refinement than in the case of meshes with triangular elements, it appears that due to the smaller size of global system, quadrilateral meshes are bound to be computationally cheaper than triangular
53 Numerical examples meshes when the solution has to be computed with a certain level of accuracy. 5.1.1.5 Comparison of classical and Neumann formulations of HDG (a) λ= 10 (b) λ= 40 (c) λ= 10 (d) λ= 40 Figure 5.12: Comparison of classical and Neumann formulations: Analytical solutions (top) and error of uhand u? hin the L2(Ω) norm as a function of pdim(ˆ u) (bottom), for different values of λ Here, a h-convergence study is performed in order to check the optimality of the approximation using the formulation with Neumann local problems and to compare the accuracy of the two HDG formulations considered in this work. Figure 5.12 shows the evolution of the error of uhand u? hin the L2norm as a function of the square root of the number of degrees of freedom of the global system of equations. Two different cases are considered. In these cases the value of coefficient λ appearing in the analytical solution is changed from 10 to 40 to produce a very
54 Numerical examples thin boundary layer. The degree of approximation is increased in each mesh from p= 1 to p= 4. From Figure 5.12 it can be seen that there is a very small improvement in the solution using the Neumann formulation which can be seen in the case when λ= 40. However, in both the cases there is not much difference in the case of the postprocessed solution. Finally the Neumann formulation comes with slightly lower degrees of freedom of the global variable. It is important to stress that the differences between the formulation with Dirichlet and Neumann local problems are noticed even if a global measure of the error is employed. Obviously, the extra accuracy provided by the formulation with Neumann problems is expected to be more relevant if the output of interest is defined near the Neumann boundary or on the Neumann boundary. 5.1.2 The 3-D case In order to illustrate the results of HDG for Stokes equations for a 3-D case, the model problem in (3.1) is solved in Ω :=]0,1[×]0,1[×]0,1[ with ΓN={(x, y, z)∈ ∂Ω|y= 0}and ΓD=∂Ω\ΓN. The source and boundary conditions are taken such that the analytical solution is given by u= bexp(a(x−z) + b(y−z)) −aexp(a(z−y) + b(x−y)) bexp(a(y−x) + b(z−x)) −aexp(a(x−z) + b(y−z)) bexp(a(z−y) + b(x−y)) −aexp(a(y−x) + b(z−x)) and p= sin(xyz). This test case, proposed by [57], is used to test the performance of the HDG for a three dimensional flow. The coefficients appearing in the analytical expression of the velocity are set to a= 1 and b= 0.5. The problem is solved in meshes with tetrahedral elements, hexahedral elements and those containing a mixture of four kinds of elements, tetrahedrons, hexahedrons, prisms and pyramids. 5.1.2.1 Meshes with tetrahedral elements Three computational meshes are considered with characteristic element size, h, equal to 1, 1/2 and 1/4 respectively and the order of the approximation, k, in each mesh, is increased from k= 1 to k= 3. Figure 5.13 shows the second and the third meshes with the nodal distribution corresponding to a degree of approximation k= 2 and k= 1. Figure 5.15 shows the numerical solution for velocity and pressure computed with quadratic and cubic approximation, k= 2 and k= 3, in the meshes shown in
55 Numerical examples Figure 5.13. The postprocessed solution is also represented in each case. In this case the solution and the postprocessed solution appear to be almost similar and it seems that postprocessing does not offer a significant improvement in the solution. This is because of the nature of the problem chosen which is very simple and hence is being captured very well by a coarse mesh with low degree of approximation. (a) Mesh 2, k= 2 (b) Mesh 3, k= 1 Figure 5.13: Three dimensional tetrahedral meshes. An h-convergence study is performed to validate the implementation. The three meshes described above are considered and the relative error of the numerical solution uhand the postprocessed solution u? hin the L2(Ω) norm and H1(Ω) norm are evaluated in each case. Figure 5.14 shows the error of the numerical solution and the postprocessed solution as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 3, for velocity, postprocessed velocity (5.14c and 5.14d) and pressure (5.14a and 5.14b) in both the L2(Ω) and H1(Ω) norms. The convergence rates are reported in Table 5.7 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis obtained, namely k+ 1 and k, respectively, in the L2(Ω) and H1(Ω) norms. The table also shows that optimal rate of convergence is obtained for the postprocessed solution u? h, namely k+ 2 and k+ 1 respectively, in the L2(Ω) and H1(Ω) norms. Finally Figure 5.16 shows the error of the numerical solution and the postprocessed solution obtaned using the Neumann formulation of the HDG method as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 3, for velocity, postprocessed velocity (5.16c and 5.16d) and pressure (5.16a and 5.16b) in both the L2(Ω) and H1(Ω) norms. In this case too the convergence rates are reported in Table 5.8 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis ob-
56 Numerical examples -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -5 -4 -3 -2 -1 0 4 1 3 1 2 1 (a) ||ep||L2 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -3.5 -3 -2.5 -2 -1.5 -1 -0.5 0 3 1 2 1 1 1 (b) ||ep||H1 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -8 -7 -6 -5 -4 -3 -2 -1 5 1 4 1 3 1 2 1 (c) ||eu||L2and ||eu?||L2 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -6 -5 -4 -3 -2 -1 0 4 1 3 1 2 1 1 1 (d) ||eu||H1and ||eu?||H1 Figure 5.14: h-convergence for different degrees of approximation kfor 3D Stokes problem for meshes with tetrahedral elements using classical formulation of HDG. tained, namely k+ 1 and kin the L2(Ω) and H1(Ω) norms and the optimal rate of convergence of k+ 2 and k+ 1 is obtained for the postprocessed solution u? h, respectively in the L2(Ω) and H1(Ω) norms.
57 Numerical examples (a) Pressure, Mesh 1, k= 3 (b) Pressure, Mesh 2, k= 2 (c) Velocity, Mesh 1, k= 3 (d) Velocity, Mesh 2, k= 2 (e) Velocity postprocessed, Mesh 1, k= 3 (f) Velocity postprocessed, Mesh 2, k= 2 Figure 5.15: Numerical solution for Stokes problem in 3D obtained with two different meshes with tetrahedral elements.
58 Numerical examples Table 5.7: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 3D Stokes problem for meshes with tetrahedral elements using classical formulation of HDG. k||e||L2||e||H1 u u?pu u?p 1 2.0 3.0 2.1 1.1 2.0 1.2 2 2.9 4.0 3.2 2.1 3.1 2.2 3 4.0 5.0 4.2 3.1 4.1 3.2 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -5 -4 -3 -2 -1 0 4 1 3 1 2 1 (a) ||ep||L2 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -3.5 -3 -2.5 -2 -1.5 -1 -0.5 0 3 1 2 1 1 1 (b) ||ep||H1 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -8 -7 -6 -5 -4 -3 -2 -1 5 1 4 1 3 1 2 1 (c) ||eu||L2and ||eu?||L2 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0 -6 -5 -4 -3 -2 -1 0 4 1 3 1 2 1 1 1 (d) ||eu||H1and ||eu?||H1 Figure 5.16: h-convergence for different degrees of approximation kfor 3D Stokes problem for meshes with tetrahedral elements using Neumann formulation of HDG.
59 Numerical examples Table 5.8: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 3D Stokes problem for meshes with tetrahedral elements using Neumann formulation of HDG. k||e||L2||e||H1 u u?pu u?p 1 2.0 3.0 2.1 1.1 2.0 1.2 2 2.9 4.0 3.2 2.1 3.1 2.2 3 4.0 5.0 4.2 3.1 4.1 3.2 5.1.2.2 Meshes with hexahedral elements Four computational meshes are considered with characteristic element size, h, equal to 1, 1/2, 1/4 and 1/8 respectively and the order of the approximation, k, in each mesh, is increased from k= 1 to k= 3. Figure 5.17 shows the second and the third meshes with the nodal distribution corresponding to a degree of approximation k= 2 and k= 1. (a) Mesh 2, k= 2 (b) Mesh 3, k= 1 Figure 5.17: Three dimensional hexahedral meshes. Figure 5.18 shows the numerical solution for velocity and pressure computed with quadratic and cubic approximation, k= 2 and k= 3, in the meshes shown in Figure 5.17. The postprocessed solution is also represented in each case. Similar to the results presented in the previous section with tetrahedral elements, in this case too, the solution and the postprocessed solution appear to be almost similar and it seems that postprocessing does not offer a significant improvement in the solution. As stated earlier this is because of the simple nature of the problem chosen which is being captured very well by a coarse mesh with low degree of approximation.
60 Numerical examples An h-convergence study is performed to validate the implementation. The four meshes described above are considered and the relative error of the numerical solution uhand the postprocessed solution u? hin the L2(Ω) norm and H1(Ω) norm are evaluated in each case. Figure 5.19 shows the error of the numerical solution and the postprocessed solution as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 3, for velocity, postprocessed velocity (5.19c and 5.19d) and pressure (5.19a and 5.19b) in both the L2(Ω) and H1(Ω) norms. The convergence rates are reported in Table 5.9. From the figure and the table it can be seen that, in all cases, the error in computation is asymptotically approaching the optimal rates of convergence for the numerical solution uhand pressure ph, namely k+ 1 and k, respectively in the L2(Ω) and H1(Ω) norms. The table also shows that the error in the computation of the postprocessed solution u? halso asymptotically approaches the optimal rate of convergence, namely k+2 and k+1 respectively in the L2(Ω) and H1(Ω) norms. Finally Figure 5.20 shows the error of the numerical solution and the postprocessed solution obtaned using the Neumann formulation of the HDG method as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 3, for velocity, postprocessed velocity (5.20c and 5.20d) and pressure (5.20a and 5.20b) in both the L2(Ω) and H1(Ω) norms. In this case too the convergence rates are reported in Table 5.10 showing that, in all cases, the error in the computation of the numerical solution uhand pressure phasymptotically approaches the optimal rate of convergence, namely k+ 1 in the L2(Ω) norm and kin the H1(Ω) norm, while that of the postprocessed solution, u? h, approaches its optimal rate of convergence of k+ 2 in the L2(Ω) norm and k+ 1 in the H1(Ω) norm. Table 5.9: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 3D Stokes problem for meshes with hexahedral elements using classical formulation of HDG. k||e||L2||e||H1 u u?pu u?p 1 1.6 2.5 1.5 0.8 1.5 0.6 2 2.7 3.7 2.6 1.8 2.6 1.6 3 3.7 4.7 3.6 2.8 3.7 2.6
61 Numerical examples (a) Pressure, Mesh 3, k= 1 (b) Pressure, Mesh 2, k= 2 (c) Velocity, Mesh 3, k= 1 (d) Velocity, Mesh 2, k= 2 (e) Velocity postprocessed, Mesh 3, k= 1 (f) Velocity postprocessed, Mesh 2, k= 2 Figure 5.18: Numerical solution for Stokes problem in 3D obtained with two different meshes with hexahedral elements.
68 Numerical examples (a) kin different regions of the domain (b) Mesh 1 (c) Mesh 2 (d) Mesh 3 Figure 5.24: Two dimensional meshes with variable degrees of approximation, k= 1,2,3 within the elements. Coloured elements are the elements of interest considered for element-wise h-convergence study with the colours blue, green and red respectively representing k= 1, k= 2 and k= 3
69 Numerical examples Table 5.11: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 2D Stokes problem for meshes with non uniform degree of approximation in the elements. Type of error estimate k||eu||L2||eu?||L2||ep||L2 Global 1,2,3 2.0 2.9 2.0 2,3,4 3.0 4.1 3.0 3,4,5 4.0 5.1 4.0 Local 1 2.9 4.0 2.8 2 4.1 4.9 3.9 3 4.8 5.8 4.7 for varying degrees of approximation. The element-wise error estimation is shown for elements with degrees of approximation, k= 1,2,3. The convergence rates are reported in Table 5.11 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis obtained, namely kmin + 1 in the L2(Ω) norm for the global error, while ki+1+nsd/2in the L2(Ω) norm for the local element-wise error. The table also shows that optimal rate of convergence is obtained for the postprocessed solution u? h, namely kmin + 2 in the L2(Ω) norm for the global error, while ki+2+nsd/2in the L2(Ω) norm for the local element-wise error. 5.2.2 The 3-D case In order to illustrate the results of HDG for Stokes equations for a 3-D case, the model problem in (3.1) is solved in Ω :=]0,1[×]0,1[×]0,1[ with ΓN={(x, y, z)∈ ∂Ω|y= 0}and ΓD=∂Ω\ΓN. The source and boundary conditions are taken such that the analytical solution is given by u= bexp(a(x−z) + b(y−z)) −aexp(a(z−y) + b(x−y)) bexp(a(y−x) + b(z−x)) −aexp(a(x−z) + b(y−z)) bexp(a(z−y) + b(x−y)) −aexp(a(y−x) + b(z−x)) and p= sin(xyz). The coefficients appearing in the analytical expression of the velocity are set to a= 1 and b= 0.5.
70 Numerical examples -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -6 -5 -4 -3 -2 -1 0 1 5 1 4 1 3 1 (a) element-wise error ||(ep)i||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -5 -4 -3 -2 -1 0 1 4 1 3 1 2 1 (b) global error ||ep||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -8 -7 -6 -5 -4 -3 -2 -1 0 6 1 5 1 4 1 3 1 (c) element-wise error ||(eu)i||L2and ||(eu?)i||L2 -1.6 -1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 -7 -6 -5 -4 -3 -2 -1 0 1 5 1 4 1 3 1 2 1 (d) global error ||eu||L2and ||eu?||L2 Figure 5.25: h-convergence for different combinations of non uniform degrees of approximation kin the elements of the meshes for 2D Stokes problem.
71 Numerical examples (a) kin different regions of the domain (b) Mesh 1 (c) Mesh 2 (d) Mesh 3 Figure 5.26: Three dimensional meshes with variable degrees of approximation, k= 1,2,3 within the elements. Coloured elements are the elements of interest considered for element-wise h-convergence study with the colours blue, green and red respectively representing k= 1, k= 2 and k= 3 Four computational meshes are considered with characteristic element size, h, equal to 1, 1/2, 1/4 and 1/8, respectively and the order of the approximation, k, in each mesh, is non uniform. Figure 5.26a shows the distribution of the degree of approximation, k, in the different regions of the domain. Figures 5.26b,5.26c and 5.26d show three levels of refinement of the mesh with coloured elements being the element of interest for element-wise h-convergence study. Figure 5.27 shows both the local and global error of the numerical solution and the postprocessed solution as a function of the element size in logarithmic scale for varying degrees of approximation. The element-wise error estimation is shown for elements with degrees of approximation, k= 1,2,3. The convergence rates are reported in Table 5.12 showing that, in all cases, the optimal rate of convergence
72 Numerical examples for the numerical solution uhand pressure phis obtained, namely kmin + 1 in the L2(Ω) norm for the global error, while ki+1+nsd/2in the L2(Ω) norm for the local element-wise error. The table also shows that optimal rate of convergence is obtained for the postprocessed solution u? h, namely kmin + 2 in the L2(Ω) norm for the global error, while ki+2+nsd/2in the L2(Ω) norm for the local element-wise error. Table 5.12: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution for 3D Stokes problem for meshes with non uniform degree of approximation in the elements. Type of error estimate k||eu||L2||eu?||L2||ep||L2 Global 1,2,3 2.0 2.9 2.2 1,2,3 3.0 3.9 3.1 Local 1 3.47 4.48 3.46 2 4.48 5.52 4.47 3 5.50 6.51 5.48 -1 -0.8 -0.6 -0.4 -0.2 0 -8 -7 -6 -5 -4 -3 -2 -1 5.5 1 4.5 1 3.5 1 (a) element-wise error ||(ep)i||L2,||(eu)i||L2 and ||(eu?)i||L2 -1 -0.8 -0.6 -0.4 -0.2 0 -4.5 -4 -3.5 -3 -2.5 -2 -1.5 -1 -0.5 3 1 2 1 (b) global error ||ep||L2,||eu||L2and ||eu?||L2 Figure 5.27: h-convergence for different combinations of non uniform degrees of approximation kin the elements of the meshes for 3D Stokes problem.
73 Numerical examples 5.3 Validation of NEFEM-HDG for Stokes equations This example is performed in order to validate the code written to solve Stokes’ equations using the NEFEM-HDG method. Validation of the code is done using convergence plots using a problem that has an analytical solution. The workability of the code is shown for both the classical and Neumann formulations of HDG In order to illustrate the results of NEFEM-HDG for Stokes equations for a 2-D case, the model problem in (3.1) is solved in a domain bounded by the lines x= 0, y= 1 and x= 1 on the left right and top and by the curve y=1 + cos(5πx)/10 with ΓN={(x, y)∈∂Ω|y=1 + cos(5πx)/10}and ΓD=∂Ω\ΓN. The source and boundary conditions are taken such that the analytical solution is given by u= ay−f(x)−bλ exp −λy−f(x) ay−f(x)−bλ exp −λy−f(x)f0(x) with f(x) = 1 + cos(5πx) 10 ;f0(x) = −π 2sin(5πx) and p= 0. This test case, is a modification of the one proposed by [56], is used to test the performance of the HDG for a two dimensional flow. The modification is done to ensure that the boundary layer follows the curved boundary. The coefficients appearing in the analytical expression of the velocity are set to a= 1, b= 1 and λ= 10, leading to large variations of the velocity along the curved boundary. The problem is solved in meshes with triangular elements. Five computational meshes are considered with characteristic element size, h, equal to 1.45 ×10−1, 7.32 ×10−2, 3.69 ×10−2, 1.83 ×10−2and 9.20E×10−3 respectively and the order of the approximation, k, in each mesh, is increased from k= 1 to k= 3. Figure 5.28 shows the first three meshes with the nodal distribution corresponding to a degree of approximation k= 3, k= 2 and k= 1. The total number of elements and global degrees of freedom in each mesh and for different degree of approximation is summarized in Table 5.13. . Figure 5.29 shows the numerical solution for velocity and pressure computed with quadratic and cubic approximation, k= 2 and k= 3, in the first and second of the meshes shown in Figure 5.28. The postprocessed solution is also represented
74 Numerical examples (a) Mesh 1, k= 3 (b) Mesh 2, k= 2 (c) Mesh 3, k= 1 Figure 5.28: NEFEM-HDG validation: Two dimensional triangular meshes. Table 5.13: Total number of elements and global degrees of freedom in each mesh with quadrilateral and for different degree of approximation hnel ndof k 123 1.45E-01 74 533 725 917 7.32E-02 253 1907 2607 3307 3.69E-02 884 6833 9365 11897 1.83E-02 3489 27431 37657 47883 9.20E-03 13609 107907 148251 188595
75 Numerical examples in each case. It can be clearly observed that postprocessing offers a significant improvement in the solution. An h-convergence study is performed to validate the implementation. The five meshes described above are considered and the relative error of the numerical solution uhand the postprocessed solution u? hin the L2(Ω) norm is evaluated in each case. Figure 5.30 shows the error of the numerical solution and the postprocessed solution as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 3, for velocity, postprocessed velocity (5.30b) and pressure (5.30a) in the L2(Ω) norm. The convergence rates are reported in Table 5.14 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis obtained, namely k+ 1 in the L2(Ω) norm. The table also shows that optimal rate of convergence is obtained for the postprocessed solution u? h, namely k+ 2 in the L2(Ω) norm. Finally Figure 5.31 shows the error of the numerical solution and the postprocessed solution obtaned using the Neumann formulation of the HDG method as a function of the element size in logarithmic scale for a degree of approximation from k= 1 up to k= 3, for velocity, postprocessed velocity (5.31b) and pressure (5.31a) in the L2(Ω) norm. In this case too the convergence rates are reported in Table 5.14 showing that, in all cases, the optimal rate of convergence for the numerical solution uhand pressure phis obtained, namely k+1 in the L2(Ω) norm, and the optimal rate of convergence of k+ 2 in the L2(Ω) norm is obtained for the postprocessed solution u? h. Table 5.14: Rates of convergence for the numerical solution of velocity and pressure and postprocessed solution in the L2norm for 2D Stokes problem for meshes with triangular elements using classical and Neumann formulations of NEFEMHDG method. k Formulation Classical Neumann u u?pu u?p 1 2.0 3.1 2.0 2.1 3.1 2.0 2 3.1 4.2 3.0 3.2 4.1 3.0 3 4.1 5.3 4.1 4.1 5.2 4.1
76 Numerical examples (a) Pressure, Mesh 1, k= 3 (b) Pressure, Mesh 2, k= 2 (c) Velocity, Mesh 1, k= 3 (d) Velocity, Mesh 2, k= 2 (e) Velocity postprocessed, Mesh 1, k= 3 (f) Velocity postprocessed, Mesh 2, k= 2 Figure 5.29: Numerical solution for Stokes problem in 2D obtained with two different meshes with triangular elements solved using NEFEM formulation.
77 Numerical examples -2.2 -2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -6 -5 -4 -3 -2 -1 0 1 4 1 3 1 2 1 (a) ||ep||L2 -2.2 -2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 5 1 4 1 3 1 2 1 (b) ||eu||L2and ||eu?||L2 Figure 5.30: h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with triangular elements using classical formulation of NEFEM-HDG. -2.2 -2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -6 -5 -4 -3 -2 -1 0 1 4 1 3 1 2 1 (a) ||ep||L2 -2.2 -2 -1.8 -1.6 -1.4 -1.2 -1 -0.8 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 5 1 4 1 3 1 2 1 (b) ||eu||L2and ||eu?||L2 Figure 5.31: h-convergence for different degrees of approximation kfor 2D Stokes problem for meshes with triangular elements using Neumann formulation of NEFEM-HDG. 5.4 Degree adaptivite HDG for Stokes equations The last set of examples are performed to show the working of degree adaptive HDG method to solve Stokes’ equations. One example each for isoparametric formulation and NEFEM formulation are shown in case of 2-D while an example using isoparametric formulation is shown in the 3-D case. A comparison of the
84 Numerical examples (a) Initial configuration (b) ε= 0.5×10−2, after final iteration (c) ε= 0.5×10−4, after final iteration Figure 5.38: Distribution of kin the elements for different tolerance values before and after degree adaptive mesh refinement In order to compare the performance of the degree adaptive method, error of uhin the L2(Ω) norm plotted as a function of pdim(ˆ u) in Figure 5.40 for three different cases, degree adaptive mesh refinement strategy, uniform kand hrefinements. The initial mesh has 24 elements with a characteristic size of h= 1/2 and uniform degree of approximation of 1 in all its elements. In the case of uniform krefinement, the value of kis increased from 1 to 4, whereas in the case of uniform hrefinement, the characteristic size is decreased linearly from h= 1/4√2 to h= 1/32√2. From the figure it can be clearly seen that adaptive mesh refinement technique outperforms the uniform hrefinement strategy while it is on par with the uniform krefinement strategy.
85 Numerical examples (a) Velocity, after first iteration (b) Velocity, after final iteration, with ε= 0.5×10−2 (c) Velocity, after final iteration, with ε= 0.5×10−4 (d) Pressure, after first iteration (e) Pressure, after final iteration, with ε= 0.5×10−2 (f) Pressure, after final iteration, with ε= 0.5×10−4 Figure 5.39: Results obtained from degree adaptive HDG for 2-D case using isoparametric formulation. 40 60 80 100 120 140 160 180 -5.5 -5 -4.5 -4 -3.5 -3 -2.5 -2 -1.5 Figure 5.40: Comparison of performance of degree adaptive mesh refinement and uniform kand hrefinement for 2-D case of HDG using isoparametric formulation: error of uhin the L2(Ω) norm as a function of pdim(ˆ u).
Chapter 6 Conclusions and future developments The main purpose of this work was to gain a working understanding of the HDG method and NEFEM, two relatively new approaches in the area of computational methods based on finite elements, in order to integrate these two cutting-edge techniques seamlessly into one working code for the analysis of problems of interest to the aerodynamic aircraft design industry. A HDG degree adaptive technique is proposed for the solution of Stokes flow. The proposed adaptive technique provides uniform error distributions below a user defined tolerance, automatically placing the correct polynomial degree in each element. Adaptivity is driven by an error estimator derived exploiting the superconvergent properties of HDG, and involving only elemental computations. Thus, the error estimation is an inexpensive computation compared to the solution. This study presents numerical examples in two and three dimensions for the Stokes problems solved using both uniform and non-uniform degrees of approximation in its elements, using both the isoparametric and NEFEM formulations. In all the examples, the implementation of the codes developed during this work are tested for up to order 4. In particular, for any order of approximation, optimal rate of convergence for both the primal and dual variables are consistently obtained. The postprocessing technique that enables to compute a solution that converges with a rate k+ 2 for a k-th degree approximation is detailed. This is a unique feature of the HDG formulation considered in this research and only requires the solution of an element-by-element problem. An example each is shown to show the advantages of degree adaptive HDG technique using isoparametric formulation in 2-D and 3-D and NEFEM formulation in 2D. NEFEM integrated to HDG presents a case of a high-order method that promises to be devoid of the issues that are preventing the industry from embracing highorder methods. However, there is a lot of research that needs to done in order to 86
87 Conclusions and future developments prove the competency of the method. The extension of degree adaptive NEFEM to 3D, proving the competency of the degree adaptive method through more practical applications are some of the work that need immediate attention and will be the areas of focus in the work that will follow this thesis. The research presented here is an intermediate step towards the development of a 3D DG solver able to tackle realistic flow problems. The incorporation of the nonlinear terms corresponding to the Navier-Stokes equations are required as well as the adoption of efficient methods and preconditioners for the numerical solution of the linear system that arise in each Newton-Raphson iteration during the solution of the non-linear systems of equations. For the compressible Navier-Stokes equations it is necessary to implement efficient and robust shock capturing techniques that are able to resolve shocks within an element without mesh refinement in order to fully exploit the advantages of high-order approximations. Finally, the implementation of a turbulence model is mandatory in order to solve problems of industrial interest.
Bibliography [1] Kroll, N., Bieler, H., Deconinck, H., Couaillier, V., van der Ven, H., Sorensen,K. (editors): ADIGMA- A European initiative on the development of adaptive higher-order variational methods for aerospace applications. Notes on Numerical Fluid Mechanics and Multidisciplinary Design, Volume 113, Springer, 2010 1,2,3 [2] Wang, Z.J., Fidkowski, K., Abgrall, R., Bassi, F., Caraeni, D., Cary, A., Deconinck, H., Hartmann, R., Hillewaert, K., Huynh, H.T., Kroll, N., May, G., Persson, P., van Leer, B., Visbal, M.: High-Order CFD Methods: Current Status and Perspective. International Journal for Numerical Methods in Fluids 2012; 00: 1-42. 1 [3] Martin, M.P., Taylor, E.M., Wu, M., Weirs, V.G.: A bandwidth-optimized WENO scheme for the effective direct numerical simulation of compressible turbulence. Journal of Computational Physics 2006; 220(1): 270–289. 1 [4] Karniadakis, G.E., Cockburn, B., Shu C.W.: The development of discontinuous Galerkin method: Lecture Notes in Computational Science and Engineering 2000, vol. 11, Springer. 1 [5] Ekaterinaris, J.A.: High-order accurate, low numerical diffusion methods for aerodynamics: Progress in Aerospace Sciences 2005; 41 (3–4): 192–300. 1 [6] Wang, Z.: High-order methods for the Euler and Navier–Stokes equations on unstructured grids: Progress in Aerospace Sciences 2007; 43 (1-3): 1-41. 1 [7] Cockburn, B., Shu C.W.: The Runge–Kutta discontinuous Galerkin method for conservation laws V: Multidimensional systems. Journal of Computational Physics 1998; 141(2): 199–224. 1 [8] Montlaur, A., Fern´andez-M´endez, S., Huerta, A.: Discontinuous Galerkin methods for the Stokes equations using divergence-free approximations. In- 88
89 Bibliography ternational Journal for Numerical Methods in Fluids 2008; 57: 1071-1092. 1,15 [9] Arnold, D. N.: An interior penalty finite element method with discontinuous elements. SIAM Journal on Numerical Analysis 1982; 19(4), 742–760. 2 [10] Peraire, J., Persson P.O.: The compact discontinuous Galerkin (CDG) method for elliptic problems. SIAM Journal on Scientific Computing 2008: 30(4), 1806–1824. 2 [11] Nguyen, N.C., Peraire J., Cockburn B.: An implicit high-order hybridizable discontinuous Galerkin method for the incompressible Navier–Stokes equations. Journal of Computational Physics 2011; 230(4): 1147–70. 2 [12] Cockburn, B., Gopalakrishnan, J., Lazarov, R.: Unified hybridization of discontinuous Galerkin, mixed, and continuous Galerkin methods for second order elliptic problems. SIAM Journal on Numerical Analysis 2009; 47(2): 1319–65. 2,17,19 [13] Cockburn, B., Dong, B., Guzm´an, J,: A superconvergent LDG-hybridizable Galerkin method for second-order elliptic problems. Mathematics of Computation 2008; 77(264) :1887–916. 2,17,19,23 [14] Nguyen, N.C., Peraire, J., Cockburn, B.: An implicit high-order hybridizable discontinuous Galerkin method for linear convection–diffusion equations. Journal of Computational Physics 2009; 228(9): 3232–54. 2,17,19 [15] Nguyen, N.C., Peraire, J., Cockburn, B.: An implicit high-order hybridizable discontinuous Galerkin method for nonlinear convection–diffusion equations. Journal of Computational Physics 2009; 228(23): 8841–55. 2,17,19 [16] Nguyen, N.C., Peraire, J., Cockburn, B.: A hybridizable discontinuous Galerkin method for Stokes flow. Computational Methods Applied Mechanics and Engineering 2010; 199(9–12): 582–97. 2,17,19 [17] Nguyen, N. C., Peraire, J., and Cockburn B.: High-order implicit hybridizable discontinuous Galerkin methods for acoustics and elastodynamics. Journal of Computational Physics 2011; 230(10), 3695–3718. 2 [18] Nguyen, N. C., Peraire, J., and Cockburn B.: Hybridizable discontinuous Galerkin methods for the time-harmonic Maxwell’s equations. Journal of Computational Physics 2011; 230(19), 7151–7175. 2
90 Bibliography [19] Nguyen, N. C., Peraire, J., and Cockburn B.: An implicit highorder hybridizable discontinuous Galerkin method for the incompressible Navier-Stokes equations. Journal of Computational Physics 2011: 230(4), 1147–1170. 2,17,19 [20] Peraire, J., Nguyen, N. C., and Cockburn B.: A hybridizable discontinuous Galerkin method for the compressible Euler and Navier-Stokes equations. In In Proceedings of the 48th AIAA Aerospace Sciences Meeting and Exhibit, AIAA-2010, Orlando, Florida,. 2 [21] Kirby, R., Sherwin, S.,J., and Cockburn B.: To CG or to HDG: A comparative study. Journal of Scientific Computing 2011: 51(1), 183–212. 2 [22] Arnold, D. N., Brezzi, F.: Mixed and nonconforming finite element methods: implementation, postprocessing and error estimates. RAIRO – Mod´elisation math´ematique et analyse num´erique 1985: 19(1), 7–32. 2 [23] Giorgiani, G., Fern´andes-M´endez, S., Huerta, A.: Hybridizable Discontinuous Galerkin with degree adaptivity for the incompressible Navier–Stokes equations. Computers and Fluids- Journal, 2014; 01(11) 2 [24] Sevilla, R., Fern´andes-M´endez, S., Huerta, A.: NURBS-Enhanced Finite Element Method (NEFEM). A seamless bridge between CAD and FEM. Archives of Computational Methods in Engineering,2011; 18 (4); 441-484 v, 3,26,27,29,30,31,32,37 [25] Sevilla, R., Fern´andez-M´endez, S., Huerta, A.: Comparison of high-order curved finite elements. International Journal for Numerical Methods in Engineering, 2011; 87(8), 719–734 3,37 [26] Kirby, B.J.: Micro- and Nanoscale Fluid Mechanics: Transport in Microfluidic Devices. Cambridge University Press, 2010. 5 [27] Dusenbery, D.B.: Living at Micro Scale. Harvard University Press, Cambridge, 2009. 5 [28] Vogel, S.: Life in Moving Fluids. Princeton University Press, 1994. 5 [29] Donea, J., Huerta, A.: Finite Element Methods for Flow Problems. Chichester: John Wiley & Sons, 2003. 6,8,9,12,13 [30] Sevilla, R., Huerta, A.: Tutorial on Hybridizable Discontinuous Galerkin (HDG) for Second-Order Elliptic Problems. Advanced Finite Element Technologies, CISM International Centre for Mechanical Sciences, 2016, 566:105- 129. 17
91 Bibliography [31] Giorgiani, G., Modesto, D., Fernand´es-M´endez, S., Huerta, A.: High-order continuous and discontinuous Galerkin methods for wave problems. International Journal for Numerical Methods in Fluids, 2013, 73(10): 883–903. 19, 32 [32] Giorgiani, G., Fernand´es-M´endez, S., Huerta, A.: Hybridizable discontinuous Galerkin p-adaptivity for wave problems. International Journal for Numerical Methods in Fluids, 2013, 72(12): 1244–1262. 19,32 [33] Hesthaven, J.S., Warburton, T.: Nodal discontinuous Galerkin methods. Algorithms, analysis and applications. Springer, 2008. [34] Cockburn, B., Shu, C.W.: The local discontinuous Galerkin method for time-dependent convection-diffusion systems. SIAM Journal on Numerical Analysis, 1998, 35(6): 2440-2463. [35] Arnold, D.N., Brezzi, F., Cockburn, B., Marini, L.D.: Unified analysis of discontinuous Galerkin methods for elliptic problems. SIAM Journal on Numerical Analysis, 2002, 39(5): 1749-1779. [36] Cockburn, B., Guzm´an, J., Wang, H.: Superconvergent discontinuous Galerkin methods for second-order elliptic problems. Mathematics of Computation, 2009, 78(265): 1–24. 23 [37] Cockburn, B., Fu, G.: A note on the devising of superconvergent HDG methods for Stokes flow by M-decompositions. IMA Journal of Numerical Analysis, 2016, 00: 1–20. 23 [38] Ergatoudis, J., Irons, B.M., Zienkiewicz, O.C.: Curved isoparametric ‘quadrilateral’ elements for finite element analysis. International Journal of Solids and Structures, 1968, 4(1): 31–42. 26 [39] Sevilla, R., Hassan, O., Morgan, K.: The use of hybrid meshes to improve the efficiency of a discontinuous Galerkin method for the solution of Maxwell’s equations Computers and Structures, 2014, 137: 2-13. viii,27 [40] Bergot, M., Cohen, G., Durufl´e, M.: Higher-order finite elements for hybrid meshes using new nodal pyramidal elements. Journal of Scientific Computing, 2010, 42(3): 345–81. 27 [41] Taylor, M.A., Wingate, B.A., Vincent, R.E.: An algorithm for computing Fekete points in the triangle. SIAM Journal on Numerical Analysis, 2000, 38(5): 1707–20. 27
92 Bibliography [42] Luo, H., Pozrikidis, C.: A Lobatto interpolation grid in the tetrahedron. IMA Journal of Applied Mathematics, 2006 71(2): 298–313. 27 [43] Zhong, Q.X., Sevilla, R., Hassan, O., Morgan, K.: The generation of arbitrary order curved meshes for 3D finite element analysis. Journal of Computational Mechanics, 51(3):361-374, 2013 37 [44] Zienkiewicz O.C., Morgan K.: Finite elements and approximation. Dover, Mineola, 1983. 37 [45] Zienkiewicz O.C., Taylor R.L.: The Finite Element Method, vol 1. The basis, 5th edn. Butterwort-Heinemann, Oxford, 2000. 37 [46] Ainsworth, M., Oden, J.T.: A posteriori error estimation in finite element analysis. Pure and Applied Mathematics (New York). New York: Wiley- Interscience [John Wiley & Sons], 2000. 33 [47] Huerta, A., Rodriguez-Ferran, A., D´ıez, P., Sarrate, J.: Adaptive finite element strategies based on error assessment. International Journal for Numerical Methods in Engineering, 1999, 46(10): 1803–1818. 33 [48] D´ıez, P., Arroyo,M., Huerta, A.: Adaptivity based on error estimation for viscoplastic softening materials. Mechanics of Cohesive-frictional Materials, 2000, 5(2): 87–112. 33 [49] Sauer-Budge, A. M., Bonet, J., Huerta, A., Peraire J.: Computing bounds for linear functionals of exact weak solutions to Poisson’s equation. SIAM Journal on Numerical Analysis, 2004, 42(4): 1610–1630. 33 [50] Par´es, N., D´ıez, P., Huerta, A.: Subdomain-based flux-free a posteriori error estimators. Cover image Computer Methods in Applied Mechanics and Engineering Computer Methods in Applied Mechanics and Engineering, 2006, 195(4-6): 297–323. 33 [51] Par´es, N., D´ıez, P., Huerta, A.: Bounds of functional outputs for parabolic problems. II. Bounds of the exact solution. Computer Methods in Applied Mechanics and Engineering, 2008, 197(19-20): 1661–1679. 33 [52] Par´es, N., D´ıez, P., Huerta, A.: Exact bounds for linear outputs of the advection-diffusion-reaction equation using flux-free error estimates. SIAM Journal on Scientific Computing, 2009, 31(4): 3064–3089. 33 [53] D´ıez, P., Rodenas, J.J., Zienkiewicz, O.C.: Equilibrated patch recovery error estimates: simple and accurate upper bounds of the error. International Journal for Numerical Methods in Engineering, 2007, 69(10): 2075–2098. 33
93 Bibliography [54] Ladev´eze, P., Pelle, J.,P.: Mastering calculations in linear and nonlinear mechanics. Mechanical Engineering Series. New York: Springer-Verlag, 2005. Translated from the 2001 French original by Theofanis Strouboulis. 33 [55] D´ıez, P., Huerta, A.: A unified approach to remeshing strategies for finite element h-adaptivity. Computer Methods in Applied Mechanics and Engineering, 1999, 176: 215-229 33,34,67 [56] Wang, C.Y.: Exact solutions of the steady state Navier Stokes equations. Annual Review of Fluid Mechanics, 1991, 23:159(177). 38,73,78,79 [57] Ethier, C.R., Steinman, D.A.: Exact fully 3-D Navier-Stokes solutions for benchmarking. International Journal for Numerical Methods in Fluids, 1991, 19(5): 369-375 54,83 [58] Hughes, T.J.R.: The Finite Element Method. Prentice Hall International, Stanford, 1987. 67 [59] Higham, N. J.: Accuracy and stability of numerical algorithms (Second ed.). Philadelphia, PA: Society for Industrial and Applied Mathematics (SIAM), 2002. 79 [60] Piegl, W., Tiller, W.: The NURBS book. Springer, 1995. 95
100 Implementational Details [Aˆup]i=X ∂Ωi\ΓD nf ip X g=1 b Nn(ξf g)NT(ξf g)wf g [Aˆuˆu]i=−X ∂Ωi\ΓD τi nf ip X g=1 b N(ξf g)b NT(ξf g)wf g [fˆu]i=−X ∂Ωi∩ΓN nf ip X g=1 b N(ξf g)tTx(ξf g)wf g [aρˆu]i=X ∂Ωi\ΓD nf ip X g=1 b NT n(ξf g)wf g [fρ]i=−X ∂Ωi∩ΓD nf ip X g=1 nx(ξf g)uT Dx(ξf g)wf g In the above expressions, ξe gand we gare the ne ip integration points and weights defined on the reference element and ξf gand wf gare the nf ip integration points and weights defined on the reference edge/face. B.2 NEFEM formulation The following compact form of the interpolation functions is introduced Nx= [Nx 1Nx 2... Nx nen ]T,c Nx= [ c Nx1c Nx2... c Nxnfn ]T, Nxn= [Nx 1nNx 2n... Nx nen n]T,c Nxn= [ c Nx1nc Nx2n... c Nxnfn n]T, ∇Nx= [(∇Nx 1)T(∇Nx 2)T... (∇Nx nen )T]T, Nx nsd = [Nx 1Insd Nx 2Insd ... Nx nen Insd ]T, Nx n2 sd = [Nx 1In2 sd Nx 2In2 sd ... Nx n2 sd In2 sd ]T, where n= (n1, ..., nnsd ) denotes the outward unit normal vector to an edge/face and Insd and In2 sd are identity matrices of dimension nsd and n2 sd, respectively. The matrices and vectors appearing in Equations (3.11) and (3.17), computed for each element i= 1, ..., nen, can be expressed as [ALL]i= ne ip X g=1 Nx n2 sd (xe g)NxT n2 sd (xe g)we g
101 Implementational Details [ALu]i=− ne ip X g=1 ∇Nx(xe g)NxT(xe g)we g [AuL]i=ν ne ip X g=1 Nx(xe g)∇NxT(xe g)we g−νX ∂Ωi nf ip X g=1 Nx(xf g)NxT n(xf g)wf g [Auu]i=−X ∂Ωi τi nf ip X g=1 Nx nsd (xf g)NxT nsd (xf g)wf g [Aup]i= ne ip X g=1 ∇Nx(xe g)NxT(xe g)we g−X ∂Ωi nf ip X g=1 Nxn(xf g)NxT(xf g)wf g [Apu]i= ne ip X g=1 Nx(xe g)∇NxT(xe g)we g [aρp]i=X ∂Ωi nf ip X g=1 NxT(xf g)wf g [ALˆu]i=−X ∂Ωi\ΓD nf ip X g=1 Nxn(xf g)c NxTx(ξf g)wf g [Auˆu]i=−X ∂Ωi\ΓD τi nf ip X g=1 Nx(xf g)c NxTx(ξf g)wf g [Apˆu]i=X ∂Ωi\ΓD nf ip X g=1 Nx(xf g)c NxT nx(ξf g)wf g [fL]i=X ∂Ωi∩ΓD nf ip X g=1 Nxn(xf g)uT D(xf g)wf g [fu]i=− ne ip X g=1 Nx nsd (xe g)sT(xe g)we g−X ∂Ωi∩ΓD τi nf ip X g=1 Nx nsd (xf g)uT D(xf g)wf g [fp]i=X ∂Ωi∩ΓD nf ip X g=1 NxT(xf g)n(xf g)uT D(xf g)wf g [AˆuL]i=X ∂Ωi\ΓD ν nf ip X g=1 c Nxx(ξf g)NxT n(xf g)wf g
102 Implementational Details [Aˆuu]i=X ∂Ωi\ΓD τi nf ip X g=1 c Nxx(ξf g)NxT(xf g)wf g [Aˆup]i=X ∂Ωi\ΓD nf ip X g=1 c Nxnx(ξf g)NxT(xf g)wf g [Aˆuˆu]i=−X ∂Ωi\ΓD τi nf ip X g=1 c Nxx(ξf g)c NxTx(ξf g)wf g [fˆu]i=−X ∂Ωi∩Γx N nf ip X g=1 c Nxx(ξf g)tT(xf g)wf g [aρˆu]i=X ∂Ωi\ΓD nf ip X g=1 c NxT nx(ξf g)wf g [fρ]i=−X ∂Ωi∩ΓD nf ip X g=1 n(xf g)uT D(xf g)wf g In the above expressions, xe gand we gare the ne ip integration points and weights defined in the physical space of the element and xf gand wf gare the nf ip integration points and weights defined on the edge/face.