scieee AI-readable full text Open interactive document viewer

Subgrid scale stabilized finite elements for low speed flows

Príncipe, Ricardo Javier

Abstract

La descripción del flujo de fluidos involucra la solución de las ecuaciones de Navier-Stokes compresible, un problema muy complejo cuya estructura matemática no es del todo comprendida. Por lo tanto, mediante análisis asintótico, se pueden derivar modelos simplificados bajo ciertas hipótesis sobre el problema hechas en términos de parámetros adimensionales que miden la importancia relativa de los diferentes procesos físicos. Los flujos a baja velocidad se pueden describir por diferentes modelos que incluyen las ecuaciones de Navier Stokes incompresible cuya matemática es mucho mas conocida. Sin embargo, algunos flujos importantes no se pueden considerar incompresibles debido a la presencia de efectos térmicos. En esta clase de problemas se pueden derivar otra clase de ecuaciones simplificadas: las ecuaciones de Boussinesq y las ecuaciones de bajo numero de Mach.<br/><br/>La complejidad de estos problemas matemáticos hace que su solución numérica sea muy difícil. En estos problemas el método de los elementos finitos es inestable, lo que en la práctica implica soluciones numéricas que presentan oscilaciones nodo a nodo de naturaleza no física. En las ecuaciones de Navier Stokes incompresible, dos fuentes bien conocidas de inestabilidad son la condición de incompresibilidad y la presencia del término convectivo. Muchas técnicas de estabilización utilizadas hoy en día se basan en la separación de escalas, descomponiendo la incógnita en una parte gruesa inducida por la discretización del domino y una parte fina de subescala. Modelar la subescala y su influencia conduce a un problema modificado para la escala gruesa que resulta estable.<br/><br/>Aunque las técnicas de estabilización son ampliamente utilizadas hoy en día, importantes problemas permanecen abiertos. Contribuyendo a su comprensión, en este trabajo se analizan varios aspectos del modelado de las subescalas. Para problemas escalares de segundo orden, se encuentra la dependencia de la subescala con el tamaño de la malla en el caso general de mallas anisótropas. Estas ideas son extendidas a sistemas de ecuaciones para considerar el problema de Oseen. También se analiza el modelado de las subescalas en problemas transitorios, obteniendo un mejor esquema de integración temporal para el problema de escala gruesa. Para considerar flujos a baja velocidad, se presenta la extensión de estas técnicas a problemas no lineales acoplados, lo que esta íntimamente relacionado con el problema del modelado de la turbulencia, que es un tema en si mismo.<br/><br/>Los flujos acoplados térmicamente, aparte del interés intrínseco que merecen, son importantes desde un punto de vista ingenieril. Una solución precisa del problema de flujo es necesaria para definir las cargas térmicas sobre las estructuras, que en muchos casos responden fuertemente, haciendo el problema acoplado. Esta clase de problemas, que motivaron este trabajo, incluyen la respuesta estructural en el caso de un incendio.

Full text

