Dynamic term-by-term stabilized nite element formulation using orthogonal subgrid-scales for the incompressible Navier-Stokes problem E. Castillo a and R. Codina b,c a Departamento de Ingeniería Mecánica, Universidad de Santiago de Chile, Av Libertador Bernardo O'Higgins 3363, Santiago, Chile b Universitat Politècnica de Catalunya, Jordi Girona 1-3, Edici C1, 08034, Barcelona, Spain c CIMNE Centre Internacional de Metodes Numerics en Enginyeria, Gran Capità S/N 08034 Barcelona, Spain
[email protected] (E. Castillo) and
[email protected] (R. Codina) Abstract In this paper, we propose and analyze the stability and the dissipative structure of a new dynamic term-by- term stabilized nite element formulation for the Navier-Stokes problem that can be viewed as a variational multiscale (VMS) method under some assumptions. The essential point of the formulation is the time dependent nature of the subscales and, contrary to residual-based formulations, the introduction of two velocity subscale components. They represent the components of the convective and the pressure gradient terms, respectively, of the momentum equation that cannot be captured by the nite element mesh. A key idea of the proposed method is that the convective subscale is close to a solenoidal eld and the pressure gradient subscale is close to a potential eld. The method ensures stability in anisotropic space-time discretizations, which is proved using numerical analysis for a linearized problem and demonstrated in classical numerical tests. The work includes a detailed description of the proposed formulation and several numerical examples that serve to justify our claims. Keywords: Stabilized nite element methods, Variational Multiscale, Dynamic Subscales, Term-by-Term stabilization 1. Introduction In the numerical simulation of physical phenomena many times anisotropic space-time discretization are needed. This anisotropy has to be understood as space-time partitions in which h (space discretization size) and δt (time step size of the time discretization) are independently rened, and in particular they do not need to satisfy the well know condition h2≤Cδt , with C a constant independent of h and δt , that usually appears in stabilized nite element methods (see [1]). The stabilized nite element methods that we will consider can be cast in the variational multiscale (VMS) framework [2] (see [3] for an overview). In particular, the unknown is split into its nite element component and the subgrid scale (or subscale), which cannot be captured by the nite element mesh. Approximating the subgrid scale in terms of the nite element scale provides a formulation that is (hopefully) stable for the latter. This is why the resulting methods can be termed as subgrid scale (SGS) stabilized nite element methods. One of the most common approximations used in SGS stabilization methods is to neglect the time derivative of the subscales, which are then called quasi-static. The resulting formulations require the condition Preprint submitted to Elsevier December 13, 2018
h2≤Cδt mentioned above, and are therefore unstable for anisotropic space-time discretizations [4, 5, 6]. This will not be the case in the formulation we present in this paper. In [6], the precise denition of the numerical dissipation for the orthogonal subscale stabilization introduced in [4] for incompressible ows was given and analyzed in detail, comparing additionally the diusion introduced by the numerical discretization of the problem with respect to the diusion introduced by a classical large eddy simulation (LES) model. In [5], the role of the orthogonal projections was discussed and analyzed in detail, proving stability and opening the door to solve turbulent incompressible ows with arbitrary time step sizes for xed meshes if dynamic SGS methods are used. Indeed, in the last years, some VMS nite element methods have been proved to be able to solve turbulent ows accurately, giving the possibility to represent the large scales and the inertial range of the Kolmogorov cascade [5, 6, 7, 8]. In these works, the tracking of the subscales in time required by the approximation of their time derivative has been proved to be crucial, and it has even been shown that it reduces the CPU time of the calculations due to the reduction of nonlinear iterations needed to solve each time step. Stabilized nite element methods were initially motivated for the steady-state case and later extended to the transient case (see for example [9] for an early space-time approach). In a VMS method, the exact problem for the subgrid scales involves inverting a dierential operator; the approximation to this operator leads to the stabilization parameters on which the formulation depends. A classical way to proceed is to consider the time derivative discretized by nite dierences, and therefore to consider its eect as a source with coecient δt−1 , and to neglect the time derivative of the subscales. Thus, the stabilization parameters depend on δt−1 . This in particular implies that the steady state solution, if it exists, depends on the value of δt used to step in time. Apart from this inconsistency, as it has been mentioned this approach is unstable for anisotropic space-time discretizations, as pointed out in [10, 1]. The forcing term in the exact problem for the subscales contains essentially the residual of the nite element solution. When approximating the subscale, it is thus proportional to this residual, so that the resulting stabilized formulation is said to be residual-based. This is the most common option [2, 11, 12], leading to consistent problems for the nite element scale. In the VMS approach, the subscale is multiplied by the adjoint of the dierential operator of the problem being solved applied to the test functions of the nite element scale, and the result integrated element-wise. We have observed that in some cases with non-smooth solutions, the cross products of the dierent components of the dierential operator in the nite element residual and the adjoint operator applied to the test functions may yield local instabilities. In [13, 14], a non-residual-based VMS method for the momentum equation based on orthogonal projections was proved to be able to solve more elastic cases than a residual-based one. On the other hand, fractional step methods can be formulated more easily using non-residual-based methods due to the inclusion of less cross terms that do not play any stability role. Motivated in these two facts, we propose in this paper a dynamic term-by-term VMS method, with all the well known stability properties of the dynamic residual-based stabilized methods but with a term-by-term non-residual-based structure. The key ideas, explained along the paper, are the orthogonal projections that give place to an optimal order non-consistent method, and the tracking of the subscales in time. The novelty is that here we will consider two velocity subscales for incompressible ows. The paper is organized as follows. In Section 2 the problem is stated. In Section 3 the stabilized nite element method we propose is presented, while in Section 4 the method is analyzed for a linearized problem. The numerical results used to test the new formulation are presented in Section 5, and, nally, conclusions 2
are collected in Section 6. 2. Problem statement and Galerkin nite element discretization 2.1. Boundary value problem Let Ω⊂Rd , with d= 2 or 3 , be the computational domain in which the ow takes place during the time interval (0, T) , assumed to be bounded and polyhedral, and let ∂Ω be its boundary. If u is the velocity eld and p the pressure, the incompressible Navier-Stokes equations for a Newtonian uid are ∂u ∂t +u· ∇u+∇p−ν∆u=f,in Ω, t ∈(0, T), (1) ∇ · u= 0,in Ω, t ∈(0, T ), (2) where f represents the vector of external forces and ν is the kinematic viscosity of the uid. Equations (1) and (2) must be supplied with an initial condition of the form u=u0 in Ω , t= 0 , and a boundary condition which, for simplicity, will be taken as u=0 on ∂Ω , t∈(0, T) . 2.2. Dissipative structure In order to study the dissipative structure of the nite element method proposed later, we also consider the LES problem obtained by applying a lter of the form ¯ v(x) = Zv(x0)G(x,x0)dx0, to the Navier-Stokes Equations (1) and (2) for an appropriate lter function G(x,x0) , vanishing outside a ball of an appropriate diameter (the lter-width). The nal ltered problem results in an extra term: the divergence of the residual stress tensor τ , dened in components as τij =uiuj−¯ui¯uj . The LES problem consist in nding the ltered velocity (¯ u) and the ltered pressure (¯p) as solution to the equations: ∂¯ u ∂t +¯ u· ∇¯ u+∇¯p−ν∆¯ u+∇ · τ=f,in Ω, t ∈(0, T ), (3) ∇ · ¯ u= 0,in Ω, t ∈(0, T ). (4) A kinetic energy conservation statement for the Navier-Stokes problem can be found by multiplying the momentum Equation (1) by the velocity eld u . Taking into account the pointwise kinetic energy denition, k=1 2u·u , and the divergence free nature of u , the following equation is found: ∂k ∂t +u· ∇k+u· ∇p−ν∆k+ν∇u:∇u=u·f,in Ω, t ∈(0, T), (5) which integrating over an arbitrary volume ω⊂Ω with exterior unit normal ˆ n gives: Zω ∂k ∂t +Z∂ω ˆ n·[u(k+p)−ν∇k] + Zω ν∇u:∇u=Zω u·f. (6) The total energy variation in volume ω (rst term of the left-hand-side, LHS) is balanced by the ow of energy through its boundary (second term) plus the dissipation due to viscous eects (third term) and the work of external forces, given by the right-hand-side (RHS) term. 3
A similar kinetic energy conservation equation is found multiplying the LES Equation (3) by the ltered velocity ¯ u . The result is: ∂¯ k ∂t +u· ∇¯ k+¯ u· ∇¯p−ν∆¯ k+ν∇¯ u:∇¯ u+∇ · (¯u·τ) + ∇¯ u:τ=¯ u·f. This equation integrated over ω∈Ω and simplied by the use of (4) gives: Zω ∂¯ k ∂t +Z∂ω ˆ n·¯u¯ k+ ¯p−ν∇¯ k+¯u·τ+Zω ν∇¯ u:∇¯ u+Zω ν∇¯ u:τ=Zω ¯ u·f. The interpretation of the terms corresponds to the meaning they had before, except for the last term of the LHS, that represents the energy transfer between coarse and ne scales, and the last component of the second term, which now includes the ow of the energy through the boundary due to the work done by the mean velocity against the residual stress tensor. Note that this term comes from the ltering of the convective term. 2.3. Variational form From the point of view of the discrete approximation, the incompressible Navier-Stokes problem (1)- (2), and the LES problem (3)-(4), are identical, except for the divergence of the residual stress tensor, and therefore the same discrete formulation is usually used. Let us introduce some standard notation. The space of functions whose l -th power (1 ≤l < ∞) is integrable in a domain ω is denoted by Ll(ω) , L∞(ω) being the space of 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 of functions in H1(ω) vanishing on ∂Ω is denoted by H1 0(Ω) . The topological dual of H1 0(ω) is denoted by H−1(ω) . If f and g are functions (or distributions) such that fg is integrable in the domain ω under consideration, we denote hf, giω=Rωfg , 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 h·,·iω= (·,·)ω . This notation is simplied when ω=Ω as follows: h·,·iω≡ h·,·i and (·,·)ω≡(·,·) . Let V= (H1 0(Ω))d and Q=L2(Ω) /R , the spaces of velocity and pressure, respectively. If we denote X:= V× Q , the weak form of the problem (1)-(2) consists in nding U= [u, p] : (0, T)→X such that ∂u ∂t ,v+B(u;U,V) = hf,vi, (7) almost everywhere in (0, T) and for all V= [v, q]∈X , satisfying the initial condition in a weak L2 -sense, and with B(a;U,V) := ν(∇u,∇v) + ha· ∇u,vi − (p, ∇ · v)+(q, ∇ · u), where f has been assumed to belong to (H−1(Ω))d for each t∈(0, T) . 2.4. Galerkin nite element discretization and time discretization Let Th={K} be a nite element partition of the domain Ω , considered polygonal for d= 2 and polyhedral for d= 3 . For the sake of conciseness, we consider this partition quasi-uniform, of diameter h . From this we may construct conforming nite element spaces for the velocity and the pressure, Vh⊂V and Qh⊂ Q , in 4
the usual manner. The Galerkin nite element approximation consist in nding Uh= [uh, ph] : (0, T)→Xh , such that ∂uh ∂t ,vh+B(uh;Uh,Vh) = hf,vhi, (8) for all Vh= [vh, qh]∈Xh , and satisfying the initial condition in a weak sense. It is known that Equation (8) suers from dierent types of numerical instabilities. On the one hand, if the convective term of the momentum equation dominates the viscous one, numerical oscillations may appear. On the other hand, the velocity-pressure spaces need to satisfy an inf-sup condition in order to have a well-posed problem. These diculties are overcome by using a stabilized nite element method, as the one proposed in this work. The term involving the time derivative can be discretized in dierent ways. However, the most common option consist in using nite dierence schemes in time. In particular, we have implemented the rst and the second order backward dierencing schemes, based respectively on the approximations: ∂uh ∂t tn+1 =un+1 h−un h δt +O(δt), (9) ∂uh ∂t tn+1 =3un+1 h−4un h+un−1 h 2δt +Oδt2, (10) for n= 0,1,2, . . . In both cases, δt corresponds to the size of a uniform partition of the time interval (0, T) , while, O(·) represents the approximation order of the scheme. The superscript indicates the time step where the variable is being approximated, so that un h is an approximation to uh at time tn=nδt . The stabilized nite element method to be proposed next is independent of the time scheme used. 3. Stabilized nite element formulation 3.1. Residual-based VMS methods The stabilized nite element formulation proposed in this work can be motivated in the framework of VMS methods and, in particular, in those method that model the SGS. The basic idea is to split the unknown U that belongs to X in two components, the nite element component Uh that belongs to the nite element space Xh , and the remainder part, dened as the subscale component ˜ U , that belongs to the subscale space ˜ X , in such a way that U=Uh+˜ U and X=Xh⊕˜ X . Let us consider a general nonlinear evolution problem of the form M(U)∂U ∂t +L(U,U) = F, (11) where U is the unknown of the problem, L(U,·) corresponds to a space dierential operator, assumed to be linear in the second argument, M(U) is a matrix and F a force eld. A general SGS method of VMS type can be derived in the way explained next. First of all, let us state the weak form of the problem (11), which can be formally written as M(U)∂U ∂t ,V+hL (U,U),Vi=hF,Vi, (12) for an appropriate duality and considering V as a test function independent of time. The boundary conditions of the problem have to be taken into account, and are understood to be incorporated in the duality h·,·i . 5
The second step consists in splitting the weak form in two parts, the nite element and the subscale part, obtained by taking the test function in the respective spaces: M(U)∂U ∂t ,Vh+hL (U,U),Vhi=hF,Vhi ∀Vh∈Xh, (13) M(U)∂U ∂t ,˜ V+DL(U,U),˜ VE=DF,˜ VE∀˜ V∈˜ X. (14) This is exactly equivalent to the original problem (12). In essence, the goal of all SGS methods, including the approximation of the sub-scale with bubble functions, is to approximate ˜ U in one way or another and end up with a problem for Uh alone, maintaining the number of unknowns of the Galerkin nite element problem. In general, SGS methods have a residual-based structure, and therefore consistency comes from construction. Following the procedure described for example in [15], and after some simplications and mathematical manipulations, the subscale component can be written in terms of the nite element part as: M(U)∂˜ U ∂t +τ−1(U)˜ U=˜ PF−M(U)∂Uh ∂t − L (Uh,Uh), (15) where τ−1(·) is a matrix dened within each element domain that has to be determined, called matrix of stabilization parameters. Additionally, ˜ P represents the L2 -projection onto the sub-scale space. Note that this projection should be applied also to the LHS; it would be the identity if M and τ−1 were constants, so that omitting it has to be considered an approximation. Note also that the terms between brackets in the RHS represent the residual of the nite element approximation. If ˜ P is taken as the projection onto the space of nite element residuals, we arrive to the most classical approach, the ASGS method (Algebraic Sub-Grid Scale method) [16]. If ˜ P is taken as the orthogonal projection to the nite element space, we obtain the OSGS method (Orthogonal Sub-Grid Scale method) [16]. Applying the procedure described above to the linearized Navier-Stokes problem, with ˆ uh a given approximation of u , we obtain the following residual-based stabilization method: ∂uh ∂t ,vh+B(ˆ uh;Uh,Vh)−X K (∇ · vh,˜p)K −X K (ˆ uh· ∇vh+ν∆vh+∇qh,˜ u)K=hf,vhi, (16) for all test functions Vh= [vh, qh] , where ˜ u and ˜p , are the subscales of the momentum and continuity equation, respectively. In principle, ˆ uh=uh+˜ u , but ˆ uh≈uh leads also to a stable and accurate method (see [8] for the eects of the choice of ˆ uh in turbulence). If we use a residual-based VMS method, the subscales are the solution of the problem: ∂˜ u ∂t +τ−1 1˜ u=˜ Pf−∂uh ∂t +ˆ uh· ∇uh+∇ph−ν∆uh, (17) τ−1 2˜p=˜ P(−∇ · uh), (18) where τ= diag (τ1I, τ2) are the components of the matrix of stabilization parameters, I being the d×d identity matrix. We will refer later to its structure. Note that the stabilization terms added to the Galerkin 6
method in (16) are proportional to the nite element residuals of the momentum and the continuity equation. Throughout the work we will refer to the stabilized method dened by (16) as the residual-based VMS method, adding the prex orthogonal if ˜ P=P⊥ h . If the time derivative of the velocity subscale in Equation (17) is neglected, we refer to the method as quasi-static; otherwise the method is called dynamic. It is understood that what is quasi-static or dynamic is the velocity subscale. When ˜ P=P⊥ h , two additional simplications can be done: P⊥ h∂uh ∂t =0 , and P⊥ h(f)≈0 ; the latter yields a weakly consistent method (see below), and in fact it is exact if f is nite element function. The initial condition for the velocity subscale in (17) can be taken as zero (see [17]). Not all the terms of the product of ˆ uh· ∇vh+ν∆vh+∇qh and the terms that contribute to ˜ u in (16) provide stablity. Thus, from the point of view of stability some of them could be neglected. This idea has motivated dierent term-by-term stabilization methods [18, 19, 12], including the local projection stabilization methods (see for example [20, 21, 22]), and motivates also the method proposed next. 3.2. Term-by-term stabilized formulation The method we will propose next is not residual-based, and therefore it is not consistent in the sense used in the nite element context, i.e., the discrete variational problem will not be satised when the nite element unknown is replaced by the solution of the continuous problem. However, the consistency error will be of optimal order. Let us consider expression (17), with ˜ P=P⊥ h . In this case, assuming P⊥ h(f)≈0 , we may write: ∂˜ u ∂t +τ−1 1˜ u=−P⊥ h(ˆ uh· ∇uh)−P⊥ h(∇ph) + P⊥ h(ν∆uh). (19) All the terms in the RHS have optimal consistency order, in the sense that if we replace the nite element solution by the continuous one and this is smooth enough, the L2 -norm of these terms behaves as hk+1 , k being the order of the nite element interpolation. If derivatives of order higher than k+ 1 cannot be considered smooth, the missing powers of h in the interpolation estimates can be compensated by those of the stabilization parameter τ1 , whose expression is given below. Neglecting any of the terms in the RHS of (19) has no consequences in the order of accuracy, but the impact on stability may be very signicant. In order to obtain control (stability and convergence) on the convective term and the pressure gradient term, we need to keep the rst and the second terms, but we may neglect P⊥ h(ν∆uh) . The next idea is to assume that the rst two terms are independent . In fact, if ˆ uh could be replaced by a constant vector eld, they would be orthogonal, since the convective term would be solenoidal and the pressure gradient would be potential; there orthogonal components would obviously be also mutually orthogonal. With the idea described in mind, we may split ˜ u=˜ u1+˜ u2 , where ˜ u1 and ˜ u2 are the solution of the evolution problems: ∂˜ u1 ∂t +τ−1 1˜ u1=−P⊥ h(ˆ uh· ∇uh), (20) ∂˜ u2 ∂t +τ−1 1˜ u2=−P⊥ h(∇ph), (21) both with zero initial condition. Moreover, we may keep only the product of ˜ u1 with the convective term applied to the test function and the product of ˜ u2 with the gradient of the pressure test function, since these 7
are the terms that provide stability. Altogether, this leads to the stabilized nite element formulation we propose in this work, which consists in nding Uh= [uh, ph] : (0, T)→Xh such that ∂uh ∂t ,vh+B(uh;Uh,Vh)−X K (∇ · vh,˜p)K −X K (uh· ∇vh,˜ u1)K−X K (∇qh,˜ u2)K=hf,vhi, (22) for all [vh, qh]∈Xh , where the subscales ˜ u1 , ˜ u2 are given by (20)-(21) and ˜p by τ−1 2˜p=−P⊥ h(∇ · uh). (23) The expressions we use for the stabilization parameters τ1 and τ2 , appearing in (20)-(23), are τ1= c1ν h1 k22+c2|uh| h2 k!−1 , τ2=h1 k22 c1τ1 , (24) where h1 and h2 are characteristic lengths, the rst one computed as the square root of the element area in 2D or the cubic root of the element volume in 3D , and the second one the element length in the streamline direction. The constants ci , i= 1,2 , are algorithmic parameters in the formulation, while k is the order of the nite element interpolation (see [23]). The values used in this work are c1= 4 and c2= 2 . These values have proven to be robust in dierent problems and for dierent applications. Nevertheless, note that the precise values of the algorithmic constants may aect the error for a given mesh size, but the rate of convergence is unaected. The novelty of this method is the tracking of the velocity subscales, two in this case. The quasi-static version of this orthogonal term-by-term method was proposed in [19] and analyzed numerically in [12], and used later in the context of viscoelastic uids in [15, 24, 14], with better response than the residual version for highly elastic ows. The dynamic version, taking into account the time derivative of the velocity subscales, is required in anisotropic space-time discretizations. Let us remark that there are other methods for stationary problems that share with ours the introduction of inconsistent terms (not zero when the discrete solution is replaced by the continuous one), but with a consistency error of optimal order. In the nite element context, examples of these methods are the stabilization based on jumps over nite element boundaries (see [25]) or the local projection stabilization (see for example [26]). Apart from the time dependency of the subscales, the latter would give a method similar to (22) replacing the orthogonal projection by the so called uctuation operator. We have presented heretofore a heuristic motivation of the formulation, starting from the VMS framework and using dierent assumptions. The validity of the resulting formulation will be justied by some analysis and by the numerical performance in the examples presented in Section 5. 3.3. About stabilization parameters depending on the time step size In [5, 1] the importance of the time dependent behavior of the subscales was analyzed in detail. Here we summarize the key ideas for the dynamic term-by-term method proposed in this work. Using a rst order backward dierence scheme to discretize in time the subscale equations (20) and (21), 8
we obtain: ˜ un+1 1=1 δt +1 τ1−11 δt ˜ un 1−P⊥ hˆ un+1 h· ∇un+1 h, (25) ˜ un+1 2=1 δt +1 τ1−11 δt ˜ un 2−P⊥ h∇pn+1 h, (26) where it is understood that τ1 is computed with the velocity at time step n+ 1 . From these expressions we see that both velocity subscales depend on 1 τd 1 =1 δt +1 τ1 . Expressions with asymptotic behavior similar to that of τd 1 in terms of ν , |ˆ uh| , h1 , h2 and δt can be found in the specic literature, see for example [9, 27]. In [10] there is a study of the instability encountered when the ASGS method and quasi-static subscales are used. It is shown in that reference 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 remains xed. It is easily shown that the instability described disappears if δt ≥Cτn+1 1, (27) where C is a positive constant. From this condition it seems clear that the stabilization parameter and the time step size must be related in classical (quasi-static) stabilized nite element methods, since τ1 depends on h . It is important to note that, if (27) holds, it is irrelevant from the analysis point of view if the subscales are considered dynamic or quasi-static, since 1/δt is at most of the same order as 1/τ1 in (25)-(26). The importance of considering dynamic subscales, reected in equations (25)-(26) by the presence of 1 δt ˜ un 1 and 1 δt ˜ un 2 , is that (27) is not needed for stability, as it will be shown below. Moreover, we will see in the numerical examples that accuracy is improved when dynamic subscales are considered. 4. Dissipative structure and stability 4.1. Local energy conservation Following [28, 6] we can examine the conservation structure of the proposed nite element formulation. Dening an arbitrary subdomain ω⊂Ω formed by an arbitrary patch of elements and introducing the discrete counterpart of the uxes hω:∂ω →Rd , denoted by hω h , we can write: ∂uh ∂t ,vhω +ν(∇uh,∇vh)ω+huh· ∇uh,vhiω−(ph,∇ · vh)ω+ (∇ · uh, qh)ω −X K⊂ωP⊥ h(ˆ uh· ∇vh),˜ u1K−X K⊂ωP⊥ h(∇qh),˜ u2K−X K⊂ωP⊥ h(∇ · vh),˜pK =hf,vhiω+hhω h,vhi∂ω . (28) Note that we have introduced the orthogonal projection in the terms coming from the subgrid scales. The formulation of the discrete problem (22) is unaected by this addition due to the fact that (vh,˜ ui) = P⊥ h(vh),˜ ui , i= 1,2 . However, this is not the case in a subdomain ω of the domain Ω because the introduction of the projection will change the recovered uxes hω h . The analysis begins by taking the test functions equal to the nite element variables, vh=uh and qh=ph 9
Figure 2: Pressure contourlines and streamlines for the ow over a cylinder problem for linear elements (top) and quadratic elements (bottom). Figure 3: Vertical velocity and pressure evolution at point (6,0) for linear elements and for dierent time step sizes. 16
Figure 4: Vertical velocity and pressure evolution in point (6,0) for quadratic elements and for δt = 0.05 . the pressure and velocity values between the residual-based and the term-by-term formulations appreciated in Figure 3 are due to the coarse spatial discretization used; for ner meshes, the results overlap. The same point was tracked for quadratic elements. The vertical velocity and pressure evolution are plotted in Figure 4 using δt = 0.05 . In this case, all methods consider yield very similar results. An important result is reported in Figure 5. The design of the term-by-term stabilized formulation that we have proposed from the VMS framework relies on the fact that the vector elds −P⊥ h(ˆ uh· ∇uh) and −P⊥ h(∇ph) in Equation (19) are independent. In particular, we have argued that this would be true if the former were a component of a solenoidal eld and the latter a component of a potential eld. This independence has permitted the introduction of the subscales ˜ u1 and ˜ u2 , so that ˜ u=˜ u1+˜ u2 . Now we may verify a posteriori whether this assumption is (approximately) true or not. To this end, in Figure 5 the subscale velocity components are plotted for the same point as for Figures 3 and 4. The nomenclature used in Figure 5 is as follows: Usgs and Vsgs are the velocity subscale components obtained using the orthogonal residual-based VMS method, Usgs i and Vsgs i with i= 1 and 2 , are the subscale velocity components obtained using the term-by-term method (when i= 1 we refer to the convective subscale velocity and when i= 2 we refer to the pressure gradient subscale velocity) and, nally, Usgs 12 and Vsgs 12 represent the sum of both subscale velocities for each component. For linear elements, the dierence between the subscale velocities obtained using the residual-based formulation and those obtained using the term-by-term formulation come from the cross local inner terms, and therefore, the subscale velocities do not necessarily have to be equal in both methods. However, as we can see in Figure 5 (top), the sum of both velocity subscales is very close to the subscale obtained using the residual-based formulation, and the shape of the curve is exactly the same. The results for quadratic elements are shown in Figure 5 (bottom). In this case, the presence of the Laplacian term in the residual-based formulation increases the dierence between the subscale velocities of the two methods compared; however, again the shape of the curves is the same. 5.2. Flow in a dierentially heated cavity with aspect ratio 8 In thermally coupled problems, the 8:1 aspect ratio planar cavity is a common benchmark to check new formulations. In this work, we use it to show that the dynamic term-by-term formulation is highly robust even in chaotic cases. The thermal model we consider is based on the simplest Bossinesq assumption. In this case, the body force f in the momentum equation (1) is given by f=βg(T−Tref ) , where β is the thermal expansion 17
Figure 5: Subscale velocity components evolution for linear elements (top) and quadratic elements (bottom). Figure 6: Mesh used for the 8 : 1 planar dierentially heated cavity problem. Full domain (right), and corner zoomed by 25 (right). 18
coecient, g the gravity acceleration vector (of norm g ), T the temperature (not time, now) and Tref the reference temperature. The temperature is obtained by solving the energy equation. The Navier-Stokes equations are solved using the formulation presented in this work, whereas the heat equation is solved using the orthogonal subgrid scale approach detailed in [32]. The geometry of the problem is dened as a rectangle eight times higher than wide. The computational domain is dened as [0,1]×[0,8] . The mesh used is a structured one, exponentially concentrated close to the walls, formed by 6000 linear quatrilateral elements and 6171 nodal points; it is showed in Figure 6. As velocity boundary conditions, the non-slip prescription is imposed on all walls, while as temperature conditions the left wall is dened as the hot wall, with a temperature TH= 600 , while the left wall is dened as a cold wall, with a temperature TC= 300 . The horizontal walls are set as adiabatic. The Rayleigh number dened as Ra = ρ2gβcp(TH−TC)L3 κµ is the dimensionless number that denes the type and the regime of the ow. In this denition, cp the specic heat, κ the conductivity of the uid and L a characteristic length, taken in our case as the cavity width. In Figures 7 and 8 some qualitative results for this problem are presented. In Figure 7 the temperature contour-lines and the streamlines are presented for a periodic case (rst bifurcation) dened by Ra = 3.45×105 and for a chaotic case, in which Ra = 1 ×107 . The time step size used to solve these cases was δt = 0.1 for the periodic case and δt = 0.025 for the chaotic one. The subscale variables are calculated at the numerical integrations points within each element domain. In Figure 8, the magnitude of the nite element velocity and the magnitude of the subscale velocities are presented as contours at the nodal points. In the legend, Vesgs 1 represents the convective subscale velocity magnitude, while Vesgs 2 represents the pressure gradient subscale velocity magnitude, in both cases using an automatic smoothing (projection) from the integration points to the nodes (this is why some negative values are obtained). It is well known for the 8:1 planar case of the dierentially heated cavity that the critical Rayleigh number (rst Hopf bifurcation) that gives place to a time dependent ow is close to 3.45 ×105 . For this case, both the quasi-static and dynamic term-by-term formulations work well. However, for Ra = 1 ×107 , where the ow is chaotic, the quasi-static version begins to show signs of instability, if the time step size is reduced. For chaotic ows it is crucial for a good resolution of the physics of the problem to be able to use very small time step sizes. In Figure 9, the phase diagram for the quasi-static (left) and for the dynamic (right) versions of the term-by-term stabilized nite element formulation are presented using a time step size of δt = 0.003125 . Note that for this case τ1,min ≈0.5×10−4 . It is evident than the dynamic version yields a smother curve. A similar pattern has been reported for the residual-based VMS formulation in [33]. 5.3. Cubic Lid-driven cavity ow The cubic lid-driven cavity ow problem is a classical benchmark used in the three-dimensional case. According to the numerical results presented in [34], who investigated a set of subcritical and slightly supercritical ows in a cubic lid-driven cavity, the steady transition occurs via a subcritical Hopf bifurcation at a Reynolds number Recr ≈1914 , being this Reynolds number based on the length of the side of the cube and the velocity prescribed on the top lid (zero velocity is prescribed elsewhere). In a more recent experimental work [35], the steady-unsteady transition has been dened over the range 1700 <Recr <1970 . Beyond a Reynolds number Re >1970 , the ow becomes oscillatory. 19
Figure 7: Temperature countourlines (left couple) and streamlines (right couple) for the 8:1 planar cavity, for Ra = 3.45 ×105 (left in each couple) and Ra = 1 ×107 (right in each couple). 20
Figure 8: Magnitude of velocity, from left to right: nite element velocity, convective velocity subscale and pressure gradient velocity subscale for the Ra = 1 ×107 case. Figure 9: Phase diagram (pressure v/s temperature) for Ra = 1 ×107 at point (0.05,4) : quasi-static term-by-term formulation (left) and dynamic term-by-term (right). 21
−0.4 −0.2 0 0.2 0.4 −0.4 −0.2 0 0.2 0.4 Vertical Velocity x Mesh 453 Mesh 803 Mesh 1003 Figure 10: Mesh used for the cubic lid-driven cavity problem (left) and mesh convergence study (right). To prove the capability of the proposed formulation to solve three-dimensional problems and to show that the method yields smooth and stable solutions for transient 3D ows, we solve the cubic lid-driven cavity ow for Re = 1970 using a very coarse mesh (with respect to papers devoted to the analysis of Hopf bifurcations) of 45 ×45 ×45 hexahedral trilinear elements shown in Figure 10. For this problem we set the magnitude of the lid-driven velocity to 1 . The computational domain is dened as Ω= [−0.5,0.5]×[−0.5,0.5]×[−0.5,0.5] . The kinematic viscosity is dened as ν=1 Re . The time step value was set to δt = 0.1 . A convergence study based on capability of the mesh to capture the boundary layer associated to the vertical velocity in the horizontal middle cross line was done, corresponding to a steady state case close to the problem analyzed ( Re = 1900 ). In Figure 10 (right) it is seen that the three meshes analyzed ( 453 , 803 and 1003 nodes) yield almost overlapped results and, from this fact, the coarsest mesh was used for this numerical example, with the size distribution shown in Figure 10 (left). In Figure 11, streamlines at three dierent time instants are presented to show the time-dependent nature of the solution. The zoom is located at the bottom left corner of the mid plane y= 0 . Note that the mesh used is very coarse to solve this type of problems; however, the dynamic term-by-term formulation is capable to capture the bifurcated solution. Finally, in Figure 12 a representative snapshot is shown to present the ow pattern. In this gure the streamlines are plotted for a view of the plane xz . 6. Conclusions In this work, we have proposed and analyzed an orthogonal dynamic term-by-term VMS method to solve incompressible ows. The orthogonal projections and the time tracking of the two velocity subscales, the convective one and the pressure gradient one, are the key ingredients. The main conclusions of the paper are summarized next: 22
Figure 11: Vectors of velocity magnitude snapshot in the bottom left corner of the mid plane y= 0 for dierent time instants (on top t1= 15.6 and t2= 21.3 , and on bottom t3= 26.25 ). Figure 12: Velocity streamlines snapshot for the cubic lid-driven cavity problem. 23
• The formulation has proven to be highly robust in all numerical tests, in laminar and in chaotic ows, in 2D and 3D examples, using linear and quadratic elements, and for structured and unstructured meshes. • The orthogonal projections ensure that the consistency errors are of optimal order, a key point to use high order elements. • The dissipative structure of the formulation has been analyzed and proved to be the correct one, opening the door to use the formulation in turbulent ows. • The tracking of the subscales in time ensures stability even for anisotropic space-time discretizations, which has been proven mathematically (in a simplied case) and numerically up to the limit case δt ≈τ1,min , both using linear and quadratic elements. • The independency of the subscales that come from the the assumption of a quasi-selenoidal structure of the convective velocity subscale and the potential structure of the pressure gradient velocity subscale has been demonstrated numerically, even using quadratic elements. Acknowledgments This work has been partially funded by the Chilean Council for Scientic and Technological Research (CONICYTFONDECYT 11160160 ). R. Codina acknowledges the support received through the ICREA Acàdemia Research Program, from the Catalan government. References [1] S. Badia and R. Codina, On a multiscale approach to the transient Stokes problem: Dynamic subscales and anisotropic space-time discretization, Applied Mathematics and Computation , vol. 207, no. 2, pp. 415 433, 2009. [2] T. J. Hughes, G. R. Feijóo, L. Mazzei, and J.-B. Quincy, The variational multiscale method-a paradigm for computational mechanics, Computer Methods in Applied Mechanics and Engineering , vol. 166, no. 1, pp. 3 24, 1998. Advances in Stabilized Methods in Computational Mechanics. [3] R. Codina, S. Badia, J. Baiges, and J. Principe, Variational Multiscale Methods in Computational Fluid Dynamics, in Encyclopedia of Computational Mechanics, pp. 128. John Wiley & Sons, Ltd., 2017. [4] R. Codina, Stabilized nite element approximation of transient incompressible ows using orthogonal subscales, Computer Methods in Applied Mechanics and Engineering , vol. 191, no. 39, pp. 4295 4321, 2002. [5] R. Codina, J. Principe, O. Guasch, and S. Badia, Time dependent subscales in the stabilized nite element approximation of incompressible ow problems, Computer Methods in Applied Mechanics and Engineering , vol. 196, no. 21, pp. 2413 2430, 2007. [6] J. Principe, R. Codina, and F. Henke, The dissipative structure of variational multiscale methods for incompressible ows, Computer Methods in Applied Mechanics and Engineering , vol. 199, no. 13, pp. 791 801, 2010. Turbulence Modeling for Large Eddy Simulations. 24
[7] O. Guasch and R. Codina, Statistical behavior of the orthogonal subgrid scale stabilization terms in the nite element large eddy simulation of turbulent ows, Computer Methods in Applied Mechanics and Engineering , vol. 261-262, pp. 154 166, 2013. [8] O. Colomés, S. Badia, R. Codina, and J. Principe, Assessment of variational multiscale models for the large eddy simulation of turbulent incompressible ows, Computer Methods in Applied Mechanics and Engineering , vol. 285, pp. 32 63, 2015. [9] F. Shakib and T. J. Hughes, A new nite element formulation for computational uid dynamics: IX. Fourier analysis of space-time Galerkin/least-squares algorithms, Computer Methods in Applied Mechanics and Engineering , vol. 87, no. 1, pp. 35 58, 1991. [10] P. B. Bochev, M. D. Gunzburger, and R. B. Lehoucq, On stabilized nite element methods for the Stokes problem in the small time step limit, International Journal for Numerical Methods in Fluids , vol. 53, no. 4, pp. 573597, 2007. [11] Y. Bazilevs, V. Calo, J. Cottrell, T. Hughes, A. Reali, and G. Scovazzi, Variational multiscale residualbased turbulence modeling for large eddy simulation of incompressible ows, Computer Methods in Applied Mechanics and Engineering , vol. 197, no. 1, pp. 173 201, 2007. [12] R. Codina, Analysis of a stabilized nite element approximation of the Oseen equations using orthogonal subscales, Applied Numerical Mathematics , vol. 58, no. 3, pp. 264 283, 2008. [13] E. Castillo and R. Codina, Stabilized stress-velocity-pressure nite element formulations of the Navier- Stokes problem for uids with non-linear viscosity, Computer Methods in Applied Mechanics and Engineering , vol. 279, pp. 554 578, 2014. [14] E. Castillo and R. Codina, Finite element approximation of the viscoelastic ow problem: A nonresidual based stabilized formulation, Computers & Fluids , vol. 142, pp. 72 78, 2017. Selected papers of 18th International Conference on Finite Elements in Flow Problems. [15] E. Castillo and R. Codina, Variational multi-scale stabilized formulations for the stationary three-eld incompressible viscoelastic ow problem, Computer Methods in Applied Mechanics and Engineering , vol. 279, pp. 579 605, 2014. [16] R. Codina, A stabilized nite element method for generalized stationary incompressible ows, Computer Methods in Applied Mechanics and Engineering , vol. 190, no. 20, pp. 2681 2706, 2001. [17] S. Badia, R. Codina, and J. Gutiérrez-Santacreu, Long term stability estimates and existence of global attractors in a nite element approximation of the Navier-Stokes equations with numerical sub-grid scale modeling, SIAM Journal on Numerical Analysis , vol. 48, pp. 10131037, 2010. [18] T. Chacón Rebollo, A term by term stabilization algorithm for nite element solution of incompressible ow problems, Numerische Mathematik , vol. 79, pp. 283319, Apr 1998. [19] R. Codina, Stabilization of incompressibility and convection through orthogonal sub-scales in nite element methods, Computer Methods in Applied Mechanics and Engineering , vol. 190, no. 13, pp. 1579 1599, 2000. 25