Subgrid scale stabilized finite elements for low speed flows Javier Principe Advisor: Ramon Codina A Laura, a mam´a y a Martin Acknowledgments You enter his office and, once again, make a silly question. He patiently picks a piece of paper and starts, once again, explaining you the thing. This disposition goes in hand with the freedom you need to try things, to get wrong (many times) and to finally do it by yourself. There is nothing to say but...merci Ramon! After this guide, the next important thing I had to develop this work is the environment, meaning the RMEE department of the Universitat Polit`ecnica de Catalunuya and CIMNE. I would like to thank all the people that are part of this, starting from Eugenio O˜nate, for giving me the chance of working here. Although it is impossible to give a complete list, I would like to particularly thank the every day work with Guillaume Houzeaux, Santi Badia, Oriol Guasch, Herbert Coppola and Noel Hernandez (lately also with Matias Avila, Christian Mu˜noz and Joan Bages) and the collaboration with Florian Henke; the conversations with the people of second floor, Romain Aubry, Facundo del Pin and Monica de Mier, Ricardo Rossi and Pooyan Dadvan and also with Carlos Labra and with Mariano Vazquez. Thanks to the CIMNE Terrassa people, Jordi and Dani. Thanks to my present and past office mates Roberto, Jeovan, Pablo and Maritzabel. A special thank to Gerardo Valdez for his sense of humor and for his help with the format of this thesis. My previous work at the Center for Industrial Research (CINI) gave me the chance of being in contact with real applications of numerical methods, what motivated me to begin doctoral studies. I would like to thank the people I worked with during these years, in particular Marcela Goldschmit and Eduardo Dvorkin. I would like to particularly thank prof. Bernard Schrefler and Francesco Pesavento for involving me in the joint project ”Numerical modelling of smoke dynamics generated by fires within tunnels”, which is the frame in which this thesis has been developed. Likewise, the financial support to this project provided by International Centre For Mechanical Sciences (CISM) and Autostrada del Brennero S.p.A. is also acknowledged. This project has been (and still is) a broad source of motivating challenges. The financial support received from the Ag`encia de Gesti´o d’Ajuts Universitaris i de Recerca of the Generalitat de Catalunya (Catalan Government) and the European Social Fund through a doctoral grant is acknowledged. Finally, I would like to thank my friends for these shared years here in Barcelona, specially Ana, el chute, Mateo, Mano, Pablo, Dolo and Maria. My old friends, those I made when I was a kid, Alequis, Chapa, Diego, Facu, Flor, Salva and Xime, make me a lucky guy. I cannot finish without specially thank the support given by my family, my mother and my brother. And I couldn’t have done it without my love, Laura. Abstract A general description of a fluid flow is given by the compressible Navier-Stokes equations, a very complex problem whose mathematical structure is not well understood. Therefore, simplified models are derived by asymptotic analysis, under some assumptions made in terms of dimensionless parameters that measure the relative importance of different physical processes. Low speed flows can be described by the incompressible Navier Stokes equations whose mathematical structure is much better understood. However, many important flows cannot be considered as incompressible, even at low speed, due to the presence of thermal effects. In these cases another class of simplified equations can be derived: the Boussinesq equations and the Low Mach number equations. The complexity of these problems makes their numerical solution very difficult as the standard finite element method is unstable. In the incompressible Navier Stokes equations, two well known sources of numerical instabilities are the incompressibility constraint and the presence of the convective term. Many stabilization techniques used nowadays are based on scale separation, splitting the unknown into a coarse part induced by the discretization of the domain and a fine subgrid part. The modelling of the subgrid scale and its influence leads to a modified coarse scale problem providing stability. Although stabilization techniques are nowadays widely used, important problems remain open. Contributing to their understanding, several aspects of the subgrid scale modelling are analyzed in this work. For second order scalar problems, the dependence of the subgrid scale on the mesh size, in the general anisotropic case, is clarified. These ideas are extended to systems of equations to consider the Oseen problem. The modelling of the subgrid scales in transient problems is also analyzed, leading to an improved time discretization scheme for the coarse scale problem. To consider low speed flow models, the extension of these techniques to nonlinear and coupled problems is presented, something that is intimately related to the problem of turbulence modelling, which a entire subject on its own right. Thermally coupled flow problems are important from an engineering point of view. An accurate solution of a flow problem is needed to define thermal loads on structures which, in many cases have a strong response, making the problem coupled. This kind of problems, that motivated this work, include the problem of a structural response in the case of fires. Contents 1 Introduction 13 1.1 An application problem: fire in tunnels . . . . . . . . . . . . . . . . . . . . 15 1.2 Objectives and organization . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2 Physical problems 19 2.1 Introduction................................... 19 2.2 Equationsofmotion .............................. 21 2.3 The small Mach number limit . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.3.1 The incompressible Navier Stokes equations . . . . . . . . . . . . . 27 2.3.2 The zero Mach number equations . . . . . . . . . . . . . . . . . . . 28 2.4 The small Mach number and small Froude number limit . . . . . . . . . . 28 2.4.1 The Boussinesq approximation . . . . . . . . . . . . . . . . . . . . . 29 2.4.2 The anelastic and quasistatic approximations . . . . . . . . . . . . 33 2.4.3 Applications............................... 36 2.5 Summary and conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3 The convection diffusion reaction problem 39 3.1 Introduction................................... 39 3.2 Problemstatement ............................... 42 3.2.1 Continuous problem . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.2.2 Multiscale decomposition . . . . . . . . . . . . . . . . . . . . . . . . 43 3.3 Approximate solution of the subscale equation . . . . . . . . . . . . . . . . 45 3.3.1 Transformation to the reference domain . . . . . . . . . . . . . . . . 46 3.3.2 A Fourier analysis of the subscale problem . . . . . . . . . . . . . . 46 3.4 Definition of the stabilization parameter . . . . . . . . . . . . . . . . . . . 49 3.4.1 The one dimensional problem . . . . . . . . . . . . . . . . . . . . . 49 3.4.2 Extension to several dimensions: an isotropic approximation . . . . 50 3.4.3 Extension to several dimensions: an anisotropic approximation. . . 51 3.5 Erroranalysis.................................. 57 3.6 Numericalexamples............................... 61 3.6.1 Convection diffusion under anisotropic refinement . . . . . . . . . . 61 16 Introduction of the tunnel construction. As mentioned in [131], structural damage can be attributed to two main factors: spalling of concrete and excessive temperatures attained in the concrete and steel components. In turn the temperature field inside the concrete depends on the temperature on the walls of the tunnel which is a result of a fluid mechanics problem. Actually both problems are coupled trough the boundary conditions on the walls. A complete model to predict the concrete behavior of the structure is presented in [131]. In order to model the flow problem, several physical phenomena should be taken into account. The problem of simulating flow dynamics due to a fire can be stated as the dynamics of several fluids into a domain Ω with a chemical interaction between them. That chemical reaction, which transforms elements, defines the type of fire. In the case of fire in tunnels, the detailed mechanism is unknown except in some experiments specially designed. Therefore, the model should include the appropriate balances of mass, momentum and energy and a combustion model that define the species to be considered and the relation between them. It is to be noted that the mass balance should be performed for all the species, what is usually done through the inclusion of transport equations for the species concentration. Due to the high temperatures attained, the model for the heat flux on the flow should contain a radiative mechanism apart from the usual convective one. The radiation properties of the medium may depend, of course, on the species concentration. Different approaches to fire modelling can be found in [108] and the references therein. The simplest combustion model that can be considered is the volumetric heat source (VHS) model where it is considered that the combustion is a source of heat that does not depend on any species concentration. However, the concentration of the smoke, which is a product of the combustion, needs to be determined as it greatly affects the radiation problem. In [144] a comparison of different combustion models, including the VHS, is presented as well as their performance on the simulation of a room fire, a shopping mall fire and a tunnel fire. This application problem is a motivation for the objectives posed in this work. The problem of a fire is that of a fluid with strong thermal coupling and the usual Boussinesq approximation cannot be used as the temperature variation can be higher than the mean temperature. The low Mach number model discussed in chapter 2 is much more appropriate. To accurately solve this problem we need to define a robust discrete approximation in order to avoid numerical instabilities. Finally, a good strategy for the solution of the whole thermally coupled fluid-solid problems is needed. 1.2 Objectives and organization Let us close this introduction describing the organization of the work according to the objectives defined. Introduction 17 The first objective of this work is to understand the derivation of the simplified models that describe low speed flows as well as the relation between them. This will be done in chapter 2, where a unified asymptotic approach is proposed and all these models, whose justification was separately known, are recovered. This approach enables us to go further and, in particular, to predict the range of applicability of each model in terms of the dimensionless parameters already mentioned. The second and most important objective of this work is to develop a subgrid scale stabilized finite element formulation for the kind of problems we are considering. To achieve this goal we follow a natural way, starting from the scalar convection diffusion equation in chapter 3, where a new definition of the stabilization parameters is presented. Then we extend these results to the incompressible Navier Stokes problem. This extension involves two main aspects, the definition of the stabilization parameters, which is treated in chapter 4, and the extension of the stabilization techniques to transient nonlinear problems, which is teated in chapter 5. Finally we extend these results to thermally coupled flows in chapter 6, where the final discrete formulation is presented. The third objective is to develop a finite element code to solve this problems. Apart from the discrete formulation of the problems, the final ingredient that we need is an algorithm for the solution of the discrete problem. In chapter 7 different linearization strategies are compared and the final algorithm is presented. The fourth and last objective of this work is to apply the developed code to the problem of thermal coupling of fluids and solids. To achieve this goal, a coupling strategy based on a domain decomposition approach has been developed. This strategy implies the development of a small code to manage the coupling between the solid and the fluid. This development was applied to the problem of a fire in a tunnel described above. Both, the strategy and the application are described in chapter 8. We close the work with chapter 9, where conclusions and further possible research lines are summarized. Let us finally mention that chapters are quite self contained even if this implies the need of repeating some information. This is due to the fact that each chapter is based on the following publications: •Chapter2: ”On the low Mach number and the Boussinesq approximations for low speed flows”, J. Principe and R. Codina, Submitted. •Chapter3: ”The modelling of subgrid scales in the finite element approximation of convection diffusion reaction problems on anisotropic meshes”, J. Principe and R. Codina, In preparation. •Chapter 4:”The modelling of subgrid scales in the finite element approximation of incompressible flows”, J. Principe and R. Codina, In preparation. •Chapter 5: ”Time dependent subscales in the stabilized finite element approximation 18 Introduction of incompressible flow problems”, R. Codina, J. Principe, O. Guasch and S. Badia, Computer Methods in Applied Mechanics and Engineering, 196 (2007), 2413-2430. •Chapter 6: ”Dynamic subscales in the finite element approximation of thermally coupled incompressible flows”, R. Codina and J. Principe, International Journal for Numerical Methods in Fluids, 54 (2007), 707-730. •Chapter 7: ”A stabilized finite element approximation of low speed thermally coupled flows”, J. Principe and R. Codina, International Journal of Numerical Methods for Heat & Fluid Flow, Accepted. •Chapter 8: ”A numerical approximation of the thermal coupling of fluids and solids”, J. Principe and R. Codina, Submitted. Chapter 2 Physical problems In this chapter we present an asymptotic analysis of the compressible Navier Stokes equations at low speeds. Compressible flows at low speeds behave as incompressible in a sense that we make precise. In the absence of heat exchange (the isentropic regime) this limit is well understood and rigorous results are available. When heat exchange is considered, different simplified models can be obtained. These models have been used during the years for different applications (usually on different academic environments) the most famous being the Boussinesq approximation. Here a unified formal justification of these models, based on an asymptotic analysis, is presented. Special attention is paid to the relation between the low Mach number and the Boussinesq approximations. 2.1 Introduction Many flows of interest can be considered as incompressible. This assumption is useful as it makes the problem much simpler than if a full compressible flow is considered. The compressible flow equations have different structure depending on the Mach number. If the Mach number is of the order of or greater than one, shock waves may be present. A number of issues have to be considered when numerically solving compressible flows, such as the set of variables to be used and the prediction of such shock waves. In the incompressible case, the system of equations is smaller and shocks as well as sound waves are absent. Furthermore, the mathematical structure of incompressible equations is much better understood than the general one. For ideal fluids, in the absence of heat sources (the isentropic case), solutions of the incompressible Navier Stokes equations can be found as the limit of solutions of the compressible ones as the Mach number tends to zero under certain assumptions on the initial data. Rigorous mathematical results were established in [96] (see also [105]). When heat exchange is taken into account, the limit is quite different, since the energy equation is not uncoupled and one needs to keep the state equation to close the system. 20 Physical problems The zero Mach number limit gives rise to a splitting of the pressure into a constant-in- space thermodynamic pressure pth and a mechanical pressure pthat has to be used in the momentum equation. This leads to a removal of the acoustic modes and the flow behaves as incompressible, in the sense that the mechanical pressure is determined by the mass conservation equation and not by the state equation. However, large variations of density due to temperature variations are allowed. This limit has been studied first in [126] in the inviscid case, and generalized to the viscous case in [119]. A rigorous derivation including combustion was presented in [106]. This zero Mach number model has also been presented in [47] and [145]. The numerical implications of this limit have been studied in [97] and [113], for example. However the most widely used model in the context of thermally coupled flows is the so called Boussinesq approximation. In 1903, based on his observations on the behavior of thermal flows, J. Boussinesq [14] proposed to ignore the variations of density except where they multiply the gravity acceleration (historical issues can be found in [149]). Since that moment, many authors have looked for a formal justification of the Boussinesq approximation. In [135] the Boussinesq approximation is found expressing the thermodynamic variables as a constant and an static part plus a fluctuating part resulting from the motion. It is showed that for a thin layer of fluid (compared to the scale of variation of the static fields), the Boussinesq approximation follows. However density variations are retained in the momentum equation even when they are of higher order based on physical arguments and not on a limiting process. The first attempt to present a rigorous derivation of the Boussinesq approximation was performed in [110],where an expansion in two parameters, ε1and ε2, of the full compressible equations is proposed. The Boussinesq approximation is found to the lowest order in both ε1and ε2. Several problems of this approach are described in [120]. On the one hand, the two parameters introduced in [110] are of order ε1∼10−4and ε2∼10−11 for typical fluids in a standard Rayleigh B´enard experiment, indicating a second order approximation for ε1to have the same order as a first order approximation for ε2. On the other hand, the starting point of Mihaljan’s approach is the compressible equations but using an equation of state that relates temperature to density only. According to [120] this assumption and the selection of the parameters “destroyed the self-consistency of the scheme” making second order approximations meaningless. It is interesting to note some thermodynamic consequences of an state equation of the form ρ=ρ(ϑ) , where ρis the density and ϑis the temperature. Although they result from classical thermodynamics, they were only noted in two articles. In [12] it is mentioned that the constant volume specific heat diverges whereas in [7] it is shown that convexity inequalities are violated. The Mihaljan’s approach was improved first by Malkus (in an unpublished work mentioned in [120]) and in [120]. The new ingredient was the selection of an appropriate reference state. In [63] a derivation of the Boussinesq equations was presented taking a reference state into account Physical problems 21 and allowing temperature and pressure dependent properties. We note that all these works are concerned with natural convection as the velocity is made dimensionless using another variable as scale (viscosity or gravity, for example). An asymptotic justification of the Boussinesq approximation was developed in the works of Zeytounian [146, 148, 149] and Bois [12, 13]. These developments dealt first with polytropic gases (in [146] and [12]) and the main conclusion was that the Mach number is a small parameter in the Boussinesq approximation. An asymptotic derivation of the Boussinesq approximation for liquids was then presented in [147]. Finally a unified approach for liquids and gases was presented in [13]. Another widely used model, the anelastic approximation, was proposed in [5] and [115] and has been used for a long time in the context of atmospheric flows (see also [44] and [61]). This approximation removes the height limitation present in the Boussinesq’s one. The formal justification of these models has been developed but the connection between them has not been fully analyzed. Although the Boussinesq approximation was considered in [126] and [119] it was not found following the same asymptotic procedure used to derive the low Mach number model. In this work we present the zero Mach number model, the anelastic and the Boussinesq approximations, the density dependent incompressible Navier Stokes equations and the usual incompressible equations in a unified asymptotic setting. As a consequence we show that the Boussinesq and the anelastic approximations are found in the limit of small Mach and small Froude numbers with some restrictions. Particular attention is paid to way in which the asymptotic justification of the Boussinesq approximation is related to that of the other models. 2.2 Equations of motion The flow of a compressible fluid in a domain Ω is described in terms of the velocity (u), pressure (p), density (ρ), and temperature (ϑ) fields (bold characters are used to denote vectors and tensors). These fields are solutions of the equations that describe the dynamics of the system and that are statements of conservation of mass, momentum and energy and a state equation relating the thermodynamic variables. They can be found, for example, in [6] and [104] and can be written as Dρ Dt +ρ∇·u= 0 ρDu Dt +∇p=∇·(2µε0(u)) + ρg(2.1) ρcp Dϑ Dt −βϑDp Dt =∇·(k∇ϑ)+Φ+Q ρ=F(p, ϑ) 22 Physical problems where D Dt =∂ ∂t +u· ∇ is the material derivative, gthe external source of momentum, Qthe external source of energy, ε0(u) = ε−1 3(∇·u)Ithe deviatoric part of the rate of deformation tensor (εis the symmetric part of the velocity gradient, ε(u) = 1 2∇u+∇ut), µthe viscosity, cpthe constant pressure specific heat, kthe thermal conductivity, βthe thermal expansion coefficient and Φ (the Rayleigh dissipation function) is a non-negative contribution due to mechanical dissipation of energy in sheared motion defined as Φ = 2µε0(u) : ε0(u) When an isentropic flow is considered a state equation of the form ρ=F(p) can be assumed (where Fcould depend on the initial distribution of entropy) and the equations to be solved simplify to Dρ Dt +ρ∇·u= 0 ρDu Dt +∇p=∇·(2µε0(u)) + ρg These equations of motion can be written in dimensionless form in different ways. The process depends on the choice of reference values in a way stated by the πtheorem proved in [19]. Having in the system rdifferent units and taking nreference values for the adimensionalization process, the system will have n−rdimensionless numbers defining classes of similar solutions. The system to be solved in a compressible flow is given by (2.1). In this system we have r= 4 different units (length, time, mass and temperature). Different choices for reference values have been found in the literature and different nondimensional numbers result. Our approach is based on taking different scales for each field and for dependent properties. To this end, we introduce the Strouhal, Mach, Reynolds, P´eclet, Froude and a heat release rate number, defined as S = l0 u0t0 ,M = u0 pp0/ρ0 ,R = ρ0u0l0 µ0 P = ρ0cp0u0l0 k0 ,F = u0 √g0l0 ,H = t0Q0 ρ0cp0ϑ0 , ε =∆ϑ ϑ0 where l0,t0,ρ0,p0,ϑ0,u0,µ0,k0,cp0,g0,Q0and ∆ϑare the scales of length, time, density, pressure, temperature, velocity, viscosity, conductivity, specific heat, external acceleration and external heat and temperature variation respectively. The choice of viscosity and conductivity reference values is needed to allow variable physical properties (temperature dependent, for example) whereas the choice of a temperature variation scale is needed to define dimensionless boundary conditions. The dimensionless numbers are defined in terms of 12 parameters but, thanks to the state equation ρ0=F(p0, ϑ0), we have 11 reference values, giving rise to the seven dimensionless numbers already defined. We would like to stress that we do not assume the existence of 11 reference scales because, Physical problems 23 as it will be shown in the particular cases considered, if a reference scale is not available, its value can be defined eliminating a dimensionless number. For example, if an independent time scale is not available for a particular problem, we can define it from the velocity scale taking S = 1. The dimensionless variables we take (denoted bye) are x=l0e x, t =t0et, ρ =ρ0eρ, p =p0ep, ϑ =ϑ0e ϑ u=u0e u,g=g0e g, Q =Q0e Q, µ =µ0eµ, k =k0ek, cp=cp0ecp and the thermal expansion coefficient can be written in dimensionless form using its definition β=−1 ρ ∂ρ ∂ϑp =−1 ρ0˜ρ ∂ρ0˜ρ ∂ϑ0e ϑ˜p =−1 ϑ0 1 ˜ρ ∂˜ρ ∂e ϑ˜p =1 ϑ0 ˜ β The dimensionless equations are (omittinge) S∂ρ ∂t +∇·(ρu) = 0 (2.2) ρS∂u ∂t +u· ∇u+1 M2∇p=1 R∇·(2µε0(u)) + 1 F2ρg(2.3) ρcpS∂ϑ ∂t +u· ∇ϑ−Stβϑ S∂p ∂t +u· ∇p= M2 RΦ + 1 P∇·(k∇ϑ) + HSQ(2.4) The state equation is made dimensionless using that ρ0=F(p0, ϑ0). In the case of an ideal gas it reads p=ρϑ The parameter Stdepends on the state equation and is defined by St=p0 ρ0cp0ϑ0 =p0 F(p0, ϑ0)cp0ϑ0 which for an ideal gas becomes St=γ−1 γ Finally, for each particular problem, the boundary conditions have to be written in dimensionless form. For example, the boundary conditions for the momentum equations are of the form u=uDon Γu D (−pI+ 2µε0(u)) ·n=ton Γu N where Γu D(Γu N) is the part of the domain boundary where Dirichlet (Neumann) boundary conditions for the velocity are given, Γ = ∂Ω = Γu D∪Γu Nis the boundary of the domain 24 Physical problems and nits exterior normal. We can introduce the dimensionless form of the data as uD=u0e uD t=p0et and the dimensionless form of the boundary conditions is e u=e uDon Γu D(2.5) −1 M2˜pI+1 R2eµε0(e u)·n=1 M2eton Γu N(2.6) In the same way the boundary conditions for the energy equation are of the form e ϑ= 1 + εe ϑDon Γϑ D(2.7) ekn·∇e ϑ=eqon Γϑ N(2.8) where Γϑ D(Γϑ N) is the part of the domain boundary where Dirichlet (Neumann) boundary conditions for the temperature are given, and Γ = ∂Ω = Γϑ D∪Γϑ N. The parameter ε appears when the given function ϑDis rescaled to satisfy 0 ≤e ϑD≤1. In order to close the definition of the problem, initial conditions need also to be specified. Having defined the equations of the motion and rather general boundary conditions, let us consider some particular problems we are interested in that will also help us to illustrate the application of the asymptotic scheme. We are interested in natural convection problems and we consider two examples. The first one is the differentially heated cavity studied in [23] and [102] that consists of a rectangular cavity whose left (hot) wall has a fixed temperature ϑhand whose right (cold) wall has a fixed temperature ϑc. Upper and lower walls are adiabatic and initially the gas is at rest with a temperature ϑ0and density ρ0. The second one is the well known Rayleigh-B´enard problem (see [99]) which consists in a layer of fluid between two infinite horizontal walls. On the lower wall a higher temperature (ϑh) is imposed whereas on the upper one a lower temperature is imposed (ϑc) and again, initially the gas is at rest with temperature ϑ0and density ρ0 depending linearly on the vertical coordinate. However, we want also to consider the case in which a velocity field is prescribed on the boundary and therefore the Poiseuille-Rayleigh-B´enard (PRB) problem (see [114]) is also taken into account. Although several boundary conditions can be applied, we assume a prescribed Poiseuille velocity profile on the inlet and prescribed temperatures on the upper (ϑc) and lower walls (ϑh). We assume initially a Poiseuille velocity distribution in the whole channel and, as in the Rayleigh B´enard problem, an initial temperature ϑ0and density ρ0depending linearly on the vertical coordinate. Physical problems 25 2.3 The small Mach number limit The limit when the Mach number tends to zero can be found using standard procedures of asymptotic analysis described for example in [95]. The first step is to expand all flow variables in power series of the small parameter considered ξ(x, t, M) = ξ(0) (x, t)+M2ξ(2) (x, t) + O(M4) (2.9) for ξ=u,ξ=p,ξ=ρ,ξ=ϑ. The second step is to substitute this expansion into equations 2.2 to 2.4 and to require that all terms in the expanded equations that are multiplied by the same power of M2vanish to obtain a hierarchy of equations. The limit is carried out considering that the remaining parameters that appear in the equations are fixed. This asymptotic setting cannot be used in any situation and in particular we have to mention the problem of the behavior near the initial time. In this case it is necessary to introduce a fast time scale τ=t/M and assume an expansion of the form ξ(x, t, M) = ξ(0) (x, t, τ)+Mξ(1) (x, t, τ) + O(M2) This is done in [148] and [113], for example. We also have to mention the problem of the behavior of the flow in the far field when unbounded domains are considered. In this case it is necessary to introduce a long space variable η= Mxthat ”looks” to the infinity and to assume an expansion of the form ξ(x, t, M) = ξ(0) (x,η, t)+Mξ(1) (x,η, t) + O(M2) This is done in [97] and [109], for example. The objective of these variables is to separate scales and to perform a multiple scale analysis of the problem. The multiple scale analysis of the compressible Navier Stokes equations is of crucial importance to analyze acoustic phenomena. Since we are not interested in the acoustic problem we restrict ourselves to a single scale analysis assuming an asymptotic expansion of the form 2.9. The selection of M2as the expansion parameter is due to the fact that this is the parameter that appears in the system of equations, as well as in the boundary conditions (a single scale expansion in terms of M gives the same result). Any physical property χ(where χcan be µ,k,cp, or β) can be considered to depend on the temperature and pressure. Using the expansion for the temperature and pressure defined above it follows that χ=χ(ϑ, p) = χϑ(0), p(0)+∂χ ∂ϑ(ϑ(0),p(0))ϑ−ϑ(0)+∂χ ∂p (ϑ(0),p(0))p−p(0) +Oϑ−ϑ(0)2,p−p(0)2 32 Physical problems and the expansion on powers of the Mach number is performed, to obtain, to the first order in the momentum equation ∇p(0) =−Bρ(0)ˆ z(2.24) from where it follows that p(0) =p(0) (z, t) ρ(0) =ρ(0) (z, t) and using a state equation ϑ(0) =ϑ(0) (z, t) The first hypothesis made in [12, 13] and [146, 148, 149] is that this reference state is independent of time. The second hypothesis, motivated by equation 2.24, is that the zero order thermodynamic fields depend on z only trough the variable ζ= Bz. Under these assumptions p(0) =p(0) (z) = p(0) (ζ) ρ(0) =ρ(0) (z) = ρ(0) (ζ) from where dp(0) dz =dζ dz dp(0) dζ = Bdp(0) dζ and equation 2.24 becomes dp(0) dζ =−ρ(0). Next the limit of small Boussinesq number is considered taking B →0 as B ≃M and the Boussinesq approximation is recovered. For example, as ρ(0) =ρ(0) (ζ) the continuity equation 2.13 will give 0 = u(0) ·∇ρ(0) +ρ(0)∇·u(0) =u(0) ·ˆ zdρ(0) dz +ρ(0)∇·u(0) =u(0) ·ˆ zBdρ(0) dζ +ρ(0)∇·u(0) that gives ∇·u(0) = 0 when B →0. In this way, taking the limits consecutively, a reference state that depends weakly on zis obtained instead of a constant one. Let us stress that, through this reasoning, the gravity term, that naturally should appear modifying the first order pressure (as it was presented above), appears modifying the zero order pressure and this is what makes possible to deal with the dependence of the reference state on z. What is actually shown in [12, 13] and [146, 148, 149] is that the Boussinesq approximation is found in the limit Physical problems 33 of small Mach number and small Boussinesq number assuming an asymptotic expansion of the form ξ(x, t, M) = ξ(0) (ζ)+Mξ(1) (x, t)+M2ξ(2) (x, t) + O(M3) that is to say, assuming that the reference state depends weakly on zthrough ζ. Note that as B →0 this variable represents a very small scale compared to the scale given by z. As it has been mentioned in the previous section, this type of variable is introduced to separate scales when a multiple scale analysis is performed, something that only makes sense when an unbounded domain is considered. Finally, let us also stress that in any case some hypothesis on the zero order thermodynamic fields are needed. Although the derivation given by [12, 13] and [146, 148, 149] can explain the dependence of the reference state with respect to z, it is still necessary to assume that they do not depend on time. 2.4.2 The anelastic and quasistatic approximations In the case of M ≃F the equations of motion are S∂ρ ∂t +∇·(ρu) = 0 ρS∂u ∂t +u·∇u+1 M2∇p=1 R∇·(2µε0(u)) −B M2ρˆ z ρcpS∂ϑ ∂t +u·∇ϑ−Stβϑ S∂p ∂t +u·∇p=M2 RΦ + 1 P∇·(k∇ϑ) + HSQ and the analysis is carried out assuming an asymptotic expansion of the form ξ(x, t, M) = ξ(0) (x, t)+M2ξ(2) (x, t) + O(M4) (2.25) for ξ=u,ξ=p,ξ=ρ,ξ=ϑ. The hierarchy of equations obtained is similar to the one obtained for the case M ≃F2in the previous section except for the momentum equation, and reads: O(M0) : S∂ρ(0) ∂t +∇·ρ(0)u(0)= 0 (2.26) O(M−2) : ∇p(0) =−Bρ(0)ˆ z(2.27) O(1) : Sρ(0) ∂u(0) ∂t +ρ(0)u(0) ·∇u(0) +∇p(2) =1 R∇·2µε0(u(0))−Bρ(2)ˆ z(2.28) 34 Physical problems O(M0) : ρ(0)c(0) pS∂ϑ(0) ∂t +u(0) ·∇ϑ(0)−Stβ(0)ϑ(0) S∂p(0) ∂t +u(0) ·∇p(0) =1 P∇·k(0)∇ϑ(0)+ SQ(2.29) O(M2) : ρ(0)c(0) p∂ϑ(2) ∂t +u(0) ·∇ϑ(2)−Stβ(0)ϑ(0) ∂p(2) ∂t +u(0) ·∇p(2) +ρ(2)c(0) p+ρ(0)c(2) p∂ϑ(0) ∂t +u(0) ·∇ϑ(0) −Stβ(0)ϑ(2) +β(2)ϑ(0)∂p(0) ∂t +u(0) ·∇p(0) +ρ(0)c(0) pu(2) ·∇ϑ(0) −Stβ(0)ϑ(0)u(2) ·∇p(0) =1 P∇·k(0)∇ϑ(2) +k(2)∇ϑ(0)+1 RΦ(0) (2.30) From equation 2.27 it follows that p(0) =p(0)(z, t) and that ρ(0) =ρ(0)(z, t). Then, from the state equation ϑ(0) =ϑ(0)(z, t). Now If ρ(0),ϑ(0) and p(0) are independent of time we have that 2.29 gives w(0) ρ(0)c(0) p dϑ(0) dz −Stβ(0)ϑ(0) dp(0) dz =1 P d dz k(0) dϑ(0) dz + SQ(2.31) Two different cases are found: •If the reference state is such that ρ(0)c(0) p dϑ(0) dz −Stβ(0)ϑ(0) dp(0) dz 6= 0 (2.32) then w(0) = 1 P∇·k(0)∇ϑ(0)+ SQ ρ(0) dϑ(0) dz −Stβ(0)ϑ(0) dp(0) dz or, for an ideal fluid in absence of external heating w(0) = 0 This case is called in [12, 13] and [146, 148, 149] the quasi-static approximation. The vertical velocity is constrained by an hydrostatic equilibrium in the vertical direction and only plane motions can occur. Further details can be found in the references already mentioned. •If the reference state is such that ρ(0)c(0) p dϑ(0) dz −Stβ(0)ϑ(0) dp(0) dz ≈0 (2.33) Physical problems 35 the anelastic approximation follows. This condition, together with the zero order momentum and energy equations define the reference (zero order) state ρ(0)c(0) p dϑ(0) dz −Stβ(0)ϑ(0) dp(0) dz = 0 (2.34) 1 P d dz k(0) dϑ(0) dz + SQ= 0 (2.35) dp(0) dz = Bρ(0) (2.36) where also the zero order state equation needs to be considered. For an ideal gas p(0) =ρ(0)ϑ(0). The final set of equations to be solved, using this reference state, is given by ∇·ρ(0)u(0)= 0 Sρ(0) ∂u(0) ∂t +ρ(0)u(0) ·∇u(0) +∇p(2) =1 R∇·2µε0(u(0))−Bρ(2)ˆ z ρ(0)c(0) pS∂ϑ(2) ∂t +u(0) ·∇ϑ(2) +ρ(2)c(0) p+ρ(0)c(2) pw(0) dϑ(0) dz −Stβ(2)ϑ(0) +β(0)ϑ(2)dp(0) dz −Stβ(0)ϑ(0) S∂p(2) ∂t +u(0) ·∇p(2)=1 P d dz k(0) dϑ(2) dz +k(2) dϑ(0) dz +1 RΦ(0) which also need to be closed by the state equation that in the case of an ideal gas is p(2) =ρ(0)ϑ(2) +ϑ(0)ρ(2) This set of equations was presented in [119], where it is mentioned that they were written in this form in [100] and that they are a generalization of those obtained in [44] and [61]. As noted in [119], in the case of an ideal gas with constant cp equations 2.34-2.35-2.36 can be solved and the reference state can be written as ϑ(0) =1−γ−1 γBz ρ(0) =1−γ−1 γBz1 γ−1 p(0) =1−γ−1 γBzγ γ−1 If now the limit of B →0 is taken, the Boussinesq approximation is recovered following the same steps as [12, 13] and [146, 148, 149] that is, taking the limits consecutively. In a bounded domain this also gives a constant reference state. The reference state defined by equations 2.34, 2.35 and 2.36 is the one introduced in [120] to improve the derivation of the Boussinesq approximation proposed in [110]. 36 Physical problems Let us close this section noting that condition 2.33 can be written as ρ(0)c(0) p dϑ(0) dz −Stβ(0)ϑ(0) dp(0) dz =ρ(0)c(0) p ds(0) dz ≈0 As shown in [101] the condition for the thermomechanical equilibrium of a fluid is ds dz >0 A medium having ds dz = 0 is neutrally stratified and a medium having ds dz <0 is unstably stratified. Then, the two cases to be considered when the Boussinesq number is not small, defined in 2.32 and 2.33, correspond to a neutral reference state or a stratified one (stable or unstable). If the reference state is stratified, the vertical velocity is constrained by the hydrostatic equilibrium. If the reference state is neutral, the anelastic approximation can be used. This is the first condition required in [115] to derive the anelastic approximation. 2.4.3 Applications In this subsection we apply the developed framework to the problems defined at the end of section 2.2. Let us start considering the case of natural convection problems. We consider S = 1, that is to say that we take l0/u0as a reference time and we have the scales l0,ρ0,ϑ0, µ0,k0,cp0,g0and ∆ϑ. Therefore these problems are described in terms of five parameters: M, F, R, P and ε. In the natural convection context, the Rayleigh-B´enard problem and the differentially heated cavity, it is common to consider the Rayleigh number Ra and the Prandtl number Pr, defined as Ra = gl3 0 ν0α0 ∆ϑ ϑ0 ,Pr = ν0 α0 where ν0is the kinematic viscosity (ν0=µ00/ρ0), which satisfy Ra = ε F2R2Pr,R = PPr and to describe the problems in terms of M, F, Ra, Pr, and ε. A definition of the velocity scale eliminates one of these numbers. The problem of the differentially heated cavity has been analyzed by [23] and the Rayleigh B´enard problem has been analyzed in [110] in both cases defining the velocity scale of the problem as the diffusive speed, given by u0=k0 ρ0cp0l0 =α0 l0 where α0is the thermal diffusivity scale (α0=k0/ρ0cp0l0), what corresponds to make P = 1. The differentially heated cavity problem has also been analyzed by [136] assuming that the velocity scale problem is the viscous speed, given by u0=ν0/l0, what corresponds Physical problems 37 to make R = 1. However, in our view, the most appropriate scaling for the velocity is the one used by [120] in the context of the Rayleigh B´enard problem and by [63], given by u0= (β0∆ϑgl0)1/2 that we may call ”¨buoyancy speed”, that is obtained from F2=ε The low Mach number approximation is valid when the Mach number is small, what physically means the velocity scale of the problem smaller than the sound speed. With our choice of the velocity scale we have M2= Bεand this happens for thin layers or small temperature differences. The Boussinesq approximation requires also F and εsmall with the restrictions F2=O(M) and ε=O(M). The first one is equivalent to B = O(M) and, with our choice of the velocity scale, the second condition is automatically satisfied. Therefore, it will be valid for thin layers and small temperature difference. Another important aspect of the proposed approach is the possibility of analyzing mixed convection problems. In the case of the Poiseuille-Rayleigh-B´enard problem we have a velocity u0defined by the boundary condition. The low Mach number approximation is valid when the velocity u0is small compared to the sound speed. The Boussinesq approximation also requires F2=O(M), what is equivalent to B = O(M), and implies a restriction on the height, and ε=O(F2), what implies a velocity u0of the order of the buoyancy speed or, equivalently, small temperature differences (i.e. ε=O(M)). However, if the velocity prescribed on the boundary is much smaller than the buoyancy speed, the problem will be similar to the Rayleigh-B´enard problem and the fluid motion will be driven by temperature differences. Therefore, when F2εwe redefine the velocity scale by F2=εand the case of natural convection is recovered. If F2εwe keep the velocity scale given by the boundary conditions and the validity of the low Mach number approximation will depend directly on the Mach number. The Boussinesq approximation will be valid if the Froude number is also small, as the asymptotic analysis shows. Note that, in this case, the temperature difference is small because F2ε. 2.5 Summary and conclusions The zero Mach number limit of the compressible flow equations yields different sets of equations depending on the type of flow analyzed. If an isentropic flow is considered, the incompressible Navier Stokes equations are recovered. When heat exchange is taken into account, different sets of equations are found. This limit was obtained using an expansion of the unknowns in series of the Mach number, which according to [134] is valid (i.e. yields a convergent solution) in the near field (see also [141]). When the Froude number is also small several situations can be found. On the one hand, the anelastic and the quasistatic 38 Physical problems approximations are found when M,F→0 and M ≃F, if a reference state depending on zis assumed. On the other hand, the Boussinesq approximation is found when M,F→0 and M ≃F2, H ≃F2and ε≃F2assuming appropriate initial and boundary conditions. This approximation is also valid in an unbounded domain if the reference state depends weakly on zthrough ζ= Bzas shown by [12, 13] and [146, 148, 149]. All these limits have been obtained under the same asymptotic setting proposed here. The physical meaning of the similarity rules introduced in the asymptotic analysis has been made precise in the case of bounded domains for both natural and mixed convection problems. The three approximations considered when heat exchange is taken into account (the zero Mach number model, the anelastic approximation and the Boussinesq approximation) describe the basic mechanism of thermal coupling which is due to the dependence of the density on the temperature. When a fluid element is heated, it expands and moves up. None of the three approximations describe acoustic phenomena, what is certainly desirable from a numerical point of view. The main difference between them is how they take into account the compressibility of the medium. While in the Boussinesq approximation the flow is incompressible, in the zero Mach number model the density distribution is predicted and the velocity field is affected by expansions or contractions due to heating. Between them, the anelastic approximation (mainly used in atmospheric sciences) takes into account the density of the medium in the mass balance. Chapter 3 The convection diffusion reaction problem In this chapter we revisit the definition of the stabilization parameters for the convection diffusion reaction equation. We restrict ourselves to scalar problems and we focus our attention on the extension of the well known one dimensional case to the multidimensional one, considering also an anisotropic diffusion coefficient. The new definition of the parameter also takes into account anisotropy of the mesh used, what is possible thanks to a precise definition of the element size. The proposal is based on an approximation of the subgrid scale equation in the context of the variational multiscale method. The constants involved in the definition of the parameters arise naturally from the approximations performed. Some numerical experiments illustrating the contributions are also presented. 3.1 Introduction The convection diffusion reaction (CDR) equation is a simple equation that describes several physical phenomena like, for example, heat transfer. In the development of numerical methods this simplicity is important because the problems found when solving more complex transport equations can be reproduced using this simplified model. When attempting the numerical solution of the CDR equation, the first problem identified is the lack of stability of the Galerkin formulation when the convective term is important which manifest itself as numerical oscillations that pollute the solution in the whole domain and specially near boundary layers. After understanding this problem as a lack of diffusion in the discrete problem, the first solution was to add numerical dissipation developing upwind techniques in the context of the finite difference method. The inconsistent extra terms implied a loss of accuracy and the situation was fixed with the introduction of the SUPG method in [76, 93, 18], which was analyzed in [91]. This method depends on a parameter called the stabilization parameter and denoted usually by 40 The convection diffusion reaction problem τ. This parameter is also present in the Galerkin least squares method (GLS), introduced in [80] and analyzed in [50] as well as the Douglas-Wang method introduced in [43] in the context of the Stokes problem. These methods were related to the introduction of bubble functions in [15, 4, 17, 49], where it was shown that a choice of the bubble implies a choice of the stabilization parameter. The optimal bubble is given by the solution of a local subproblem driven by the residual [54], and is therefore named residual free. A general approach to the development of stabilized formulations is the variational multiscale method (VMM) introduced in [75, 78], based on a decomposition of the space into a coarse scale resolvable part and a fine scale subgrid part that, after some approximations, is found as the solution a local problems driven by the residual through the Green function approach. The equivalence between the residual free bubble and the variational multiscale method was established in [16]. Other methods introduced to solve this problem are the Characteristic Galerkin method [42] and the Taylor Galerkin method [41]. A comparison of all these methods was performed in [24]. A recent review of stabilization techniques for the CDR equation can be found in [51]. Another problem identified is the lack of stability when the reaction term is important which manifest itself as numerical oscillations localized near boundary layers. The methods mentioned lead to a stable discrete formulation but some of them (VMM) are much more accurate than others (GLS). The expression of the stabilization parameter needs to be modified to take reaction into account. An expression based on the satisfaction of the discrete maximum principle was proposed in [24]. If we denote the diffusion coefficient by εthe norm of the advective velocity by aand the reaction by s, this expression reads τ=c1ε h2+c2a h+1 s−1 (3.1) where his a characteristic element length and c1and c2are constants whose values, determined by numerical experiments, are 4 and 2 respectively. The expression proposed in [50] for the convection diffusion case, based on the error analysis, was extended to the reactive case in [55], obtaining an expression that behaves asymptotically as 3.1, what means that the limits of the expression with respect to any of the coefficients and with respect to mesh size are the same. The dependence of the stabilization parameters with respect to the equation coefficients and the mesh size is determined by the error analysis. However, as pointed out in [67], convergence proofs are performed using functional analysis inequalities which depend on unknown constants what is sufficient as the error bounds are obtained up to a constant. Therefore constants appearing in 3.1 cannot be determined by error analysis except in particular problems. At the same time, the analysis is performed under strong assumptions on the mesh such as regularity of the elements or quasi-uniformity and general definitions of the mesh size parameter hare used (like the maximum or minimum The convection diffusion reaction problem 41 element length for example). On the other hand, precise definitions of the constants and the mesh parameter hare implemented in finite element codes, which are then used to solve application problems in meshes that are far from satisfying these constrains. The performance of the stabilized method presented in [140] (which is similar to the variational multiscale method in the context of the Navier Stokes equations) when high aspect ratio elements are used was analyzed in [111] and the need of incorporating the stretching of the grid in the definition of the stabilization parameter was emphasized. An important effort in this direction is reported in [48] and the references therein, where anisotropic error estimates are developed for the convection diffusion equation using linear elements. Still some assumptions on the mesh are needed and the final error bound depends on a stretching factor that diverges when only one side of the element is reduced. In particular, the definition of the stabilization parameter using the minimum element length, as the analysis of [48] suggest, is not the most convenient as will be shown here. Another way in which the element length has been incorporated into the definition of the stabilization parameter is through the Jacobian of the isoparametric transformation, as in [81, 133]. A completely different approach, based on the calculation of norm of the element matrices and vectors, is presented in [139]. We can finally mention the finite calculus (FIC) method, based on expressing the equation of balance of fluxes in a domain of finite size, originally proposed in [117, 116] and modified in [118] by the introduction of a nonlinear stabilization parameter. Although stabilization techniques have been extended to consider many different kinds of problems, a general definition of the stabilization parameters is still an open problem. In this work the definition of the stabilization parameters for scalar convection diffusion equations is revisited. The purpose of this chapter is to present a new definition of the stabilization parameters that can be directly implemented in a finite element code and that contains a precise definition of the element length and the values of the constants. The chapter is organized as follows. In section 3.2 we state the problem to be solved including the discrete formulation which is based on the variational multiscale method of [75, 78]. In section 3.3, the method to find an approximate solution of the fine scale problem is presented and the functional form of the stabilization parameter is defined. In section 3.4 the choice of the constants and the definition of the element length is discussed to arrive to the proposed definition of the stabilization parameters. In section 3.5 we will present a quite standard error analysis of the method valid in the anisotropic case in which we obtain an error estimate that depends on the interpolation error without considering anisotropic interpolation estimates. The analysis will pose a condition on the stabilization parameters due to the use of the inverse estimate. Numerical experiments illustrating the benefits of the method are presented in section 3.6 and final conclusions are drawn in section 3.7. 48 The convection diffusion reaction problem solved and the extension of the method will be difficult. Our main concern here is to find an approximation of 3.10. It is well known [24, 75] that the use of a stabilization parameter τcorresponds to the approximation G(ξ, η) = τδ (ξ−η) where δdenotes the Dirac distribution. From expression 3.10 it is quite clear that this corresponds to the approximation G(ξ, η)≈kikjεr ij +s+ ikjar j−1ZRd e−ik·(ξ−η)dk =k0 ik0 jεr ij +s2+k0 jar j2−1/2δ(ξ−η) for some k0to be defined, and then τ=k0 ik0 jεr ij +s2+k0 jar j2−1/2(3.11) A justification for this approximation was presented in [29] and is briefly recalled here. Thanks to Plancharel’s formula, the subgrid scale norm is given by keuk2 L2(ˆ K)=1 (2π)2d beu2 L2(Rd)=1 (2π)2d kT (k)brk2 L2(Rd) =1 (2π)2d ZRd|T (k)br|2dk=1 (2π)2d ZRd|T (k)|2|br|2dk and thanks to the mean value theorem, there exists k0for which ZRd|T (k)|2|br|2dk=Tk02ZRd|br|2dk=Tk02kbrk2 L2(Rd) Therefore, using again the Plancharel’s formula 1 (2π)2d kbrk2 L2(Rd)=krk2 L2(ˆ K) from where keuk2 L2(ˆ K)=Tk02krk2 L2(ˆ K) It follows that if we approximate the subscale as euap =τR and τis defined as τ=Tk0 then keuk2 L2(ˆ K)=keuapk2 L2(ˆ K) The convection diffusion reaction problem 49 3.4 Definition of the stabilization parameter Having established the functional form of the stabilization parameters let us finally consider the definition of k0, whose superscript will be omitted in this section. It will be shown that its magnitude is related to the constant factors involved in the definition of the parameter whereas its direction is related to the definition of the element length, thus answering the question posed in [67]: what are cand h? 3.4.1 The one dimensional problem Let us first consider the problem in one space dimension without reaction. In this case the stabilization parameter presented above (see 3.11) is given by τ="h2 natk2ε h22 +hnatka h2#−1/2 where hnat is the size of the reference domain and using the P´eclet number defined as P = ah 2ε it can be written in dimensionless form as α=2aτ h= h2 natk2 4P22 +hnatk 22!−1/2 The advective limit of this expression is lim p→∞ α= 2h−1 natk−1 The analytic solution to the problem can be used to obtain the function αopt that guarantees exact nodal values [24] which is given by αopt = coth (P) −1 P The advective limit is of αopt is 1 and therefore we conclude that k= 2h−1 nat must be taken. Both expressions are compared in figure 3.1 for this choice of k. Note that the final expression for the stabilization parameter does not depend on the reference domain, as expected. Just to simplify the notation, we consider hnat = 2 in what follows. 50 The convection diffusion reaction problem Figure 3.1: Upwind funtions 3.4.2 Extension to several dimensions: an isotropic approximation The definition of the stabilization parameter given in 3.11 depends on the constant vector k. It is therefore invariant under transformations of the reference system. In order to preserve this invariance, an invariant approximation needs to be performed. This is possible if it is assumed that the products kjar jand kikjεr ij depend on the invariants of arand εr. In the first case the only invariant available is karkwhereas in the second we have three possible invariants. Considering the first invariant we can perform the approximations kjar j≃ kkkkark(3.12) and kikjεr ij ≃ kkk2εr ii (3.13) From the previous subsection we know that to obtain exact results in a one dimensional problem we need kkk= 1 and therefore we arrive to the expression τ=(εr ii +s)2+kark2−1/2(3.14) When s= 0 and the diffusion coefficient εij is isotropic (given by εij =εδij) we have εr ii =εJ−t ij J−t ij =ε∂ξi ∂xj ∂ξi ∂xj and kark2=aiJ−t ki ajJ−t kj =ai ∂ξk ∂xi ∂ξk ∂xj aj and we arrive to τ=ε2gijgij +aigijaj−1/2(3.15) The convection diffusion reaction problem 51 where gij =∂ξk ∂xi ∂ξk ∂xj is the metric tensor related to the isoparametric mapping. The stabilization parameter defined by 3.15 was proposed first in [133] in the context of compressible flow equations and has been used in several applications [137, 143, 21]. It is clear that the approximations 3.12 and 3.13 do not take into account the angle between the equation coefficients and the vector k. It is due to these approximations, based on invariant quantities only, that the information on the anisotropy of the mesh is lost. Another possibility is analyzed in the next subsection. 3.4.3 Extension to several dimensions: an anisotropic approximation. In order to extend the one dimensional definition to several space dimensions an intrinsic definition of the vector kis needed. General considerations Let us first consider a pure convection diffusion problem (s= 0). If we move from one to several space dimensions, the same argument that was used to pass from the artificial diffusion method to the streamline diffusion method [76, 93] can be used here. If a constant velocity is considered and the problem is written in a reference system such that one direction coincides with the streamlines, we actually obtain a one dimensional problem in this direction and a pure diffusion problem in the orthogonal ones. This implies that the diffusion that needs to be considered to define the P´eclet number is the diffusion along the streamlines, what immediately suggest to take k=ar kark, arriving to τ="1 kark2ar iar jεr ij2 +kark2#−1/2 (3.16) Remark 1 The subgrid problem solved in the reference domain in many cases will present an anisotropic diffusion. As an example we may consider a two dimensional convection diffusion problem defined on the unit square with an isotropic diffusion εand a velocity of the form a= (a, 0)t. If the discretization is performed using rectangular elements of sizes h1= 1/n1and h2= 1/n2,n1and n2being the number of elements along each side of the domain, we have that εr="2 h10 02 h2#"ε0 0ε#" 2 h10 02 h2#="4 h2 1ε0 04 h2 2ε# 52 The convection diffusion reaction problem and ar="2 h10 02 h2#a=2a h1 ,0t Then 3.16 gives τ="4ε h2 12 +2a h12#−1/2 This simple example shows that expression 3.16 takes into account the fact that refining the mesh in the direction orthogonal to awill not have any effect on the solution and only refining along the direction of amakes sense. We could say, roughly speaking, that refining the mesh is like adding diffusion (what is clearly seen in the factor 4ε/h2 1) and as this example shows that if the mesh is refined only in one direction the added diffusion is anisotropic. Remark 2 The selection of the vector kimplies a definition of the element length used in the definition of the stabilization parameter. As an example we may consider the problem of the previous remark but with a general velocity a= (a1, a2)t. In the case ar="2 h10 02 h2#a=2a1 h1 ,2a2 h2t from where kark2= 4 a2 1 h2 1 +a2 2 h2 2 and expression 3.16 gives τ="1 kark2(ar 1ar 1εr 11 +ar 2ar 2εr 22)2 +kark2#−1/2 ="16ε kark2a2 1 h4 1 +a2 2 h4 22 +kark2#−1/2 This expression can be written as τ="4ε h2 ε2 +2kak ha2#−1/2 (3.17) where h2 ε=1 4kark2a2 1 h4 1 +a2 2 h4 2−1 =a2 1 h2 1 +a2 2 h2 2a2 1 h4 1 +a2 2 h4 2−1 (3.18) and ha= 2 kak kark(3.19) are length scales that depend on the velocity direction. As mentioned before, natural candidates for the definition of the element length are the maximum element length (hmax), The convection diffusion reaction problem 53 the minimum element length (hmin) and the streamline element length (ha). The definition of the element length in the direction of the flow 3.19 was considered in [34] and in [111]. Let us emphasize that neither the minimum nor the maximum element length can be used. If the minimum element length is used refining the mesh in the direction orthogonal to the velocity would make h→0and τ→0without eliminating the instability. If the maximum element length is used and the mesh in the direction orthogonal to the velocity is too coarse would give a non zero value of τeven if the instability has been eliminated. In any case, the convergence analysis presented below imposes a condition on the choice of the element length that needs to be satisfied (see 3.23). Expression 3.16 presents an important conceptual problem: the definition of the stabilization parameter will depend on the velocity direction even when kak → 0, a fact that is seen in the definition of the element length 3.18. This problem is not shared by the isotropic expression 3.14 of the previous section, which can also be written in the form 3.17 using the streamline length for habut taking h2 ε=1 h2 1 +1 h2 2−1 which is similar to hmin. In any case, neither definition 3.16 nor definition 3.14 can be used when reaction is present and the mesh anisotropic. Consider a convection diffusion reaction problem defined on the unit square with an isotropic diffusion εand a velocity of the form a= (a, 0)tsolved using a mesh of rectangular elements whose sizes are such that ah1 2ε1,sh2 1 4ε1 and sh2 2 2ε1 (3.20) that is, a mesh that is fine in direction 1 and coarse in direction 2. In this case the stabilization parameter using either 3.16 or 3.14 would be τ−2≃4ε h2 1 +s2 +2a h12 =16ε2 h4 1"1 + sh2 1 4ε2 +ah1 2ε2# giving in the limit lim h1→0τ= lim h1→0 h2 1 4ε= 0 and will not take into account the reactive instability of the problem. The choice of the direction In order to get an insight of how the vector kshould be taken let us consider two directions k1= (1,0) and k2= (0,1), and compare the stabilization parameter obtained using each of them in the following two examples. 54 The convection diffusion reaction problem Example 1 Let us consider a convection diffusion problem defined on the unit square with an isotropic diffusion εand a velocity of the form a= (a, 0)t. We have τ(k1) = "4ε h2 12 +2a h12#−1/2 , τ (k2) = 4ε h2 2−1 Let us consider a convection dominated problem in a uniform mesh of size h1=h2=h. We have that ah 2ε1 and τ(k1)∼h 2a, τ (k2) = h2 4ε In this case τ(k1)τ(k2) and the stabilization parameter should be given by τ(k1), what suggest to take the minimum of τ(k1)and τ(k2). As shown before, this is equivalent to take kin the direction of the velocity. Example 2 Let us consider a diffusion reaction problem (a=0) defined on the unit square with an isotropic diffusion ε. We have τ(k1) = 4ε h2 1 +s−1 , τ (k2) = 4ε h2 2 +s−1 Let us consider a reaction dominated problem (small diffusion) and the two cases of anisotropic refinement. First if the mesh in direction 1 is very fine but is coarse in direction 2 then sh2 1 4ε1and sh2 2 2ε1 and we have that τ(k1)∼h2 1 4ετ(k2)∼1 s what implies τ(k1)τ(k2) In this case the stabilization parameter should be given by τ(k2). Second, if the mesh in the direction 1 is fine enough but coarse in the direction 2 then sh2 1 4ε1and sh2 2 2ε1 and we have that τ(k1)∼1 s, τ (k2)∼h2 2 4ε what implies τ(k2)τ(k1) The convection diffusion reaction problem 55 In this case the stabilization parameter should be given by τ(k1). Therefore, in the case of a pure reactive problem we could consider the maximum of τ(k1)and τ(k2)or simply their sum. This is equivalent to consider the direction kof maximum element length or, in other words, the direction of minimum diffusivity, i.e. direction kthat makes kikjεr ij minimum. The situation is similar in the two examples in a sense that gives rise to an important conclusion: kdepends on the direction in which the instability of the problem appears. It is clear that in these examples the way to determine which is the correct definition of the stabilization parameter was by determining the direction in which the instability appears and this was done by comparing the dimensionless numbers defined on each direction. These numbers are ah1 2ε,ah2 2ε,sh2 1 4ε,sh2 2 2ε and the one that is dominant defines the direction that needs to be considered. In a general case, these numbers naturally appear if we consider the dimensionless parameter kikjεr ijτ(k) = "1 + s kikjεr ij 2 +klar l kikjεr ij 2#−1/2 which immediately suggests the definitions Pk=kjar j kikjεr ij Dk=s kikjεr ij Then, the direction of maximum instability, that of the maximum Pkand Dk, will be given by the minimum of kikjεr ijτ(k). Equivalently, we can define the direction of maximum instability (kI) as kI= arg maxkkk=1 τ−1(k) kikjεr ij (3.21) and the stabilization parameter we propose is given by τkI, that is, τ=τkI=kI ikI jεr ij +s2+kI jar j2−1/2(3.22) The computation of the direction Definition 3.21 implies the maximization of the function H(k) = τ−1(k) kikjεr ij ="1 + s kikjεr ij 2 +kjar j kikjεr ij 2#1/2 but, as the square root is a monotone function, we may solve the equivalent problem of maximizing H2(k). This optimization problem will be approximately solved. After 56 The convection diffusion reaction problem multiplying its gradient by kikjεr ij3we arrive to the equation −hkjar j2+kikjεr ij +ssi∇kikjεr ij+kikjεr ijkjar j∇kjar j= 0 As the minimization is performed under the restriction kkk= 1, in 2D we can take k= (cos θ, sin θ) and after a change of variables of the form x= tan θwe arrive to a fourth order polynomial equation whose solution can be explicitly found. Let us consider some particular cases in two dimensions •When s= 0 the problem simplifies to −kjar j∇kikjεr ij+kikjεr ij∇kjar j= 0 and after taking k= (cos θ, sin θ) we arrive to a third order polynomial equation −ar 1(εr 12 +εr 21) + ar 2εr 11 + [ar 1εr 11 −2ar 1εr 22 −2ar 2(εr 12 +εr 21)] x + [2ar 2εr 11 −ar 2εr 22]x2+ [ar 2(εr 12 +εr 21)−ar 1εr 22]x3= 0 where x= tan θ. If we further assume the situation of remark 1 this equation simplifies to [εr 11 −2εr 22]x−εr 22x3= 0 and we have two possible solutions that can be found as illustrated in figure 3.2 Figure 3.2: The definitiion of the instability direction in cases a (left) and b (right) aWhen the mesh is such that εr 11 <2εr 22 ⇔4ε h2 1 <24ε h2 2⇔h2 2<2h2 1 or, equivalently A := h2 h1 <√2 we have the solution θ= 0. The convection diffusion reaction problem 57 bWhen the mesh is such that εr 11 >2εr 22 ⇔4ε h2 1 >24ε h2 2⇔h2 2>2h2 1 or, equivalently A = h2 h1 >√2 we also have the solution tan2θ=εr 11 −2εr 22 εr 22 =a2−2 and the stabilization parameter is given by τ= 4ε h2 1 cos θ+4ε h2 2 sin2θ2 +2a1 h1 cos θ2!−1/2 •When a=0the problem simplifies to ∇kikjεr ij= 0 that corresponds to find the direction of minimum diffusion. We can follow the same procedure used before to show that when εris diagonal the solutions are θ= 0 or θ=π/2 and if it is not we have tan θ=−(εr 11 −εr 22) (εr 12 +εr 21)± (εr 11 −εr 22)2 (εr 12 +εr 21)2+ 1!1/2 As these particular cases illustrate the maximum of H(k) will occur somewhere between the direction of minimum diffusion and the direction of ar. Therefore, in practice, we find this maximum simply evaluating the function on a given number of points between these two directions. 3.5 Error analysis In this section we present the error analysis of the method in the case of εij =εδij, following a standard approach. We start by proving stability in a discrete norm to be defined and then we obtain a bound in terms of the interpolation error. A key ingredient is the anisotropic inverse estimate [2] which can be derived from a scaling argument ∇2uh2 K≤C2 inv h2 min k∇uhk2 K∀uh∈Vh(3.23) The important result of this section is that, due to the need of using the inverse estimate 3.23, the stabilization parameter must satisfy the following condition τ−1>4εC2 inv h2 min +s(3.24) 64 The convection diffusion reaction problem 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 5 10 15 20 25 30 35 40 45 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 -0.5 0 0.5 1 1.5 2 2.5 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.5 1 1.5 2 2.5 3 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 Figure 3.5: Solutions obtained using 3.1 with hmin in the case 1 (top left), in the case 2 (top right) and in the case 3 (bottom). 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 Figure 3.6: Solutions obtained using 3.1 with hmax in the case 1 (top left), in the case 2 (top right) and in the case 3 (bottom). The convection diffusion reaction problem 65 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 -0.5 0 0.5 1 1.5 2 2.5 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.5 1 1.5 2 2.5 3 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 Figure 3.7: Solutions obtained using 3.1 with hain the case 1 (top left), in the case 2 (top right) and in the case 3 (bottom). 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 Figure 3.8: Solutions obtained using 3.22 in the case 1 (top left), in the case 2 (top right) and in the case 3 (bottom). 66 The convection diffusion reaction problem 2 and 3 but only when the stabilization parameter proposed here is used the solution in case 1 is improved when the grid is refined. The method defined by 3.1 with has hmax does take advantage of the new points added in the direction xeven if the solution has a boundary layer on the right wall. Let us finally remark that in some cases the solution obtained using 3.1 taking has hmin or as hacan give a better solution than the method proposed here, as occurs in case 1, even if they present numerical oscillations in other cases. 3.6.2 Diffusion reaction under anisotropic refinement In this subsection we consider a diffusion reaction problem on the domain Ω = [0,1]×[0,1] with zero Dirichlet boundary conditions on ∂Ω and a force f= 40. We consider again εij =εδij where ε= 10−4and a reaction s= 40. The problem is solved using meshes of 10 ×10 elements and also 100 ×10, 1000 ×10, 10000 ×10 elements, giving aspect ratios A = 100,101,102,103. To analyze the results, we plot the unknown along the line y= 0.5 and along the line x= 0.5. In this case, the results obtained using the stabilization parameter defined by 3.1 taking has hmax and those obtained using 3.22 are the same. Therefore, we compare the results obtained using 3.1 taking has hmin shown in figure 3.9 to those obtained taking has hmax shown in figure 3.10. 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 Figure 3.9: Solution obtained using 3.1 with hmin along the lines y= 0.5 and x= 0.5. 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.2 0.4 0.6 0.8 1 A=10^0 A=10^1 A=10^2 A=10^3 Figure 3.10: Solution obtained using 3.1 with hmax along the lines x= 0.5 and y= 0.5. The convection diffusion reaction problem 67 As in the convection diffusion problem shown in the previous subsection, the result obtained using 3.1 taking has hmin shows numerical oscillations when the mesh is anisotropically refined whereas the results obtained using 3.1 taking has hmax do not change. Both results are compared in figure 3.11 where the solutions obtained using the mesh of 100 ×10 elements are shown. 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.4 0.8 1.2 1.6 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0 0.4 0.8 1.2 Figure 3.11: Solution obtained using 3.1 with hmin (left) and using 3.1 with hmax (right) 3.6.3 The Poisson problem using quadratic elements In this subsection we consider a pure diffusive Poisson problem which corresponds to the CDR problem in the limit of vanishing convection and reaction. The domain considered is Ω = [0,1]×[0,1] and zero Dirichlet boundary conditions on ∂Ω are prescribed. In order to activate instabilities we introduce a forcing term that gives a solution of the form u(x, y) = 1 + e−α−e−αx −eα(x−1)1 + e−α−e−αy −eα(y−1) which presents boundary layers on the domain boundary whose width can be controlled using the parameter α. We solve the problem using a uniform mesh of 10×10 biquadratic elements and expression 3.1 for different values of c1. The results are shown in figure 3.12. For biquadratic elements Cinv = 24 [67] and it can be observed that when condition 3.24 is not satisfied numerical oscillations appear. Note that the Galerkin method is recovered when c1→ ∞ 3.6.4 A convection diffusion reaction problem on isotropic meshes. In this subsection we consider a convection diffusion problem on the domain Ω = [0,1] ×[0,1] with zero Dirichlet boundary conditions on ∂Ω and a force f= 20. The equation coefficients are εij =εδij where ε= 10−2,s= 20 and a= (3,2). We solve the problem on different meshes: •Case 2 structured triangular elements of size 0.1 titled to the right / 68 The convection diffusion reaction problem Figure 3.12: Solution to the Poisson problem obtained using 3.1 with c1= 16 (top left), with c1= 24 (top right), with c1= 48 (bottom left) and with c1= 96 (bottom right). •Case 3: structured triangular elements of size 0.1 titled to the left \ •Case 4: unstructured triangular elements of size 0.1 •Case 5 structured 10 ×10 square elements •Case 6: unstructured square elements of size 0.1 In any of these cases the mesh size is around 0.1 but it varies slightly according to the mesh design. In the case of triangular elements the element lengths are calculated as h1=J−t 1kJ−t 1kand h2=J−t 2kJ−t 2k. The dimensionless numbers of the problem are given by D = sh2 4ε= 5 P = ah 2ε∼18 A reference solution (case 1) was computed on a 200×200 mesh for which these numbers are D = 0.0125 P = 0.9 The convection diffusion reaction problem 69 Figure 3.13: Reference solution The result is shown in figure 3.13. The maximum value obtained is umax = 0.99807. For each of these cases we compare the results obtained using the multiscale formulation using four possible definitions of the stabilization parameter. The first three are given by 3.1 taking the length has the minimum, the maximum and the length in the velocity direction. The fourth is the definition given by 3.22. Table 3.1 shows the maximum values obtained for each case and method. Case 2 (ST /) Case 3 (ST \) Case 4 (UT) Case 5 (SQ) Case 6 (UQ) 3.1 using hmin 1.3841 1.2712 1.2052 1.2973 1.3543 3.1 using hmax 1.1915 1.1486 1.1318 1.2973 1.2332 3.1 using ha1.0281 1.3154 1.2437 1.2973 1.4191 3.22 0.9639 0.9762 0.9773 1.0828 1.0248 Table 3.1: Maximum values obtained Figures 3.14 to 3.18 show contours for each case and method, all given in the same scale as figure 3.13. 3.7 Conclusions The definition of the stabilization parameters in the case of the scalar convection diffusion reaction problem has been revisited. The variational multiscale method provides a natural framework to understand the problem. Starting from this point and introducing a transformation of the fine scale problem to the reference domain the dependence of the stabilization parameters on the equation coefficients and element length (through the Jacobian of such transformation) has been identified. A deeper inspection of the Fourier argument presented in [29] permitted to obtain an exact representation of the 70 The convection diffusion reaction problem Figure 3.14: Results obtained in case 2 using 3.1 with hmax (top left), with hmin (top right), with ha(bottom left) and using 3.22 (bottom right). Figure 3.15: Results obtained in case 3 using 3.1 with hmax (top left), with hmin (top right), with ha(bottom left) and using 3.22 (bottom right). The convection diffusion reaction problem 71 Figure 3.16: Results obtained in case 4 using 3.1 with hmax (top left), with hmin (top right), with ha(bottom left) and using 3.22 (bottom right). Figure 3.17: Results obtained in case 5 using 3.1 with hmax (top left), with hmin (top right), with ha(bottom left) and using 3.22 (bottom right). 72 The convection diffusion reaction problem Figure 3.18: Results obtained in case 6 using 3.1 with hmax (top left), with hmin (top right), with ha(bottom left) and using 3.22 (bottom right). Green function 3.10 and a first approximation to it. The well known exact solution to the one dimensional problem has been used to find the constants of the parameter in a very natural way. Finally, the direction of the wave vector khas been identified as the direction of the maximum instability of the problem as the one of maximum The expression proposed gives excellent results as numerical experiments have shown. In the case of linear elements, these experiments have also shown that when the usual expression 3.1 with h=hmax is used numerical oscillations do not appear. This conclusion is important for more complex problems where the direction of the instability could be difficult to find. When higher order elements are used condition 3.24 must be satisfied for the error analysis to be valid. This is confirmed by the results obtained in the case of the Poisson problem that present numerical oscillations if the condition is not satisfied. This also implies that it is not possible to stabilize reaction when higher order elements are used, at least in the anisotropic case. Although desirable, this stability is not essential as the oscillations are local thanks to the L2stability provided by the reactive term. Chapter 4 The Oseen problem In this chapter we present a new subgrid scale model for the Oseen equations in the context of the variational multiscale method. We extend the method of the previous chapter to systems of second order equations and two possible approximations of the solution of the fine scale problem are presented. Following the line of the previous chapter we evaluate the proposed model when anisotropic meshes are used. The stability of the linearized problem is proved and numerical examples illustrating the behavior of the method are provided. 4.1 Introduction Although the incompressible Navier Stokes equations have been extensively studied, several points remain unclear. At the continuous level these problems involve uniqueness of weak solutions or global existence of strong solutions and are summarized in the Clay Institute Prize Problem. At the discrete level many different approximations have been proposed and several results have been established. All of them involve, in a way or another, the solution of the linearized problem. It is well known that these equations present different types of numerical instabilities. In the first place we have the instability due to the dominance of the convective term over the viscous one in the high Reynolds number regime. This instability is also present in the scalar convection diffusion problem and it is well understood. A stable and accurate approximation to this problem has been presented in the previous chapter, where a new definition of the stabilization parameters has proven to give excellent results. As a second problem, we have the pressure instability that may appear if the compatibility of the velocity and pressure spaces posed by the inf-sup condition is not satisfied. This instability is also present in the Stokes problem and is also well understood. It is not related to the dominance of a term in the equations but rather to the vectorial structure of the problem. When the Navier Stokes equations are written as a system 80 The Oseen problem where i = √−1 and kis the wave number. If ndenotes the normal to the element ˆ Kwe have that d ∂v ∂ξj (k) = ikjbv(k) + Z∂ˆ K nje−ik·ξvdΓξ Applying this transform is applied to functions that vanish on the element boundary, the second term on the right hand side vanishes and we have the classical Fourier derivation formula. Transforming 4.12 we obtain T−1(k)be U=b R(4.13) where T(k) := kikjKr ij +Sr+ ikjAr j−1 if T−1(k) is assumed to be invertible. Using the inverse Fourier transform the subgrid scale can be written as e U(η) = ZRd eik·ηT(k)b R(k)dk As in the scalar case, in the above expression we can identify the Fourier representation of the Green function of the subscale problem [75] given by e U(η) = Zˆ K G(ξ, η)R(ξ)dξ where G(ξ, η) = ZRdT(k)e−ik·(ξ−η)dk(4.14) If we approximate [24, 75] G(ξ, η) = τδ(ξ−η) = τZRd e−ik·(ξ−η)dk expression 4.14 permits us to identify the stabilization matrix as some norm of T(k0) for certain k0. In the scalar case it is possible to show that if we consider the approximated subscale as euap =τR then keuk2 L2(ˆ K)=keuapk2 L2(ˆ K) provided τis defined as τ=|T (k0)|and the existence of k0of is guaranteed by the mean value theorem [29]. In order to extend this argument to systems of equations, we need to define appropriate norms of e Uand R. In general neither UtUnor FtFare dimensionally meaningful. Only the product UtF, that represents the work done by Uagainst Fis defined, because we assume the duality paring h,i:V × W →Rto be defined. Therefore, we introduce a positive definite scaling matrix Msuch that the product (F1,F2)M:= Ft 1MF 2is The Oseen problem 81 pointwise well defined and we define the corresponding norm |·|Mand k·kMthe L2(Ω)- norm of |·|M. We will also write (U1,U2)M−1:= Ut 1M−1U2and the corresponding norms |·|M−1and k·kM−1. Using these norms we can define the scaling of an operator as T−1M= sup U∈ V |T−1U|M |U|M−1 = sup U∈ V UtT−∗MT−1U UtM−1U for any U∈ V. The choice of the scaling Mis equivalent to choose the way the equations are written in dimensionless form, if this is the option adopted. Taking the M-norm of 4.13 we have that b RM=T−1(k)be UM =ZRdT−1(k)be UM≤ZRdT−1(k)Mbe UM−1 and by the mean value theorem b RM≤T−1(k0)Mbe UM−1 Now if we approximate the subscale as e Uap=τR, and we perform the same steps we arrive to b RM≤τ−1Mbe UM−1 Therefore we impose the condition τ−1=T−1(k0)(4.15) which means that the approximated subscale bounds the residual in the same way the exact subscale does. In the scalar case this means that the approximated and exact subscales have the same norm. In practice we impose condition 4.15 by computing the spectrum with respect to M−1of τ−1Mτ−1and of T−∗ (k0)MT−1(k0) and imposing the equality of the largest eigenvalues. Actually, the ideal situation is found when both matrices have the same spectrum so τ−1is a better approximation of T−1(k0). We omit the subscript in k0in what follows. In the case of the Oseen problem we have T(k)−1=kikjKr ij +Sr+ ikjAr j=   νκ2+ iκjaj0 iκ1 0νκ2+ iκjajiκ2 iκ1iκ20   (4.16) where κi=kjJ−t ji . Taking a scaling matrix M=diag (µu, µu, µp) the eigenvalues of T−∗MT−1with respect to M−1are λ1=A, λ2=1 2A+B+C, λ3=1 2A+B−C A:= µ2 uν2κ4+ (κ·a)2 B:= κ2µpµu C:= 1 2µur4κ2µpµuν2κ4+ (κ·a)2+µ2 uν2κ4+ (κ·a)22 82 The Oseen problem and assuming τ= diag (τm, τm, τc) those of τ−1Mτ−1are µ2 u/τ2 m,µ2 u/τ2 m, and µ2 p/τ2 c. It can be easily shown that taking the scaling µu=ν2κ4+ (κ·a)2−1and µp= 2κ−2the spectrum of both matrices is identical (a condition stronger than 4.15) and in this case we have τm(k) = ν2κ4+ (κ·a)2−1/2(4.17) and τc(k) = 2κ−2 τm (4.18) This argument determines the functional form of the stabilization parameters. Let us finally consider the definition of k. As discussed in chapter 3, its magnitude is related to the constant factors involved in the definition of the parameter whereas its direction is related to the definition of the element length. In order to reproduce the exact solution of the one dimensional convection diffusion equation we need kkk= 2h−1 nat. On the other hand, the optimal choice of the direction is that of the instability presented by the problem, defined as kI= arg max kkk=1 τ−1 m(k) νκ2(4.19) Note that τ−1 m νκ2=1 + κ·a νκ22−1/2 ∼|κ·a| νκ2= Pk where Pkis the P´eclet number in the direction of k. Therefore, this definition of the instability direction is meaningless when a= 0. In the case of the scalar CDR equation this is not a problem because in this case it reduces to the Poisson equation that needs not to be stabilized and any direction can be taken provided the stability condition implied by the use of the inverse estimate is satisfied. In particular, for linear elements, any direction can be considered. In the case of the Stokes problem, however, numerical experiments presented in the following section show that when the minimum element length is used numerical instabilities may appear. The direction of the maximum element length corresponds to the direction of minimum diffusion in the reference domain, what is an intuitive way to understand the problem. Therefore, when Pk<1 we consider kI in the direction of the maximum element length. An isotropic approximation to the parameters in 4.17 and 4.18, as shown in chapter 3, is given by τm=c1ν h22+c2a h2−1/2 (4.20) τc=c1τ−1 mh−2(4.21) The Oseen problem 83 4.3.2 Approximating each equation After transforming the problem to the reference domain and applying the Fourier transform we arrive to 4.16, which exactly inverted gives T(k) =     (νκ2+ iκjaj)−1P11 (νκ2+ iκjaj)−1P12 −iκ1 κ2 (νκ2+ iκjaj)−1P21 (νκ2+ iκjaj)−1P22 −iκ2 κ2 −iκ1 κ2−iκ2 κ2 (νκ2+iκjaj) κ2    (4.22) where Pij (k) = δij −κiκj κ2 In 4.22 we identify the Fourier transform of the convection diffusion reaction operator b L(κ) = νκ2+ iκjaj and that of the Laplace operator, κ2. The solution of the fine scale problem in the Fourier space is given by b eui=b L−1(κ)Pij d Rm,j −iκi κ2c Rc(4.23) bep=b L(κ) κ2c Rc−iκi κ2d Rm,i (4.24) The residual of the momentum equation is multiplied by Pij, the projector onto the direction orthogonal to κ. This projection implies the satisfaction of the continuity equation as iκihδij −κiκj κ2ib dj= [iκj−iκj]b dj= 0 ∀d(4.25) Therefore, if we multiply 4.23 by iκiand we use 4.25 continuity is exactly recovered. The main idea presented in this section is to approximate the scalar operators b L(κ) and κ2and to exactly account for the coupling between equations. To do that we use the inverse Fourier transform to obtain eui(x) = Zeik·xb eui(k) dk =Zeik·xb L−1d Rm,idk−Zeik·xb L−1 κ2κiκjd Rm,jdk−Zeik·xiκi κ2c Rcdk where the integrals extend over the wave number space. Next we approximate the operator b L−1by τm(defined below) and the Fourier transformed Laplace operator (κ−2) by τp(also defined below). We have eui(x)≃τmZeik·xd Rm,idk−τmτpZeik·xκiκjd Rm,jdk−τpZeik·xiκic Rcdk =τmRm,i +τpτm∂i∂jRm,j −τp∂iRc 84 The Oseen problem In the same way ep(x) = Zeik·xbep(k) dk =Zeik·xb L(κ) κ2c Rcdk−Zeik·xiκi κ2d Rm,idk and performing the same approximations ep(x)≃τ−1 mτpZeik·xc Rcdk−τpZeik·xiκid Rm,idk =τpτ−1 mRc−τp∂iRm,i Finally, the same argument of the previous section applied to the scalar case permits to define τmand τpas τm=νκ2 02+ (κ0·a)2−1/2 and τp=κ−2 0 Let us conclude this section with a different view of the approximation performed. Assuming uand pregular enough, taking the divergence of the momentum equation 4.8 and using the continuity equation 4.9 we find a Poisson equation for the pressure subscale ∇2ep=∇·Rm−LRc We can formally solve this equation to obtain ep=∇−2(∇·Rm)−∇−2LRc where ∇−2must satisfy appropriate boundary conditions. Introducing this solution into the first equation we have Le u=Rm−∇∇−2(∇·Rm) + ∇∇−2LRc We can formally solve this equation as e u=L−1Rm−L−1∇∇−2(∇·Rm) + L−1∇∇−2LRc Finally approximating L−1by τmand −∇−2by τpwe arrive to e u=τmRm+τmτp∇(∇·Rm)−τp∇Rc(4.26) ep=−τp∇·Rm+τpτ−1 mRc(4.27) The approximated solution obtained can be written as "e u ep#=τ"Rm Rc# The Oseen problem 85 but the usual matrix of stabilization parameters τdefined in the previous section as "τmI0 0τc# has to be replaced by a stabilization operator of the form "τmI+τmτp∇∇· −τp∇ −τp∇·τpτ−1 m# For appropriate definitions of τmand τpthis operator is positive and gives rise to a stable scheme as will be shown in the following section. Neglecting the differential terms we recover the standard approach. Remark 4 If we define on each element the spaces of the residuals as R=v:Ωh→R:v=α(f−Luh−∇qh)|K,uh∈Vh, qh∈Qh, α ∈R R=q:Ωh→R:q=α∇·uh|K,uh∈Vh, α ∈R the solution 4.26-4.27 implies e V=R+∇(∇·R) + ∇R e Q=∇·R+R which can be written as e V=R+∇e Q It is immediately clear that theses spaces satisfy the inf-sup condition inf eq∈ e Q sup e v∈ f V (eq, ∇·e v) keqkk∇e vk≥β > 0 because ∀eq∈e Q, ∇eq∈e V. 4.3.3 The choice of the space of subscales Let us finally consider the choice of the space of subscales or, equivalently, the definition of e v⊥and eq⊥. The diagonal approximation developed in subsection 4.3.1 can be obtained neglecting differential terms in 4.26-4.27 and we restrict the discussion to this case. Considering the general case of e v⊥6=0and eq⊥6= 0 instead of 4.26-4.27 we have e u=τmRm+e v⊥+τmτp∇∇·Rm+e v⊥−τp∇Rc+eq⊥(4.28) ep=−τp∇·Rm+e v⊥+τpτ−1 mRc+eq⊥(4.29) 86 The Oseen problem To simplify the discussion that follows let us consider (only in the remaining part of this subsection) that the stabilization parameters are the same for all elements. This point is not essential and the reader is referred to the previous chapter for the general case. If we denote by Pthe projection onto the orthogonal complement of e Qwe have Pep= 0 and Peq⊥=eq⊥and therefore from 4.29 we obtain eq⊥=τmP∇·Rm+e v⊥−PRc(4.30) In the same way, if we denote by Pthe projection onto the orthogonal complement of e V we have Pe u=0and Pe v⊥=e v⊥and therefore from 4.28 we obtain e v⊥=−τmP Rm−τmτpP∇∇·Rm+∇·e v⊥+τpP∇Rc+eq⊥ After some manipulation we arrive to e v⊥=−P Rm−τpP∇(I−P)∇·Rm+∇·e v⊥+τ−1 mτpP∇(I−P)Rc(4.31) where Iis the identity operator in Q. This gives an implicit definition of e v⊥(as a differential equation) in terms of projections of the residuals. However, we do not need to explicitly compute e v⊥and eq⊥to impose e u∈e Vand ep∈e Qbut only to write e u=e P[τmRm+τmτp∇(∇·Rm)−τp∇Rc] (4.32) ep=e P−τp∇·Rm+τpτ−1 mRc(4.33) where e P=I−Pand e P=I−Pare the projections onto the spaces of subscales e Vand e Q. Equating 4.28 with 4.32 and 4.29 with 4.33 we obtain conditions 4.31 and 4.30. Two possibilities have been considered for the choice of the spaces of subscales. The easier approach is to take P= 0 and P=0which is equivalent to take e v⊥= 0 and eq⊥= 0 and is called in [29] the Algebraic Subgrid-Scale formulation (ASGS). In that reference the choice P=Ph(and P=Ph) is advocated, Phbeing the L2Ωhprojection onto the finite element space Qh(and Vh). The resulting formulation is called Orthogonal Subscales Stabilization (OSS) because it corresponds to take e Q(e V) as the orthogonal complement of Qh(Vh) (in the L2Ωhsense). 4.3.4 The final discrete problem Let us summarize the possibilities for the discrete problem. It consists in finding (uh, ph)∈Vh×Qhsuch that Bτ(uh, ph;vh, qh) = Lτ(vh, qh)∀(vh, qh)∈Vh×Qh(4.34) where the bilinear form Bτand the linear form Lτare given by The Oseen problem 87 •Diagonal approximation: Bτ(uh, ph;vh, qh)=(∇vh, ν∇uh)Ω+ (vh,a·∇uh)Ω(4.35) −(∇·vh, ph)+(qh,∇·uh) −L∗vh−∇qh, τme P(Luh+∇ph)h +∇·vh, τpτ−1 me P(∇·uh)h and Lτ(uh, ph) = hvh,fiΩ−L∗vh−∇qh, τme P fh(4.36) •Coupled approximation Bτ(uh, ph;vh, qh)=(∇vh, ν∇uh)Ω+ (vh,a·∇uh)Ω(4.37) −(∇·vh, ph)+(qh,∇·uh) −L∗vh−∇qh, τme P(Luh+∇ph)h −L∗vh−∇qh, τmτpe P[∇(∇·(Luh+∇ph))]h +L∗vh−∇qh, τpe P[∇(∇·uh)]h −∇·vh, τpe P[∇·(Luh+∇ph)]h +∇·vh, τpτ−1 me P(∇·uh)h and Lτ(uh, ph) = hvh,fiΩ−L∗vh−∇qh, τme P fh(4.38) −L∗vh−∇qh, τpτ−1 me P[∇(∇·f)]h −∇·vh, τpe P(∇·f)h 4.4 Stability analysis In this section we present a stability analysis of the final discrete problem in the case of e P=Iand e P=Ifor the coupled approximation to the subscales. The stability of the diagonal approximation has already been shown in [28]. The stability in the cases of e P=P⊥ hand e P=P⊥ hrequire the bound of the finite element component of a·∇uh+∇ph and this should be done using the techniques of [30]. We will make use of the following anisotropic inverse estimates [2], which can derived from a scaling argument ∇2vh2 K≤C2 K h2 min k∇vhk2 K,k∇ · vhk2 K≤C2 K h2 min kvhk2 K(4.39) 88 The Oseen problem We will also need an inverse trace estimate [142] of the form kvhk2 ∂K ≤CE hmin kvhk2 K(4.40) In both cases the constants depend on the order of the polynomial approximation and estimates of their values are given in [67, 142] and references therein. In this section we will omit the min subscript and will denote the minimum element length by hunless otherwise specified and, just to simplify the notation, we will consider the parameters τm and τpconstant on each element and satisfying τ−1 m≥8ν h2max C2 K, C2 E(4.41) and τ−1 p≥8 h2max C2 K, C2 E(4.42) Note that when the isotropic definitions 4.20 and 4.21 are used, these conditions are satisfied when the constant c1is such that c1≥8 max C2 K, C2 E We will also make use of the following algebraic inequality xy ≤1 2αx2+α 2y2 with α > 0. Defining the discrete norm kuhk2 τ: = ν1/2∇uh2 h+τ1/2 m(a·∇uh+∇ph)2 h +ντ1/2 mτ1/2 p∇2∇·uh2 h+τ1/2 pτ−1/2 m∇·uh2 h we have the following Theorem 2 (stability) Assume that conditions 4.41 and 4.42 are valid. Then, there exists a constant C > 0such that Bτ(uh, ph;uh, ph)≥Ckuhk2 τ Proof. Taking vh=uhand qh=phin 4.37 we have Bτ(uh, ph;uh, ph) = νk∇uhk2 Ω+ (−L∗uh+∇ph, τm(Luh+∇ph))h(4.43) + (−L∗uh+∇ph, τmτp∇(∇·(Luh+∇ph)))h −(−L∗uh+∇ph, τp∇(∇·uh))h −(∇·uh, τp∇·(Luh+∇ph))h +∇·uh, τpτ−1 m∇·uhh The Oseen problem 89 As usual, the second term on the left hand side of 4.43 provides stability of the convective term and the pressure gradient. Integrating by parts the third and fourth terms in 4.43 we have Bτ(uh, ph;uh, ph)≥νk∇uhk2 Ω(4.44) + (−L∗uh+∇ph, τm(Luh+∇ph))h(4.45) −(∇·(−L∗uh+∇ph), τmτp∇·(Luh+∇ph))h(4.46) + (n·(−L∗uh+∇ph), τmτp∇·(Luh+∇ph))∂h (4.47) + (∇·(−L∗uh+∇ph), τp∇·uh)h(4.48) −(n·(−L∗uh+∇ph), τp∇·uh)∂h (4.49) −(∇·uh, τp∇·(Luh+∇ph))h(4.50) +τ−1/2 mτ1/2 p∇·uh2 h(4.51) Using the inverse estimate in 4.45 we have τm(−L∗uh,Luh)K=τmν∇2+a·∇uh,−ν∇2+a·∇uhK =−τmν∇2uh2 K+τmka·∇uhk2 K ≥ −τmνC2 K h2k∇uhk2 K+τmka·∇uhk2 K We also have τm(∇ph,(L−L∗)uh)K= 2τm(∇ph,a·∇uh)K and therefore (−L∗uh+∇ph,Luh+∇ph)K≥ −τmνC2 K h2k∇uhk2 K+τmka·∇uhk2 K +2τm(∇ph,a·∇uh)K+τmk∇phk2 K =−τmνC2 K h2k∇uhk2 K+τmka·∇uh+∇phk2 K In the same way 4.46 is bounded as −τmτp(∇·(−L∗uh),∇·Luh)K=−τmτp∇·ν∇2+a·∇uh,∇·−ν∇2+a·∇uhK =τmτpν∇2∇·uh2 K−τmτpk∇·(a·∇uh)k2 K and −τmτp∇2ph,∇·(L−L∗)uhK=−2τmτp∇2ph,∇·(a·∇uh)K so using the inverse estimate −(∇·(−L∗uh+∇ph), τmτp∇·(Luh+∇ph))K =τmτpν∇2∇·uh2 K−τmτpk∇·(a·∇uh+∇ph)k2 K ≥τmτpν∇2∇·uh2 K−τmτp C2 K h2ka·∇uh+∇phk2 K 96 The Oseen problem Figure 4.6: Pressure fields obtained using the ASGS formulation with h=hmin (top) and h=hmax (bottom). 4.5.2 An anisotropic convergence test In this subsection we consider the Oseen problem in the domain Ω = [0,1]×[0,1] with zero Dirichlet boundary conditions on ∂Ω. A forcing term is prescribed to have the solution given by u= (ux(y), uy(x)) = 1 + e−α−e−αy −eα(y−1),1 + e−α−e−αx −eα(x−1) and p= 1 + x+x2 which presents boundary layers on the domain boundary whose width can be controlled using the parameter α. We consider α= 100 and the advection velocity is given by the exact solution for Reynolds numbers of 0 (Stokes) and 102. We solve the problem using meshes of 10 ×10 and also 100 ×10, 1000 ×10, 10000 ×10 giving aspect ratios A := h1/h2= 100,101,102,103. As in the case of the scalar convection diffusion problem, the impact of the choice of the element length is very important. We plot the pressure along the line y= 0.9 and the ycomponent of the velocity along the line y= 0.5. The results of the Stokes problem are shown in figures 4.7, 4.8, 4.9 and 4.10. When h=hmin is used to define the stabilization parameter numerical oscillations show up, specially in the pressure but also in the velocity. When h=hmax is used to define the stabilization parameter the solution is free of such oscillations and in this case the results are much better when the OSS method is used. The results of the Oseen problem for Re = 102are shown in figures 4.11, 4.12, 4.13 and 4.14. Similar conclusions can be obtained in this case. The only important point The Oseen problem 97 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.7: ycomponent of the velocities obtained using the ASGS formulation with h=hmin (left) and h=hmax (right) at Re= 0. -0.2 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.8: ycomponent of the velocities obtained using the OSS formulation with h=hmin (left) and h=hmax (right) at Re= 0. -50 0 50 100 150 200 250 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 0 50 100 150 200 250 300 350 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.9: Pressures obtained using the ASGS formulation with h=hmin (left) and h=hmax (right) at Re= 0. 98 The Oseen problem -20 0 20 40 60 80 100 120 140 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 0 20 40 60 80 100 120 140 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.10: Pressures obtained using the OSS formulation with h=hmin (left) and h=hmax (right) at Re= 0. to mention is that the new definition of the stabilization parameter does not improve the results with respect to those obtained using h=hmax as it does in the case of the CDR equation, although more numerical experiments are needed to clarify the point. The difference in the behavior could be due to the terms present in the coupled approximation and neglected in the diagonal one. Again, this is a point that needs further research. 4.6 Conclusions We have presented a procedure to derive stabilized formulations for systems of equations. In the general case the steps to be performed are •Fourier transform the system of equation. •Compute the spectrum of T−∗ (k0)MT−1(k0) and of τ−1Mτ−1with respect to the scaling matrix Mand impose (at least) the equality of the largest eigenvalue. The optimal situation is when the spectrum of both matrices is identical. In the particular case of the Oseen problem (but hopefully in other systems as well) the following alternative procedure can be followed •Fourier transform the system of equation •Invert the algebraic matrix. •Apply the inverse Fourier transform approximating the scalar operators but keeping the differential operators for the coupling. •Perform a stability analysis to show that the resulting formulation provides stability. The Oseen problem 99 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.11: ycomponent of the velocities obtained using the ASGS formulation with h=hmin (top left), h=hmax (top right) and 4.19 (bottom) at Re= 102. -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0 0.2 0.4 0.6 0.8 1 u x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.12: ycomponent of the velocities obtained using the OSS formulation with h=hmin (top left), h=hmax (top right) and 4.19 (bottom) at Re= 102. 100 The Oseen problem -3 -2 -1 0 1 2 3 4 5 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.13: Pressures obtained using the ASGS formulation with h=hmin (top left), h=hmax (top right) and 4.19 (bottom) at Re= 102. -3 -2 -1 0 1 2 3 4 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 -1 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 -1 -0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.2 0.4 0.6 0.8 1 p x Exact A=10^0 A=10^1 A=10^2 A=10^3 Figure 4.14: Pressures obtained using the OSS formulation with h=hmin (top left), h=hmax (top right) and 4.19 (bottom) at Re= 102. The Oseen problem 101 The second procedure highlights the vectorial structure of the Navier Stokes equations and does not give rise to a matrix of stabilization parameters, but to a stabilization operator of the form "τmI+τmτp∇∇· −τp∇ −τp∇·τpτ−1 m# Although the extra terms could be important when anisotropic finite element meshes are used, the mesh information is taken into account only in the definition of the stabilization parameters τmand τp. This is an important point since formulations of anisotropic stabilized approximations of the Navier Stokes equations in which the stabilization parameters where replaced by matrices that depend on the stretching of the grid have been used in the past[9, 8, 10]. As shown here, a formulation of this type is rather ad hoc and does not naturally follow from the multiscale concept. It has been also proved that under some conditions on the parameters τmand τpthe resulting scheme is stable. In principle the proof of the stability bound is valid for any mesh (isotropic or anisotropic) provided the conditions on the stabilization parameters are satisfied. However, in the limit of vanishing advection that would imply the need of using the minimum element length in the definition of the stabilization parameters. In the case of the diagonal approximation this choice gives rise to spurious oscillations as shown in the numerical examples. The results of the numerical examples presented show that the OSS method performs much better than the ASGS method as it is much less sensitive to the choice of the element length. As mentioned, the standard definition taking h=hmin results in an unstable scheme even for the Stokes problem. The results obtained using the standard definition taking h=hmax and those obtained using 4.17 and 4.18 are almost identical. Both deteriorate when the mesh is anisotropically refined. This odd behavior might be due to the neglect of the differential terms of the stabilization operator but it might be also due to the definition of the direction of instability. This definition has been made in the previous chapter for the convection diffusion reaction equation but it might be not the correct one for the Oseen problem. In fact, for the Stokes problem the arguments of the previous chapter do not permit to select any direction. Further research is needed to clarify the situation. 102 The Oseen problem Chapter 5 The incompressible Navier Stokes problem In this chapter we extend the stabilized finite element approximation developed in the previous chapters for the CDR and Oseen problems to the incompressible Navier-Stokes equations. Two aspects of the problem make it different from the ones considered in previous chapters: it is a time dependent problem and it is non linear. We explore the properties of the discrete formulation that results allowing the subgrid-scales to depend on time. This apparently “natural” idea avoids several inconsistencies of previous formulations. Likewise, we consider the complete multiscale decomposition of the nonlinear term, following the variation of the subscale along the iterative process. This also ”natural” idea gives rise to a discrete formulation with enhanced properties. 5.1 Introduction Let us start by writing the incompressible Navier-Stokes equations. Consider a domain Ω in Rd, where d = 2,3 is the number of space dimensions, with boundary Γ = ∂Ω, in which we want to solve an incompressible flow problem in the time interval [0, T]. If uis the velocity of the fluid and pthe pressure, the incompressible Navier-Stokes equations are ∂tu−ν∆u+u·∇u+∇p=fin Ω, t ∈(0, T) (5.1) ∇·u= 0 in Ω, t ∈(0, T) (5.2) where νis the kinematic viscosity and fis the force vector. These equations must be supplied with an initial condition of the form u=u0in Ω, t = 0, and a boundary condition which, for simplicity, will be taken as u=0on Γ, t ∈(0, T). Let us introduce some standard notation. The space of functions whose ppower (1 ≤p < ∞) is integrable in a domain ωis denoted by Lp(ω), L∞(ω) being the space of 104 The incompressible Navier Stokes problem bounded functions in ω. The space of functions whose distributional derivatives of order up to m≥0 (integer) belong to L2(ω) is denoted by Hm(ω). The space H1 0(ω) consists of functions in H1(ω) vanishing on ∂ω. The topological dual of H1 0(ω) is denoted by H−1(ω). A bold character is used to denote the vector counterpart of all these spaces. If fand gare functions (or distributions) such that f g is integrable in the domain ωunder consideration, we denote hf, giω=Zω f g dω so that, in particular, h·,·iωis the duality pairing between H−1(ω) and H1 0(ω). When f, g ∈L2(ω), we write the inner product as hf, giω≡(f, g)ω. The norm in a Banach space Xis denoted by k·kX, and Lp(0, T;X) is the space of time dependent functions such that their X-norm is Lp(0, T). This notation is simplified in some cases as follows: (·,·)Ω≡(·,·), h·,·iΩ≡ h·,·i and k·kL2(Ω) ≡ k·k. Using this notation, the velocity and pressure finite element spaces for the continuous problem are L2(0, T;Vst) and L1(0, T;Qst), respectively, where Vst := H1 0(Ω), Qst := L2(Ω)/R. The weak form of the problem consists in finding [u, p]∈L2(0, T;Vst)× L1(0, T;Qst) such that (∂tu,v) + ν(∇u,∇v) + hu·∇u,vi−(p, ∇·v) = hf,vi(5.3) (q, ∇·u) = 0 (5.4) for all [v, q]∈Vst ×Qst, and satisfying the initial condition in a weak sense. The Galerkin finite element approximation of problem 5.3-5.4 consists in seeking the unknowns in finite dimensional spaces Vh⊂Vst and Qh⊂Qst and taking the test functions also in these spaces. Using the method of lines, the problem discretized in space, but still continuous in time, consists in finding [uh(t), ph(t)] ∈L2(0, T;Vh)×L1(0, T;Qh) such that (∂tuh,vh) + ν(∇uh,∇vh) + huh·∇uh,vhi−(ph,∇·vh) = hf,vhi(5.5) (qh,∇·uh) = 0 (5.6) for all [vh, qh]∈Vh×Qh. Once discretized in time (using for example a finite difference scheme), it is well known that problem 5.5-5.6 suffers from different types of numerical instabilities. Two of them are inherited from the stationary problem, namely, the dominance of the (nonlinear) convective term over the viscous one when νis small and the compatibility required for the velocity and pressure finite element spaces posed by the inf-sup condition. There are also numerical instabilities encountered when the time step size of the time discretization is small, particularly in early stages of the time integration. A vast literature exists dealing with the instabilities due to the dominance of convection and to the velocity-pressure compatibility condition. In this work we adopt a The incompressible Navier Stokes problem 105 stabilized finite element formulation based on the subgrid-scale concept and, in particular, in the approach introduced by Hughes in [75, 78] for the scalar convection–diffusion equation. The basic idea is to approximate the effect of the component of the continuous solution which can not be resolved by the finite element mesh, which we will call subscale, on the discrete finite element solution. This approach is a general framework in which it is possible to design different stabilized formulations. We will restrict our attention to two approaches, described in [28] and [29]. In the first case, the velocity and pressure subscales are taken proportional to the residual of the finite element component in the momentum and in the continuity equations, respectively. The bottom line of the second approach is to take only the component of these residuals L2orthogonal to the finite element space. This idea was first introduced in [28] as an extension of a stabilization method originally introduced for the Stokes problem in [30] and fully analyzed for the stationary Navier-Stokes equations in [31]. However, the main interest of this chapter is not how to stabilize convection-dominated flows or how to be able to use equal velocity-pressure interpolation, thus avoiding the need to satisfy the inf-sup condition that problem 5.5-5.6 demands. Our objective in this chapter is to analyze the formulation that stems from considering time dependent subscales. In fact, the idea we will follow is not new, and was already introduced in [29]. In this sense, the present work can be considered as a continuation of this reference. The chapter is organized as follows. The numerical formulation is described in Section 5.2, and its main features are presented in Sections 5.3 where we detail the benefits of considering the subscales time dependent, and how some of the misbehaviors of classical stabilized finite element methods are overcome. We also end Section 5.3 with a speculative subsection considering the tracking of subscales along the nonlinear process as a way to model turbulence. This idea was also pointed out in [29]. In Section 5.4 we present the results of three simple numerical examples that show the benefits of our approach and we conclude with some final remarks in Section 5.5. 5.2 Stabilized finite element problem Let us consider a finite element partition Ph={K}of the domain Ω with nel elements. We will assume that all the finite element spaces constructed are continuous and of the same order for the velocity and the pressure. The starting idea of the formulation we propose is the variational multiscale formulation proposed in [75, 78]. Let Vst =Vh⊕e V, where Vh is the velocity finite element space and e Vany space to complete Vhin Vst. Similarly, let Qst =Qh⊕e Q. The original continuous problem 5.3-5.4 is equivalent to find [uh(t), ph(t)] ∈ 112 The incompressible Navier Stokes problem In reference [11] there is a study of the instability encountered when the ASGS method is used and 5.25 is replaced by the simplified equation e un+θ=τn+θRn+θ m(5.27) that corresponds to what we have called quasi-static subscales. It is shown in the reference mentioned that for the Stokes time continuous problem the Schur complement matrix for the pressure is not uniformly invertible, and this property is inherited as δt →0 if h, and therefore τn+θ, remains fixed (the case θ= 1 is considered in [11]). It is easily shown that the instability described disappears if δt ≥Cτn+θ(5.28) where Cis a positive constant. This is a condition that appears very often and about which there are several remarks to be made: •As it has been mentioned, under condition 5.28 the instability problems described in [11] for the ASGS method do not appear. This condition prevents the possibility of letting δt →0 while keeping hfixed. •In fact, if 5.28 holds it is irrelevant from the analysis point of view if the residual in 5.25 is multiplied by τtdefined in 5.26 or simply by τn+θ, since this parameter and τthave the same asymptotic behavior in terms of h,νand |uh|. •Condition 5.28 was needed in the analysis of the stabilization with orthogonal subscales for the convection-diffusion equation analyzed in [32], also considering time dependent subscales. From this discussion it seems clear that the stabilization parameter and the time step size must be related in classical stabilized finite element methods. This is clear from the heuristic arguments presented in the references mentioned above, the instability described in [11] for the ASGS method and the reasons found to comply with condition 5.28 just mentioned. However, we have not mentioned yet the fact that in 5.25 we are tracking the subscales in time. This has two major benefits, which justifies why taking the stabilization parameter as indicated by 5.26 is not enough: •If, as it is done in [58, 132, 138], among other references, the stabilization parameter adopted has an expression similar to 5.26 but the subscales are not considered time dependent, the steady-state solution depends on the time step size. This is clearly not an optimal situation. The amount of stabilization will depend on the way the equations are integrated to the steady-state. This does not happen if expression 5.25 is used. It can be easily checked that, when the steady-state is reached, 5.27 (now without any superscript) is recovered. The incompressible Navier Stokes problem 113 •Stability for all δt and h, without any need to satisfy 5.28 can be obtained for the linearized Navier Stokes equations[36]. Further, a complete convergence analysis of the transient approximation to the Stokes problem can be found in [3]. This is particularly relevant, since it allows us to use arbitrary combinations of hand δt. In other words, we may use what could be called anisotropic space-time discretizations. Of course, it is possible to use directly 5.26 without considering time-dependent subscales, and in that case 5.28 is automatically verified. However, that would lead to stability estimates that become meaningless in space when δt →0. 5.3.3 Tracking of subscales along the nonlinear process Up to now we have considered the effect of the term (∂te u,vh) in 5.18 and of ∂te u in 5.11. In this subsection we describe the effect of the other two terms in 5.18. Summarizing, he u· ∇uh,vhiallows us to guarantee global conservation of momentum, whereas −he u,e u· ∇vhimay be understood as the term coming from the subgrid scale tensor in a LES approach. Conservation of momentum Let us start by analyzing the effect of he u·∇uh,vhi. The purpose of what follows is to present a version of the results in [84], simplified and adapted to the present setting. Let Vd hthe velocity finite element space without imposing the Dirichlet boundary conditions, that is, with degrees of freedom also associated to the boundary nodes. Let t be the stress vector (traction) on the boundary Γ and consider the following augmented problem instead of 5.17: (∂tuh,vh) + ν(∇uh,∇vh) + huh·∇uh,vhi−(ph,∇·vh) +(qh,∇·uh)−X Khe u, ν∆vh+uh·∇vh+∇qhiK + (∂te u,vh) + he u·∇uh,vhi−he u,e u·∇vhi=hvh,fi+hvh,tiΓ where now vh∈Vd h(not just Vh). Considering d= 3 and taking for example vh= (1,0,0) and qh= 0, this equation yields ZΩ ∂t(uh,1+ ˜u1)dΩ + ZΓ uh,1un·ndΓ −ZΩ uh,1∇·uhdΩ +ZΩe u·∇uh,1dΩ = ZΩ f1dΩ + ZΓ t1dΓ where now the zero Dirichlet condition for the velocity is not explicitly required. This statement provides global momentum conservation if −ZΩ uh,1∇·uhdΩ + ZΩe u·∇uh,1dΩ = 0.(5.29) 114 The incompressible Navier Stokes problem This is implied by the continuity equation obtained by taking vh=0 (qh,∇·uh)−X Khe u,∇qhiK= 0,(5.30) provided Vh/R⊆Qh, that is to say, the velocity component uh,1belongs to the pressure space (uh,1can be considered modulo constants, since they do not affect neither the first nor the second terms in 5.29). This holds, in particular, for the “natural” choice Vh/R=Qh, that is to say, equal velocity-pressure interpolations. For the standard Galerkin method, this condition is impossible to be satisfied, since equal interpolation does not satisfy the inf-sup condition. As a conclusion, the term h˜ u·∇uh,vhiprovides global momentum conservation, since without it in the discrete momentum equation, we would have obtained −RΩuh,1∇·uhdΩ = 0 instead of 5.29, which is not implied by 5.30. A door to turbulence Let us conclude this section with some speculative comments on the contribution of the term −he u,e u· ∇vhi. In the standard large eddy simulation (LES) approach to solve turbulent flows (see e.g., [122], [130]) an equation is obtained for the large, filtered scales of the flow, which we will denote with an overbar. This equation includes an extra term when compared with the incompressible Navier-Stokes equations 5.1-5.2: the divergence of the so-called residual stress tensor or subgrid scale tensor R:= u⊗u−u⊗u. Tensor Rhas to be modeled in terms of uto obtain a self-contained equation, a problem known as the closure problem, and, once this is done, the resulting LES equation can be solved numerically. The residual stress tensor, R, is often decomposed into the so-called Reynolds, Cross and Leonard stresses to keep the Galilean invariance of the original Navier-Stokes equation in the LES equation. This invariance is automatically inherited by the formulation presented in this work and we observe that analogous terms to the various stress types are recovered in a “natural” way from our pure numerical approach (this was also the case in [82]). Let us have a look at this point. We first consider the last four terms in the material derivative 5.21 as they appear in the variational equation 5.17. The term −he u,e u·∇vhican be rewritten as −he u,e u·∇vhi=−he u⊗e u,∇vhi and can be identified with the Reynolds stress. The addition of the other three terms becomes, after integration by parts, huh·∇uh,vhi−he u,uh·∇vhi+he u·∇uh,vhi=−huh⊗uh,∇vhi−huh⊗e u+e u⊗uh,∇vhi and we can identify the second term on the right hand side with the cross stress. If we now pay attention to the convective term of the residual in the subscale equation 5.11 The incompressible Navier Stokes problem 115 and take, for simplicity, P=I, we observe that h(uh+e u)·∇uh,e vi=−(uh⊗uh,∇e v)−(uh⊗e u,∇e v) and the first term on the right hand side can be identified with the Leonard stress. Hence, we can effectively conclude that the modifications introduced by the presence of the divergence of Rin the LES equations are somehow automatically included in our subgrid scale stabilized finite element approach. How good our formulation will work as a turbulent model will mainly depend on the validity of the approximation made to derive the evolution equation for the subscales 5.11, being the ASGS or the OSS methods two available possibilities. In order to check this performance, benchmark problems for turbulent flows should be used. A widely used benchmark problem is the decay of isotropic turbulence. Our model should be able to reproduce the Kolmogorov energy cascade in the wavenumber Fourier space that displays an inertial range, where E(k, t)∼CKε2/3k−5/3(εbeing the energy dissipation rate, kthe wavenumber modulus, CKthe Kolmogorov constant in energy space and Ethe kinetic energy). The model should be also able to capture the appropriate decay in time of energy, enstrophy and other related statistical variables. Other more intricate questions such as if the model allows for backscatter or if the dimension of the global attractor is properly reproduced could be also addressed. We remind that the heuristic estimate for this dimension is N ∼ (L/λK)3∼Re9 4(where λKis the Kolmogorov length scale) and that the closest estimate analytically proved is (roughly) (L/λK)4.8(see [59]). Another standard test for turbulence is the turbulent channel flow. In this case the model should be able to approximate the turbulent boundary layer that, according to Prandtl theory, exhibits a log behavior after the laminar sublayer. Finally, we should mention that in an attempt to find a more mathematical foundation for the LES approach to turbulence, the concept of suitable approximations to the Navier-Stokes equations has been introduced in [65, 66]. It is expected that approximate solutions converge (in a weak sense) to suitable solutions. This seems to be the case for low order finite elements and the standard Galerkin method [64]. Hopefully, our enhanced formulations will have this property. The original idea of using the multiscale formulation with local approximation to the fine scales to compute turbulent flows was already pointed out in [29] and elaborated in [77, 21]. Very good results were obtained for fully developed and transitional turbulent flows. In fact, some promising results of numerical simulation of turbulent flows only with stabilization can be found in [73, 39](see also [62] for a review). 5.4 Numerical examples In this section we present three simple numerical examples that illustrate the performance of the method. The first is a convergence test that shows that for solutions with a smooth 116 The incompressible Navier Stokes problem behavior in time both quasi-static and transient subscales lead to the same optimal convergence rate. In the second example we demonstrate the improvement obtained when the subscales are tracked in time in the example introduced in [11]. Finally, the last example is the classical flow over a cylinder, for which considering transient subscales leads to better results, both in terms of accuracy (with higher amplitudes and frequencies, that is, less numerical dissipation) and of stability, eliminating some pressure oscillations in time encountered when the subscales are considered quasi-static. In all the cases we have used the ASGS method, that is, P=I(identity) in 5.15-5.16. 5.4.1 A convergence test In this example, already presented in [27], we consider the time dependent Navier-Stokes equations in the unit square with homogeneous Dirichlet boundary conditions and taking the force fand boundary and initial values to have the exact solution defined by u= 100h(t) (f(x)f0(y),−f0(x)f(y)) , p = 100x2, where h(t) = cos(πt) e−t, f(x) = x2(1 −x)2. Uniform meshes of 10 ×10, 20 ×20, 40 ×40 and 80 ×80 bilinear elements have been used to discretize the computational domain. The time interval of the analysis is [0,1] and the viscosity is 0.1. The objective of this test is to check the convergence of the time approximation to the exact solution using the method proposed here. To this end we compare the results obtained using transient subscales (TRS) to those obtained using quasi-static subscales (QSS) (see Remark 2). We compute the error as the discrete approximation to the L2norm of the difference between the exact and the approximated solution at time t= 1 and we normalize it using the discrete approximation to the L2norm of the exact solution. Numerical experiments have been performed using a first and a second order temporal discretization (Crank Nicolson scheme) and several time step sizes. In the case of the second order approximation we have also considered a first and second order time integration of equation 5.23. The convergence of the velocity approximation is shown in figure 5.1, from where it is seen that stabilized approximation converges to the exact solution at the expected rate either using the time dependent or the quasi-static subscales (see Remark 9). We also note that the integration of the subgrid scale equation 5.23 using a first or a second order method has little influence on the results. 5.4.2 Stability in the small time step limit The second example, presented in [11], shows the instability of the approximation to the Stokes problem when quasi-static subscales are considered (recall that we are using the The incompressible Navier Stokes problem 117 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS TRS Slope 1 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS FO TRS SO TRS Slope 2 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS TRS Slope 1 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS FO TRS SO TRS Slope 2 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS TRS Slope 1 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS FO TRS SO TRS Slope 2 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS TRS Slope 1 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log dt QSS FO TRS SO TRS Slope 2 Figure 5.1: Convergence of the time approximation using quasi-static subscales (QSS) and transient subscales (TRS). First order approximation on the left and second order approximation on the right. In the second order approximation first order (FO) or second order (SO) subscales are considered. From top to bottom meshes of sizes h= 1/20, h= 1/40 and h= 1/80. Note that the convergence curves loose the optimal slope in time (1 or 2) when the error becomes dominated by the spatial component. 118 The incompressible Navier Stokes problem ASGS method in all the examples). It consists again of an exact solution problem in which the time dependent Navier-Stokes equations are solved in the unit square with Dirichlet boundary conditions taking the force fand boundary and initial values to have the exact (steady state) solution defined by u= (sin(πx −0.7) sin(πy + 0.2) ,cos(πx −0.7) cos(πy + 0.2)) , p= sin(πx)cos(πy) + (cos(1) −1)sin(1). Numerical examples presented in [11] show that spurious oscillations in the pressure are found when the time step is small enough and that this effect is more dramatic when the order of the polynomial approximation is increased. We have solved this problem using different meshes for time step sizes δtn= 10−nusing a first order time approximation. Figure 5.2 shows the convergence of the approximation using bilinear elements at the first time step, while figure 5.3 shows the same results corresponding to the second time step. The instability mentioned can be seen in figure 5.2, as for a given mesh size the error increases when the time step is decreased. As a first order approximation is being used and the solution of the problem is steady, the error should decrease linearly with the time step size. This is not the case in the first step, neither using the quasi-static subscales as shown in [11], nor using transient subscales. However, as shown in figure 5.3, when the transient subscales are considered the instability is eliminated at the second time step. This behavior leads to consider the practical problem of the initial conditions for the subgrid scale (we have taken them to be zero), which has not been considered here. It has to be noted that, in any case, the instability observed disappears as time advances and, obviously, the stationary solution is equally approximated using quasi-static and transient subscales. The situation is different when higher order elements are used. Figure 5.4 shows the convergence of the approximation using biquadratic elements while figure 5.5 shows the convergence of the approximation using bicubic elements, both at the first time step. Similar results are found for the second time step. From figures 5.4 and 5.5 it is seen that when quasi-static subscales are considered the method could not converge as the mesh is refined for small time steps. This is even more dramatic than the result presented in [11], where only a fixed mesh of 10 ×10 elements was considered. In the case of transient subscales, although some dependence of the error on the time step size is still observed, convergence under mesh refinement is always achieved. This effect is seen in figure 5.6, where pressure contours for different mesh sizes obtained using quasi-static and transient subscales are compared. 5.4.3 Flow past a cylinder The last example is the flow past a cylinder at Re = 100, a well known benchmark. The domain is [0,16]×[0,8]\D, where the cylinder Dhas a diameter 1 and is located at (4,4). The incompressible Navier Stokes problem 119 1e-05 0.0001 0.001 0.01 0.1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 2 1e-05 0.0001 0.001 0.01 0.1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 2 0.01 0.1 1 10 100 1000 10000 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 1 0.01 0.1 1 10 100 1000 10000 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 1 Figure 5.2: Convergence of the approximation using bilinear elements at the first time step. Quasi-static subscales on the left and transient subscales on the right. Velocity error at the top and pressure error at the bottom. 1e-05 0.0001 0.001 0.01 0.1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 2 1e-05 0.0001 0.001 0.01 0.1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 2 0.01 0.1 1 10 100 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 1 0.01 0.1 1 10 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 1 Figure 5.3: Convergence of the approximation using bilinear elements at the second time step. Quasi-static subscales on the left and transient subscales on the right. Velocity error at the top and pressure error at the bottom. 120 The incompressible Navier Stokes problem 1e-06 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 3 1e-06 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 3 0.0001 0.001 0.01 0.1 1 10 100 1000 10000 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 2 0.0001 0.001 0.01 0.1 1 10 100 1000 10000 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 2 Figure 5.4: Convergence of the approximation using biquadratic elements at the first time step. Quasi-static subscales on the left and transient subscales on the right. Velocity error at the top and pressure error at the bottom. 1e-07 1e-06 1e-05 0.0001 0.001 0.01 0.1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 4 1e-07 1e-06 1e-05 0.0001 0.001 0.01 0.1 1 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 4 1e-05 0.0001 0.001 0.01 0.1 1 10 100 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 3 1e-05 0.0001 0.001 0.01 0.1 1 10 100 0.01 0.1 1 log e log h dt=1e-1 dt=1e-2 dt=1e-3 dt=1e-4 dt=1e-5 dt=1e-6 Slope 3 Figure 5.5: Convergence of the approximation using bicubic elements at the first time step. Quasi-static subscales on the left and transient subscales on the right. Velocity error at the top and pressure error at the bottom. The incompressible Navier Stokes problem 121 Figure 5.6: Pressure contours for δt = 10−6and (from top to bottom) h= 1/20, h= 1/40 and h= 1/80 using biquadratic elements. Quasi-static subscales on the left and transient subscales on the right. 128 Thermally coupled flow problems them along the iterative process to deal with the nonlinear terms has several benefits, such as a better performance in time of the final formulation, the conservation of momentum or the possibility to model turbulence. In this chapter we extend the formulation to thermally coupled flows using the Boussinesq approximation. The need to stabilize the standard Galerkin finite element approximation comes from two main sources, namely, the wish to use equal velocity-pressure interpolations and to deal with convection dominated flows. As it is now well known, both sources of instability can be overcome by using stabilized formulations. However, the main interest of this chapter is not to explain how the stabilized formulation employed here allows to use equal interpolations or is able to avoid convection instabilities. Our main concern is to explain how to consider dynamic subscales, how to integrate them in time and how to track them along the iterative process, accounting in particular for the coupling of the heat and the momentum equations. The chapter is organized as follows. In the following section we define the problem and in section 6.3 we consider the multiscale formulation extended to thermally coupled flows and we present the time integration scheme in section 6.4, summarizing its main properties in section 6.5. Two numerical examples are presented in Section 6.6, both of them two-dimensional. They involve two situations of thermally coupled flows that display a bifurcation of the solution due to the instability of the basic flow. One of them is the classical Rayleigh-B´enard instability coupled with a Poiseuille flow, which leads to a transient flow even if the bifurcation is of stationary type. The second example is the classical flow in a cavity with differentially heated vertical walls. When the Prandtl number is small, the flow exhibits a Hopf bifurcation that leads to an oscillating flow pattern. The chapter concludes in Section 6.7 with some final remarks and comments. 6.2 Physical problem Let Ω ⊂Rd, with d = 2,3, be the computational domain in which the flow takes place during the time interval [0, T], and let Γ be its boundary. The initial and boundary value problem to be considered consists in finding a velocity field u, a pressure pand a Thermally coupled flow problems 129 temperature ϑsuch that ∂tu+u·∇u−ν∆u+∇p+βgϑ=f+βgϑ0in Ω, t ∈(0, T) ∇·u= 0 in Ω, t ∈(0, T) ∂tϑ+u·∇ϑ−α∆ϑ=Qin Ω, t ∈(0, T) u=0on Γ, t ∈(0, T) u=u0in Ω, t = 0 ϑ= 0 on Γ, t ∈(0, T) ϑ=ϑ0in Ω, t = 0 In these equations, νis the kinematic viscosity, αthe thermal diffusivity, βthe thermal expansion coefficient, fthe external body forces, ϑ0the reference temperature, gthe gravity acceleration vector, Qthe heat source and u0and ϑ0the initial conditions for velocity and temperature, respectively. For simplicity in the exposition, we have assumed homogeneous Dirichlet boundary conditions for both velocity and temperature. To define the functional setting, let H1(Ω) be the space of functions such that they and their first derivatives belong to L2(Ω) (that is, they are square integrable), and let H1 0(Ω) be the subspace of functions in H1(Ω) vanishing on the boundary. Let also Vst =H1 0(Ω)d, Qst =L2(Ω)/R, Ψst =H1 0(Ω) and define V=L2(0, T;Vst), Q=L1(0, T;Qst) (for example) and Ψ = L2(0, T; Ψst), where Lp(0, T;X) stands of the space of functions such that their Xnorm in the spatial argument is an Lp(0, T) function in time, that is, its p-th power is integrable if 1 ≤p < ∞or bounded if p=∞. The weak form of the problem consists in finding (u, p, ϑ)∈V×Q×Ψ such that (∂tu,v)+(u·∇u,v) + ν(∇u,∇v)−(p, ∇·v) + β(gϑ, v) = hf,vi+β(gϑ0,v) (6.1) (q, ∇·u) = 0 (6.2) (∂tϑ, ψ)+(u·∇ϑ, ψ) + α(∇ϑ, ∇ψ) = (Q, ψ) (6.3) for all (v, q, ψ)∈Vst ×Qst ×Ψst, where (·,·) denotes the L2(Ω) inner product and (f, g) := RΩfg dΩ whenever functions fand gare such that the integral is well defined. The dimensionless numbers relevant in this problem are those already defined in chapter 2 and the Grashof number given by Gr = β|g|l3 0∆ϑ ν2 where l0is a characteristic length of the problem and ∆ϑa characteristic temperature difference. Note the relation Ra = Gr Pr. 6.3 Multiscale approximation Let us consider a finite element partition Ph={K}of the computational domain Ω of nel elements, from which we can construct finite element spaces for the velocity, pressure 130 Thermally coupled flow problems and temperature in the usual manner. We will denote them by Vh⊂Vst,Qh⊂Qst and Ψh⊂Ψst, respectively, and, to simplify the exposition, we will assume that they are all built from continuous piecewise polynomials of the same degree k. The basic idea of the multiscale approach we will follow [78] is to split the continuous unknowns as u=uh+e u(6.4) p=ph+ep(6.5) ϑ=ϑh+e ϑ(6.6) where the components with subscript hbelong to the corresponding finite element spaces. The components with a tilde belong to any space such that its direct sum with the finite element space yields the functional space where the unknown is sought. For the moment, we leave it undefined. These additional components are what we will call subscales. Each particular variational multiscale method will depend on the way the subscales are approximated. However, our main focus in this work is not how to choose the space of subscales (in our case for velocity, pressure and temperature), but to explain the consequences of considering these subscales time dependent, and therefore requiring to be integrated in time. Likewise, we will keep the previous decomposition 6.4-6.6 in all the terms of 6.1-6.3. The only approximation we will make for the moment is to assume that the subscales vanish on the interelement boundaries, ∂K. This happens for example if they are approximated using bubble functions [4], or if one assumes that their Fourier modes correspond to high wave numbers, as it is explained in [29]. Substituting 6.4-6.6 into 6.1-6.3, taking the test functions in the corresponding finite element spaces and integrating some terms by parts, it is found that (∂tuh,vh)+(uh·∇uh,vh) + ν(∇uh,∇vh)−(ph,∇·vh) + β(gϑh,vh) −(e u, ν∆hvh+uh∇·vh)+(∂te u,vh)+(e u·∇uh,vh)−(e u,e u·∇vh) −(ep, ∇·vh) + β(ge ϑ, vh) = hf,vhi+β(gϑ0,vh) (6.7) (qh,∇·uh)−(e u,∇qh) = 0 (6.8) (∂tϑh, ψh)+(uh·∇ϑh, ψh) + α(∇ϑh,∇ψh)−e ϑ, α∆hψh+uh·∇ψh + (∂te ϑ, ψh)+(e u·∇ϑh, ψh)−e ϑ, e u·∇ψh= (Q, ψh) (6.9) which must hold for all test functions (vh, qh, ψh)∈Vh×Qh×Ψh. The subindex hin the Laplacian denotes that it is evaluated elementwise. The first row in 6.7 corresponds to the terms arising from the classical Galerkin approximation of the momentum equation (except for the term due to external forces). Once the velocity subscale is approximated, the first term of the second row provides stability of convection as usual in classical methods (see, for example, [28]). The rest of the terms in the second row and those in the third row are non-standard terms, in the sense Thermally coupled flow problems 131 that they are usually neglected. One of our purposes here is to discuss the implications of these terms. The last row in 6.7 comes from the contribution of the pressure and temperature subscale and the contribution from the external forces. It is rather standard to take the pressure subscale into account, but to study the effect of the temperature subscale is one of the objectives of one of our numerical experiments. In the left-hand-side of 6.8 the first term is the classical Galerkin contribution, whereas the second provides (pressure) stability once the velocity subscale is approximated. Similar comments to those made for 6.7 apply to 6.9. The first three terms of the first row correspond to the classical Galerkin approximation (except for the heat source), the last term of the first row provide stability in convection dominated flows when the temperature subscale is approximated and, finally, the three terms in the left-hand-side of the second row are non-standard, and come from the fact that subscales are never neglected in the previous equations (except for the fact that they are assumed to vanish on the interelement boundaries, as it has been already mentioned). Equations 6.7-6.9 can be understood as the projection of the original equations onto the finite element spaces of velocity, pressure and temperature. The equations for the subscales are obtained by projecting onto their corresponding spaces. If e Pdenotes this projection onto any of these spaces, these equations are e Ph∂t˜ u+ (uh+e u)·∇e u−ν∆e u+∇ep+βge ϑi=e PRm(6.10) e P[∇· e u] = e PRc(6.11) e Ph∂te ϑ+ (uh+e u)·∇e ϑ−α∆e ϑi=e PRe(6.12) where Rm=f+βgϑ0−[∂tuh+ (uh+e u)·∇uh−ν∆huh+∇ph+βgϑh] Rc=−∇·uh Re=Q−[∂tϑh+ (uh+e u)·∇ϑh−α∆hϑh], are the residuals of the finite element unknowns in the momentum, continuity and energy equation, respectively. Equations 6.10-6.12 need to be solved within each element and, as we have assumed, considering homogeneous velocity and temperature Dirichlet boundary conditions. It is not our purpose here to discuss how to approximate 6.10-6.11 which, in fact, is the essence of the different stabilized finite element methods that can be found in the literature. We will adopt a simple approximation that can be found, for example, in [29] and references therein. Our main concern, as in the reference just mentioned, is to keep the time dependence of the subscales, as well their nonlinear effects. When their time derivative is neglected, we will call them quasi-static, whereas otherwise we will call them dynamic. 132 Thermally coupled flow problems Following the line of chapters 3, 4 and 5 now extended to thermally coupled flows, we propose to compute the subscales within each element of the finite element partition as solution to ∂te u+τ−1 me u=e PRm(6.13) τ−1 cep=e P(Rc+τm∂tRp) (6.14) ∂te ϑ+τ−1 ee ϑ=e PRe(6.15) where the isotropic stabilization parameters τm,τcand τeare computed as τm=c1 ν h2+c2|uh+e u| h−1 (6.16) τc=h2 c1τm =ν+c2 c1 h|uh+e u|(6.17) τe=c1 α h2+c2|uh+e u| h−1 (6.18) where his the element size and c1and c2are algorithmic constants (we have adopted c1= 4 and c2= 2 in the numerical experiments). The approximation adopted for the subscales could certainly be improved, for example by trying to relax the assumption that they vanish on the interelement boundaries or by trying to model the coupling between the three equations in play (momentum, continuity and heat) as done in chapter 4 for the Oseen equations. However, our interest here is only to analyze the effect of considering the subscales time dependent and taking into account their contribution in the nonlinear terms. In particular, it is important to remark that 6.13 is nonlinear, both because the velocity subscale contributes to the advection velocity and because the stabilization parameter τmdepends also on the velocity subscale, as equation 6.15 and the stabilization parameter τe. Likewise, 6.13 depends on the temperature subscale, and therefore the velocity-temperature coupling is naturally accounted for. Even though it is not our purpose to use an “accurate” approximation to the subscales like the one introduced in chapter 4, in some case we have found convenient to include the time derivative of Rcin the approximation 6.14 of the pressure subscale. This term was neglected in the previous chapter and in [29, 36], but in some situations it is crucial to improve pressure stability. This time derivative arises naturally if the second approximation to the subscales of chapter 5 is considered. It is observed that in 6.13-6.15 we have kept the projections e Pin the right-hand- side terms. Basically, two different options can be considered. Classical stabilized finite element methods are recovered by taking e P=I(the identity), whereas if e P=P⊥ h= I−Ph,Phbeing the L2-projection onto the appropriate finite element space, the subscales turn out to be orthogonal to this finite element space. The resulting formulation is termed as orthogonal subscales stabilization (OSS) in [29]. Thermally coupled flow problems 133 The space-discrete formulation is now complete. However, contrary to what happens with quasi-static subscales and neglecting their nonlinear effects, now it is not possible to obtain a closed-form expression for these subscales and insert them into 6.7-6.9 in order to obtain a problem for the finite element components of velocity, pressure and temperature. Prior to discretizing in time, we cannot go any further than saying that the problem consists in solving 6.7-6.9 together with 6.13-6.15. 6.4 Temporal discretization Any finite difference scheme can now be applied to discretize in time both equations 6.7- 6.9 and equations 6.13-6.15. Obviously, space-time finite element discretizations are also possible. In order to make the exposition concise, we will restrict our attention to the trapezoidal rule. Let δt be the time step size of a uniform partition of the time interval [0, T], 0 = t0< t1< ... < tN=T. Functions approximated at time tnwill be identified with the superscript n. For a generic function f, we will use the notation δfn:= fn+1 −fn, δtfn=δfn/δt,fn+θ=θfn+1 + (1 −θ)fn, 0 ≤θ≤1. The time discretization of 6.7-6.9 is standard and does not need any further explanation. Given un h,ϑn h,e unand e ϑn, it consists of solving the problem (δtun h,vh) + un+θ h·∇un+θ h,vh+ν(∇un+θ h,∇vh)−(pn+1 h,∇·vh) + β(gϑn+θ h,vh) −e un+θ, ν∆hvh+un+θ h∇·vh+ (δte un,vh) + e un+θ·∇un+θ h,vh−e un+θ,e un+θ·∇vh −(epn+1,∇·vh) + β(ge ϑn+θ,vh) = hf,vhi+β(gϑ0,vh) (6.19) (qh,∇·un+θ h)−(e un+θ,∇qh) = 0 (6.20) (δtϑn h, ψh) + un+θ h·∇ϑn+θ h, ψh+α(∇ϑn+θ h,∇ψh)−e ϑn+θ, α∆hψh+un+θ h·∇ψh + (δte ϑn, ψh) + e un+θ·∇ϑn+θ h, ψh−e ϑn+θ,e un+θ·∇ψh= (Q, ψh),(6.21) which must hold for all test functions (vh, qh, ψh)∈Vh×Qh×Ψh. Note that the pressure is considered approximated at time n+ 1. This avoids the need to deal with the pressure at a previous time step and does not modify the velocity approximation. As it is well known, the scheme is expected to be of second order if θ= 1/2 and of first order otherwise. Equations 6.13-6.15 need also to be integrated in time. The simplest option is to use the same time discretization as for the finite element equations, which yields δte un+1 τn+θ me un+θ=e PRn+θ m(6.22) 1 τn+1 cepn+1 =e PRn+1 c+τn+1 mδtRn c(6.23) δte ϑn+1 τn+θ ee ϑn+θ=e PRn+θ e(6.24) 134 Thermally coupled flow problems However, we will consider two additional options. The first is that the time integration for the subscales could be less accurate than for the finite element equations 6.7-6.9 and still keep the same order of accuracy in time of the finite element solution. The formal idea to justify this is the following. From the expression of the stabilization parameters τmand τein 6.16 and 6.18, respectively, it follows that they behave as the critical time steps of an explicit integration in time of the momentum and the heat equation [37]. Therefore, we may assume that they are of order O(δt). From 6.22 it follows that O(1)δe un+1 +e un+1 =O(δt)e P(Rn+θ m), and thus we may conclude that e un+1 =O(δt)e P(Rn+1 m). If the residual of the finite element component is bounded, |e un+1 −e un|=O(δt2), and therefore evaluating the subscale at n+ 1, for example, in 6.19 instead of at n+θintroduces an error of order O(δt2), which is the optimal error that can be reached with the trapezoidal rule (for θ= 1/2). The same comments apply to 6.24 for the temperature subscale. Considering the subscale equations integrated to first order and the finite element equations to second (or higher) is not particularly relevant in the case of the trapezoidal rule. However, if, for example, the second order backward-differencing (BDF) scheme is used, a first order integration of the equation for the subscales avoids the need to store them in two previous time steps. This storage is the most important cost of integrating the subscales in time. Another aspect to take into account is that the subscale approximation is not smooth, since the residual of the finite element components will be discontinuous across interelement boundaries. Thus, it seems reasonable to use a scheme as dissipative as possible to integrate the subscales in time. Further comments about this point are made in Section 4. A first order time integration for the subscales is straightforward. Equations 6.22 and 6.24 have to be replaced by their counterparts for θ= 1. A third and final possibility that can be considered to integrate 6.13-6.15 in time is a combination of exact integration and approximation of the stabilization parameters and residuals at tn+θ. If this approximation is done, the equations for the velocity and temperature subscales are ∂te u+1 τn+θ me u=e PRn+θ m ∂te ϑ+1 τn+θ ee ϑ=e PRn+θ e which can be integrated exactly, yielding e un+1 =e un−τn+θ me PRn+θ mexp −δt τn+θ m+τn+θ 1e PRn+θ m(6.25) e ϑn+1 =e ϑn−τn+θ ee PRn+θ eexp −δt τn+θ e+τn+θ 3e PRn+θ e(6.26) Thermally coupled flow problems 135 6.5 Main features of the formulation The method described so far is an extension of the formulation proposed in chapter 5 to the case of thermally coupled flows using the Boussinesq approximation and therefore it is not necessary to repeat the same arguments again. Therefore, referring the redear to chapter 5 for their justification, let us briefly recall the fundamental features of the formulation and remark the differences that appear in the thermal case. •The first point is the effect of considering the subscales dynamic, and therefore to deal with their time variation. Doing that the effect of time integration is now clear. Suppose for example that we are using 6.22-6.24 to integrate the subscales. Certainly, the effective stabilization parameters have to be modified (as it is done for example in [132, 138]), but when the steady-state is reached the subscale e uthat is obtained satisfies 1 βδt +1 τme u=1 βδt e u+Rm, from where e u=τmRm, so that the usual expression employed for stationary problems is recovered. Numerical experiments also show that the temporal time integration is significantly improved eliminating oscillations originated by initial transients and minimizing numerical dissipation. The use of dynamic subscales also leads to the commutation of space discretization (understood as scale splitting) and time discretization. That is time discretization + stabilization (scale splitting) = stabilization (scale splitting) + time discretization. In what respects the time integration properties, the situation is similar for the energy equation. •The second point is the effect of tracking the subscales along the nonlinear process and in the case of thermal problems along the coupling. On the one hand the tracking results in conservation properties. In the case of the incompressible Navier Stokes equations considered in chapter 5, this leads to global momentum conservation thanks to the term he u· ∇uh,vhi. As shown in chapter 5 global momentum conservation holds if [84] −ZΩ uh,1∇·uhdΩ + ZΩe u·∇uh,1dΩ = 0. what is implied by the continuity equation provided Vh,1jQh. This holds, in particular, for the “natural” choice Vh,1=Qh.For the standard Galerkin method, this condition is impossible to be satisfied, since equal interpolation does not satisfy the inf-sup condition. In the same way if we consider ψh= 1 in 6.9 and qis the 136 Thermally coupled flow problems normal heat flux on the boundary Γ that results from considering the augmented problem [84] we have ZΩ ∂tϑh−ZΩ ϑh∇·uh+ZΩ ∂te ϑ+ZΩe u·∇ϑh+ZΓ ϑhun·ndΓ = ZΩ Q+ZΓ qdΓ, As in the case of the momentum equation, global energy conservation is obtained from the continuity equation provided ΨhjQhwhat holds if the temperature is interpolated in the same way as the pressure. As a conclusion, the term h˜ u·∇uh,vhi provides global momentum conservation and the term h˜ un+θ·∇ϑh, ψhiprovides global energy conservation. On the other hand the tracking of subscales along the nonlinear and coupling processes opens the possibility of modelling turbulence. Some comments about this possibility have been made in chapter 5 where the reader is referred. Let us only mention that the formulation we propose would account for thermal turbulence in a very natural way. The traditional approach is to relate thermal turbulence to the mechanical one through the introduction of a turbulent Prandtl number whose physical meaning and adequate value are not well understood. This would be unnecessary with the approach presented here. 6.6 Numerical examples In this section we present the results of two numerical tests involving two-dimensional thermally coupled flows. In both cases we have used e P=Iin 6.10-6.12, which corresponds to the most classical stabilized finite element methods. In both numerical examples, our purpose is to compare the numerical performance of quasi-static subscales (QSS) and dynamic subscales (DS). To this end, we will proceed as follows. Two meshes will be considered in both examples, one that we will call “coarse” and another finer one. On both meshes we will present the results obtained using QSS and, only in the coarse mesh, the results obtained considering dynamic subscales. The goal is to show that DS yield better results than QSS on the coarse meshes by comparing both to the QSS results on the fine mesh, that we will call reference results. We anticipate that the conclusions of the following numerical experiments are •The accuracy is higher using DS. This is reflected in particular by less damping of frequencies and amplitudes in the oscillating response of the flows considered. •Stability is improved by using DS, particularly when subscales are integrated in time with a first order scheme. Some oscillations encountered with QSS are removed. A full description of the iterative scheme developed for solving thermally coupled flows is presented in chapter 7, including different possibilities for the treatment of the Thermally coupled flow problems 137 nonlinearities. In the examples presented here, the velocity-temperature coupling has been achieved using a block-iterative strategy, using also a nested iterative loop to solve the nonlinear Navier-Stokes equations within each coupling iteration. After solving for the finite element component of the velocity (temperature) the subgrid scale velocity iterating 6.22 (6.24). When the flow is fully developed, it converges very well, yielding fully converged subscales (with relative residuals of the order of 10−6) with four or five iterations. Concerning the time integration schemes, the equations for the finite element unknowns have been integrated using the second order Crank-Nicolson scheme (θ= 1/2 in 6.19-6.21), whereas the equations for the subscales have been integrated either using this same scheme or the first order version described in Section 3.1. 6.6.1 Thermoconvective instability of plane Poiseuille flow The problem consists of a two-dimensional laminar flow in a horizontal channel occupying the domain [0,10]×[0,1] and suddenly heated from below. A parabolic inlet velocity profile is prescribed at x= 0, whereas the outlet is left free, i.e., the associated natural boundary condition is zero traction. The temperature is prescribed to ϑ= 1 at the bottom wall y= 0 and to ϑ= 0 at the top wall y= 1. The inlet and outlet are considered adiabatic. This problem was solved in [46] as a benchmark for open boundary flows using a finite difference method and a fine grid. It can be considered as a model for several relevant engineering problems, such as the fabrication of microelectronic circuits using the chemical vapor deposition process (cf. [46], see references therein). Figure 6.1: Streamlines at two different time steps for the plane Poiseuille flow example. Figure 6.2: Temperature contours at two different time steps for the plane Poiseuille flow example. 144 Thermally coupled flow problems 13.5 14 14.5 15 15.5 16 16.5 17 17.5 5 5.05 5.1 5.15 5.2 5.25 5.3 5.35 5.4 5.45 5.5 u t DS2 QSS REF -16.5 -16 -15.5 -15 -14.5 -14 -13.5 -13 5 5.05 5.1 5.15 5.2 5.25 5.3 5.35 5.4 5.45 5.5 v t DS2 QSS REF -45 -40 -35 -30 -25 -20 -15 -10 -5 5 5.05 5.1 5.15 5.2 5.25 5.3 5.35 5.4 5.45 5.5 p t DS2 QSS REF 0.58 0.585 0.59 0.595 0.6 0.605 0.61 0.615 5 5.05 5.1 5.15 5.2 5.25 5.3 5.35 5.4 5.45 5.5 T t DS2 QSS REF Figure 6.11: Comparison of results at point 6: (x, y)=0.773,0.773) for the flow in cavity at low Prandtl number. u: Horizonal velocity; v: Vertical velocity; p: Pressure; T: Temperature. this choice for the time integration of the Navier-Stokes and the temperature equations. The critical time step of the backward Euler scheme, obtained by taking θ= 0 in 6.19-6.21, is approximately τ1for 6.19 and τ3for 6.21 [37]. Due to the low Prandtl number of the flow, the temperature equation is dominated by thermal diffusivity, whereas convective effects are important only in the Navier-Stokes equations. It turns out that the ratio δt/τ1is 4.77 for the coarse mesh and 15.35 for the fine one, indicating that δt is comparable with τ1. However, the ratio δt/τ3is 222 for the coarse mesh and 2000 for the fine one. Therefore, the time step δt = 0.002 is very “large” for the time integration of the temperature equation and, as a consequence, not much influence is to be expected between quasi-static and dynamic subscales, particularly when diffusive effects dominate, as in boundary layers. Numerical results confirm this fact, as we shall show. Let us discuss now the results of the numerical simulation. The general flow pattern is shown in Figure 6.6 at a time step when the flow is fully developed. It is observed that there is a main central vortex and also that vortices appear at each corner of the cavity. These small vortices move in clockwise sense, being created from flow detachment at the walls, growing and then collapsing against the walls. This evolution for the top right vortex can be observed in Figure 6.7. It is seen how the vortex is originated from the top wall, moves in the clockwise sense while grows, and then decreases until it reaches Thermally coupled flow problems 145 the right wall. Before it completely disappears, a new vortex appears at the top wall. The contours of the velocity norm are plotted in Figure 6.8. These results correspond to time steps separated by half a period (approximately). They show that the main vortex pulsates, increasing and decreasing the flow magnitude periodically. All these results have been obtained with the fine mesh and QSS. To compare the performance of QSS and DS we have considered three representative points. Point 1 is located at (0.006, 0.5), point 2 at (0.0438,0.5) and point 3 at (0.773,0.773). The first two points lie inside the boundary layer formed at the left wall, whereas the third one is placed at the top right position of the main vortex. Figures 6.9, 6.10 and 6.11 show the evolution in time of the flow variables (horizontal velocity, vertical velocity, pressure and temperature) at points 1, 2 and 6, respectively. From these pictures it is observed that all flow variables are more accurate using DS than QSS at points 1 and 6, whereas the results are inconclusive at point 2, where temperature seems to be slightly better using QSS (although the differences with DS are very small). The rest of flow variables are slightly better reproduced using DS. The explanation we give to this fact relies on the previous discussion about the size of the time step. As mentioned earlier, this time step is large for the heat equation, and thus QSS and DS should perform similarly, as it is observed in the numerical experiments. This is particularly so in boundary layers, since diffusive effects dominate there. At other sampling points of the computational domain, QSS performs consistently better than DS, in accordance with the results of the previous example. In this particular example, both the finite element equations and the equations for the subscales have been integrated in time with second order accuracy. 6.7 Conclusions The aim of this chapter has been to explain how to deal with dynamic subscales in the finite element approximation of thermally coupled flows using the Boussinesq approximation. The space variation of the subscales is approximated in terms of the residual of the finite element unknowns in the classical way used in stabilized finite element methods, but now they are integrated in time. From the conceptual point of view, the formulation presented has several benefits, inherited from the formulation applied to isothermal flows in chapter 5. In particular, global momentum conservation and global energy conservation is obtained. Additionally, in the case of thermally coupled flows the coupling of velocity and temperature subscales is dealt with in a natural way. The results of the numerical experiments conducted confirm the conclusions drawn for isothermal flows and that make the formulation particularly appealing: •The formulation is more accurate than considering the subscales quasi-static. 146 Thermally coupled flow problems •Some oscillations encountered using quasi-static subscales are removed. The last item is especially significant when the subscales are integrated in time using a first order scheme, which avoids high frequency spurious oscillations in the tracking of the subscales in time. Chapter 7 Numerical implementation aspects In this chapter we present the strategy developed for the numerical solution of the stabilized finite element approximation of thermally coupled flows. The implementation algorithm is developed considering several possibilities for the solution of the discrete nonlinear problem. The full Newton linearization strategy gives rise to monolithic treatment of the coupling of variables whereas some fixed point schemes permit the segregated treatment of velocity-pressure and temperature. The first one turns out to be very efficient for steady-state problems and very robust when it is combined with a line search strategy that has been developed based on the Armijo rule. A segregated treatment of velocity-pressure and temperature happens to be more appropriate for transient problems. 7.1 Introduction The approximated models considered in previous chapters can be written in a unified manner as a system of nonlinear convection-diffusion-reaction equations of the form M(U0)∂U ∂t +L(U;U) = Fin Ω (7.1) where L(U0;U) := Ai(U0)∂U ∂xi−∂ ∂xiKij ∂U ∂xj+S(U0)U and U= (u, p, ϑ) is the vector of unknowns (velocity u, pressure pand temperature ϑ), Fis a known vector of nunk = d + 2 components and M,Ai,Kij and Sare nunk ×nunk matrices ( i, j = 1, ..., d). The usual summation convention is implied in the last expression, with indices running from 1 to the number of space dimensions d and bold characters are used to denote vectors. When the arguments used to evaluate the matrices M,Aiand Sare clear we will omit them as well as the first argument in L. We shall refer to the terms of the left-hand-side (LHS) of this equation as the temporal, 148 Numerical implementation aspects the convective, the diffusive and the reactive terms. The physical models presented in chapter 1 are written for the two-dimensional case (d = 2) as •Incompressible Navier Stokes equations: M=   ρ0 0 0ρ0 0 0 0   ,Ai(U) =    ρui0δi1 0ρuiδi2 δi1δi20    Kij =   µδij +µδi1δj1+2µ 3δi1δj1µδi2δj1+2µ 3δi1δj20 µδi1δj2+2µ 3δi2δj1µδij +µδi2δj2+2µ 3δi2δj20 0 0 0    S(U) = 0,F=0 where ρis the density and µthe viscosity. •Boussinesq equations: M=     ρ0 0 0 0ρ0 0 0 0 0 0 0 0 0 ρcp     ,Ai(U) =      ρui0δi10 0ρuiδi20 δi1δi20 0 0 0 0 ρcpui      Kij =     µδij +µδi1δj1+2µ 3δi1δj1µδi2δj1+2µ 3δi1δj20 0 µδi1δj2+2µ 3δi2δj1µδij +µδi2δj2+2µ 3δi2δj20 0 0 0 0 0 0 0 0 k      S(U) =      000ρβg1 000ρβg2 0 0 0 0 0 0 0 0     ,F=     0 0 0 Q      where βis the thermal expansion coefficient, cpis the constant pressure specific heat and Qis a given external source of heat. •Low Mach number model: we consider an ideal gas ρ=pth Rϑ what permits to write the continuity equation (see chapter 1) as −ρ ϑ ∂ϑ ∂t +ρ pth dpth dt −ρ ϑu· ∇ϑ+ρ∇ · u= 0 Numerical implementation aspects 149 This is used to write the matrices that define the problem as M(U) =      ρ0 0 0 0ρ0 0 0 0 0 −1 ϑ 0 0 0 ρcp     ,Ai(U) =      ρui0δi10 0ρuiδi20 δi1δi20−1 ϑui 0 0 0 ρcpui      Kij =     µδij +µδi1δj1+2µ 3δi1δj1µδi2δj1+2µ 3δi1δj20 0 µδi1δj2+2µ 3δi2δj1µδij +µδi2δj2+2µ 3δi2δj20 0 0 0 0 0 0 0 0 k      S(U) =      000ρg1 000ρg2 0 0 0 0 0 0 0 0     ,F=      0 0 −1 pth dpth dt dpth dt +Q       Note that it is also possible to use the energy equation to write the continuity equation as ∇ · u=−1 γpth dpth dt +γ−1 γpth [∇· (k∇ϑ) + Q]. and that, as the density is temperature dependent, the temporal term is nonlinear. The boundary conditions of these problems are u=udon Γu D ϑ=ϑdon Γϑ D σ·n= (−pI+ 2µε0(u)) ·n=ton Γu N q·n=−kn· ∇θ=qnon Γϑ N where Γα D(Γα N) is the part of the domain boundary where Dirichlet (Neumann) boundary conditions are given and Γ = ∂Ω = Γα N∪Γα D, where αis either the velocity uor the temperature ϑ. In order to write boundary conditions in a unified manner we split matrices Aias Ai=Ac i+Af i, where Ac iis the part of the convection matrices which is not integrated by parts and Af ithe part that is integrated by parts. This matrix contains pressure terms and in the case of the incompressible Navier Stokes equations is given by Af i=   0 0 δi1 0 0 δi2 0 0 0   ,Ac i=Ai−Af i This permits to define the vector of fluxes in terms of the matrices Kij and Af iso in the simple case in which Γu N= Γϑ N:= ΓN⊂∂Ω. we can write Neumann conditions as niKij ∂U ∂xj−niAf iU=Tin ΓN 150 Numerical implementation aspects Initial conditions have to be appended to close the problem. Let us denote by Wthe functional space where the solution is to be sought, by Wm,p (ω) the usual Sobolev spaces and, in particular Hm(ω) := Wm,2(ω) and by L2(ω) the space of square integrable functions in a domain ω. In a steady state case, the velocity belongs to the space Vst =u∈[H1(Ω)]nsd :u=udin Γu N, the pressure to the space Qst =L2(Ω)/Rand the temperature to the space Ψst =ϑ∈H1(Ω) : ϑ=ϑdin Γϑ N. When a transient problem defined in the interval [0, T] is considered, the space of time dependent functions defined in a space Xwhose norm is Lp(0, T) will be denoted by Lp(0, T;X). Then the space Wis defined as W=L20, T, Vst×L1(0, T, L2(Ω)) × L2(0, T, Ψst) and W0, the corresponding space of test functions which is given by W0=V0×L2(Ω) ×Ψ0where V0=u∈[H1(Ω)]nsd :u=0in Γu Dand Ψ0= ϑ∈H1(Ω) : ϑ= 0 in Γϑ D.Then, the weak form of the problem consists in finding U∈ Wsuch that B(U;U,V)−L(V) = 0 ∀V∈W0(7.2) where the nonlinear form Band the linear form Lare defined as B(U0;U,V) := ZΩ VtM(U0)∂U ∂t +ZΩ VtAc i(U0)∂U ∂xi (7.3) −ZΩ ∂ ∂xiVtAf iU+ZΩ ∂Vt ∂xi Kij (U0)∂U ∂xj +ZΩ VtS(U0)U L(V) := ZΩ VtF+ZΓ VtTdΓ (7.4) Note that the second term in 7.4 could be written as an integral over Γu N∪Γϑ Nbecause Vt=0in the rest of the domain boundary. 7.2 Discrete problem We consider a finite element partition Ph={K}of the computational domain Ω of nel elements, from which we can construct finite element spaces for the velocity, pressure and temperature. We assume that they are all built from continuous piecewise polynomials of the same degree k. We denote by Wh⊂Wthe approximating space, by W0h⊂W0 the space of test functions and by f Wthe space of subscales. We also consider a uniform partition of the time interval [0, T] of time step size δt. Functions approximated at time tnwill be identified with the superscript n. For a generic function f, we will use the notation δfn:= fn+1 −fn,δtfn=δfn/δt,fn+θ=βfn+1 + (1 −θ)fn, 0 ≤θ≤1. Using this notation the fully discrete problem obtained using the variational multiscale formulation of [75] developed in the previous chapters can be written as follows. Given Numerical implementation aspects 151 order 1 2 Exact τtτ1 + 1 ∆t ρτ −1 τ1 + 1 θ∆t ρτ −1 τ1−exp h−θ∆t ρτ i µρ ∆t ρ θ∆t 1 τt1−τt τ Table 7.1: Integration parameters Un hand e Un, find Un+θ hand e Un+θsuch that ZΩ Vt hMδtUn h+ZΩ Vt hAc i ∂Un+θ h ∂xi +ZΩ ∂Vt h ∂xi Kij ∂Un+θ h ∂xj +ZΩ Vt hSUn+θ h −ZΩ ∂ ∂xiVt hAf iUn+θ h+ZΩ Vt hMδte Un+X KZK [L∗(Vh)]te Un+θ=ZΩ VtFn+θ(7.5) for any Vh∈W0hHere and in what follows it is understood that matrices M,Ai,S are evaluated using Un+θ h+e Un+θ. In 7.5, L∗is the adjoint of the differential operator L with homogeneous Dirichlet conditions given by L∗(U0;U) := −∂ ∂xiAt i(U0)U−∂ ∂xiKt ij(U0)∂U ∂xj+St(U0)U (evaluated using U0=Un+θ h+e Un+θin 7.5). The subscale e Un+θis found as the solution of nonlinear problem e Un+θ=τtRn+θ+µτte Un(7.6) driven by the residual Rn+θ:= Fn+θ−MδtUn h−L(Un+θ h) The temporal derivative of the subscale is calculated as δte Un=µτtRn+θ−µτ −1τte Un and the parameters µand τtdepend on the time integration scheme used for the subscales evolution equations as explained in chapter 6 where three options are considered. They are defined as τt= diag(τt1, τt1, τ2, τt3) µ= diag(µ1, µ1,0, µ3) where τt1and τt3as well as µ1and µ3are defined in table 7.1 The parameters τ1,τ2and τ3are computed as in previous chapters. In the case of an isotropic mesh they are given by τ1=c1 µ h2+c2 ρ|uh+e u| h−1 , τ2=h2 c1τ1 , τ3=c1 k h2+c2 ρcp|uh+e u| h−1 152 Numerical implementation aspects where c1= 4 and c2= 2 for linear elements. Using these definitions the final problem to be solved can be written as follows. Given Un hand e Un, find Un+θ hsuch that 1 θδt ZΩ Vt hMUn+θ h+ZΩ Vt hAc i ∂Un+θ h ∂xi−ZΩ ∂ ∂xiVt hAf iUn+θ h +ZΩ ∂Vt h ∂xi Kij ∂Un+θ h ∂xj +ZΩ Vt hSUn+θ h +X KZK [−µMV h−L∗(Vh)]tτt1 θδtMUn+θ h+L(Un+θ h) =ZΩ VtFn+θ+X KZK [−µMV h−L∗(Vh)]tτtFn+θ(7.7) +1 θδt ZΩ Vt hMUn h+1 θδt X KZK [−µMV h−L∗(Vh)]tτtMUn h +X KZKτ−1MV h+L∗(Vh)tµτte Un for any Vh∈W0hand find e Un+θsuch that e Un+θ=τtRn+θ+µτte Un Note that the explicit dependence of the subscales on the residual of the finite element component has been explicitly taken into account and has been assembled on the left hand side of the equation. However, the problem still depends on the subscales (and therefore on the residual of the finite element component) through the matrices M,Ai,Sand the operators Land L∗and also through the stabilization parameters. The non linear treatment of this system is described in the following section. 7.2.1 Linearization and line search strategy The discrete approximation described in the previous section leads to a highly nonlinear system of algebraic equations for the nodal values of Un+α h, which are denoted by the same character (but without the subscript h). This nonlinear problem can be written as [L+N(U)] U=R where Lis the linear part of the operator and Nthe nonlinear one and Rthe force vector. Therefore we look for the roots of the function H(U) = [L+N(U)] U−R and we consider fixed points linearizations of the form Uk=GUk−1(7.8) Numerical implementation aspects 153 where G(U) = D−1(DU −H(U)) for some matrix Dto be defined in the following and which may depend on the iteration step. Then, using a superscript for the iteration counter the iterative scheme reads DUi+1 −Ui+HUi=0 or DUi+1 −Ui+ [L+N(U)] Ui−R=0 Different choices of Dled to different schemes: •The classical Picard scheme is obtained by taking D=[L+N(U)] from where the problem to be solved is L+NUiUi+1 =R •The Newton scheme is obtained taking D=H0(U) where H0is the Jacobian of H, from where H0UiUi+1 −Ui+HUi=0 Sometimes a modified Newton scheme is obtained by taking D=H0U0 •In the case of a steady state problem (just to fix ideas) another option is to take D=1 εM to obtain 1 εMUi+1 −Ui+L+NUiUi=R This scheme produces the same iterates that an explicit temporal integration of the equations, what shows how a temporal evolution can be considered as a fixed point scheme for the solution of a nonlinear problem.